/* ==========================================================================
   LITORMOL — Style Sheet
   Enfoque: Mobile-First · clamp() fluido · Premium responsive
   ========================================================================== */

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
    /* Paleta */
    --c-yellow:      #C9A227;
    --c-yellow-dark: #b08d20;
    --c-brown:       #C8A27A;
    --c-gray:        #7A7A7A;
    --c-gray-lt:     #E8E5DF;
    --c-black:       #1A1A1A;
    --c-black-soft:  #222222;
    --c-bg:          #F8F6F2;
    --c-white:       #FFFFFF;

    /* Tipografía */
    --font-display: 'Cormorant Garamond', serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radios */
    --r-sm: 6px;
    --r-md: 14px;
    --r-lg: 20px;

    /* Sombras */
    --s-soft: 0 6px 24px rgba(0,0,0,0.05);
    --s-card: 0 16px 48px rgba(0,0,0,0.08);
    --s-lift: 0 24px 56px rgba(0,0,0,0.13);

    /* Transición global */
    --t: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Espaciado de sección fluido */
    --section-py: clamp(56px, 8vw, 100px);

    /* Padding horizontal del contenedor fluido */
    --cx: clamp(18px, 5vw, 40px);
}

/* ==========================================================================
   2. Reset y Base
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Evita zoom horizontal en iOS al rotar */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-black);
    line-height: 1.75;
    /* Corta overflow horizontal sin romper position: fixed del navbar */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
em  { font-style: italic; }
strong { font-weight: 600; }

/* ==========================================================================
   3. Cursor personalizado — solo desktop fine pointer
   ========================================================================== */
.custom-cursor {
    position: fixed;
    width: 22px; height: 22px;
    border: 2px solid var(--c-yellow);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease-out,
                background-color 0.25s ease,
                border-color 0.25s ease;
    z-index: 99999;
    box-shadow: 0 0 0 1px rgba(201,162,39,0.2);
    will-change: left, top;
}

/* ==========================================================================
   4. Tipografía — fluida con clamp()
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
p  { line-height: 1.75; }

/* ==========================================================================
   5. Layout — Mobile-first
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--cx);
}

/* Secciones con padding vertical fluido */
.section           { padding-block: var(--section-py); }
section.container  { padding-block: var(--section-py); }

/* Colores de fondo */
.bg-gray { background-color: #F1EEE8; }
.bg-dark { background-color: var(--c-black-soft); }

/* Grids — mobile-first (1 col por defecto) */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 36px); }

/* Desktop 2 y 3 cols */
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

.align-items-center { align-items: center; }

/* Utilidades */
.text-center   { text-align: center; }
.text-white    { color: var(--c-white) !important; }
.text-white-50 { color: rgba(255,255,255,0.55) !important; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-5  { margin-top: clamp(2rem, 4vw, 3rem); }
.mb-3  { margin-bottom: 1.5rem; }
.mx-auto { margin-inline: auto; }
.w-100 { width: 100%; }

/* Divisor */
hr.divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--c-yellow), var(--c-brown));
    border: none;
    margin-block: 14px clamp(28px, 4vw, 44px);
    border-radius: 2px;
}
.text-center hr.divider { margin-inline: auto; }

/* Etiqueta de sección */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--c-yellow);
    margin-bottom: 10px;
    border-left: 3px solid var(--c-yellow);
    padding-left: 10px;
}
.section-tag.light { color: var(--c-brown); border-color: var(--c-brown); }

/* Encabezado de sección */
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 10px;
}
.section-header > p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--c-gray);
}

