/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2F4156;
    /*Prev: --primary-blue: #2c3e64;*/
    /*Prev: --dark-blue: #1b244b;*/
    /*Prev: --light-blue: #5a7ba8;*/
    --dark-blue: #202F41;
    --light-blue: #C7D9E5;
    --dark-yellow: #D2AE38;
    --accent-red: #d4203f;
    --text-light: #e8e6e3;
    --text-white: #ffffff;
    --text-cream: #f5f3f0;
    --text-yellow: #bea350;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inria Serif', serif;
    /*background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);*/
    background: var(--primary-blue);
    color: var(--text-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body.loaded main {
    opacity: 1;
    transform: translateY(0);
}

main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ============================================
   ANIMATED BACKGROUND STARS
   ============================================ */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: twinkle 3s infinite;
}

.star.dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
}

.star.line {
    width: 20px;
    height: 1px;
    border-radius: 1px;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-cream);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--text-white);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-white);
}

.page-header {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Caudex', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-white);
}

/* new */
/* ============================================
   NAVBAR RESPONSIVE CON MENÚ HAMBURGUESA
   ============================================ */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 100;
}

.logo-nav img {
    width: 120px;
    height: auto;
}

/* Ícono del menú hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-cream);
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

/* Menú normal */
.nav-menu ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-cream);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-white);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-white);
}

/* =======================
     ESTILOS RESPONSIVE
     ======================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   NAV RESPONSIVE - MENÚ HAMBURGUESA SOLO EN MÓVIL
   ============================================ */

/* Ícono de hamburguesa (oculto en escritorio) */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-cream);
    font-size: 2rem;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 20;
}

/* =======================
     ESTILOS RESPONSIVE
     ======================= */
@media (max-width: 768px) {

    /* Mostrar ícono hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Ocultar menú por defecto en móvil */
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 0;
        z-index: 10;
        animation: fadeIn 0.3s ease;
    }

    /* Cuando el menú está visible */
    nav ul.show {
        display: flex;
    }

    /* Enlaces más grandes y legibles */
    nav a {
        font-size: 1.2rem;
    }

    /* Animación de aparición */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


/* ============================================
   HERO BANNER
   ============================================ */
/* ============================================
   HERO & CONTAINER
   ============================================ */
.hero {
    padding: 0;
    /* sin márgenes para que el fondo cubra bien */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   EXTENDER PORTADA DETRÁS DEL HEADER (solo index)
   ============================================ */
body.home header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    /* sin fondo */
    z-index: 5;
}

body.home .hero {
    margin-top: 0;
}

/* HERO BANNER */
body.home .hero-banner {
    position: relative;
    width: 100vw;
    /* ocupa todo el viewport */
    left: 50%;
    margin-left: -50vw;
    /* expande hacia ambos lados */
    background: url('img/portada.png') center/cover no-repeat;
    aspect-ratio: 16/9;
    /* mantiene proporción */
    display: flex;
    justify-content: flex-end;
    /* columna derecha */
    align-items: center;
    /* centrado vertical de la columna */
    text-align: left;
    padding: 3rem 8%;
    /* espacio interno para la columna */
    overflow: hidden;
}

/* capa oscura encima de la imagen */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* contenido hero */
.hero-banner>* {
    position: relative;
    z-index: 1;
}

/* ============================================
   COLUMNA DERECHA (HERO CONTENT)
   ============================================ */
.hero-content {
    width: 40%;
    /* columna aprox 40% */
    max-width: 450px;
    /* ancho máximo */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* contenido centrado en la columna */
    text-align: center;
    gap: 1rem;
}

/* LOGO */
.hero-content .logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.hero-content .logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* TAGLINE, TITLE, DESCRIPTION */
.hero-content .tagline {
    font-family: 'Caudex', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-cream);
    margin-bottom: 0.5rem;
}

.hero-content .main-title {
    font-family: 'Ms Madi', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .description {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--text-cream);
    margin: 0;
    line-height: 1.6;
}

/* BOTÓN CTA */
.hero-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: clamp(0.5rem, 1vw, 0.7rem) clamp(1.2rem, 2vw, 1.8rem);
    font-size: clamp(0.85rem, 1vw, 1rem);
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    margin-top: 1rem;
}

.hero-content .cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   HERO - RESPONSIVE
   ============================================ */

/* Escritorio grande / hasta 1200px */
@media (max-width: 1200px) {
    .hero-content {
        width: 45%;
        /* columna derecha reducida un poco */
    }
}

