/* =========================
   1. Fuentes
   ========================= */

@font-face {
    font-family: 'Tsao-Display';
    src: url('../font/NotoSerif-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tsao-Display';
    src: url('../font/NotoSerif-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tsao-Display';
    src: url('../font/NotoSerif-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tsao-Body';
    src: url('../font/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tsao-Body';
    src: url('../font/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tsao-Body';
    src: url('../font/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================
   2. Variables y utilidades
   ========================= */

:root {
    /* Tipografía */
    --font-display: 'Tsao-Display', Georgia, serif;
    --font-body: 'Tsao-Body', 'Helvetica Neue', sans-serif;

    /* Tamaños tipográficos (mobile first) */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.5rem;
    --text-5xl:  3rem;
    --text-hero: 3.5rem;

    /* Paleta — Ancestral Modernity */
    --primary:        #A45A41;
    --primary-dark:   #7A3F2C;
    --primary-light:  #C47A61;

    --secondary:      #4B5335;
    --secondary-dark: #323821;
    --secondary-light:#6B7550;

    --tertiary:       #D4A34F;
    --tertiary-dark:  #A67A2E;
    --tertiary-light: #E8C47A;

    --neutral:        #F4F1EA;
    --neutral-dark:   #E0DBD0;
    --neutral-darker: #C4BFB4;

    --blanco:         #FEFDFB;
    --negro:          #1A1A18;
    --negro-suave:    #2D2D2A;
    --gris:           #8E8E8A;
    --gris-light:     #C4C4BE;
    --gris-border:    #E0DDD6;

    /* Semánticos */
    --fondo-principal:  var(--neutral);
    --fondo-card:       var(--blanco);
    --fondo-header:     var(--blanco);
    --fondo-footer:     var(--negro-suave);
    --fondo-overlay:    rgba(26, 26, 24, 0.6);

    --texto-principal:  var(--negro);
    --texto-secundario: var(--gris);
    --texto-sobre-oscuro: var(--neutral);
    --texto-link:       var(--primary);

    --btn-primary-bg:   var(--primary);
    --btn-primary-text: var(--blanco);
    --btn-secondary-bg: var(--secondary);
    --btn-outlined-border: var(--primary);

    /* Estados */
    --exito:      #4A7C59;
    --advertencia:#C49B3C;
    --error:      #A63D40;
    --info:       #4A6FA5;

    /* Espaciado */
    --space-xs:      0.25rem;
    --space-sm:      0.5rem;
    --space-md:      1rem;
    --space-lg:      1.5rem;
    --space-xl:      2rem;
    --space-2xl:     3rem;
    --space-3xl:     4rem;
    --space-section: 5rem;

    /* Bordes */
    --radius-sm:   0.25rem;
    --radius-md:   0.5rem;
    --radius-lg:   1rem;
    --radius-full: 50%;

    /* Sombras */
    --sombra-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --sombra-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --sombra-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --sombra-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Transiciones */
    --trans-fast:   0.15s ease;
    --trans-normal: 0.3s ease;
    --trans-slow:   0.5s ease;

    /* Z-index */
    --z-base:           1;
    --z-dropdown:       100;
    --z-sticky:         200;
    --z-modal-backdrop: 300;
    --z-modal:          400;
    --z-whatsapp:       500;
    --z-toast:          600;
}

/* =========================
   3. Estilos globales
   ========================= */

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100dvh;
    background-color: var(--fondo-principal);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--texto-link);
    cursor: pointer;
    transition: color var(--trans-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

*, *::before, *::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================
   4. Header — Inicio
   ========================= */

/* -- Header Mobile -- */

header {
    width: 100%;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    background: var(--fondo-header);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--sombra-sm);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 6em;
    height: auto;
}

.nav-mobile {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-hamburger {
    width: 2.5em;
    height: 2.5em;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.btn-hamburger span {
    width: 1.5em;
    height: 2px;
    background: var(--negro);
    border-radius: 2px;
    display: block;
    transition: all var(--trans-normal);
}

.btn-hamburger.is-open .line-top {
    transform: translateY(7px) rotate(45deg);
}

.btn-hamburger.is-open .line-mid {
    opacity: 0;
    width: 0;
}

.btn-hamburger.is-open .line-bot {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    width: 100%;
    background: var(--fondo-header);
    position: absolute;
    top: 4em;
    left: 0;
    display: none;
    flex-direction: column;
    padding: var(--space-md) 0;
    box-shadow: var(--sombra-md);
    z-index: var(--z-dropdown);
}

.nav-menu.is-active {
    display: flex;
    animation: slideDown var(--trans-normal);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--negro);
    transition: color var(--trans-fast);
}

.nav-menu li a:hover {
    color: var(--primary);
}

.nav-menu .btn-reservar-mobile {
    margin: var(--space-md) var(--space-lg) 0;
    padding: var(--space-sm) var(--space-md);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-sm);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: background var(--trans-fast);
}

.nav-menu .btn-reservar-mobile:hover {
    background: var(--primary-dark);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn-reservar-desk {
    display: none;
}

/* -- Header Responsive MQ1 -- */

@media only screen and (min-width: 481px) and (max-width: 768px) {
    header {
        padding: 0 var(--space-lg);
    }

    .logo img {
        width: 7em;
    }
}

/* -- Header Responsive MQ2 -- */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: portrait) {
    header {
        height: 5em;
        padding: 0 var(--space-xl);
    }

    .logo img {
        width: 8em;
    }

    .nav-mobile {
        display: none;
    }

    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-xl);
    .nav-desktop ul {
        display: flex;
        align-items: center;
        gap: var(--space-xl);
        list-style: none;
        margin: 0;
        padding: 0;
    }
    }

    .nav-desktop li a {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-sm);
        color: var(--negro);
        transition: color var(--trans-fast);
    }

    .nav-desktop li a:hover,
    .nav-desktop li a.is-active {
        color: var(--primary);
    }

    .btn-reservar-desk {
        display: flex;
        align-items: center;
        padding: var(--space-sm) var(--space-lg);
        background: var(--btn-primary-bg);
        color: var(--btn-primary-text);
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
        transition: background var(--trans-fast);
        white-space: nowrap;
    }

    .btn-reservar-desk:hover {
        background: var(--primary-dark);
        color: var(--btn-primary-text);
    }
}

/* -- Header Responsive MQ3 -- */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) {
    header {
        height: 5em;
        padding: 0 var(--space-xl);
    }

    .logo img {
        width: 8em;
    }

    .nav-mobile {
        display: none;
    }

    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-xl);
    }
    .nav-desktop ul { display: flex; align-items: center; gap: var(--space-xl); list-style: none; margin: 0; padding: 0; }

    .nav-desktop li a {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-sm);
        color: var(--negro);
        transition: color var(--trans-fast);
    }

    .nav-desktop li a:hover,
    .nav-desktop li a.is-active {
        color: var(--primary);
    }

    .btn-reservar-desk {
        display: flex;
        align-items: center;
        padding: var(--space-sm) var(--space-lg);
        background: var(--btn-primary-bg);
        color: var(--btn-primary-text);
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
        transition: background var(--trans-fast);
        white-space: nowrap;
    }

    .btn-reservar-desk:hover {
        background: var(--primary-dark);
        color: var(--btn-primary-text);
    }
}