/* ==========================================================================
   6. NAVBAR
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding-block: clamp(14px, 2.5vw, 22px);

    /* ── Estado inicial sobre el hero ──
       Glassmorphism sutil: backdrop-filter + gradiente oscuro descendente.
       Garantiza legibilidad sin ser una barra sólida. */
    background: linear-gradient(
        180deg,
        rgba(10, 8, 6, 0.62) 0%,
        rgba(10, 8, 6, 0.28) 65%,
        rgba(10, 8, 6, 0.00) 100%
    );
    backdrop-filter: blur(6px) saturate(1.4);
    -webkit-backdrop-filter: blur(6px) saturate(1.4);

    /* Borde inferior sutil — visible solo sobre la imagen */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition: background     0.45s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.45s ease,
                padding         0.4s  ease,
                box-shadow      0.4s  ease,
                border-color    0.4s  ease;
}

/* ── Logo y links: blancos sobre el hero ── */
#navbar:not(.scrolled) .nav-links a       { color: rgba(255, 255, 255, 0.88); }
#navbar:not(.scrolled) .nav-links a:hover { color: var(--c-yellow); }
#navbar:not(.scrolled) .burger-line       { background: var(--c-white); }

/* ── Estado scrolled: glassmorphism oscuro elegante ── */
#navbar.scrolled {
    background: rgba(14, 11, 8, 0.88);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    padding-block: 12px;
    box-shadow:
        0 1px 0   rgba(201, 162, 39, 0.15),   /* línea dorada sutil en top */
        0 8px 32px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.nav-container {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: var(--cx);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* — Logo — */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--t);
    color: var(--c-black-soft);
}
.logo-link:hover { opacity: 0.82; }

/* Imagen del logo en el navbar */
.logo-img {
    height: clamp(36px, 4vw, 52px); /* altura fluida */
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
    border-radius: 50%;
}

/* Logo en el footer — mismo tamaño, blanco */
.logo-img--footer {
    height: clamp(28px, 3.5vw, 42px);
    opacity: 0.9;
}
.logo-link.mb-3 { margin-bottom: 1.5rem; }

/* — Links desktop — */
.nav-links {
    /* Oculto por defecto (mobile-first).
       Se activa únicamente en el bloque @media al final de esta sección. */
    display: none;
    list-style: none;
    gap: clamp(16px, 2vw, 24px);
}
.nav-links a {
    text-decoration: none;
    color: var(--c-black);
    font-size: clamp(0.7rem, 1.2vw, 0.78rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color var(--t);
    position: relative;
    padding-bottom: 3px;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-yellow);
    transition: width var(--t);
    border-radius: 1px;
}
.nav-links a:hover           { color: var(--c-yellow); }
.nav-links a:hover::after    { width: 100%; }
#navbar.scrolled .nav-links a       { color: rgba(255, 255, 255, 0.85); }
#navbar.scrolled .nav-links a:hover { color: var(--c-yellow); }
#navbar.scrolled .burger-line       { background: var(--c-white); }

/* ==========================================================================
   7. HAMBURGUESA
   ========================================================================== */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    min-width: 44px; /* target táctil mínimo */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-sm);
    transition: background var(--t);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1002;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(201,162,39,0.1);
    outline: 2px solid rgba(201,162,39,0.4);
    outline-offset: 2px;
}

.burger-line {
    display: block;
    width: 23px; height: 2px;
    background: var(--c-black);
    border-radius: 2px;
    transition: transform  0.38s cubic-bezier(0.16,1,0.3,1),
                opacity    0.25s ease,
                background 0.3s ease,
                width      0.3s ease;
    transform-origin: center;
}
#navbar.scrolled .burger-line { background: var(--c-white); }

/* X animada */
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   8. MENÚ MÓVIL
   ─ Base mobile-first: display:flex + visibility:hidden (cerrado por defecto).
   ─ El bloque @media desktop al FINAL de esta sección lo anula con display:none,
     garantizando que gane en cascada sobre cualquier regla base.
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(16, 16, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1001;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(80px, 15vw, 100px) var(--cx) clamp(40px, 8vw, 60px);

    /* ── Estado CERRADO (base) ── */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity    0.38s cubic-bezier(0.16,1,0.3,1),
                transform  0.38s cubic-bezier(0.16,1,0.3,1),
                visibility 0s   linear 0.38s;

    /* Sin overflow-y: auto — el menú nunca debe mostrar scrollbar.
       El contenido es fijo (8 links) y cabe en cualquier pantalla móvil. */
    overflow: hidden;
}