/* Laptops medianas / hasta 900px */
@media (max-width: 900px) {
    body.home .hero-banner {
        justify-content: center;
        /* columna centrada en pantallas medianas */
        padding: 2rem 3%;
        /* poco margen lateral */
    }

    .hero-content {
        width: 70%;
        /* columna ocupa más espacio */
    }
}

/* Móviles / hasta 699px */
/* Móviles / hasta 699px */
@media (max-width: 699px) {

    /* Contenedor general centrado y más alto */
    body.home .hero-banner {
        justify-content: center;
        /* columna centrada verticalmente */
        align-items: center;
        padding: 4rem 1rem;
        /* más espacio arriba y abajo */
        aspect-ratio: auto;
        min-height: 650px;
        /* más alto que antes */
    }

    /* Hero content centrado en la imagen */
    .hero-content {
        width: 90%;
        max-width: 350px;
        text-align: center;
        align-items: center;
        margin: 0;
        gap: 0.8rem;
        /* más espacio entre logo, texto y botón */
    }

    /* Logo */
    .hero-content .logo {
        max-width: 170px;
        /* un poco más grande */
        margin-bottom: 0.5rem;
    }

    /* Tagline */
    .hero-content .tagline {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    /* Título principal - más grande y destacado */
    .hero-content .main-title {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    /* Descripción */
    .hero-content .description {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Botón */
    .hero-content .cta-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.8rem;
    }
}

/* ============================================
   HOURS & SOCIAL
   ============================================ */
.hours {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-cream);
    margin: 2.5rem auto 1.5rem;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 1rem auto;
}

.instagram-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.instagram-button svg {
    width: 16px;
    height: 15px;
}

/* ============================================
   SECCIÓN MENÚ ESPECIAL / LOS FAVORITOS
   ============================================ */
.featured-menu {
    padding: 5rem 1.5rem;
    background: transparent;
    /* sin fondo negro */
    color: var(--text-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* contenido | imagen lateral */
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

/* Imagen lateral */
.featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Textos principales */
.featured-content .subtitle {
    font-family: 'Caudex', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark-yellow);
    margin-bottom: 0.3rem;
}

.featured-content .title {
    font-family: 'Ms Madi', cursive;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: left;
}

.featured-content .intro {
    font-family: 'Caudex', serif;
    font-size: 1rem;
    color: var(--text-cream);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: left;
}

/* ======== PRODUCTOS ======== */
.product-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    /* imagen / info / precio */
    align-items: flex-start;
    column-gap: 1rem;
}

.product-row .col.image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.product-row .col.info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.product-row .line {
    display: flex;
    align-items: baseline;
    width: 100%;
}

.product-row .line h4 {
    font-family: 'Caudex', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.product-row .line .dots {
    flex: 1;
    border-bottom: 1px dotted var(--dark-yellow);
    margin: 0 0.5rem;
    transform: translateY(-2px);
}

.product-row .col.info .desc {
    font-size: 0.9rem;
    color: var(--text-cream);
    line-height: 1.4;
    margin-top: 0.3rem;
}

.product-row .col.price {
    font-weight: 700;
    color: var(--text-yellow);
    font-size: 1rem;
    white-space: nowrap;
    justify-self: end;
}

/* Hover suave */
.product-row:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ============================================
   FEATURED-MENU - MÓVIL AJUSTES
   ============================================ */
@media (max-width: 900px) {
    .featured-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* centrar contenido */
        gap: 2rem;
    }

    /* Textos principales centrados */
    .featured-content {
        order: 1;
        width: 100%;
        max-width: 500px;
        text-align: center;
    }

    /* Ajustes específicos de textos */
    .featured-content .title {
        font-size: 2rem;
        /* un poco más pequeño */
        text-align: center;
    }

    .featured-content .intro {
        font-size: 0.9rem;
        /* más pequeño */
        text-align: center;
    }

    /* Imagen grande debajo */
    .featured-image {
        order: 2;
        width: 100%;
        max-width: 500px;
    }

    /* Productos: mantener 3 columnas, pero texto más pequeño */
    .product-table {
        gap: 1rem;
    }

    .product-row {
        display: grid;
        grid-template-columns: 50px 1fr auto;
        /* imagen / info / precio */
        column-gap: 0.8rem;
        align-items: flex-start;
    }

    .product-row .col.image img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        margin-right: 0;
        /* evita margen extra */
    }

    /* Diferenciar tamaño de h4 y desc */
    .product-row .col.info .line h4 {
        font-size: 0.9rem;
        /* un poco más grande */
        font-weight: 700;
        text-align: left;
    }

    .product-row .col.info .desc {
        font-size: 0.8rem;
        /* más pequeño que h4 */
        text-align: left;
        margin-top: 0.2rem;
        line-height: 1.4;
    }

    .product-row .col.price {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .product-row {
        grid-template-columns: 45px 1fr auto;
    }

    .product-row .col.image img {
        width: 45px;
        height: 45px;
    }

    .product-row .col.info .line h4 {
        font-size: 0.85rem;
    }

    .product-row .col.info .desc {
        font-size: 0.75rem;
    }

    .product-row .col.price {
        font-size: 0.8rem;
    }
}

/* ============================================
   GALLERY INDEX
   ============================================ */
/* ============================================
   GALLERY - Desktop
   ============================================ */
.gallery-desktop {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.gallery-desktop .gallery-item {
    flex: 1 1 calc(20% - 1rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
}

.gallery-desktop .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

/* Ocultar galería de escritorio en móvil */
@media (max-width: 599px) {
    .gallery-desktop {
        display: none;
    }
}

/* ============================================
   GALLERY - Mobile
   ============================================ */
.gallery-mobile {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Imagen principal */
.gallery-mobile .gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
}

.gallery-mobile .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

/* Miniaturas */
.gallery-mobile .gallery-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
}

.gallery-mobile .gallery-thumbnails .gallery-item {
    flex: 1 1 22%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin: 0;
    transition: transform 0.3s ease;
}

.gallery-mobile .gallery-thumbnails .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    display: block;
}

.gallery-mobile .gallery-thumbnails .gallery-item:hover {
    transform: scale(1.05);
}

/* Eliminar borde amarillo al seleccionar */
.gallery-mobile .gallery-thumbnails .gallery-item.active img {
    border: none;
}

/* Mostrar galería móvil solo en pantallas pequeñas */
@media (max-width: 599px) {
    .gallery-mobile {
        display: flex;
    }
}



/* ============================================
   SECCIÓN CÓMO PEDIR
   ============================================ */
.how-to-order {
    width: 100vw;
    /* ocupar todo el ancho del viewport */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #cec785;
    /* beige cálido */
    color: #3e3e3e;
    text-align: center;
    padding: 5rem 1.5rem;
}

.how-to-order .section-title {
    color: #2e2e2e;
}

.how-to-order .section-divider {
    background: #2e2e2e;
    opacity: 0.3;
}

.how-to-order .order-text {
    font-family: 'Caudex', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

/* Caja central refinada */
.order-box {
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* sutil borde gris */
    border-radius: 0;
    max-width: 480px;
    margin: 0 auto 2rem auto;
    /* centrada + espacio abajo */
    padding: 1.5rem 1rem;
    background: transparent;
    /* sin relleno */
}

.order-box .schedule {
    font-family: 'Caudex', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Enlace de Instagram minimalista */
.order-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Caudex', serif;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-top: 1.5rem;
}

.order-instagram:hover {
    color: #293c6e;
    transform: translateY(-2px);
}

.order-instagram svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5px;
}


/* ============================================
   MENU PAGE STYLES
   ============================================ */
.menu-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* === TÍTULOS DE SECCIÓN === */
.section-title {
    font-family: 'Caudex', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.section-divider {
    width: 120px;
    height: 1px;
    background: var(--text-white);
    border: none;
    margin: 0.8rem auto 2rem;
    opacity: 0.5;
}

/* ============================================
   GRID DE ITEMS EN SECCIONES DE MENÚ
   ============================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    justify-items: stretch;
    align-items: start;
}

.menu-item {
    margin: 0;
    width: 100%;
    max-width: none;
    text-align: left;
    opacity: 0;
    transform: translateX(27px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === IMAGEN === */
.item-image {
    width: 100%;
    margin: 0 0 0.7rem 0;
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.item-image.small {
    max-width: 180px;
    margin: 0 auto 1rem auto;
    /* 🔹 centra la imagen pequeña */
    display: flex;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === TEXTOS === */
.item-name {
    font-family: 'Caudex', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-cream);
    margin: 0 0 0.5rem 0;
}

.item-description em {
    font-style: italic;
    opacity: 0.9;
}

.item-price {
    font-family: 'Caudex', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-yellow);
    margin-top: 0.4rem;
}

/* ============================================
   FILTRO DE SECCIONES ("CARTA")
   ============================================ */

.menu-filter-section {
    text-align: center;
    margin: 1.8rem auto 2.2rem;
    max-width: 1100px;
    overflow: visible;
    /* ✅ permite ver todo el scroll horizontal */
    width: 100%;
}


/* Contenedor principal del filtro */
.menu-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
}

/* ======== BOTONES ======== */
.filter-btn {
    background: none;
    border: 1px solid transparent;
    color: #bfbfbf;
    font-family: 'Caudex', serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.45rem 1.2rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-white);
}

