@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: #D8B98A;
    --rose: #EFCFC4;
    --warm-grey: #F7F5F2;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 2.5rem;
    --radius-glass: 2.75rem;
    
    /* Soft diffuse shadows characteristic of Liquid Glass */
    --shadow-card: 0 8px 32px 0 rgba(94, 55, 27, 0.08);
    --shadow-hover: 0 20px 40px rgba(94, 55, 27, 0.15);
}

/* ── 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);
    /* Offset para que los títulos no queden bajo el nav fijo */
    scroll-padding-top: clamp(80px, 12vh, 120px);
}

body {
    font-family: var(--font-body);
    /* Subtle glowing glass background instead of plain solid */
    background: linear-gradient(135deg, var(--cream) 0%, #FFFDF8 40%, var(--beige) 100%);
    background-attachment: fixed;
    color: var(--brown);
    overflow-x: hidden;
}

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); }
}

/* ── Navigation (Redesign) ─────────────────────────── */
.nav {
    position: fixed;
    top: clamp(10px, 2vh, 24px);
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0 clamp(20px, 4vw, 40px);
}

.nav-inner {
    max-width: 95rem; /* ~1520px base */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(6px, 1vh, 10px) clamp(12px, 2vw, 24px);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(94, 55, 27, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.nav.scrolled {
    top: 12px;
}

.nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    box-shadow: 0 15px 40px rgba(94, 55, 27, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
    width: 140px;
}

.nav-logo-img-full {
    height: 32px;
    width: auto;
    transition: all 0.4s ease;
    opacity: 1;
}

.nav-logo-mark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    display: flex; /* Ensure it can be visible */
}

.nav.scrolled .nav-logo-img-full {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.nav.scrolled .nav-logo-mark {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

/* Nav Right: Links & Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    background: rgba(94, 55, 27, 0.03);
    border-radius: 100px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    position: relative;
    z-index: 2;
}

.nav-link-btn {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brown);
    transition: color 0.3s ease;
    white-space: nowrap;
    border: none;
}

.nav-link-btn.active {
    color: var(--brown);
}

/* Moving Box Indicator */
.nav-active-box {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    background: #fff;
    border-radius: 100px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(94, 55, 27, 0.08);
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
    transition: var(--transition);
}

.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: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    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: #fff;
    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, 255, 255, 0.6);
    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(255, 255, 255, 0.8);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    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: #fff;
}

.sidebar-item.insta:hover .sidebar-icon { color: #E1306C; }
.sidebar-item.face:hover .sidebar-icon { color: #1877F2; }
.sidebar-item.tik:hover .sidebar-icon { color: #000; }

/* ── Mobile Adaptation ─────────────────────────────── */
@media (max-width: 1024px) {
    .nav { padding: 0 20px; top: 15px; }
    .nav-nav-wrap { display: none; }
    .hamburger { display: flex; }
    .social-sidebar { display: none; }
}

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--cream);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}

.mobile-menu.open { right: 0; }

.mobile-nav-list {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-list li { margin-bottom: 24px; }

.mobile-nav-list a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brown);
}

/* ── 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; }


