/* =============================================
   ZEVOR — style.css
   Paleta: Negro #000 | Blanco #FFF | Oro #B8860B
   Tipografía: Playfair Display + Montserrat
   Mobile-First · Modular
   ============================================= */

/* ----- RESET ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ----- TOKENS ----- */
:root {
    --black:        #000000;
    --white:        #FFFFFF;
    --off-white:    #F1EFEC;
    --dark:         #0C0C0C;
    --gold:         #B8860B;
    --gold-light:   #C9A030;
    --gray-mid:     #888888;
    --gray-light:   #DEDBD7;
    --gray-subtle:  #F7F5F2;

    --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:    'Montserrat', 'Gill Sans MT', system-ui, -apple-system, sans-serif;

    --nav-h:        72px;
    --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ----- UTILITY ----- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----- TYPE SCALE ----- */
.label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
}

/* ===========================
   BOTONES
   =========================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    cursor: pointer;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}
.btn--outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
    background: var(--white);
    color: var(--black);
}

.btn--dark {
    background: var(--black);
    color: var(--white);
}
.btn--dark:hover { background: #222; }


/* ===========================
   NAVBAR
   =========================== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: var(--nav-h);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Transparent sobre el hero */
.nav__inner {
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    color: var(--white);
    padding-left: 0.5em; /* compensar óptico del tracking */
    flex-shrink: 0;
    transition: color 0.3s;
}

/* Links — visibles sólo en desktop */
.nav__links {
    display: none;
    align-items: center;
    gap: 2.8rem;
}

.nav__link {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    position: relative;
    transition: color 0.25s;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__icon {
    background: none;
    border: none;
    color: var(--white);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav__icon:hover { opacity: 1; }

.cart-icon-wrap { position: relative; display: flex; align-items: center; }
.cart-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--gold); color: var(--black);
    font-size: 0.5rem; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-family: var(--font-sans); line-height: 1;
}

/* Hamburger */
.nav__burger {
    background: none;
    border: none;
    color: var(--white);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.3s;
    transform-origin: center;
}

.nav__burger--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Nav scrolled — fondo oscuro */
.nav--scrolled {
    background: var(--dark);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Mobile drawer */
.nav__drawer {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 800;
}

.nav__drawer--open {
    transform: translateX(0);
}

.nav__drawer-link {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.nav__drawer-link:hover { color: var(--gold); }


/* ===========================
   HERO
   =========================== */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/*
 * ─────────────────────────────────────────────────────────────────
 * DESARROLLADOR — VIDEO DE FONDO
 *
 * Reemplazá el <div class="hero__bg"> de abajo por este bloque:
 *
 *   <video class="hero__video" autoplay muted loop playsinline>
 *     <source src="hero 1 (1).mp4" type="video/mp4">
 *   </video>
 *
 * El CSS ya está listo (.hero__video abajo).
 * ─────────────────────────────────────────────────────────────────
 */

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Placeholder visible hasta que se inserte el video */
.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--dark);
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
}

.hero__content {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

/* Logotipo reducido */
.hero__logo-mark {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: 0.55em;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
    padding-left: 0.55em;
    display: block;
}

/* Separador oro */
.hero__rule {
    width: 1.8rem;
    height: 1px;
    background: var(--gold);
}

.hero__tagline {
    font-family: var(--font-sans);
    font-size: clamp(0.45rem, 1.4vw, 0.58rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

/* Botón del hero más chico */
.hero__content .btn--gold {
    padding: 0.7rem 1.6rem;
    font-size: 0.58rem;
}

/* ----- CONTROL DE VOLUMEN ----- */
.hero__volume {
    position: absolute;
    bottom: 2.2rem;
    left: 1.8rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.volume__btn {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.volume__btn:hover {
    background: rgba(0,0,0,0.65);
    border-color: rgba(255,255,255,0.5);
}

.volume__slider-wrap {
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.3s ease;
}

.volume__slider-wrap--visible {
    width: 90px;
    opacity: 1;
}

.volume__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    outline: none;
    cursor: pointer;
    border-radius: 0;
    display: block;
}

.volume__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--gold);
    cursor: pointer;
    border-radius: 50%;
}

.volume__slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--gold);
    cursor: pointer;
    border: none;
    border-radius: 50%;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.4);
}

.hero__scroll span {
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 0.9; transform: scaleY(0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-line { animation: none; }
}


/* ===========================
   LOS ETERNOS
   =========================== */
.eternos {
    padding: 6rem 0 7rem;
    background: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head .label { margin-bottom: 0.9rem; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-wrap: balance;
}

/* Grid: mobile = 2 cols, tablet = 3 cols iguales, desktop = asimétrico */
.eternos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card__link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Imagen */
.product-card__frame {
    overflow: hidden;
    background: var(--gray-subtle);
    position: relative;
}

/* Aspect ratio igual para todos */
.product-card__frame { aspect-ratio: 2 / 3; }

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    display: block;
}

/*
 * ─────────────────────────────────────────────────────────────
 * DESARROLLADOR — IMÁGENES DE PRODUCTO
 *
 * Cada .product-card__placeholder debe reemplazarse por:
 *   <img src="ruta/imagen.jpg" alt="Nombre del modelo"
 *        class="product-card__img">
 * ─────────────────────────────────────────────────────────────
 */
.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-mid);
    background: var(--gray-subtle);
}

