/* Casa de la Makana - Minimal Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Poppins:wght@300;400;500&display=swap');

/* Reset & Minimal Base Variables */
:root {
    /* Pure Apple-like Dark Mode Palette */
    --color-bg: #000000;
    --color-bg-alt: #0a0a0c;
    --color-text: #ffffff;
    --color-text-muted: #aaaaaa;
    --color-border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-display: 'Cinzel Decorative', serif;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Easing & Timing */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --container-max-width: 2350px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar minimalista */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #222;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

p {
    font-weight: 300;
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Selección */
::selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Contenedores */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Glassmorphism Header */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    display: flex;
    align-items: center;
}

.header-nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 70px;
    border-bottom: 0;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.brand-logo {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 1.12rem;
    list-style: none;
    align-items: center;
    padding: 0.45rem 1.9rem 0.45rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 36%, rgba(3, 4, 5, 0.16) 100%),
        radial-gradient(120% 150% at 12% 8%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.022) 36%, transparent 68%),
        rgba(8, 10, 11, 0.18);
    backdrop-filter: blur(9px) saturate(1.16) contrast(1.02);
    -webkit-backdrop-filter: blur(9px) saturate(1.16) contrast(1.02);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.36),
        0 6px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -12px 22px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.065);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 12px;
    cursor: pointer;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

/* Mobile Drawer — Rediseño Premium */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vidrio esmerilado sutil — se ve el fondo real */
    background: rgba(4, 4, 6, 0.52);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* Entra desde opacidad 0 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

/* Línea decorativa superior sutil */
.mobile-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 204, 170, 0.25), transparent);
}

/* Línea decorativa inferior sutil */
.mobile-drawer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 204, 170, 0.15), transparent);
}



/* Lista de navegación */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    text-align: center;
    width: 100%;
    padding: 0 2.5rem;
}

/* Separador entre ítems */
.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animación de entrada por ítem: desliza desde abajo */
.mobile-drawer.open .mobile-menu li {
    animation: mobileItemReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(14px);
}
.mobile-drawer.open .mobile-menu li:nth-child(1) { animation-delay: 0.05s; }
.mobile-drawer.open .mobile-menu li:nth-child(2) { animation-delay: 0.11s; }
.mobile-drawer.open .mobile-menu li:nth-child(3) { animation-delay: 0.17s; }
.mobile-drawer.open .mobile-menu li:nth-child(4) { animation-delay: 0.23s; }

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

/* Enlace de ítem */
.mobile-link {
    display: block;
    padding: 1.4rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: #e6ccaa;
    letter-spacing: 0.18em;
}

/* Etiqueta de página activa con punto dorado */
.mobile-link.active::after {
    content: ' ·';
    color: #e6ccaa;
    opacity: 0.6;
}

/* Burger Animation to "✕" elegante */
.burger-menu.open .burger-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.burger-menu.open .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.open .burger-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* Global Footer */
.global-footer {
    position: relative;
    z-index: 50;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 4rem 0;
    margin-top: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: 2.5rem;
}

.social-icon {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.social-icon:hover {
    color: var(--color-text);
}
/* Cinematic Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s var(--transition-smooth), transform 1.2s var(--transition-smooth);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translate(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        position: relative;
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035)),
            rgba(12, 12, 14, 0.24);
        box-shadow:
            0 8px 22px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(16px) saturate(1.25);
        -webkit-backdrop-filter: blur(16px) saturate(1.25);
        isolation: isolate;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.2s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
    }

    .burger-menu::before {
        content: '';
        position: absolute;
        inset: 4px;
        z-index: -1;
        border: 1px solid rgba(255, 255, 255, 0.07);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%);
        border-radius: inherit;
        pointer-events: none;
    }

    .burger-menu .burger-bar {
        width: 21px;
        height: 1.5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    }

    .burger-menu:active {
        transform: translateY(1px) scale(0.97);
        box-shadow:
            0 5px 14px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .burger-menu:focus-visible {
        outline: 2px solid rgba(230, 204, 170, 0.9);
        outline-offset: 4px;
    }

    .burger-menu.open {
        border-color: rgba(230, 204, 170, 0.32);
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(230, 204, 170, 0.045)),
            rgba(12, 12, 14, 0.3);
        box-shadow:
            0 9px 24px rgba(0, 0, 0, 0.24),
            0 0 0 3px rgba(230, 204, 170, 0.035),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .burger-menu.open .burger-bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .burger-menu.open .burger-bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