/* ── Estado ABIERTO ── */
.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: opacity    0.38s cubic-bezier(0.16,1,0.3,1),
                transform  0.38s cubic-bezier(0.16,1,0.3,1),
                visibility 0s   linear 0s;
}

/* Línea decorativa lateral */
.mobile-menu::before {
    content: '';
    position: absolute;
    left: var(--cx);
    top: clamp(80px, 15vw, 100px);
    bottom: clamp(40px, 8vw, 60px);
    width: 1px;
    background: linear-gradient(to bottom, var(--c-yellow), transparent);
    opacity: 0.3;
}

.mobile-nav-links {
    list-style: none;
    padding-left: clamp(20px, 5vw, 32px);
    width: 100%;
    counter-reset: menu-counter;
}

.mobile-nav-links li {
    overflow: hidden;
    counter-increment: menu-counter;
}

/* Animación de entrada stagger */
.mobile-menu.is-open .mobile-nav-links li:nth-child(1) { animation: slideInLeft 0.45s 0.05s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(2) { animation: slideInLeft 0.45s 0.10s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(3) { animation: slideInLeft 0.45s 0.15s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(4) { animation: slideInLeft 0.45s 0.20s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(5) { animation: slideInLeft 0.45s 0.25s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(6) { animation: slideInLeft 0.45s 0.30s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(7) { animation: slideInLeft 0.45s 0.35s both cubic-bezier(0.16,1,0.3,1); }
.mobile-menu.is-open .mobile-nav-links li:nth-child(8) { animation: slideInLeft 0.45s 0.40s both cubic-bezier(0.16,1,0.3,1); }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: clamp(12px, 2.5vw, 16px);
    padding-right: 16px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: color var(--t), padding-left var(--t), letter-spacing var(--t);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 52px;
}

.mobile-link::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-yellow);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity var(--t), transform var(--t);
}

.mobile-link:hover,
.mobile-link:focus {
    color: var(--c-yellow);
    padding-left: 8px;
    letter-spacing: 0.03em;
    outline: none;
}
.mobile-link:hover::before,
.mobile-link:focus::before {
    opacity: 1;
    transform: scale(1);
}

/* Número de orden sutil */
.mobile-link::after {
    content: counter(menu-counter, decimal-leading-zero);
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-style: normal;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.2);
    transition: color var(--t);
}
.mobile-link:hover::after { color: rgba(201,162,39,0.5); }

/* Pantallas pequeñas (< 400px) o landscape con poca altura:
   reducir tamaño de fuente para que los 8 links quepan sin scroll */
@media (max-height: 600px), (max-width: 380px) {
    .mobile-link {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        padding-block: clamp(8px, 1.5vh, 12px);
        min-height: 40px;
    }
    .mobile-menu {
        padding-top: clamp(64px, 12vw, 80px);
        padding-bottom: clamp(24px, 4vw, 40px);
    }
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP ≥ 1025px — bloque al final para ganar en cascada
   sobre .nav-links { display:none }, .nav-toggle { display:flex }
   y .mobile-menu { display:flex } declarados antes.
   Breakpoint idéntico a DESKTOP_BP en script.js.
══════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {

    /* Mostrar links horizontales */
    .nav-links {
        display: flex;
    }

    /* Ocultar botón hamburguesa completamente.
       !important necesario porque .nav-toggle tiene display:flex en su regla base. */
    .nav-toggle {
        display: none !important;
    }

    /* Menú móvil: sacar del DOM visual y de toda interacción.
       display:none colocado AQUÍ (después de .mobile-menu { display:flex })
       garantiza que gane en cascada. Las !important en los demás
       valores son defensa adicional ante herencia o specificity inesperados. */
    .mobile-menu,
    .mobile-menu.is-open {
        display:         none        !important;
        visibility:      hidden      !important;
        opacity:         0           !important;
        pointer-events:  none        !important;
        transform:       translateY(-12px) !important;
    }
}

/* ==========================================================================
   9. HERO
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100svh; /* svh para móvil con barra de navegador */
    display: grid;
    grid-template-columns: 1fr; /* mobile: 1 col */
    align-items: center;
    background: linear-gradient(145deg, #EDEAE3 0%, var(--c-bg) 60%);
    overflow: hidden;
}

/* 2 cols en desktop */
@media (min-width: 1025px) {
    .hero-section { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; min-height: 100vh; }
    .hero-image-panel { display: flex; }
}

.hero-background {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(201,162,39,0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(200,162,122,0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    padding-top: clamp(100px, 18vw, 140px);
    padding-bottom: clamp(48px, 8vw, 80px);
    padding-inline: var(--cx);
    z-index: 2;
    max-width: min(750px, 100%);
    grid-column: span 2;
}

/* En desktop el contenido tiene padding más generoso */
@media (min-width: 1025px) {
    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
        padding-inline: 10%;
    }
}

.hero-tag {
    display: inline-block;
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-gray);
    margin-bottom: clamp(14px, 3vw, 20px);
    border: 1px solid rgba(0,0,0,0.12);
    padding: 6px 14px;
    border-radius: 30px;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: clamp(14px, 3vw, 20px);
    background: linear-gradient(135deg, var(--c-black) 55%, var(--c-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 300;
    color: var(--c-gray);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.45;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    margin-bottom: clamp(28px, 5vw, 44px);
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Landscape móvil: reducir hero */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content { padding-top: clamp(72px, 12vh, 100px); padding-bottom: 32px; }
    .main-title   { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* Panel imagen hero
   En móvil se oculta. En desktop ocupa la columna 2 del grid 1fr 1fr. */
.hero-image-panel {
    display: none;
    position: relative;
    overflow: hidden;
    /* Color exacto del gradiente izquierdo del hero-section.
       Cuando la máscara hace transparent la imagen, se ve este fondo. */
    background: #EDEAE3;
    grid-column: span 3;
}

@media (min-width: 1025px) {
    .hero-image-panel {
        display: block;
        height: 100%;
        min-height: 100vh;
    }
}

/* ── Imagen con máscara CSS — desvanecido izquierdo hacia el crema del hero ──
   La máscara opera en alpha puro: donde es transparent la imagen desaparece
   y deja ver el background: #EDEAE3 del panel, que es exactamente el mismo
   color del lado izquierdo del hero. El resultado es una fusión perfecta
   sin bordes duros ni colores hardcodeados sobre la imagen.
   ──────────────────────────────────────────────────────────────────────── */
.hero-img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent        0%,
        rgba(0,0,0, 0.08) 8%,
        rgba(0,0,0, 0.35) 20%,
        rgba(0,0,0, 0.70) 34%,
        rgba(0,0,0, 0.92) 48%,
        black              60%
    );
    mask-image: linear-gradient(
        to right,
        transparent        0%,
        rgba(0,0,0, 0.08) 8%,
        rgba(0,0,0, 0.35) 20%,
        rgba(0,0,0, 0.70) 34%,
        rgba(0,0,0, 0.92) 48%,
        black              60%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Overlay superior: tono crema descendente para suavizar esquina top-left
   donde la imagen puede aparecer detrás del navbar */
.hero-image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(237, 234, 227, 0.30) 0%,
        rgba(237, 234, 227, 0.08) 14%,
        transparent                30%
    );
    pointer-events: none;
    z-index: 2;
}

/* En móvil (si se mostrara la imagen) — sin máscara */
@media (max-width: 1024px) {
    .hero-img {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.abstract-art-bg {
    position: absolute;
    width: clamp(160px, 25vw, 340px);
    height: clamp(160px, 25vw, 340px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
    top: 8%; right: 4%;
    pointer-events: none; z-index: 1;
}

/* ==========================================================================
   10. BOTONES
   ========================================================================== */
.btn {
    padding: clamp(12px, 2.5vw, 15px) clamp(22px, 4vw, 34px);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.82rem);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: all var(--t);
    display: inline-block;
    border: none;
    cursor: pointer;
    min-height: 48px; /* accesibilidad táctil */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-yellow), var(--c-yellow-dark));
    color: var(--c-white);
    box-shadow: 0 6px 20px rgba(201,162,39,0.28);
}
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(201,162,39,0.38); }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--c-black);
    border: 2px solid rgba(0,0,0,0.2);
}
.btn-secondary:hover  { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }

/* Botón full width en pantallas pequeñas */
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; max-width: 360px; }
}

