
/*------------------------------------------------------*/
/*
/*  NAV - Header
/*
/*------------------------------------------------------*/
/* ========================================
   HEADER - INVISIBLE UI
======================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5000;
    padding: 34px clamp(1rem, 4vw, 3rem);
    background-color: transparent;
    transition:
        background-color 0.5s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease;
}

/* Header con fondo al hacer scroll */
#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 24px clamp(1rem, 4vw, 3rem);
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); */
}

/* Evitar fondo blanco del header cuando el menú está abierto o cerrándose */
body.menu-open #site-header.scrolled,
body.menu-closing #site-header.scrolled {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   LOGO
======================================== */

.logo {
    display: flex;
    align-items: center;
    z-index: 5001;
    border: none;
    outline: none;
}

.logo img {
    width: 110px;
    height: auto;
    transition: filter 0.4s ease;
}

/* Logo blanco cuando el menú está abierto o cerrándose */
body.menu-open .logo img,
body.menu-closing .logo img {
    filter: brightness(0) invert(1);
}

/* ========================================
   NAV DESKTOP
======================================== */

.desktop-nav {
    display: flex;
    gap: 48px;
    align-items: center;
}

.desktop-nav .nav-link {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #191b1d;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* ---------------------------
Línea sutil al hover 
---------------------------- */

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 98%;
    height: 0.02em;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* ========================================
   HAMBURGUESA ANIMADA (SVG)
======================================== */
.hamburger-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 5001;
    position: relative;
    display: none;
}

.hamburger-icon svg {
    height: 28px;
    width: 28px;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon .line {
    fill: none;
    stroke: #191b1d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition:
        stroke 0.4s ease,
        stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon .line-top-bottom {
    stroke-dasharray: 12 63;
}

/* Cuando menú abierto o cerrándose: icono blanco y animación a X */
body.menu-open .hamburger-icon svg,
body.menu-closing .hamburger-icon svg {
    transform: rotate(-45deg);
}

body.menu-open .hamburger-icon .line,
body.menu-closing .hamburger-icon .line {
    stroke: #ffffff;
}

body.menu-open .hamburger-icon .line-top-bottom,
body.menu-closing .hamburger-icon .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* ========================================
   MENÚ FULLSCREEN
======================================== */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #191b1d;

    /* ANIMACION CIRCULAR */
    /* Oculto por defecto */
    /*
    clip-path: circle(0% at calc(100% - 48px) 48px);
    visibility: hidden;
    transition:
        clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s linear 0.9s;
    */

    /* ANIMACION TIPO CORTINA: de abajo hacia arriba */
    clip-path: inset(100% 0 0 0);
    visibility: hidden;
    transition:
      clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s linear 0.8s;
}

/* Menú abierto */
/* ANIMACION CIRCULAR */
/*
body.menu-open .fullscreen-menu {
    clip-path: circle(150% at calc(100% - 48px) 48px);
    visibility: visible;
    transition:
        clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s linear 0s;
} */

/* Menú abierto */
/* ANIMACION TIPO CORTINA: de abajo hacia arriba */
body.menu-open .fullscreen-menu {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition:
      clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s linear 0s;
  }


.fullscreen-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    position: relative;
    padding-right: 30px;
}

/* NAV FULLSCREEN */
.fullscreen-nav {
    display: flex;
    flex-direction: column;
    /* align-items: start; */
    gap: 12px;
    margin-bottom: auto;
    margin-top: auto;
    min-width: 55vw;
}

.fullscreen-link {
    font-size: clamp(42px, 7vw, 70px);
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;

    /* Animación de entrada */
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        color 0.3s ease;
}

/* Animación escalonada al abrir */
body.menu-open .fullscreen-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .fullscreen-link:nth-child(1) {
    transition-delay: 0.3s;
}

body.menu-open .fullscreen-link:nth-child(2) {
    transition-delay: 0.4s;
}

body.menu-open .fullscreen-link:nth-child(3) {
    transition-delay: 0.5s;
}

/* Efecto hover: subrayado que crece desde el centro */
.fullscreen-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.5s ease;
}

.fullscreen-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.fullscreen-link:hover::after {
    width: 20%;
    left: 0;
}

/* FOOTER DEL MENÚ */
.fullscreen-footer {
    display: flex;
    gap: 48px;
    margin-bottom: 50px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.5s ease 0.7s,
        transform 0.6s ease 0.7s;
    min-width: 55vw;
}

body.menu-open .fullscreen-footer {
    opacity: 1;
    transform: translateY(0);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 16px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-icon {
        display: block;
    }

    .fullscreen-footer {
        flex-direction: column;
        gap: 24px;
        align-items: start;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

/* Bloquear scroll cuando menú abierto */
body.menu-open {
    overflow: hidden;
}