/* -- Header Responsive MQ4 (Desktop) -- */

@media only screen and (min-width: 1280px) {
    header {
        height: 5em;
        padding: 0 5dvw;
    }

    .logo img {
        width: 7em;
    }

    .nav-mobile {
        display: none;
    }

    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-2xl);
    }
    .nav-desktop ul { display: flex; align-items: center; gap: var(--space-2xl); list-style: none; margin: 0; padding: 0; }

    .nav-desktop li a {
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-base);
        color: var(--negro);
        transition: color var(--trans-fast);
    }

    .nav-desktop li a:hover,
    .nav-desktop li a.is-active {
        color: var(--primary);
    }

    .nav-controls {
        gap: var(--space-md);
    }

    .btn-reservar-desk {
        display: flex;
        align-items: center;
        padding: var(--space-sm) var(--space-xl);
        background: var(--btn-primary-bg);
        color: var(--btn-primary-text);
        font-family: var(--font-body);
        font-weight: 700;
        font-size: var(--text-base);
        border-radius: var(--radius-md);
        transition: background var(--trans-fast);
        white-space: nowrap;
    }

    .btn-reservar-desk:hover {
        background: var(--primary-dark);
        color: var(--btn-primary-text);
    }
}

/* =========================
   4. Header — Fin
   ========================= */