/* ==========================================================================
   11. TARJETA ABSTRACTA (Génesis)
   ========================================================================== */
.abstract-card {
    background: var(--c-white);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--r-lg);
    box-shadow: var(--s-card);
    border-left: 4px solid var(--c-yellow);
    position: relative; overflow: hidden;
}
.abstract-card::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%; background: rgba(201,162,39,0.06);
    pointer-events: none;
}
.abstract-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 14px; color: var(--c-brown);
}
.color-list { list-style: none; margin-top: 20px; }
.color-list li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; font-size: clamp(0.85rem, 2vw, 0.92rem);
}
.color-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.c-yellow { background: var(--c-yellow); }
.c-brown  { background: var(--c-brown);  }
.c-gray   { background: var(--c-gray);   }
.c-black  { background: var(--c-black);  }

/* ==========================================================================
   12. TARJETAS DE CONTEXTO
   ========================================================================== */
.context-card {
    background: var(--c-white);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 3.5vw, 32px);
    border-radius: var(--r-md);
    box-shadow: var(--s-soft);
    position: relative; overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
@media (hover: hover) {
    .context-card:hover { transform: translateY(-6px); box-shadow: var(--s-lift); }
}
.context-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    margin-bottom: 12px; color: var(--c-brown);
}
.context-card > p { font-size: clamp(0.88rem, 2vw, 0.95rem); }
.context-number {
    position: absolute; top: 14px; right: 20px;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    color: rgba(201,162,39,0.1);
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   13. GLASS BOX
   ========================================================================== */
.glass-box {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
    border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--s-card);
}
.glass-box h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    color: var(--c-black); margin-bottom: 16px;
}
.glass-box p { font-size: clamp(0.88rem, 2vw, 0.95rem); }

