@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────────── */
:root {
    --cream: #FFF8EA;
    --beige: #F3E7D7;
    --brown: #5E371B;
    --terracota: #FF8531;
    --gold: #FFB900;
    --rose: #EFCFC4;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --transition: 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-card: 2.5rem;
    --radius-glass: 2.75rem;

    /* Theme Variables — Dark Mode (Brown Tones) */
    --bg-primary: #1A0F07;
    --bg-secondary: #2D1B0D;
    --hero-t-top-color: var(--cream);
    --hero-t-bot-stroke: var(--cream);
    --footer-bg: rgba(26, 15, 7, 0.85);
    --text-primary: #F3E7D7;
    --text-secondary: rgba(243, 231, 215, 0.55);
    --glass-bg: rgba(45, 27, 13, 0.75);
    --glass-border: rgba(243, 231, 215, 0.1);
    --nav-bg: rgba(26, 15, 7, 0.88);
    --nav-scrolled: rgba(26, 15, 7, 0.95);
    --card-bg: #2D1B0D;
    --shadow-lux: 0 10px 40px rgba(0, 0, 0, 0.4);
    --indicator-bg: rgba(243, 231, 215, 0.1);
    --shape-bg-1: #3D2A15;
    --shape-bg-2: #2D1B0D;

    /* Dark mode specifics */
    --hero-bg: #1A0F07;
    --hero-shape: #2D1B0D;
    --hero-shape-sm: #3D2A15;
    --hero-t-top-stroke: rgba(243, 231, 215, 0.1);
    --hero-t-bot-color: var(--cream);
    --hero-t-bot-stroke: rgba(243, 231, 215, 0.2);
}

/* Theme toggle removed by user request (Light mode blocks deleted) */

/* ── Liquid Glass Utility ───────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px 0 rgba(94, 55, 27, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-glass);
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* Base fluida: mantiene proporciones armónicas en cualquier resolución */
    font-size: clamp(14px, 0.4vw + 10px, 18px);
    /* Respetamos los márgenes internos de cada sección ya diseñados */
    scroll-padding-top: 0;
    overflow-x: hidden;
}



body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

/* ── Typography ─────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.15;
}

/* ── Keyframe Animations ────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes wheelScroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes waSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cursorFade {
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* ── Section Snap Utilities ─────────────────────────── */

