/* Variables globales: css/variables.css */

/* =========================
   RESET
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--color-light);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =========================
   MENÚ
========================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 6%;
    color: var(--color-white);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}
.logo {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.header-logo {
    display: block;
    width: 60px;
    height: auto;
    object-fit: contain;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    position: relative;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}
.main-nav a::after {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    content: "";
    transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

/* =========================
   PORTADA
========================= */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 100vh;
    padding: 100px 24px 72px;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
    background-image: url("../images/portada.jpg");
    background-position: center;
    background-size: cover;
}
/* Más luz en la fotografía y mayor contraste para el texto inferior. */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(12, 12, 11, 0.08) 0%,
        rgba(12, 12, 11, 0.10) 40%,
        rgba(12, 12, 11, 0.30) 70%,
        rgba(12, 12, 11, 0.65) 100%
    );

    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(780px, 100%);
}
.hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.34rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}
.hero h1 {
    font-family: var(--font-hero);
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.48), 0 1px 5px rgba(0, 0, 0, 0.4);
}
.hero h1 span {
    margin: 0 0.2em;
    font-size: 0.58em;
    font-style: italic;
}
.hero-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px auto 13px;
}
.hero-ornament::before,
.hero-ornament::after {
    width: 48px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.68);
    content: "";
}
.hero-ornament-symbol {
    font-family: var(--font-title);
    font-size: 1.05rem;
    line-height: 1;
}
.hero-date {
    font-family: var(--font-title);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: 0.08rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}
.hero-location {
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.17rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}
.hero-start-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 22px;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}
.hero-start-link::after {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    content: "↓";
    animation: invitacion-flecha 2.4s ease-in-out infinite;
}
.hero-start-link:hover { opacity: 1; }
@keyframes invitacion-flecha {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* =========================
   INDICADOR INFERIOR
========================= */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 2;
    width: 24px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    transform: translateX(-50%);
}
.scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-white);
    animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* =========================
   SECCIONES GENERALES
========================= */
.section {
    display: flex;
    align-items: center;
    min-height: 75vh;
    padding: 100px 24px;
    text-align: center;
}
.section-container { width: min(1050px, 100%); margin: 0 auto; }
.section-light { background-color: var(--color-light); }
.section-accent { background-color: var(--color-accent-light); }
.section-eyebrow {
    margin-bottom: 12px;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}
.section-eyebrow_aux {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}
.section h2 {
    margin-bottom: 18px;
    color: var(--color-dark);
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1;
}
/* Conservado tal como estaba en tu archivo original. */
.section .guide-section-title {
    margin-bottom: 18px;
    color: var(--color-accent);
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1;
}
.section-description { max-width: 620px; margin: 0 auto; }
.placeholder-box {
    margin: 50px auto 0;
    padding: 50px 24px;
    max-width: 800px;
    border: 1px dashed var(--color-accent);
    color: #77736c;
    background-color: rgba(255, 255, 255, 0.35);
}

/* =========================
   PIE DE PÁGINA
========================= */
.main-footer {
    padding: 35px 20px;
    color: var(--color-white);
    background-color: var(--color-dark);
    font-family: var(--font-title);
    font-size: 1.3rem;
    text-align: center;
}

/* =========================
   CELULARES
========================= */
@media (max-width: 760px) {
    .main-header { justify-content: center; }
    .main-nav { display: none; }
    .hero {
        min-height: 100svh;
        padding: 82px 16px 62px;
        background-position: center bottom;
    }
    .hero-content { width: 100%; }
    .hero-eyebrow {
        margin-bottom: 7px;
        font-size: 0.62rem;
        letter-spacing: 0.25rem;
    }
    .hero h1 {
        font-size: clamp(2.3rem, 9vw, 3.4rem);
        line-height: 1.03;
    }
    .hero h1 span { margin: 0 0.12em; }
    .hero-ornament { margin: 12px auto 10px; }
    .hero-ornament::before,
    .hero-ornament::after { width: 36px; }
    .hero-date { font-size: 1.25rem; }
    .hero-location {
        font-size: 0.61rem;
        letter-spacing: 0.13rem;
    }
    .hero-start-link {
        margin-top: 17px;
        font-size: 0.58rem;
        letter-spacing: 0.13rem;
    }
    .section { min-height: auto; padding: 80px 20px; }
}

/* Pantallas muy estrechas: evitar que el título toque los bordes. */
@media (max-width: 380px) {
    .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-start-link::after,
    .scroll-indicator span { animation: none; }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(12, 12, 11, 0.08) 0%,
        rgba(12, 12, 11, 0.10) 40%,
        rgba(12, 12, 11, 0.30) 70%,
        rgba(12, 12, 11, 0.65) 100%
    );

    pointer-events: none;
}