.product-card__placeholder svg { opacity: 0.3; }

.product-card__placeholder-label {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
}

.product-card:hover .product-card__img { transform: scale(1.04); }

/* Badge "FAVORITO" en la tarjeta central */
.product-card__badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
}

.product-card__body {
    padding: 1.1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.product-card__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.product-card__desc {
    font-size: 0.72rem;
    color: var(--gray-mid);
    margin-bottom: 0.6rem;
}

.product-card__cta {
    align-self: center;
    white-space: nowrap;
    font-size: 0.6rem;
    padding: 0.55rem 0.9rem;
}


/* ===========================
   AUTENTICIDAD — Split-screen
   =========================== */
.autenticidad {
    background: var(--off-white);
    overflow: hidden;
}

.autenticidad__split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 560px;
}

.autenticidad__visual {
    overflow: hidden;
    height: 200px;
    background: var(--dark);
    position: relative;
}

/*
 * ─────────────────────────────────────────────────────────────
 * DESARROLLADOR — IMAGEN SPLIT-SCREEN
 *
 * Reemplazá el <div class="autenticidad__img-placeholder"> por:
 *   <img src="ruta/imagen-autenticidad.jpg"
 *        alt="Ray-Ban — Autenticidad ZEVOR"
 *        class="autenticidad__img">
 * ─────────────────────────────────────────────────────────────
 */
.autenticidad__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.autenticidad__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: linear-gradient(160deg, #1a1a1a 0%, #080808 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.12);
}

.autenticidad__text {
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.autenticidad__title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.18;
    text-wrap: balance;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0;
}

.feature {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.feature__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.feature__name {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.feature__detail {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.6;
}


/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

/* Brand */
.footer__brand-logo {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    display: block;
    margin-bottom: 0.8rem;
}

.footer__brand-line {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    line-height: 2;
}

/* Newsletter */
.footer__section-title {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.footer__newsletter-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.2rem;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    max-width: 360px;
}

.newsletter-form__input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    color: var(--white);
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    outline: none;
    transition: border-color 0.25s;
}

.newsletter-form__input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form__input:focus { border-color: var(--gold); }

.newsletter-form__btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 0 1.1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
}

.newsletter-form__btn:hover { background: var(--gold-light); }

/* Links */
.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer__links-list a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.footer__links-list a:hover { color: var(--gold); }

/* Social */
.social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    transition: border-color 0.2s, color 0.2s;
    background: none;
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Bottom bar */
.footer__bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__bar p {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.04em;
}


/* ===========================
   RESPONSIVE — TABLET ≥ 768px
   =========================== */
/* ===========================
   RESPONSIVE — MOBILE (base fixes)
   =========================== */
html { overflow-x: hidden; }

@media (max-width: 767px) {
    /* Hero: reducir tamaño en móvil */
    .hero__logo-mark { font-size: clamp(2rem, 10vw, 3rem); }
    .hero__tagline   { font-size: 0.65rem; padding: 0 1.5rem; }

    /* Volume: moverlo para no tapar scroll indicator */
    .hero__volume { bottom: 5rem; }

    /* Autenticidad: una columna */
    .autenticidad__split { grid-template-columns: 1fr; }
    .autenticidad__img-placeholder { min-height: 260px; }
    .autenticidad__text { padding: 2.5rem 1.25rem; }

    /* Footer: más compacto */
    .footer { padding: 3.5rem 0 2rem; }
    .newsletter-form { max-width: 100%; }
}

@media (min-width: 768px) {
    /* Nav */
    .nav__links  { display: flex; }
    .nav__burger { display: none; }

    /* Eternos: 3 columnas iguales */
    .eternos__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    /* Autenticidad split 50/50 — altura fija */
    .autenticidad__split {
        grid-template-columns: 1fr 1fr;
        height: 320px;
    }

    .autenticidad__visual { height: 100%; }
    .autenticidad__img-placeholder { height: 100%; }

    /* Footer 2 cols */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer__bar {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ===========================
   RESPONSIVE — DESKTOP ≥ 1024px
   =========================== */
@media (min-width: 1024px) {
    /* Eternos: grid asimétrico — el centro más alto */
    .eternos__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
        align-items: start;
    }

    .product-card--featured .product-card__frame {
        aspect-ratio: 2 / 3;
    }

    /* Autenticidad split 55/45 */
    .autenticidad__split {
        grid-template-columns: 55fr 45fr;
        height: 340px;
    }

    .autenticidad__text {
        padding: 2rem 2.5rem;
    }

    /* Footer 4 cols */
    .footer__grid {
        grid-template-columns: 1.4fr 1.6fr 1fr 1fr;
    }
}