/* ==========================================================================
   14. LEAD TEXT + AI NOTE
   ========================================================================== */
.lead-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--c-brown);
    margin-bottom: 18px; line-height: 1.55;
}
.ai-note {
    border-left: 3px solid var(--c-gray-lt);
    padding-left: 14px; color: var(--c-gray); font-size: 0.86rem;
}
.text-content p { font-size: clamp(0.9rem, 2vw, 1rem); margin-bottom: 1rem; }
.text-content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   14b. BANNER DE HALLAZGO — imagen panorámica entre el divider y el texto
   ========================================================================== */
.hallazgo-banner {
    margin-bottom: clamp(32px, 5vw, 52px);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--s-card);
    /* Altura proporcional: panorámica en desktop, cuadrada en móvil */
    aspect-ratio: 21 / 7;
}
@media (max-width: 768px) {
    .hallazgo-banner { aspect-ratio: 4 / 3; }
}

.hallazgo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}
.hallazgo-banner:hover .hallazgo-img { transform: scale(1.02); }


.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 3vw, 20px);
}
@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-item {
    background: var(--c-white);
    border-radius: var(--r-md);
    box-shadow: var(--s-soft);
    border-bottom: 3px solid transparent;
    overflow: hidden;
    transition: all var(--t);
}

@media (hover: hover) {
    .benefit-item:hover { transform: translateY(-4px); border-bottom-color: var(--c-yellow); box-shadow: var(--s-card); }
}

