/* ══════════════════════════════════════════════════
     VARIABLES GLOBALES DE COLOR
     Aquí defines todos los colores de la marca.
     Si quieres cambiar un color, cámbialo aquí
     y se actualiza en TODA la página automáticamente.
  ══════════════════════════════════════════════════ */
  :root {
    --sapphire:       #0F2557;
    --sapphire-deep:  #081840;
    --sapphire-mid:   #1a3a7a;
    --sapphire-light: #2a4fa0;
    --silver:         #C8D0DC;
    --silver-bright:  #E8EDF5;
    --text-muted:     #8899BB;
    --black-deep:     #060C1A;
    --white-pure:     #FFFFFF;
    --gold-accent:    #C9A84C;
    --gold-glow:      rgba(201,168,76,.15);

    /* ── Refinamiento premium (008) — aditivo, no reemplaza nada ── */
    --gold-soft:      #D8BE72;                 /* oro en textos finos */
    --line:           rgba(200,208,220,.12);   /* hairline plata */
    --line-gold:      rgba(201,168,76,.35);    /* hairline oro */
    --surface:        #0a1628;                 /* superficie elevada */
    --surface-2:      #0d1c33;                 /* superficie 2 */

    /* Escala tipográfica fluida */
    --fs-eyebrow:     clamp(11px, 1vw, 13px);
    --fs-body:        clamp(14px, 1.05vw, 16px);
    --fs-h2:          clamp(32px, 4.4vw, 56px);
    --fs-h3:          clamp(20px, 2vw, 28px);
    --track-wide:     .38em;

    /* Ritmo vertical y radios */
    --sp-section:     clamp(80px, 10vw, 140px);
    --sp-gutter:      clamp(20px, 5vw, 60px);
    --radius:         4px;
    --radius-lg:      18px;

    /* ── Fundación tipográfica (port del prototipo) ── */
    --serif:          'Cormorant Garamond', Georgia, serif;  /* títulos / display */
    --sans:           'Montserrat', system-ui, sans-serif;   /* texto / interfaz */
    --gut:            var(--sp-gutter);                      /* alias del margen lateral */
    --fs-h1:          clamp(46px, 7.4vw, 108px);             /* display del hero */
    --ease-lux:       cubic-bezier(.2,.7,.2,1);              /* curva de lujo compartida */
  }

  /* ── RESET GENERAL ──
     Elimina márgenes y rellenos por defecto del navegador
     para que todo se vea igual en Chrome, Firefox, Safari, etc. */
  * { margin:0; padding:0; box-sizing:border-box; }

  html { scroll-behavior:smooth; scroll-padding-top:96px; } /* deja aire bajo la navbar fija al saltar a #anclas */

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* Estilo base del cuerpo de la página */
  body {
    font-family: var(--sans);              /* Fuente principal de todos los textos */
    background: var(--black-deep);         /* Fondo negro profundo */
    color: var(--silver-bright);           /* Color de texto por defecto: plata brillante */
    overflow-x: hidden;                    /* Evita scroll horizontal no deseado */
  }

  /* ── FOCO DE TECLADO ──
     Marca dónde está parado quien navega con la tecla Tab.
     Usa :focus-visible, así que NO aparece al hacer clic con el mouse.
     Mismo trazo dorado que ya usaban las flechas del carrusel
     (reactbits.css: .carousel-arrow:focus-visible). */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--gold-accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* ── BARRA DE SCROLL PERSONALIZADA ──
     Solo visible en navegadores basados en Chrome/Safari */
  ::-webkit-scrollbar { width: 3px; }                                          /* Barra muy delgada (3px) */
  ::-webkit-scrollbar-track { background: var(--black-deep); }                 /* Fondo de la barra: negro */
  ::-webkit-scrollbar-thumb { background: var(--sapphire-light); border-radius: 2px; } /* Indicador azul zafiro */


  /* ══════════════════════════════════════════════════
     NAVBAR — BARRA DE NAVEGACIÓN FIJA
     Siempre visible arriba al hacer scroll
  ══════════════════════════════════════════════════ */
  nav {
    position: fixed;           /* Se queda fija en la parte superior al hacer scroll */
    top: 0; left: 0; right: 0; /* Ocupa todo el ancho de la pantalla */
    z-index: 1000;             /* Se pone encima de todo lo demás */
    padding: 24px 60px;        /* Espaciado interno: arriba/abajo 24px, lados 60px */
    display: flex;             /* Pone los elementos en fila horizontal */
    align-items: center;       /* Los centra verticalmente */
    justify-content: space-between; /* Logo a la izquierda, links al centro, botón a la derecha */
    transition: all .5s ease;  /* Animación suave cuando cambia de estilo al hacer scroll */
  }

  /* Estado de la navbar cuando el usuario ha hecho scroll hacia abajo */
  nav.scrolled {
    background: rgba(6,12,26,.92);            /* Fondo semitransparente oscuro */
    backdrop-filter: blur(24px);              /* Efecto de desenfoque tipo vidrio esmerilado */
    -webkit-backdrop-filter: blur(24px);      /* Lo mismo pero para Safari */
    padding: 16px 60px;                       /* Se hace un poco más pequeña al hacer scroll */
    border-bottom: 1px solid rgba(200,208,220,.08); /* Línea sutil en la parte inferior */
  }

  /* Contenedor del logo (imagen + texto) */
  .nav-logo {
    display: flex;        /* Logo e imagen en fila */
    align-items: center;  /* Centrados verticalmente */
    gap: 10px;            /* Espacio entre la imagen y el texto */
    text-decoration: none; /* Quita el subrayado del enlace */
    min-width: 0;         /* Permite que se comprima en pantallas pequeñas */
    flex-shrink: 1;       /* Permite que el logo ceda espacio a los links */
  }

  /* Imagen del logo en la navbar */
  .nav-logo-img {
    width: 48px; height: 48px;           /* Tamaño reducido para no ocupar tanto */
    flex-shrink: 0;                       /* La imagen no se comprime */
    filter: invert(1) brightness(0.85);   /* Invierte colores: negro → blanco/plata */
    opacity: 0.9;
  }

  /* Texto "Silver Cow Ambato" junto al logo */
  .nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 1.2vw, 17px); /* Se adapta al ancho de pantalla */
    font-weight: 400;
    letter-spacing: clamp(.08em, .5vw, .25em); /* Letter-spacing adaptable */
    color: var(--silver-bright);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;   /* Evita que el texto se parta en dos líneas */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Subtexto pequeño debajo del nombre ("Joyería · Est. 2026") */
  .nav-logo-text span {
    display: block;
    font-size: clamp(9px, .9vw, 12px);   /* También adaptable */
    letter-spacing: clamp(.1em, .3vw, .3em);
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
  }

  /* Lista de enlaces de navegación (Nosotros, Filosofía, etc.) */
  .nav-links {
    display: flex;
    gap: clamp(16px, 2.5vw, 44px); /* Gap adaptable entre links */
    list-style: none;
  }

  /* Estilo de cada link de navegación */
  .nav-links a {
    text-decoration: none;
    color: var(--silver);
    text-shadow: 0 1px 2px rgba(6,12,26,.75), 0 0 8px rgba(6,12,26,.45); /* Halo oscuro sutil para legibilidad sobre el ColorBends */
    font-size: clamp(10px, 1vw, 13px); /* Tamaño de fuente adaptable */
    font-weight: 300;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: color .3s; /* Cambio de color suave al pasar el mouse */
    position: relative;    /* Necesario para el subrayado animado */
  }

  /* Línea de subrayado que aparece al hacer hover (efecto deslizante) */
  .nav-links a::after {
    content: '';           /* Elemento decorativo vacío */
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1px;
    background: var(--silver-bright);
    transform: scaleX(0);       /* Inicia invisible (ancho 0) */
    transition: transform .3s ease;
  }
  .nav-links a:hover { color: var(--white-pure); } /* Al pasar mouse: texto blanco */
  .nav-links a:hover::after { transform: scaleX(1); } /* Al pasar mouse: subrayado aparece deslizándose */

  /* ── Botón carrito en navbar (reemplaza "Contactar") ── */
  .nav-carrito {
    position: relative;          /* Para posicionar el contador encima */
    background: none;
    border: 1px solid rgba(200,208,220,.2);
    border-radius: 2px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--silver-bright);
    transition: all .3s;
  }
  .nav-carrito:hover { border-color: rgba(200,208,220,.5); transform: translateY(-1px); }

  /* Número rojo con la cantidad de items en el carrito */
  .carrito-count {
    position: absolute;
    top: -8px; right: -8px;      /* Esquina superior derecha del ícono */
    background: #c0392b;          /* Rojo para llamar la atención */
    color: white;
    font-size: 10px;
    font-weight: 500;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;                   /* Invisible cuando el carrito está vacío */
    transition: opacity .3s;
  }
  .carrito-count.visible { opacity: 1; } /* Se muestra cuando hay al menos 1 item */


  /* ══════════════════════════════════════════════════
     MODAL DEL CARRITO
     Ventana emergente central con los productos seleccionados
  ══════════════════════════════════════════════════ */

  /* Fondo oscuro semitransparente detrás del modal */
  .carrito-overlay {
    display: none;               /* Oculto por defecto */
    position: fixed;
    inset: 0;                    /* Cubre toda la pantalla */
    background: rgba(0,0,0,.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .carrito-overlay.abierto { display: flex; } /* Se muestra al abrir el carrito */

  /* Ventana del carrito */
  .carrito-modal {
    background: #0a1628;         /* Fondo muy oscuro azulado */
    border: 1px solid rgba(200,208,220,.1);
    border-radius: 6px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;            /* No ocupa más del 90% de la pantalla */
    overflow-y: auto;            /* Scroll si hay muchos productos */
    position: relative;
  }

  /* Encabezado del modal */
  .carrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(200,208,220,.08);
    position: sticky; top: 0;   /* Se queda fijo mientras se hace scroll */
    background: #0a1628;
    z-index: 1;
  }
  .carrito-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--white-pure);
    letter-spacing: .1em;
  }

  /* Botón X para cerrar el modal */
  .carrito-cerrar {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color .3s;
    padding: 4px;
  }
  .carrito-cerrar:hover { color: var(--white-pure); }

  /* Área de los productos dentro del modal */
  .carrito-body { padding: 24px 32px; }

  /* Mensaje cuando el carrito está vacío */
  .carrito-vacio {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .1em;
  }

  /* Cada fila de producto en el carrito */
  .carrito-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(200,208,220,.06);
  }

  /* Info del producto (nombre + precio unitario) */
  .carrito-item-info { flex: 1; }
  .carrito-item-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--white-pure);
    margin-bottom: 4px;
  }
  .carrito-item-precio-unit {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .1em;
  }

  /* Controles de cantidad (- número +) */
  .carrito-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15,37,87,.3);
    border: 1px solid rgba(200,208,220,.1);
    border-radius: 2px;
    padding: 4px 10px;
  }
  .qty-btn {
    background: none;
    border: none;
    color: var(--silver);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
  }
  .qty-btn:hover { color: var(--white-pure); }
  .qty-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--silver-bright);
    min-width: 20px;
    text-align: center;
  }

  /* Precio total de esa línea (precio × cantidad) */
  .carrito-item-subtotal {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--silver-bright);
    min-width: 70px;
    text-align: right;
  }

  /* Botón para eliminar el producto de la fila */
  .carrito-item-del {
    background: none;
    border: none;
    color: rgba(200,80,80,.5);
    cursor: pointer;
    font-size: 18px;
    transition: color .2s;
    padding: 0 4px;
  }
  .carrito-item-del:hover { color: rgba(200,80,80,1); }

  /* Pie del modal: envío, cupón, total y botón WhatsApp */
  .carrito-footer { padding: 20px 32px 28px; border-top: 1px solid rgba(200,208,220,.08); }

  /* Selector de ubicación para calcular el envío */
  .carrito-envio {
    margin-bottom: 20px;
  }
  .carrito-envio label {
    display: block;
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .envio-opciones { display: flex; gap: 10px; }
  .envio-opt {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(200,208,220,.15);
    border-radius: 2px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
  }
  .envio-opt.activo {
    border-color: var(--gold-accent);
    background: rgba(15,37,87,.3);
    color: var(--silver-bright);
  }

  /* Campo de cupón de descuento */
  .carrito-cupon { margin-bottom: 20px; }
  .carrito-cupon label {
    display: block;
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .cupon-row { display: flex; gap: 10px; }
  .cupon-input {
    flex: 1;
    background: rgba(15,37,87,.2);
    border: 1px solid rgba(200,208,220,.15);
    border-radius: 2px;
    padding: 10px 16px;
    color: var(--silver-bright);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    outline: none;
    transition: border-color .3s;
  }
  .cupon-input:focus { border-color: rgba(200,208,220,.4); }
  .cupon-input::placeholder { color: var(--text-muted); letter-spacing: .15em; }
  .cupon-btn {
    background: var(--sapphire);
    border: none;
    border-radius: 2px;
    color: var(--silver-bright);
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s;
  }
  .cupon-btn:hover { background: var(--sapphire-mid); }

  /* Mensaje de resultado del cupón (válido o inválido) */
  .cupon-msg {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: .1em;
    display: none;               /* Se muestra solo al aplicar el cupón */
  }
  .cupon-msg.ok    { color: #6dbf8a; display: block; } /* Verde: cupón válido */
  .cupon-msg.error { color: #e08080; display: block; } /* Rojo: cupón inválido */

  /* Resumen de totales */
  .carrito-totales { margin-bottom: 24px; }
  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: .05em;
    border-bottom: 1px solid rgba(200,208,220,.04);
  }
  .total-row.descuento { color: #6dbf8a; } /* Descuento en verde */
  .total-row.final {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--white-pure);
    border-bottom: none;
    padding-top: 14px;
  }

  /* Botón final de enviar pedido por WhatsApp */
  .carrito-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;         /* Verde WhatsApp */
    color: white;
    border: none;
    border-radius: 2px;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s, transform .3s;
  }
  .carrito-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
  .carrito-whatsapp:disabled { opacity: .4; pointer-events: none; } /* Desactivado si el carrito está vacío */
  .carrito-aviso-pedido { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; }


  /* ══════════════════════════════════════════════════
     BOTÓN FLOTANTE DE WHATSAPP
     Siempre visible en la esquina inferior derecha
  ══════════════════════════════════════════════════ */
  .whatsapp-float {
    position: fixed;
    bottom: 32px; right: 32px;   /* Esquina inferior derecha */
    z-index: 1500;
    width: 56px; height: 56px;
    background: #25D366;         /* Verde WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all .3s;
    animation: waPulse 3s ease-in-out infinite; /* Pulso suave para llamar la atención */
  }
  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,.6);
  }
  @keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
  }

  /* ══════════════════════════════════════════════════
     HERO — SECCIÓN PRINCIPAL (PANTALLA DE BIENVENIDA)
     Video de fondo (014): 4 columnas en escritorio, un clip
     a la vez en móvil. Solo título + dos botones, centrados.
     Lógica de reproducción: js/hero-videos.js
  ══════════════════════════════════════════════════ */
  #hero {
    position: relative;
    min-height: 100svh;          /* Altura del viewport dinámico en móviles */
    display: grid;
    place-items: center;         /* Título y botones en el centro exacto */
    padding: 110px var(--gut) 96px;
    overflow: hidden;
    isolation: isolate;          /* Contexto propio para los z-index negativos */
    text-align: center;
    background: var(--black-deep);
  }

  /* Fondo de videos: cada .clip es una columna.
     3 columnas: los clips son 9:16 y en una pantalla 16:9 cada columna queda
     casi 9:16 (en 1440×810: 480×810), así el video se recorta muy poco.
     Con 4 columnas se perdía ~21% de los costados de cada clip. */
  .hero-reel {
    position: absolute; inset: 0;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;                    /* hilo oscuro entre columnas */
    background: var(--black-deep);
  }
  .hero-reel .clip { position: relative; overflow: hidden; background: #0a1226; }
  .hero-reel video {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* Velo: oscurece el centro para que el título se lea sobre cualquier clip
     y funde la base del video con la siguiente sección */
  #hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,12,26,.66), rgba(6,12,26,.28) 100%),
      linear-gradient(to bottom, rgba(6,12,26,.5), transparent 28%, transparent 66%, var(--black-deep));
  }

  /* Bloque de texto del hero */
  .hero-copy { position: relative; max-width: 980px; }

  /* Título principal */
  #hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: var(--fs-h1);
    line-height: .98;
    letter-spacing: -.015em;
    color: var(--white-pure);
    text-shadow: 0 2px 28px rgba(6,12,26,.65);
  }
  /* Cada línea entra recortada desde abajo */
  #hero h1 .ln {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
  }
  #hero h1 .ln > span {
    display: block;
    transform: translateY(110%);
    animation: rise 1.1s cubic-bezier(.16,.84,.24,1) forwards;
    animation-delay: calc(.25s + var(--i, 0) * .14s);
  }
  @keyframes rise { to { transform: none; } }
  /* Línea destacada: degradado plata → oro con brillo que barre */
  #hero h1 .sil {
    background: linear-gradient(100deg, var(--silver-bright), var(--silver) 40%, var(--gold-soft) 62%, var(--silver) 82%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rise 1.1s cubic-bezier(.16,.84,.24,1) forwards, sheen 7s ease-in-out 2s infinite;
    animation-delay: calc(.25s + var(--i, 0) * .14s), 2s;
  }
  @keyframes sheen { 50% { background-position: 100% 0; } }

  /* Botones */
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 44px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
  }
  #hero .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--line-gold);
    overflow: hidden;
    transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux), color .4s var(--ease-lux), border-color .4s var(--ease-lux);
  }
  #hero .btn.fill {
    color: #1a1405;
    font-weight: 500;
    background: linear-gradient(120deg, var(--gold-soft), var(--gold-accent));
    border-color: transparent;
  }
  /* Destello que barre el botón dorado */
  #hero .btn.fill::before {
    content: "";
    position: absolute; top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    animation: glint 4.5s ease-in-out infinite;
  }
  @keyframes glint {
    0%, 60% { left: -60%; }
    100%    { left: 130%; }
  }
  #hero .btn.fill:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(201,168,76,.35); }
  #hero .btn.ghost {
    color: var(--white-pure);
    background: rgba(6,12,26,.38);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  #hero .btn.ghost:hover { border-color: rgba(201,168,76,.6); }

  /* Móvil — un solo clip a pantalla completa; JS rota cuál está activo */
  @media (max-width: 820px) {
    .hero-reel { grid-template-columns: 1fr; gap: 0; }
    .hero-reel .clip { grid-area: 1 / 1; opacity: 0; transition: opacity 1.2s ease; }
    .hero-reel .clip.on { opacity: 1; }
    #hero { padding: 100px var(--gut) 80px; }
    #hero h1 { font-size: clamp(36px, 11vw, 54px); }
    .cta-row { margin-top: 32px; gap: 10px; }
    #hero .btn { padding: 13px 22px; font-size: 10px; letter-spacing: .14em; }
  }

  /* Movimiento reducido: los clips quedan en su cuadro fijo (poster) */
  @media (prefers-reduced-motion: reduce) {
    #hero .btn.fill::before { animation: none; }
    #hero h1 .ln > span,
    #hero h1 .sil {
      transform: none;
      animation: none;
      -webkit-text-fill-color: currentColor;
      color: inherit;
      background: none;
    }
    .cta-row { opacity: 1; animation: none; }
    .hero-reel .clip { transition: none; }
  }


  /* ══════════════════════════════════════════════════
     ESTILOS COMUNES A TODAS LAS SECCIONES
  ══════════════════════════════════════════════════ */
  section { padding: 140px 60px; }

  /* Etiqueta pequeña sobre los títulos ("Nuestra historia", "Nuestros pilares", etc.) */
  .section-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .3em;
    color: var(--gold-soft); /* Acento oro: marca de lujo */
    text-transform: uppercase;
    margin-bottom: 24px;
  }

  /* Título grande de sección */
  .section-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 66px); /* Adaptable: mínimo 36px, máximo 66px */
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -.01em;
    color: var(--white-pure);
    margin-bottom: 32px;
  }
  .section-title em { font-style: italic; color: var(--silver); } /* Cursiva plateada en los títulos */

  /* ── Texto con degradado plata→oro (reutilizable en hero y marcas) ── */
  .grad-text {
    background: linear-gradient(100deg, #9fb0cc 0%, #fff 35%, var(--silver) 55%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Párrafo de texto principal de cada sección */
  .section-body {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.2; /* Interlineado amplio para facilitar lectura */
    color: var(--text-muted);
    max-width: 560px;
    text-align: justify; /* Texto justificado en párrafos de historia */
  }

  /* ── ANIMACIÓN DE APARICIÓN AL HACER SCROLL ──
     Los elementos con clase "reveal" empiezan invisibles.
     JavaScript les agrega "visible" cuando entran en pantalla. */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1); }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  ::selection { background: rgba(201,168,76,.3); color: var(--white-pure); }


  /* ══════════════════════════════════════════════════
     SECCIÓN: QUIÉNES SOMOS
  ══════════════════════════════════════════════════ */
  #nosotros { background: var(--black-deep); position: relative; overflow: hidden; }

  /* Orbe decorativo en la esquina superior derecha */
  #nosotros::before {
    content: ''; position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,37,87,.25) 0%, transparent 70%);
    pointer-events: none; /* No interfiere con clics */
  }

  /* Cuadrícula de dos columnas: tarjeta visual | texto */
  .nosotros-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 100px;
    align-items: center;
  }

  /* Tarjeta oscura con el logo y estadísticas */
  .nosotros-card {
    background: linear-gradient(145deg, rgba(15,37,87,.3), rgba(6,12,26,.8));
    border: 1px solid rgba(200,208,220,.08);
    border-radius: 4px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
  }

  /* Línea decorativa en la parte superior de la tarjeta */
  .nosotros-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,208,220,.3), transparent);
  }

  /* Logo grande dentro de la tarjeta */
  .nosotros-logo-large {
    width: 220px; height: 220px;
    display: block;
    margin: 0 auto 32px;
    filter: invert(1) brightness(0.7); /* Negro → blanco/plata */
    opacity: 0.6;
  }

  /* Contenedor de un número estadístico (925, 2026, 100%) */
  .nosotros-stat { text-align: center; }

  /* Número grande (ej: "925") */
  .nosotros-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px; font-weight: 300;
    color: var(--silver-bright); line-height: 1;
  }

  /* Etiqueta debajo del número */
  .nosotros-stat-label { font-size: 12px; letter-spacing: .3em; color: var(--text-muted); text-transform: uppercase; margin-top: 8px; }

  /* Número 925 gigante al estilo prototipo (Ajuste 5) */
  .nosotros-stat-num.big {
    font-size: clamp(96px, 14vw, 190px);
    line-height: .9; font-weight: 300;
    background: linear-gradient(180deg, var(--silver-bright), var(--gold-soft));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }

  /* Etiqueta del 925 al estilo prototipo (Ajuste 5) */
  .nosotros-stat-label.big-l {
    font-size: 12px; letter-spacing: .2em;
    color: var(--gold-soft); margin-top: 14px;
  }

  /* Fila con las dos estadísticas secundarias (2026 y 100%) */
  .nosotros-stats {
    display: flex; gap: 40px;
    margin-top: 40px; padding-top: 40px;
    border-top: 1px solid rgba(200,208,220,.08);
    justify-content: center;
  }
  .nosotros-stats .divider-v { width: 1px; background: rgba(200,208,220,.08); } /* Línea vertical separadora */

  /* Caja de los fundadores */
  .founders {
    margin-top: 20px; padding: 32px;
    background: rgba(15,37,87,.15);
    border-radius: 4px;
    border: 1px solid rgba(200,208,220,.06);
  }
  .founders-label { font-size: 12px; letter-spacing: .35em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; }
  .founders-names { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--silver-bright); letter-spacing: .08em; }


  /* ══════════════════════════════════════════════════
     SECCIÓN: FILOSOFÍA (LOS 3 PILARES)
  ══════════════════════════════════════════════════ */
  #filosofia {
    /* Fondo degradado: negro → azul zafiro profundo → negro */
    background: linear-gradient(180deg, var(--black-deep) 0%, var(--sapphire-deep) 50%, var(--black-deep) 100%);
    position: relative;
  }
  .filosofia-inner { max-width: 1100px; margin: 0 auto; }
  .filosofia-header { text-align: center; margin-bottom: 100px; }

  /* Cuadrícula de pilares — reemplazada por MagicBento (reactbits.css) */


  /* ══════════════════════════════════════════════════
     SECCIÓN: PROCESO DE ADQUISICIÓN (TIMELINE)
  ══════════════════════════════════════════════════ */
  #proceso { background: var(--black-deep); }
  .proceso-inner { max-width: 1100px; margin: 0 auto; }
  .proceso-header { text-align: center; margin-bottom: 100px; }

  /* Timeline vertical — la línea dorada se dibuja con el scroll (ver JS) */
  .proceso-steps {
    position: relative;
    margin-top: 70px;
    max-width: 860px;
    margin-inline: auto;
    padding-left: clamp(60px, 9vw, 110px);
  }

  /* Riel de fondo (línea tenue que recorre todos los pasos) */
  .proceso-steps::before {
    content: ''; position: absolute;
    left: clamp(22px, 3.4vw, 40px); top: 6px; bottom: 6px;
    width: 1px;
    background: var(--line);
  }

  /* Línea dorada que crece según el scroll (var --p la controla desde JS) */
  .proceso-steps .fill {
    position: absolute;
    left: clamp(22px, 3.4vw, 40px); top: 6px;
    width: 1px; height: calc(100% - 12px);
    background: linear-gradient(var(--gold-accent), var(--silver-bright));
    transform-origin: top;
    transform: scaleY(var(--p, 0));
    box-shadow: 0 0 14px rgba(201,168,76,.7);
  }

  /* Cada paso del proceso */
  .step { position: relative; padding-bottom: 56px; }
  .step:last-child { padding-bottom: 0; }

  /* Círculo con el número romano (se enciende cuando el paso entra en foco) */
  .step .dot {
    position: absolute;
    left: calc(-1 * clamp(60px, 9vw, 110px) + clamp(22px, 3.4vw, 40px) - 21px);
    top: 0; width: 43px; height: 43px;
    border-radius: 50%;
    background: var(--black-deep);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400;
    color: var(--text-muted);
    transition: all .5s;
  }
  .step.on .dot {
    border-color: var(--gold-accent); color: var(--gold-soft);
    box-shadow: 0 0 0 6px rgba(201,168,76,.1), 0 0 24px rgba(201,168,76,.35);
  }

  .step-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 400; color: var(--white-pure); margin-bottom: 6px; transition: color .5s; }
  .step-text  { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text-muted); max-width: 50ch; margin-top: 6px; }


  /* ══════════════════════════════════════════════════
     SECCIÓN: CATÁLOGO DE JOYAS
  ══════════════════════════════════════════════════ */
  #catalogo { background: var(--black-deep); padding: 140px 60px; }

  /* La vitrina de "Piezas destacadas" ya aporta su propio aire inferior;
     si está visible justo antes del catálogo, se recorta el padding
     superior para no duplicar el hueco entre ambas secciones. */
  #destacados:not([hidden]) + #catalogo { padding-top: clamp(24px, 3vw, 48px); }

  /* Encabezado del catálogo */
  .catalogo-header { text-align: center; margin-bottom: 80px; }
  .catalogo-header .section-title { margin-bottom: 16px; }
  .catalogo-header p { font-size: 15px; font-weight: 300; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

  .catalogo-buscador {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 0 28px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(200, 208, 220, .15);
    background: rgba(255, 255, 255, .03);
    color: var(--silver-bright);
    font-family: var(--sans);
    font-size: 14px;
    text-align: left;
    transition: border-color .3s, background .3s;
  }
  .catalogo-buscador::placeholder { color: var(--text-muted); }
  .catalogo-buscador:focus { border-color: var(--gold-accent); background: rgba(255, 255, 255, .05); }

  /* ── FILTRO POR CATEGORÍA ──
     Reemplazado por tiles MagicBento (reactbits.css).
     La clase .cat-btn se conserva en los tiles por contrato
     con catalogo_motor.js (toggle de 'active'). */

  /* ── SECCIÓN DE UNA CATEGORÍA (ej: "Pulseras") ── */
  .cat-section { margin-bottom: 80px; }
  .cat-section.hidden { display: none; } /* Se oculta cuando el filtro no la incluye */

  /* Fila del título de categoría (título + línea decorativa + contador) */
  .cat-title-row { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
  .cat-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--white-pure); letter-spacing: .05em; }
  .cat-title-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200,208,220,.12), transparent); } /* Línea que se extiende hasta el borde */
  .cat-count { font-size: 11px; letter-spacing: .3em; color: var(--text-muted); text-transform: uppercase; } /* "2 disponibles · 3 piezas" */

  /* ── CUADRÍCULA DE TARJETAS DE JOYAS ──
     Se ajusta automáticamente según el ancho disponible */
  .joyas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Columnas automáticas, mínimo 260px cada una */
    gap: 24px;
  }

  /* ── TARJETA DE JOYA INDIVIDUAL ── */
  .joya-card {
    background: rgba(15,37,87,.1);
    border: 1px solid rgba(200,208,220,.07);
    border-radius: 4px;
    overflow: hidden;      /* Oculta lo que se salga (ej: imagen al hacer hover) */
    transition: all .4s;
    position: relative;
  }
  .joya-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
    background: linear-gradient(135deg, rgba(201,168,76,.04), transparent 50%);
  }
  .joya-card:hover { border-color: rgba(200,208,220,.2); transform: translateY(-4px); box-shadow: 0 24px 64px rgba(15,37,87,.4); }
  .joya-card:hover::after { opacity: 1; }

  /* Contenedor de la imagen (cuadrado perfecto 1:1) */
  .joya-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;      /* Siempre cuadrada, sin importar el ancho */
    overflow: hidden;
    background: rgba(8,24,64,.4); /* Fondo mientras carga la imagen */
  }

  .joya-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.1,.25,1);
  }
  .joya-card:hover .joya-img-wrap img { transform: scale(1.06); }

  /* Zoom tipo Amazon — solo en dispositivos con cursor (desktop) */
  @media (hover: hover) and (pointer: fine) {
    .joya-img-wrap { cursor: crosshair; }
  }

  /* ── LUPA: cuadrado que se mueve sobre la imagen ── */
  .zoom-lens {
    display: none;              /* JS lo muestra al hacer hover */
    position: absolute;
    width: 80px; height: 80px;
    border: 1px solid rgba(200,208,220,.6);
    background: rgba(200,208,220,.1);
    pointer-events: none;       /* No bloquea eventos del mouse */
    z-index: 10;
    box-sizing: border-box;
  }

  /* ── PANEL DE ZOOM: ventana ampliada fija en pantalla ── */
  /* position:fixed lo asigna JavaScript para que nunca quede cortado */
  .zoom-panel {
    display: none;              /* JS lo muestra/oculta */
    position: fixed;            /* Fijo en pantalla — JS controla left y top */
    width: 300px; height: 300px;
    border: 1px solid rgba(200,208,220,.25);
    border-radius: 6px;
    background-repeat: no-repeat;
    background-color: rgba(6,12,26,.98);
    z-index: 9999;              /* Encima de todo */
    box-shadow: 0 24px 64px rgba(0,0,0,.8);
    pointer-events: none;       /* No interfiere con el mouse */
    overflow: hidden;
  }

  /* ── ESTADO AGOTADO: imagen en gris con sello ── */
  .joya-card.agotado .joya-img-wrap img { filter: grayscale(100%) brightness(.6); } /* Gris oscuro */

  /* Sello "AGOTADO" que aparece encima de la imagen */
  .sello-agotado {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg); /* Centrado y rotado 20 grados */
    background: rgba(6,12,26,.85);
    border: 2px solid rgba(200,208,220,.4);
    color: var(--silver-bright);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; letter-spacing: .2em;
    padding: 8px 20px;
    text-transform: uppercase;
    white-space: nowrap; /* No parte el texto en dos líneas */
    display: none;        /* Invisible por defecto */
  }
  .joya-card.agotado .sello-agotado { display: block; } /* Solo visible en tarjetas con clase "agotado" */

  /* ── BADGE DE ESTADO (esquina superior izquierda de la imagen) ── */
  .joya-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 10px; font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
  /* Los tres posibles estados con sus colores */
  .badge-disponible { background: rgba(15,37,87,.9);  border: 1px solid rgba(200,208,220,.2); color: var(--silver-bright); } /* Azul: disponible */
  .badge-agotado    { background: rgba(40,10,10,.9);  border: 1px solid rgba(220,80,80,.3);   color: #e08080; }               /* Rojo: agotado */
  .badge-pedido     { background: rgba(8,40,64,.9);   border: 1px solid rgba(80,160,220,.3);  color: #80c0e0; }               /* Celeste: bajo pedido */

  /* ── INFORMACIÓN DE LA JOYA (debajo de la imagen) ── */
  .joya-info { padding: 20px 22px 22px; }

  .joya-nombre   { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--white-pure); margin-bottom: 6px; line-height: 1.2; }
  .joya-material { font-size: 10px; letter-spacing: .3em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; } /* "Plata Ley 925" */
  /* Código de referencia del producto — ej: [P-AN-252] */
  .joya-codigo   { font-size: 10px; font-weight: 300; letter-spacing: .15em; color: rgba(136,153,187,.6); margin-bottom: 8px; font-family: 'Montserrat', sans-serif; }
  .joya-desc     { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

  /* Fila inferior: precio a la izquierda, botón a la derecha */
  .joya-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

  .joya-precio          { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--silver-bright); }
  .joya-precio.tachado  { text-decoration: line-through; color: var(--text-muted); font-size: 18px; } /* Precio tachado para agotados */
  .joya-precio-consulta { font-size: 12px; letter-spacing: .2em; color: var(--text-muted); text-transform: uppercase; } /* "Precio bajo consulta" */

  /* Botón de acción de la joya (Adquirir / Cotizar) */
  .joya-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--sapphire);
    color: var(--silver-bright);
    padding: 9px 16px;
    font-size: 10px; font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all .3s;
    white-space: nowrap;
    border: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif;
  }
  .joya-btn:hover { background: var(--sapphire-mid); transform: translateY(-1px); }

  /* Variante del botón para "Cotizar" (fondo transparente) */
  .joya-btn.btn-consulta { background: transparent; border: 1px solid rgba(200,208,220,.2); color: var(--silver); }
  .joya-btn.btn-consulta:hover { border-color: rgba(200,208,220,.5); color: var(--white-pure); }

  /* En tarjetas agotadas, el botón se desactiva visualmente */
  .joya-card.agotado .joya-btn { opacity: .4; pointer-events: none; }


  /* ══════════════════════════════════════════════════
     SECCIÓN: CONTACTO
  ══════════════════════════════════════════════════ */
  #contacto { background: var(--black-deep); position: relative; overflow: hidden; }

  /* Orbe decorativo en la parte inferior */
  #contacto::before {
    content: ''; position: absolute;
    bottom: -300px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(15,37,87,.3) 0%, transparent 70%);
  }

  .contacto-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

  /* Título grande de contacto */
  .contacto-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px,6vw,80px); font-weight: 300; line-height: 1.1; color: var(--white-pure); margin-bottom: 24px; }
  .contacto-title em { font-style: italic; color: var(--silver); }
  .contacto-sub { font-size: 16px; font-weight: 300; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 64px; line-height: 2; text-align: center; }

  /* Fila de tarjetas de contacto (WhatsApp, Instagram, Domicilio) */
  .contacto-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

  /* Cada tarjeta de contacto */
  .contacto-card {
    background: rgba(15,37,87,.15);
    border: 1px solid rgba(200,208,220,.08);
    border-radius: 4px;
    padding: 40px 48px;
    text-decoration: none;
    color: inherit;
    transition: all .4s;
    min-width: 220px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .contacto-card:hover { background: rgba(15,37,87,.35); border-color: rgba(200,208,220,.2); transform: translateY(-4px); box-shadow: 0 30px 80px rgba(15,37,87,.4); }

  .contacto-card-label { font-size: 12px; letter-spacing: .35em; color: var(--text-muted); text-transform: uppercase; }
  .contacto-card-value { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--silver-bright); }

  /* Badge pequeño con el sello de calidad */
  .ley-badge { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(200,208,220,.08); border-radius: 2px; padding: 14px 28px; font-size: 13px; letter-spacing: .2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 40px; }
  .ley-dot { width: 6px; height: 6px; background: var(--sapphire-light); border-radius: 50%; } /* Puntito decorativo */


  /* ══════════════════════════════════════════════════
     FOOTER
  ══════════════════════════════════════════════════ */
  footer { padding: 40px 60px; border-top: 1px solid rgba(200,208,220,.05); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
  .footer-left   { font-size: 13px; font-weight: 300; letter-spacing: .1em; color: rgba(136,153,187,.6); }
  .footer-center { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 300; letter-spacing: .3em; color: rgba(200,208,220,.4); text-transform: uppercase; }
  .footer-right  { display: flex; gap: 24px; }
  .footer-link   { font-size: 13px; font-weight: 300; letter-spacing: .1em; color: rgba(136,153,187,.6); text-decoration: none; text-transform: uppercase; transition: color .3s; }
  .footer-link:hover { color: var(--silver); }


  /* ══════════════════════════════════════════════════
     ANIMACIONES GLOBALES
  ══════════════════════════════════════════════════ */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .reveal { transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1); }

  ::selection { background: rgba(201,168,76,.3); color: var(--white-pure); }


  /* ══════════════════════════════════════════════════
     BOTÓN "VER MÁS" DEL CATÁLOGO
     Aparece debajo de las joyas si hay más de 5 en esa sección
  ══════════════════════════════════════════════════ */
  .ver-mas-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Espacio entre las tarjetas y el botón */
  }

  /* El botón en sí */
  .btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(200,208,220,.2);
    color: var(--silver);
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .25em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all .4s;
  }
  .btn-ver-mas:hover {
    border-color: rgba(200,208,220,.5);
    color: var(--white-pure);
    transform: translateY(-2px); /* Sube levemente al hacer hover */
  }

  /* La flecha dentro del botón baja al hacer hover */
  .btn-ver-mas svg { transition: transform .3s; }
  .btn-ver-mas:hover svg { transform: translateY(3px); }

  /* Clase que oculta las tarjetas más allá del límite inicial */
  /* JavaScript agrega/quita esta clase al hacer clic en "Ver más" */
  .joya-card.oculta { display: none; }


  /* ══════════════════════════════════════════════════
     MENÚ HAMBURGUESA — Solo aparece en pantallas pequeñas
  ══════════════════════════════════════════════════ */

  /* Botón de las tres líneas */
  .nav-hamburger {
    display: none; /* Oculto en desktop, visible solo en móvil */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

  /* Cada línea del ícono */
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--silver-bright);
    transition: all .3s ease;
  }

  /* Animación hamburguesa → X cuando el menú está abierto */
  .nav-hamburger.abierto span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.abierto span:nth-child(2) { opacity: 0; }
  .nav-hamburger.abierto span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Panel del menú móvil — cae desde arriba */
  .nav-mobile-menu {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(6,12,26,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999; /* Debajo del navbar (z-index 1000) pero encima de todo lo demás */
    padding: 100px 32px 48px; /* Espacio arriba para no tapar el logo */
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(200,208,220,.08);
  }
  /* Cuando el menú está abierto se muestra */
  .nav-mobile-menu.abierto { display: flex; }

  /* Cada enlace del menú móvil */
  .nav-mobile-menu a {
    text-decoration: none;
    color: var(--silver);
    font-size: 28px; /* Grande para fácil toque con el dedo */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: .1em;
    padding: 16px 0;
    border-bottom: 1px solid rgba(200,208,220,.06);
    transition: color .3s;
  }
  .nav-mobile-menu a:hover { color: var(--white-pure); }

  /* Botón de contacto dentro del menú móvil */
  .nav-mobile-menu .nav-mobile-cta {
    margin-top: 24px;
    background: var(--sapphire);
    color: var(--silver-bright) !important;
    text-align: center;
    padding: 16px !important;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: .2em;
    border-bottom: none !important;
  }


  /* ══════════════════════════════════════════════════
     RESPONSIVE — ADAPTACIÓN A PANTALLAS PEQUEÑAS
     Se activa cuando la pantalla es menor a 900px
  ══════════════════════════════════════════════════ */
  @media(max-width: 900px) {

    /* Navbar */
    nav { padding: 18px 24px; }
    nav.scrolled { padding: 14px 24px; }
    .nav-links { display: none; }      /* Links normales ocultos — se usa hamburguesa */
    .nav-cta { display: none; }        /* Botón "Contactar" oculto — está en el menú móvil */
    .nav-hamburger { display: flex; }  /* Aparece el botón hamburguesa */

    /* Secciones generales */
    section { padding: 90px 20px; }

    /* Hero */
    .hero-title { font-size: clamp(40px, 10vw, 64px); }
    .hero-subtitle { font-size: 14px; text-align: justify; }
    .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 80px; } /* margen para no tapar "Explorar" */
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .hero-scroll { bottom: 20px; } /* "Explorar" sube un poco en móvil */

    /* Nosotros */
    .nosotros-grid { grid-template-columns: 1fr; gap: 36px; }

    /* Filosofía — el bento (reactbits.css) ya es 1 columna en móvil */

    /* Proceso — la timeline vertical ya es responsive (clamp en padding/riel/dot) */

    /* Catálogo */
    #catalogo { padding: 80px 20px; }
    .joyas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } /* 2 columnas en móvil */
    .joya-nombre { font-size: 16px; }
    .joya-precio { font-size: 18px; }
    .joya-btn { padding: 8px 12px; font-size: 9px; }

    /* Contacto */
    .contacto-cards { flex-direction: column; align-items: center; }
    .contacto-title { font-size: clamp(32px, 8vw, 56px); }

    /* Footer */
    footer { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; gap: 16px; }
  }

  /* Pantallas muy pequeñas — celulares menores a 420px */
  @media(max-width: 420px) {
    .joyas-grid { grid-template-columns: 1fr; } /* 1 columna en pantallas muy chicas */
  }


  /* ══════════════════════════════════════════════════
     008 · FILA DE CONFIANZA — señales de valor bajo el hero
  ══════════════════════════════════════════════════ */
  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;                       /* hairline entre celdas */
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;                     /* anula el padding genérico de section */
  }

  .trust-item {
    background: var(--black-deep);
    padding: 34px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: background .45s ease;
  }
  .trust-item:hover { background: rgba(15,37,87,.28); }

  .trust-item svg {
    color: var(--gold-accent);
    opacity: .9;
    transition: transform .45s cubic-bezier(.25,.1,.25,1);
  }
  .trust-item:hover svg { transform: translateY(-2px); }

  .trust-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--white-pure);
  }
  .trust-sub {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ══════════════════════════════════════════════════
     008 · MARQUEE DE MATERIALES — cinta infinita (CSS puro)
  ══════════════════════════════════════════════════ */
  .marquee {
    overflow: hidden;
    padding: 26px 0;
    background: linear-gradient(180deg, rgba(8,24,64,.35), transparent);
    border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .marquee-track {
    display: flex;
    width: max-content;
    /* Siempre en bucle, sin excepción (petición del propietario):
       refuerza duración e iteraciones para vencer la regla global de
       prefers-reduced-motion (líneas 48-55) que usa !important. */
    animation: marqueeScroll 100s linear infinite !important;
    animation-duration: 100s !important;
    animation-iteration-count: infinite !important;
  }
  .marquee-group {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;       /* cierre de bucle perfecto al -50% */
  }

  .marquee-group span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(18px, 2vw, 26px);
    color: var(--silver);
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .marquee-group i {
    font-style: normal;
    color: var(--gold-accent);
    opacity: .7;
  }

  @keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  @media(max-width: 900px) {
    .trust-row { grid-template-columns: 1fr; }
    .trust-item { padding: 22px 18px; }
  }
  /* ══════════════════════════════════════════════════
     008 · FASE 2 — ShinyText (port reactbits, solo CSS)
     Brillo que recorre el texto. Base/highlight por variables;
     el color del texto pasa a transparente (background-clip:text).
  ══════════════════════════════════════════════════ */
  .shiny-text {
    --shiny-base: #C8D4E8;   /* plata fría por defecto */
    --shiny-hi:   #F0DDA6;   /* destello dorado */
    --shiny-speed: 3.6s;
    background-image: linear-gradient(100deg,
      var(--shiny-base) 35%, var(--shiny-hi) 50%, var(--shiny-base) 65%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shinySweep var(--shiny-speed) linear infinite;
    will-change: background-position;
  }
  /* En etiquetas de sección: base azul zafiro → destello oro */
  .section-label.shiny-text {
    --shiny-base: #5f83c9;
    --shiny-hi:   #E6C878;
  }
  @keyframes shinySweep {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
  }