.filter-btn.active {
    border-color: #c9a74e;
    color: #f1e3b3;
}

/* ======== VERSIÓN MÓVIL (scroll horizontal fluido y sin corte) ======== */
@media (max-width: 768px) {
    .menu-filter-section {
        width: 100%;
        overflow-x: auto;
        /* permite desplazamiento */
        -webkit-overflow-scrolling: touch;
        padding: 0 0.5rem;
    }

    .menu-filter {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.8rem;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1.5rem;
        /* ✅ da respiro al primer botón */
        padding: 0 1.5rem 0.4rem 1.5rem;
        /* ✅ equilibrado en ambos lados */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.9rem;
        padding: 0.45rem 1rem;
        white-space: nowrap;
    }
}





/* ============================================
   CENTRADO EXCLUSIVO PARA ADICIONALES
   ============================================ */
.adicionales .container {
    text-align: center;
}

.adicionales .menu-grid {
    justify-content: center;
    gap: 1.5rem;
}

.adicionales .menu-item.special {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 🔹 centra verticalmente */
    text-align: center;
}

.adicionales .item-image.small {
    justify-content: center;
}

.adicionales .item-description.special-text {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 2rem 0 3rem;
    text-align: center;
}

.order-button {
    display: inline-block;
    background: var(--text-white);
    color: var(--dark-blue);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */
@media (max-width: 900px) {
    .menu-section {
        margin: 0 1.2rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
}


@media (max-width: 600px) {
    .menu-section {
        margin: 0 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
}




/* ============================================ */

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: hidden;
    /* 🔹 evita desbordamiento lateral */
}

.about-item {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    width: 100%;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

/* === CONTENEDOR DE TEXTO === */
.about-text {
    flex: 1;
    min-width: 0;
    /* 🔹 permite encogerse libremente */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.about-text h2 {
    font-family: 'Caudex', serif;
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-align: center;
    word-wrap: break-word;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-cream);
    text-align: justify;
    word-wrap: break-word;
}

/* === IMAGEN === */
.about-image {
    flex: 1;
    min-width: 0;
    /* 🔹 previene ancho mínimo forzado */
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    max-width: 100%;
    /* 🔹 nunca más ancho que la pantalla */
}

/* === BLOQUE TRANSLÚCIDO SOLO PARA MISIÓN === */
.about-text.highlight {
    background: var(--dark-blue);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {

    .about-item,
    .about-item.reverse {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .about-text {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .about-text.highlight {
        border: none;
        height: auto;
    }

    .about-text h2 {
        font-size: 2rem;
        text-align: center;
        margin-top: 1rem;
    }

    .about-image img {
        height: auto;
    }
}


/* ============================================
   OPTIMIZACIÓN PARA PANTALLAS MUY PEQUEÑAS
   ============================================ */
@media (max-width: 360px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .about-section {
        padding: 1.5rem 0;
    }

    .about-text {
        padding: 0 0.5rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }

    .about-item {
        gap: 1.2rem;
        margin-bottom: 3rem;
    }
}





/* ============================================
   GALLERY PAGE STYLES (solo para gallery.html)
   ============================================ */
.gallery-page-section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-page-section .section-title {
    font-family: 'Caudex', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.gallery-page-section .section-divider {
    width: 120px;
    height: 1px;
    background: var(--text-white);
    border: none;
    margin: 1rem auto 2.5rem;
    opacity: 0.5;
}

.gallery-page-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-cream);
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 700px;
}

/* === GRID DE IMÁGENES === */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    padding: 0 2rem;
}

.gallery-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 9 / 16;
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
}

.gallery-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover: zoom + oscurecer */
.gallery-page-item:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
        padding: 0 1.2rem;
    }
}

/* ============================================
   CONTACT PAGE (VISIBLE + ESTÉTICO)
   ============================================ */
/* Añadir margen entre filas completas */
.form-row {
    display: flex;
    gap: 1.5rem;
    /* espacio horizontal entre columnas */
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    /* espacio vertical entre filas */
}

/* Si quieres un espacio interno más uniforme en los inputs */
input,
textarea {
    background: rgba(24, 36, 66, 0.767);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 1rem;
    /* más espacio dentro de la caja */
    color: #e0e0e0;
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Asegurarte de que .form-group tenga margen vertical si es individual */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
    min-height: 85vh;
}

.contact-box {
    background-color: var(--dark-blue);
    /* azul oscuro */
    border: 0;
    border-radius: 0;
    /* sin redondeo */
    padding: 3rem 2.5rem;
    max-width: 750px;
    width: 100%;
    color: #bfbfbf;
}

.contact-box .section-title {
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Inputs y textarea */
input,
textarea {
    background: rgba(0, 0, 0, 0.219);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    /* sin redondeo */
    padding: 0.8rem 1rem;
    color: #e0e0e0;
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(24, 36, 66, 0.356);
    border-color: #c9a74e;
}

/* Placeholder gris */
input::placeholder,
textarea::placeholder {
    color: #ccc;
    font-family: 'Caudex', serif;
}

/* Textarea full width */
.form-group.full {
    width: 100%;
}

/* Botón enviar */
.send-button {
    background: #c9a74e;
    color: #111;
    font-family: 'Caudex', serif;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    padding: 0.9rem 2rem;
    cursor: pointer;
    width: fit-content;
    margin: 1rem auto 0;
    display: block;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #e2be64;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 700px) {
    .contact-box {
        padding: 2rem 1.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-cream);
    opacity: 0.8;
}

/* Laptops medianas / pantallas entre 769px y 1024px */
/* ============================================
   FOOTER

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        width: 70%;
        max-width: 450px;
    }

    .main-title {
        font-size: 3rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.7rem 1.8rem;
    }
}
   ============================================ */

/* Pantallas grandes intermedias / 1025px a 1199px */
/* ============================================
@media (min-width: 1025px) and (max-width: 1199px) {
    .hero-content {
        width: 50%;
        max-width: 500px;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .description {
        font-size: 1.05rem;
    }

    .cta-button {
        font-size: 1.05rem;
        padding: 0.8rem 2rem;
    }
}
   ============================================ */
/* Pantallas muy grandes / 1200px en adelante */
/* ============================================
@media (min-width: 1200px) {
    .hero-content {
        width: 40%;
        max-width: 550px;
    }

    .main-title {
        font-size: 4rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
}
============================================ */
/* Móviles y tablets pequeñas */
/* ============================================
@media (max-width: 768px) {
    .hero-content {
        width: 90%;
        max-width: 400px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.6rem;
    }
}
============================================ */
/* ============================================
@media (max-width: 480px) {
    .hero-content {
        width: 95%;
        max-width: 350px;
    }

    .main-title {
        font-size: 2rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

============================================ */


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    nav ul {
        gap: 1.2rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .logo {
        max-width: 320px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 350px;
    }

    .section-title {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .item-name {
        font-size: 1.2rem;
    }

    .item-description {
        font-size: 0.9rem;
    }

    .item-price {
        font-size: 1.2rem;
    }
}

/* MEDIUM LARGE SCREENS */
@media (min-width: 1025px) and (max-width: 1199px) {
    .hero-content {
        width: 50%;
        max-width: 550px;
        /* límite para que no crezca demasiado */
    }

    .main-title {
        font-size: 3rem;
        /* escala intermedia */
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        /* mantén botón visible */
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.8rem 0;
    }

    nav ul {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .cta-button,
    .order-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .gallery {
        max-width: 280px;
    }
}

/* ============================================
   LANDSCAPE MOBILE FIX
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0 2rem;
    }

    .logo {
        margin: 1.5rem auto 1rem;
        max-width: 280px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
}

/* ============================================
   TABLET LANDSCAPE
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .gallery {
        max-width: 650px;
    }
}

/* ============================================
   LARGE SCREENS
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .main-title {
        font-size: 4rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .gallery {
        max-width: 850px;
        gap: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .star {
        animation: none;
        opacity: 0.3;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--text-white);
    outline-offset: 4px;
}