/* Imagen de beneficio — zona superior de la tarjeta */
.benefit-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--c-gray-lt);
}
.benefit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
@media (hover: hover) {
    .benefit-item:hover .benefit-img { transform: scale(1.05); }
}

/* Texto debajo de la imagen */
.benefit-item h4 {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin-bottom: 5px;
    padding: clamp(12px, 2vw, 16px) clamp(12px, 2vw, 16px) 0;
}
.benefit-item p {
    font-size: clamp(0.8rem, 1.8vw, 0.88rem);
    color: var(--c-gray);
    padding: 0 clamp(12px, 2vw, 16px) clamp(12px, 2vw, 16px);
}

/* ==========================================================================
   16. TARJETAS DE PRODUCTO
   ========================================================================== */
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 28px);
}
@media (min-width: 520px) {
    .cards-container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .cards-container { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background: #1e1e1e;
    border-radius: var(--r-md); overflow: hidden;
    transition: transform var(--t), border-color var(--t);
    border: 1px solid #2e2e2e;
}
@media (hover: hover) {
    .product-card:hover { transform: translateY(-8px); border-color: var(--c-yellow); }
}

.card-img-wrapper {
    position: relative;
    height: clamp(160px, 25vw, 220px);
    overflow: hidden;
}
.card-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    position: relative; z-index: 2;
    transition: transform 0.5s ease;
}
@media (hover: hover) {
    .product-card:hover .card-img { transform: scale(1.04); }
}
.card-img:not([src]), .card-img[src=""] { display: none; }

.card-img-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-size: clamp(0.72rem, 2vw, 0.8rem); font-weight: 600;
    padding: 16px; z-index: 1; color: rgba(255,255,255,0.85);
}
.bg-lit-gray   { background: var(--c-gray);  }
.bg-lit-yellow { background: var(--c-yellow); color: var(--c-black) !important; }
.bg-lit-brown  { background: var(--c-brown);  }
.bg-lit-black  { background: #0a0a0a; }

.card-body { padding: clamp(18px, 3vw, 28px); }
.badge {
    background: rgba(255,255,255,0.08);
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--c-brown);
    display: inline-block; margin-bottom: 8px;
    border: 1px solid rgba(200,162,122,0.2);
}
.card-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    margin-bottom: 8px; color: var(--c-white);
}
.card-body p { color: #AAAAAA; font-size: clamp(0.82rem, 2vw, 0.9rem); line-height: 1.65; }

/* ==========================================================================
   17. TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    padding-left: clamp(28px, 6vw, 44px);
}
.timeline::before {
    content: '';
    position: absolute; left: 0; top: 0;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--c-yellow), transparent);
}
.timeline-item { position: relative; margin-bottom: clamp(32px, 6vw, 52px); }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: calc(-1 * clamp(28px, 6vw, 44px) - 7px);
    top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%; background: var(--c-yellow);
    border: 3px solid var(--c-bg);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.25);
}
.timeline-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--c-brown); margin-bottom: 7px;
}
.timeline-content p { font-size: clamp(0.88rem, 2vw, 0.95rem); color: #444; }

/* ==========================================================================
   18. ESTADÍSTICAS
   ========================================================================== */
.stats-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 32px);
}
@media (min-width: 480px) {
    .stats-wrapper { grid-template-columns: repeat(3, 1fr); }
}

.stat-box {
    text-align: center;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px);
    background: var(--c-white);
    border-radius: var(--r-lg);
    box-shadow: var(--s-soft);
    border-top: 3px solid var(--c-yellow);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700; color: var(--c-yellow);
    line-height: 1; display: inline-block;
}
.stat-box > span {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700; color: var(--c-yellow);
}
.stat-box p { font-size: clamp(0.82rem, 2vw, 0.88rem); color: var(--c-gray); margin-top: 10px; }

/* ==========================================================================
   19. GALERÍA
   ========================================================================== */