.nav {
    position: fixed;
    top: 15px; /* Permanent fixed position as requested */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 clamp(20px, 4vw, 40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-sectioned-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 20px);
    max-width: 95rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-pill {
    border-radius: 100px;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 56px; /* Unified height */
    overflow: hidden;
}

.nav-pill-logo {
    background: #FFE5CC;
    padding: 0 100px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pill-main,
.nav-pill-social {
    overflow: hidden;
}

.logo-img-pill {
    height: 34px;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease, filter 0.4s ease;
    opacity: 1;
    filter: none;
}

.logo-full {
    opacity: 1;
    filter: none;
}

.logo-mini {
    opacity: 0;
    filter: blur(8px);
    height: 45px;
    width: auto;
}

.nav.scrolled .logo-full {
    opacity: 0;
    filter: blur(8px);
}

.nav.scrolled .logo-mini {
    opacity: 1;
    filter: none;
    height: 45px;
}

.nav-pill-main {
    background: #FDF1E3; /* Solid peachy cream */
    padding: 0 8px;
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.nav-pill-social {
    background: #FDF1E3; 
    padding: 0 18px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
}

.nav-social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E371B;
    transition: color 0.3s ease;
}

.nav-social-item:hover {
    color: var(--terracota);
}

.nav-pill-action {
    background: var(--cream);
    border: none;
    box-shadow: 0 10px 25px rgba(255, 133, 49, 0.3);
}

.nav-catalog-btn-pill {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 32px;
    color: #000;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Links & Nav Wrap */
.nav-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 100%; /* Forzamos altura completa */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    position: relative;
    z-index: 2;
    gap: 5px;
}

.nav-link-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5E371B; /* Dark brown like ref */
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 100px;
}

.nav-link-btn.active {
    color: var(--brown);
    font-weight: 700;
}

.nav-link-btn:hover {
    color: var(--brown);
}

/* Indicators and states */
.nav-active-box {
    position: absolute;
    height: 80%;
    top: 10%;
    left: 0;
    background: #FFFFFF; /* Blanco sólido para máximo contraste */
    border-radius: 100px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(94, 55, 27, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #5E371B; /* Match dark brown text */
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Social Sidebar ────────────────────────────────── */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 42%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none;
    color: var(--brown);
    transition: var(--transition);
}

.sidebar-label {
    background: var(--brown);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.sidebar-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 248, 234, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(94, 55, 27, 0.15);
    box-shadow: 0 4px 20px rgba(94, 55, 27, 0.1);
    color: var(--brown);
    transition: var(--transition);
}

.sidebar-item:hover .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-item:hover .sidebar-icon {
    transform: scale(1.1);
    border-radius: 50%;
    background: var(--brown);
    color: #FFFFFF;
}

.sidebar-item.insta:hover .sidebar-icon { color: #E1306C; }
.sidebar-item.face:hover .sidebar-icon { color: #1877F2; }
.sidebar-item.tik:hover .sidebar-icon { color: #000; }





.social-icon-img {
    width: 18px;
    transition: filter 0.6s ease;
}



@media (max-width: 1024px) {
    .nav { padding: 0 15px; top: 15px; }
    .nav-pill-main, .nav-pill-social { display: none; }
    .nav-sectioned-wrapper { 
        justify-content: center; 
        max-width: 100%;
        position: relative;
    }
    
    .nav-pill-logo { padding: 0 80px; min-width: 220px; height: 40px; }
    .logo-full, .logo-mini { width: 140px; height: auto; }
    .logo-full { opacity: 1; filter: none; }
    .logo-mini { opacity: 0; filter: blur(8px); height: 45px; width: auto; }

    .nav.scrolled .logo-full { opacity: 0; filter: blur(8px); }
    .nav.scrolled .logo-mini { opacity: 1; filter: none; }
    
    .nav-pill-action { 
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
    
    .nav-catalog-btn-pill {
        display: none !important;
    }
    
    .hamburger { 
        display: flex; 
        background: #FFE5CC;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,0.4);
    }
    
    .hamburger span { width: 18px; }
    .social-sidebar { display: none; }

    /* ── GPU OPTIMIZATION ── */
    .glass-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .sidebar-icon { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .btn-outline { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 20rem; /* Más compacto */
    height: 100vh;
    background: #FDF1E3; /* Warm peachy cream to match pills */
    z-index: 1050;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2.5rem;
    color: var(--brown);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 1060;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: var(--terracota);
}

.mobile-menu-inner {
    padding: 6.25rem 2.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineación a la derecha */
    text-align: right;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: auto; /* Empuja el footer hacia abajo */
}

.mobile-nav-list li { margin-bottom: 2rem; }

.mobile-nav-list a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brown);
    transition: color 0.3s;
}

.mobile-nav-list a:hover { color: var(--terracota); }

.mobile-menu-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-catalog-btn {
    width: 100%;
    justify-content: center;
}

.mobile-menu-social {
    display: flex;
    gap: 1.25rem;
    color: var(--brown);
}

.mobile-menu-social a {
    color: inherit;
    transition: transform 0.3s, color 0.3s;
}

.mobile-menu-social a:hover {
    color: var(--terracota);
    transform: translateY(-3px);
}

/* NAVBAR MOBILE ADJUSTMENTS - Handled in the main media query block above */


/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 3.125rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover {
    background: var(--terracota);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 133, 49, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--cream);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--brown);
    transform: translateY(-2px);
}

.btn-whatsapp { background: #25D366; color: #fff; font-size: 0.88rem; padding: 11px 22px; }
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

/* ── Section label ──────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracota);
    margin-bottom: 12px;
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ── Lenis Smooth Scroll ────────────────────────────── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }


/* ════════════════════════════════════════════════════════
   HAMELIE — SPLASH SCREEN
   Shown on every initial page load to brand the experience.
   ════════════════════════════════════════════════════════ */
#hamelie-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #1A0F07;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#hamelie-splash.splash-done {
    opacity: 0;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: splashEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes splashEntrance {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px; /* iOS icon style */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 30px 60px rgba(0,0,0,0.5);
}

.splash-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    color: rgba(243, 231, 215, 0.5);
    text-transform: uppercase;
}

.splash-loader {
    width: 120px;
    height: 2px;
    background: rgba(243, 231, 215, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.splash-bar {
    height: 100%;
    background: linear-gradient(90deg, #5E371B, #FF8531);
    border-radius: 2px;
    animation: splashProgress 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashProgress {
    from { width: 0%; }
    to { width: 100%; }
}


/* ════════════════════════════════════════════════════════
   HAMELIE — IS-MOBILE CLASS OVERRIDES
   Applied by mobile-detect.js based on UserAgent + touch.
   These are MORE reliable than media queries alone.
   ════════════════════════════════════════════════════════ */

/* Kill all heavy GPU layers */
.is-mobile .bokeh-sphere,
.is-mobile .luxury-shape,
.is-mobile .light-beam,
.is-mobile .sparkle,
.is-mobile .bokeh-wrap,
.is-mobile .bokeh-dot { display: none !important; }

/* Kill backdrop-filter globally on mobile */
.is-mobile .figuras-item::before,
.is-mobile .figuras-coverflow-nav,
.is-mobile .product-modal-overlay,
.is-mobile .modal-overlay,
.is-mobile .proceso-panel-num,
.is-mobile .wa-glass-box::after,
.is-mobile .glass-panel,
.is-mobile .sidebar-icon,
.is-mobile .btn-outline {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Stop hero zoom animation on iOS */
.is-ios .hero-bg-full { animation: none !important; }

/* Hide QR on mobile — cannot scan your own screen */
.is-mobile .wa-qr-container,
.is-mobile .wa-qr-glass { display: none !important; }

/* ── General Scroll Reveal Animations ── */
.figuras-section .reveal,
#catalog-container .reveal,
.wa-channel-section .reveal {
    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);
    will-change: transform, opacity;
}

.figuras-section .reveal.visible,
#catalog-container .reveal.visible,
.wa-channel-section .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