/* =========================
   5. Footer — Inicio
   ========================= */

/* -- Footer Mobile -- */

footer {
    width: 100%;
    background: var(--fondo-footer);
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-logo img {
    width: 7em;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--neutral-dark);
    transition: color var(--trans-fast);
}

.footer-links a:hover {
    color: var(--tertiary);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.footer-social a {
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-dark);
    transition: color var(--trans-fast);
}

.footer-social a:hover {
    color: var(--tertiary);
}

.footer-social img {
    width: 1.5em;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-social img:hover {
    opacity: 1;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gris);
    letter-spacing: 0.05em;
}

/* -- Footer Responsive MQ1 -- */

@media only screen and (min-width: 481px) and (max-width: 768px) {
    footer {
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    }
}

/* -- Footer Responsive MQ2 -- */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: portrait) {
    footer {
        padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    }

    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

/* -- Footer Responsive MQ3 -- */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) {
    footer {
        padding: var(--space-xl) var(--space-xl) var(--space-md);
    }

    .footer-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .footer-links {
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* -- Footer Responsive MQ4 (Desktop) -- */

@media only screen and (min-width: 1280px) {
    footer {
        padding: var(--space-2xl) 5dvw var(--space-lg);
    }

    .footer-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .footer-links {
        flex-direction: row;
        gap: var(--space-xl);
    }

    .footer-copy {
        font-size: var(--text-xs);
    }
}

/* =========================
   5. Footer — Fin
   ========================= */

/* =========================
   6. Componentes compartidos
   ========================= */

/* -- Botones -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--trans-fast);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--btn-primary-text);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--blanco);
    border-color: var(--btn-secondary-bg);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--blanco);
}

.btn-outlined {
    background: transparent;
    color: var(--primary);
    border-color: var(--btn-outlined-border);
}

.btn-outlined:hover {
    background: var(--primary);
    color: var(--blanco);
}

.btn-inverted {
    background: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
}

.btn-inverted:hover {
    background: var(--negro-suave);
    border-color: var(--negro-suave);
}

/* -- WhatsApp flotante -- */

.btn-whatsapp {
    width: 3.5em;
    height: 3.5em;
    border-radius: var(--radius-full);
    background: #25D366;
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-whatsapp);
    box-shadow: var(--sombra-lg);
    transition: border-radius var(--trans-normal);
}

.btn-whatsapp img {
    width: 2em;
    height: auto;
}

.btn-whatsapp:not(:hover)::before {
    content: '';
    position: absolute;
    width: 3.5em;
    height: 3.5em;
    border-radius: var(--radius-full);
    background: #25D366;
    opacity: 0.6;
    animation: whatsappPulse 1.8s infinite ease-out;
    z-index: -1;
}

.btn-whatsapp:hover {
    border-radius: var(--radius-lg);
}

@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================
   6. Componentes — Fin
   ========================= */

/* =========================
   7. Utilidades
   ========================= */

.u-hidden        { display: none !important; }
.u-textCenter    { text-align: center; }
.u-textStart     { text-align: start; }
.u-fullWidth     { width: 100%; }
.u-srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* RTL support */
[dir="rtl"] .logo       { margin-inline-start: 0; margin-inline-end: 2dvw; }
[dir="rtl"] .nav-desktop { flex-direction: row-reverse; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }

/* =========================
   7. Utilidades — Fin
   ========================= */

/* -- Lang Switcher -- */


header.is-scrolled {
    box-shadow: var(--sombra-md);
}
