/* ===================================
   09 - Secciones de la home
   Hero + fondos y colores de texto de cada seccion.
   Este archivo contiene el "tema claro": Tailwind pinta las
   secciones en oscuro y aqui se sobreescriben a claro.
   =================================== */


/* ===================================
   HERO
   Foto a pantalla completa con el contenido anclado abajo y la marca
   centrada arriba; el nav lateral ocupa el borde izquierdo.
   Solo dos capas:
     .hero__media  -> foto de la tienda (LCP), nitida y sin retoque
     .hero__inner  -> contenido (unica capa con z-index positivo)
   La foto va limpia a peticion del cliente: nada de scrim, halos ni
   grano encima. El contraste del texto lo da su propia sombra
   (.hero__content), que no toca la imagen.
   =================================== */

.hero {
    /* Paleta del hero: un solo sitio donde ajustar el tema. */
    --hero-bg: #0B0B0B;
    --hero-ink: #FFFFFF;
    --hero-ink-soft: rgba(255, 255, 255, 0.78);
    --hero-line: rgba(255, 255, 255, 0.14);

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh; /* evita el salto por la barra del navegador movil */
    padding: clamp(7rem, 14vh, 9.5rem) 0 clamp(1.75rem, 4vh, 2.5rem);
    overflow: hidden;
    background-color: var(--hero-bg);
    color: var(--hero-ink);
}

/* ===== Capa 1: fotografia ===== */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -4;
}

/* Sin filtros de color: la foto se ve tal cual, como en "Nosotros".
   El zoom lento (Ken Burns) empieza a escala real, asi que la primera
   vista es la nitida y el aumento entra despues, muy despacio. */
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroKenBurns 28s ease-in-out infinite alternate;
}

/* ===== Marca (centrada arriba) ===== */
.hero__brand {
    position: absolute;
    top: clamp(1rem, 2.2vh, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero__brand img {
    display: block;
    width: auto;
    height: clamp(54px, 7.5vw, 88px);
    /* El dorado del PNG sale algo lavado sobre la vitrina iluminada: se
       satura y se contrasta desde CSS, sin tocar el archivo. La sombra
       va la ultima para que use la silueta ya corregida. */
    filter:
        saturate(1.4)
        contrast(1.08)
        drop-shadow(0 6px 22px rgba(0, 0, 0, 0.78));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__brand:hover img {
    transform: scale(1.04);
}

/* ===== Contenido ===== */
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero__content {
    max-width: 52rem;
    /* Sin scrim, la sombra del texto es lo unico que separa el titular de la
       vitrina. Dos capas: una cerrada que perfila la letra y otra amplia que
       apaga el fondo, sin llegar a ensuciar la foto. */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 12px rgba(0, 0, 0, 0.8),
        0 10px 44px rgba(0, 0, 0, 0.6);
}

.hero__btn {
    text-shadow: none;
}

/* Justo detras de esta linea cae el mostrador iluminado de la tienda: ni el
   blanco ni el dorado aguantan ahi solo con sombra. Lleva su propio cristal
   oscuro, el mismo de los botones y la barra de garantias. */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hero__rule {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--color-gold);
}

.hero__title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--hero-ink);
}

/* La parte destacada del titular, en cursiva dorada */
.hero__title em {
    font-style: italic;
    color: var(--color-gold);
}

.hero__lead {
    max-width: 34rem;
    margin: 1.4rem 0 0;
    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.6;
    text-wrap: pretty;
    /* Blanco pleno, no el 78%: sin scrim, el gris se perdia sobre la foto */
    color: var(--hero-ink);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 16px rgba(0, 0, 0, 0.85);
}

/* ===== Botones ===== */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                background-color 0.35s ease,
                color 0.35s ease;
}

.hero__btn:hover {
    transform: translateY(-2px);
}

.hero__btn:focus-visible {
    outline: 2px solid var(--color-gold-light);
    outline-offset: 3px;
}

.hero__btn--primary {
    background: var(--color-gold);
    color: #16120A;
    box-shadow: 0 14px 34px -14px rgba(201, 169, 110, 0.8);
}

.hero__btn--primary:hover {
    background: var(--color-gold-light);
    color: #16120A;
    box-shadow: 0 20px 40px -14px rgba(201, 169, 110, 0.95);
}

.hero__btn-arrow {
    font-size: 0.8rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__btn--primary:hover .hero__btn-arrow {
    transform: translateX(4px);
}

/* Cristal oscuro, no claro: la foto va limpia y detras del boton puede
   haber una estanteria iluminada. */
.hero__btn--ghost {
    background: rgba(10, 10, 12, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 500;
}

.hero__btn--ghost:hover {
    background: rgba(10, 10, 12, 0.56);
}

/* ===== Barra de garantias ===== */
.hero__trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1px;
    margin: clamp(2rem, 5vh, 3rem) 0 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    list-style: none;
    background: rgba(10, 10, 12, 0.44);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.hero__trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease;
}

.hero__trust li:hover {
    background: rgba(255, 255, 255, 0.07);
}

.hero__trust-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(201, 169, 110, 0.16);
    color: var(--color-gold-light);
    font-size: 0.8rem;
}

.hero__trust strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.hero__trust small {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
}

/* ===== Entrada escalonada del contenido ===== */
.hero-reveal {
    opacity: 0;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__content > .hero-reveal:nth-child(1) { animation-delay: 0.12s; }
.hero__content > .hero-reveal:nth-child(2) { animation-delay: 0.22s; }
.hero__content > .hero-reveal:nth-child(3) { animation-delay: 0.34s; }
.hero__content > .hero-reveal:nth-child(4) { animation-delay: 0.46s; }
.hero__trust.hero-reveal { animation-delay: 0.6s; }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .hero {
        padding-top: clamp(6.5rem, 12vh, 8rem);
    }
}

/* Por debajo de 1024px el nav vuelve a ser barra superior, pegada a la
   izquierda: el logo centrado no cabe a su lado, asi que baja justo
   debajo de la barra y se queda igualmente centrado. */
@media (max-width: 1023px) {
    .hero__brand {
        top: clamp(4.9rem, 11vh, 5.75rem);
    }
}

/* ===== Movil ===== */
@media (max-width: 768px) {
    .hero__brand img {
        height: clamp(46px, 12vw, 62px);
    }

    /* Encuadre hacia la izquierda: ahi estan las estanterias de perfumes */
    .hero__media img {
        object-position: 26% center;
    }

    .hero__eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__trust li {
        padding: 0.9rem 1.1rem;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
    }

    /* En movil la barra se queda solo con los titulares */
    .hero__trust small {
        display: none;
    }

    .hero__trust strong {
        margin-bottom: 0;
    }

    /* Deja libre la esquina del boton flotante de WhatsApp */
    .hero__trust li:last-child {
        padding-right: 4.25rem;
    }
}

/* ===== Accesibilidad: sin movimiento ===== */
@media (prefers-reduced-motion: reduce) {
    .hero__media img {
        animation: none;
    }

    .hero-reveal,
    .hero__brand {
        opacity: 1;
        animation: none;
    }
}

/* NOTA: los fondos y colores por seccion vivian aqui como parches sobre
   las clases oscuras de Tailwind. Con el sistema editorial (13-editorial.css)
   cada seccion declara su fondo con .sec--paper / --ivory / --ink y ya no
   hace falta repintarla. */