.gallery-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 3vw, 18px);
}
@media (max-width: 480px) {
    .gallery-placeholder-grid { grid-template-columns: 1fr; }
}

.gallery-item, .grid-box {
    position: relative;
    border-radius: var(--r-md); overflow: hidden;
    min-height: clamp(130px, 20vw, 180px);
    background: var(--c-gray-lt);
    border: 1px dashed rgba(122,122,122,0.3);
    transition: all var(--t);
    display: flex; align-items: stretch;
}
@media (hover: hover) {
    .gallery-item:hover, .grid-box:hover {
        border-color: var(--c-yellow); box-shadow: var(--s-card);
    }
}
.gallery-img {
    width: 100%; height: 100%;
    object-fit: cover; position: absolute; inset: 0; z-index: 2;
}
.gallery-img:not([src]), .gallery-img[src=""] { display: none; }

.gallery-overlay {
    position: relative; z-index: 3;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; width: 100%;
    padding: clamp(16px, 4vw, 24px); color: var(--c-gray);
}
.gallery-overlay span  { font-size: clamp(0.78rem, 2vw, 0.85rem); font-weight: 600; display: block; margin-bottom: 4px; }
.gallery-overlay small { font-size: 0.72rem; opacity: 0.7; }

/* ==========================================================================
   20. STYLED LIST
   ========================================================================== */
.styled-list { list-style: none; margin-top: 18px; }
.styled-list li {
    position: relative;
    padding-left: 20px; margin-bottom: 12px;
    font-size: clamp(0.88rem, 2vw, 0.95rem);
}
.styled-list li::before {
    content: '▪'; position: absolute; left: 0;
    color: var(--c-yellow); font-size: 1rem; top: -1px;
}

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
.footer-section {
    background: var(--c-black-soft);
    padding-block: clamp(56px, 8vw, 90px) 0;
}

.elegant-form .form-group { margin-bottom: 16px; }
.elegant-form input,
.elegant-form textarea {
    width: 100%;
    padding: clamp(12px, 2.5vw, 15px) clamp(14px, 3vw, 18px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-sm);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2vw, 0.92rem);
    transition: border var(--t), background var(--t);
    min-height: 48px; /* accesibilidad */
    -webkit-appearance: none;
}
.elegant-form input::placeholder,
.elegant-form textarea::placeholder { color: rgba(255,255,255,0.32); }
.elegant-form input:focus,
.elegant-form textarea:focus {
    outline: none; border-color: var(--c-yellow);
    background: rgba(255,255,255,0.08);
}
.elegant-form textarea { resize: vertical; min-height: 100px; }

.contact-form-container h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 600; margin-bottom: clamp(20px, 4vw, 28px);
}
.footer-info p { font-size: clamp(0.88rem, 2vw, 0.92rem); line-height: 1.75; }

.footer-divider {
    border: none; border-top: 1px solid rgba(255,255,255,0.08);
    margin-block: clamp(36px, 6vw, 60px) clamp(24px, 4vw, 36px);
}
.footer-bottom { padding-bottom: clamp(28px, 5vw, 40px); font-size: clamp(0.78rem, 2vw, 0.85rem); }

/* ==========================================================================
   22. SCROLL REVEAL
   ========================================================================== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: opacity 0.4s ease;
        transform: none;
    }
    .mobile-menu { transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   23. ULTRAWIDE (≥1600px)
   ========================================================================== */
@media (min-width: 1600px) {
    :root { --section-py: 110px; }
    .main-title { font-size: 7rem; }
    .hero-content { padding-inline: 12%; }
}

/* ==========================================================================
   24. TABLET ESPECÍFICO (768–1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
    .cards-container { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero-content { padding-inline: clamp(40px, 6vw, 80px); }
    .main-title { font-size: clamp(3.5rem, 7vw, 5rem); }
    .gallery-placeholder-grid { grid-template-columns: 1fr 1fr; }
}