/* =============================================== */
@font-face {
    font-family: 'SpecialElite-Regular';
    src: url('/assets/fonts/SpecialElite-Regular.woff2') format('woff2'),
         url('/assets/fonts/SpecialElite-Regular.woff') format('woff'),
         url('/assets/fonts/SpecialElite-Regular.ttf') format('truetype');
    font-display: swap; /* AÑADIR: Mejora performance */
}

@font-face {
    font-family: 'Italianno-Regular';
    src: url('/assets/fonts/Italianno-Regular.woff2') format('woff2'),
         url('/assets/fonts/Italianno-Regular.woff') format('woff'),
         url('/assets/fonts/Italianno-Regular.ttf') format('truetype');
    font-display: swap; /* AÑADIR: Mejora performance */
}

/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --color-fondo: #2B2B2B;
    --color-texto: #FFFFFF;
    --color-tarjeta: #EAEAEA;
    --color-texto-tarjeta: #2B2B2B; 
    --font-titulo: 'SpecialElite-Regular', sans-serif;
    --font-texto: 'Helvetica', sans-serif;
}

@font-face {
    font-family: 'Italianno-Regular';
    src: url('../assets/fonts/Italianno-Regular.ttf');
}

@font-face {
    font-family: 'SpecialElite-Regular';
    src: url('../assets/fonts/SpecialElite-Regular.ttf');
}

body {
    margin: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--font-texto);
    min-height: 100vh;
    /* Evita el scroll horizontal por elementos que se salen */
    overflow-x: hidden;
}

/* --- ANIMACIÓN DE BRINCO PARA EL BOTÓN --- */
@keyframes button-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero__button,
.location__button {
    will-change: transform; /* AÑADIR: Optimiza animación */
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero__button,
    .location__button {
        animation: none;
    }
}

/* =============================================== */
/* --- ESTILOS BASE (MOBILE FIRST < 768px) --- */
/* =============================================== */
.hero {
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Clave para que los elementos "salidos" no generen scroll */
}

/* AJUSTE: Línea divisora en la parte inferior 
.hero::after {
    content: '';
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 5.5rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}
*/
.hero__title {
    font-family: var(--font-titulo);
    font-size: 3.2rem;
    letter-spacing: 0.1rem;
    margin: 8rem 0 0rem 0;
    z-index: 10;
    text-align: center;
}

/* --- Imágenes de fondo --- */
.hero__image {
    position: absolute;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.hero__image--crudo {
    width: 250px;
    top: 18%;
    left: -50px;
    z-index: 20;
}
.hero__image--asado {
    width: 190px;
    bottom: 30%;
    right: -45px; /* Cambiado de -30px a -45px para más separación */
    z-index: 5;
}

/* --- Imagen de la Nota --- */
.hero__note-image {
    position: absolute;
    width: 230px;
    height: auto; /* AÑADIR: Mantiene proporción original */
    top: 22%;
    right: -20px;
    z-index: 15;
    box-shadow: none;
    opacity: 0;
    transform: translateY(20px) rotate(-5deg);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero__content-wrapper {
    margin-top: 24rem;
    margin-bottom: 0rem; 
    padding-left: 2.5rem;
    padding-right: 1rem;
    width: 58%;
    box-sizing: border-box;
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero__info {
    text-align: left;
    z-index: 10;
}

.hero__brand {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    /* Limpieza: quitamos padding de aquí */
}
.hero__brand::first-line {
    font-size: 1.5rem;
}

.hero__subtitle, address {
    font-family: var(--font-titulo);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    /* Limpieza: quitamos padding de aquí */
}
address {
    font-size: 0.9rem;
}

/* SOLUCIÓN PARA EL BOTÓN */
.hero__button {
    background-color: var(--color-tarjeta);
    color: var(--color-texto-tarjeta);
    font-family: var(--font-titulo);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
    animation: button-bounce 2.5s infinite ease-in-out;
    margin-top: 1.5rem;     /* Espacio entre el texto y el botón */
    display: inline-block;  /* Para que no ocupe todo el ancho */

    /* Propiedades para la animación de entrada */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero__image,
.location__image,
.footer__main-logo,
.footer__opentable-logo {
    aspect-ratio: attr(width) / attr(height); /* Previene layout shift */
}


/* ======================================================== */
/* --- TABLET (VERTICAL) Y PANTALLAS MEDIANAS (≥ 768px) --- */
/* ======================================================== */
@media (min-width: 768px) {
    
    .hero {
        overflow: visible;
    }

    .hero::after {
        display: block;
        bottom: 3rem;
        left: 0;
        right: 0;
    }

    .hero__title {
        font-size: 5rem;
        margin: 3rem 0;
    }

    .hero__image--crudo {
        width: 380px;
        top: 15%;
        left: -80px;
        z-index: 5;
    }

    .hero__note-image {
        width: 340px;
        height: auto; 
        top: 10%;
        right: -40px;
        transform: rotate(-5deg);
        opacity: 1;
    }
    
    .hero__content-wrapper {
        margin-top: auto;
        margin-bottom: 10rem;
        padding-left: 4rem;
        width: 50%;
        position: static;
        transform: none;
        opacity: 1;
    }

    .hero__brand { font-size: 3rem; }
    .hero__brand::first-line { font-size: 2rem; }
    .hero__subtitle, address { font-size: 1.2rem; }
    address { font-size: 1.1rem; }

    /* AJUSTE: Hacemos el corte más grande */
    .hero__image--asado {
        width: 350px; /* Más grande */
        bottom: 25rem;
        right: -55px;
        z-index: 10;
    }

    /* AJUSTE: Movemos el botón a la izquierda */
    .hero__button {
        position: static; /* Lo devolvemos al flujo del wrapper */
        margin-top: 2rem; /* Le damos espacio */
        padding: 1rem 2.2rem;
        font-size: 1.4rem;
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================= */
/* --- TABLET (HORIZONTAL) Y DESKTOP (≥ 1024px) --- */
/* ========================================================= */
@media (min-width: 1024px) {
    /* CAMBIO DE LAYOUT: Pasamos a un diseño centrado con imágenes flotantes */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra verticalmente */
        align-items: center;    /* Centra horizontalmente */
        gap: 1rem;
        padding: 2rem;
    }

    .hero::after {
        display: none; /* Ocultamos la línea en la versión de escritorio */
    }

    .hero__title {
        font-size: 6rem;
        margin-bottom: 0;
        z-index: 5; /* Aseguramos que esté por encima de las imágenes */
    }

    /* Posicionamos las imágenes decorativas en los bordes */
    .hero__image--crudo {
        width: 450px;
        top: 50%;
        left: 0; /* Pegado a la izquierda */
        transform: translateY(-50%); /* Truco para centrar verticalmente */
        z-index: 1;
    }

    .hero__image--asado {
        width: 380px;
        bottom: 5%;
        right: 0; /* Pegado a la derecha */
        z-index: 1;
    }

    /* AJUSTE NOTA: La pegamos más a la derecha */
    .hero__note-image {
        width: 350px;
        top: 10%;
        right: 2%; /* La acercamos mucho al borde */
        z-index: 5;
        transform: rotate(-4deg);
    }
    
    /* El contenido ahora es estático y se centra solo */
    .hero__content-wrapper {
        position: static;
        margin: 0;
        padding: 0;
        width: auto;
        text-align: center;
        z-index: 5;
    }

    .hero__info {
        text-align: center;
    }

    /* Hacemos los textos más grandes */
    .hero__brand { font-size: 3rem; }
    .hero__brand::first-line { font-size: 2.2rem; }
    .hero__subtitle, address { font-size: 1.2rem; }
    address { font-size: 1.1rem; }

    /* El botón ahora es parte del flujo normal */
    .hero__button {
        position: static;
        margin-top: 2rem;
        padding: 1rem 2.5rem;
        font-size: 1.5rem;
        opacity: 1;
        transform: none;
    }
}

/* Un último ajuste para pantallas muy grandes */
@media (min-width: 1440px) {
    .hero__image--crudo { width: 480px; }
    .hero__image--asado { width: 420px; }
    .hero__note-image { width: 380px; right: 8%; }
}



/* =============================================== */
/* --- ESTILOS DE SECCIONES DE UBICACIÓN --- */
/* =============================================== */

.location {
    background-color: var(--color-fondo);
    padding: 5rem 2.5rem; /* AJUSTE: Controlamos el espacio con padding */
    position: relative;
    overflow: hidden;
}

/* SOLUCIÓN LÍNEA: Usamos '::before' para la línea superior de CADA sección */
.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 5.5rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* SOLUCIÓN LÍNEA FINAL: Añadimos una línea DESPUÉS de la última sección */
.location:last-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 5.5rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}


.location__info {
    width: 60%;
    /* AJUSTE: Eliminamos los márgenes que causaban el espacio vacío */
    z-index: 10;
}

.location__brand {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 0 0 1rem 0;
}

.location__brand::first-line {
    font-size: 1.8rem;
}

.location__subtitle, .location address {
    font-family: var(--font-titulo);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.location address {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.location__button {
    background-color: var(--color-tarjeta);
    color: var(--color-texto-tarjeta);
    font-family: var(--font-titulo);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    animation: button-bounce 2.5s infinite ease-in-out;
}

.location__image-wrapper {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 150px;
    z-index: 5;
}

.location__image {
    width: 100%;
    height: auto;
}

/* --- AJUSTES ESPECÍFICOS PARA CADA SECCIÓN --- */

/* Empanada más grande y más arriba */
#parrilla-autor .location__image-wrapper {
    right: -50px; /* La sacamos más para compensar el tamaño */
    bottom: 7rem; /* La subimos un poco */
    width: 180px; /* La hacemos más grande */
}

/* Copa de vino más pequeña */
#casa-cortazar .location__image-wrapper {
    right: 1.5rem;
    width: 100px; /* La hacemos más pequeña */
}

/* --- Media Queries para hacer las tarjetas adaptables --- */
@media (min-width: 768px) {
    .location {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 6rem 4rem;
        gap: 4rem;
    }

    /* Ocultamos las líneas de móvil en pantallas grandes */
    .location::before, .location:last-of-type::after {
        display: none;
    }
    
    /* Añadimos un borde superior para separar en pantallas grandes */
    .location {
        border-top: 1px solid rgba(255, 255, 255, 0.8);
    }

    .location__info {
        width: 50%;
    }

    .location__image-wrapper {
        position: static;
        width: 40%;
        max-width: 350px;
        bottom: auto;
        right: auto;
    }

    #casa-cortazar .location__image-wrapper {
        width: 40%;
    }

    .location--reverse {
        flex-direction: row-reverse;
    }
}

/* ======================================================== */
/* --- TABLET (VERTICAL) - ESTILOS DE UBICACIÓN --- */
/* ======================================================== */
@media (min-width: 768px) {
    
    .location {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 6rem 0;
        gap: 2rem;
        min-height: auto;
        position: relative;
    }

    
    .location::before, .location:last-of-type::after { display: none; } /* Mantenemos esto para ocultar las de móvil */

    .location {
        border-top: none; /* Nos aseguramos de quitar cualquier borde */
        position: relative; /* Necesario para que ::before se posicione correctamente */
    }

    .location::before {
        content: '';
        display: block; /* La hacemos visible */
        position: absolute;
        top: 0;
        left: 0;  /* AJUSTE: Pegada al borde izquierdo */
        right: 4rem; /* Mantenemos el margen derecho */
        height: 1px;
        background-color: rgba(255, 255, 255, 0.8);
    }

    .location__info {
        width: 50%;
        margin: 0;
        padding: 0 0 0 4rem;
        position: static;
        z-index: 1;
    }

    .location__brand { font-size: 3rem; }
    .location__brand::first-line { font-size: 2.2rem; }
    .location__subtitle, .location address { font-size: 1.2rem; }
    .location address { font-size: 1.1rem; }

    .location__button {
        padding: 1rem 2.2rem;
        font-size: 1.4rem;
        position: static;
        margin-top: 2rem;
    }

    /* RESETEO CLAVE: Devolvemos el wrapper a un estado neutral */
    .location__image-wrapper {
        position: static;
        width: 50%;
        padding-right: 4rem;
        max-width: none;  /* Eliminamos el max-width por defecto */
        bottom: auto;     /* Anulamos herencia */
        right: auto;      /* Anulamos herencia */
        z-index: 1;
    }
    
    /* --- AJUSTES ESPECÍFICOS --- */

    /* 1. Hacemos la empanada más grande */
    #parrilla-autor .location__image-wrapper {
        padding-right: 0;
        width: 460px; /* Aumentamos un 15% */
    }

    /* 2. Corregimos el layout de Casa Cortázar */
    #casa-cortazar {
        flex-direction: row; /* Forzamos la dirección correcta (texto a la izq) */
    }

    /* 3. Hacemos la copa de vino más pequeña */
    #casa-cortazar .location__image-wrapper {
        width: 195px; /* Reducimos un 30% de 280px */
    }
}

/* ========================================================= */
/* --- TABLET (HORIZONTAL) Y DESKTOP (≥ 1024px) --- */
/* ========================================================= */
@media (min-width: 1024px) {
    
    .location {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 8rem 0; /* AJUSTE: Quitamos el padding horizontal */
        gap: 5rem;
        min-height: auto;
    }

    .location::before, .location:last-of-type::after { display: none; }
    .location { border-top: 1px solid rgba(255, 255, 255, 0.8); }

    /* CAMBIO CLAVE: El bloque de texto ahora ocupa más espacio */
    .location__info {
        width: 45%; /* Le damos más ancho */
        max-width: none; /* Quitamos la restricción */
        margin: 0;
        padding: 0 0 0 4rem;
        display: block; /* Lo devolvemos a un bloque normal */
        text-align: left;
    }

    /* Evitamos que el texto se rompa en varias líneas */
    .location__brand { 
        font-size: 3.5rem; 
        white-space: nowrap; /* Evita el salto de línea en "Parrilla de Autor" */
    }
    .location__brand::first-line { font-size: 2.5rem; }
    .location__subtitle, .location address { 
        font-size: 1.3rem; 
        white-space: nowrap; /* Evita el salto de línea en la dirección */
    }
    .location address { font-size: 1.2rem; }

    .location__button {
        padding: 1.2rem 3rem;
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .location__image-wrapper {
        position: static;
        width: 50%;
        max-width: 450px;
    }
    
    /* --- AJUSTES ESPECÍFICOS --- */
    #parrilla-autor .location__image-wrapper {
        padding-right: 0;
        max-width: 480px;
    }

    #casa-cortazar { flex-direction: row; }
    #casa-cortazar .location__image-wrapper {
        max-width: 300px;
    }

    .location.location--reverse {
        flex-direction: row;
    }

    /* Añadimos padding a la izquierda para el texto de Casa Cortázar */
    #casa-cortazar .location__info {
        padding-left: 4rem;
    }
}

/* =============================================== */
/* --- ESTILOS DEL FOOTER --- */
/* =============================================== */

.footer {
    background-color: var(--color-fondo);
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem; /* Espacio entre las secciones del footer */
    /* border-top: 1px solid rgba(255, 255, 255, 0.8); */
}

.footer__title {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 1rem 0;
}

.footer__opentable-logo {
    height: 40px; /* Ajusta la altura si es necesario */
    width: auto;
}

.footer__socials {
    display: flex;
    gap: 2rem; /* Espacio entre los iconos */
    justify-content: center;
}

.footer__social-link {
    color: var(--color-texto);
    font-size: 2.5rem; /* Tamaño de los iconos */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer__social-link:hover {
    transform: scale(1.1);
}

.footer__main-logo {
    width: 100px; /* Ajusta el tamaño si es necesario */
    height: auto;
}

/* ======================================================== */
/* --- TABLET (VERTICAL) - ESTILOS DEL FOOTER --- */
/* ======================================================== */
@media (min-width: 768px) {

    .footer {
        padding: 5rem 2rem; /* Más espaciado */
        gap: 4rem;
    }

    .footer__title {
        font-size: 2rem; /* Títulos más grandes */
    }

    .footer__opentable-logo {
        height: 60px; /* Logo más grande */
    }

    .footer__socials {
        gap: 3rem; /* Más espacio entre iconos */
    }

    .footer__social-link {
        font-size: 3.5rem; /* Iconos más grandes */
    }

    .footer__main-logo {
        width: 130px; /* Logo principal más grande */
    }
}

/* ========================================================= */
/* --- TABLET (HORIZONTAL) Y DESKTOP (≥ 1024px) --- */
/* ========================================================= */
@media (min-width: 1024px) {

    /* --- AJUSTES DEL FOOTER PARA DESKTOP --- */

    .footer {
        /* Creamos el layout horizontal de 3 columnas */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 4rem 5rem; /* Ajustamos el padding */
    }

    .footer__section {
        /* Cada sección ahora es una columna */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer__title {
        font-size: 1.8rem;
        margin: 0; /* Reseteamos el margen inferior */
    }

    .footer__opentable-logo {
        height: 45px;
    }

    .footer__socials {
        gap: 2.5rem;
    }

    .footer__social-link {
        font-size: 3rem;
    }

    .footer__main-logo {
        width: 120px;
    }
}


/* =============================================== */
/* --- ESTILOS DE PÁGINA DE DETALLE DE UBICACIÓN --- */
/* =============================================== */

/* Damos un color de fondo consistente al body de estas páginas */
.detail-page-body {
    background-color: var(--color-fondo);
    /* Correcciones para iOS Safari */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix para iOS */
}

.location-detail {
    color: var(--color-texto);
    font-family: var(--font-titulo);
    padding: 1.5rem;
}

.location-detail__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 0;
    /* CLAVE: Aplicamos la fuente a todo el contenedor */
    font-family: var(--font-titulo);
}

.location-detail__back-arrow {
    position: absolute;
    left: 0;
    top: 50%; /* Centramos verticalmente en el header */
    transform: translateY(-50%); /* Ajuste fino del centrado */
    color: var(--color-texto);
    text-decoration: none;
    font-family: var(--font-titulo); /* Aplicamos la tipografía! */
    font-size: 2.5rem; /* Aumentamos el tamaño para el carácter de texto */
    font-weight: bold;
}

/* Ocultamos el ícono original de Font Awesome para evitar conflictos */
.location-detail__back-arrow i {
    display: none;
}

/* Añadimos nuestro propio carácter de "flecha" usando un pseudo-elemento */
.location-detail__back-arrow::before {
    content: '<';
}

.location-detail__title {
    font-size: 3rem;
    margin: 5rem 0 0 0;
    font-weight: normal;
}

.location-detail__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0;
}

.location-detail__text {
    width: 60%;
}

.location-detail__image-wrapper {
    width: 35%;
    margin-right: -1.5rem;
}

.location-detail__image-wrapper img {
    width: 100%;
    height: auto;
}

.location-detail__contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    margin: 3rem 0;
}

.location-detail__contact a {
    color: var(--color-texto);
    text-decoration: none;
}

.location-detail__schedule {
    border: 1px solid var(--color-texto);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
}


.location-detail__schedule--events {
    border: none !important;
    padding: 0 !important;
    margin: 2rem auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 500px;
}

.schedule__title {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    font-weight: normal;
}

.schedule__list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
    font-size: 1.1rem;
}

.schedule__list span {
    display: inline-block;
    width: 40px; /* Alinea los días */
    text-align: left;
}

.location-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.location-detail__button {
    background-color: var(--color-tarjeta);
    color: var(--color-texto-tarjeta);
    font-family: var(--font-titulo);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.location-detail__footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

/* Reutilizamos estas clases del footer anterior */
.location-detail__footer .footer__title {
    margin-bottom: 1.5rem;
}

.location-detail__footer .footer__main-logo {
    margin-top: 3rem;
}

/* --- ESTILOS DEL MENÚ DESPLEGABLE --- */

.menu-dropdown__content {
    /* No se posiciona de forma absoluta, ahora es parte del flujo del documento */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem; /* Espacio entre el botón "MENÚ" y las opciones */
    
    /* --- Estado Inicial (Oculto) --- */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden; /* Clave para ocultarlo completamente */
    transform: translateY(-15px); /* Empieza ligeramente arriba para un efecto de deslizamiento */
    
    /* --- Transición Suave para todas las propiedades --- */
    transition: max-height 0.35s ease-in-out, 
                opacity 0.3s ease-in, 
                transform 0.3s ease-in-out,
                visibility 0.35s;
}

/* Clase que se añade con JS para mostrar el menú */
.menu-dropdown__content--show {
    max-height: 500px; /* Un valor alto para que quepa todo */
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Vuelve a su posición normal */
}

.menu-dropdown__item {
    width: 80% !important; /* Forzamos el 80% del ancho del botón padre */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =============================================== */
/* --- CORRECCIONES ESPECÍFICAS PARA EL VISOR PDF EN iOS --- */
/* =============================================== */

.pdf-viewer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix específico para iOS */
    background-color: var(--color-fondo);
    
    /* Correcciones críticas para iOS Safari */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    position: relative;
    
    /* Prevenir el zoom accidental en iOS */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.pdf-header {
    position: relative; /* Cambiamos de sticky/fixed a relative para evitar problemas */
    z-index: 10;
    background-color: var(--color-fondo);
    flex-shrink: 0;
    
    /* Asegurar que el header no cause problemas de rendering */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

#pdf-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-fondo);
    
    /* Correcciones críticas para iOS */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Forzar aceleración de hardware para evitar parpadeos */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Prevenir problemas de rendering */
    -webkit-perspective: 1000;
    perspective: 1000;
}

#pdf-canvas {
    max-width: 95vw; /* Usamos viewport width en lugar de px para móvil */
    width: auto !important;
    height: auto !important;
    
    /* Efectos visuales mejorados para móvil */
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    /* Correcciones críticas para canvas en iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Mejorar la calidad del rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* Prevenir problemas de touch */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    
    /* Margin para centrado perfecto */
    margin: 0 auto;
    display: block;
}

.pdf-toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Correcciones para iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    position: relative;
    z-index: 10;
    
    /* Prevenir problemas de touch en los botones */
    -webkit-tap-highlight-color: transparent;
}

.toolbar-button {
    background: none;
    border: none;
    color: var(--color-texto);
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-titulo);
    font-weight: bold;
    padding: 0.5rem;
    
    /* Mejorar la respuesta táctil en iOS */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    
    /* Área táctil más grande para móvil */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Feedback visual mejorado */
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.toolbar-button:active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Ocultamos los íconos originales de Font Awesome */
.toolbar-button i {
    display: none;
}

/* Añadimos nuestros propios caracteres de "flecha" */
#prev-page::before {
    content: '<';
}

#next-page::before {
    content: '>';
}

/* Indicador de página mejorado para móvil */
#page-indicator {
    font-size: 1rem;
    font-weight: normal;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

/* =============================================== */
/* --- MEDIA QUERIES ESPECÍFICAS PARA MÓVIL --- */
/* =============================================== */

@media (max-width: 768px) {
    .pdf-viewer {
        /* Asegurar altura completa en móvil */
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    #pdf-container {
        padding: 0.5rem;
        /* Scroll más suave en móvil */
        -webkit-overflow-scrolling: touch;
    }
    
    #pdf-canvas {
        max-width: 98vw;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .pdf-toolbar {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .toolbar-button {
        font-size: 1.8rem;
        padding: 0.75rem;
    }
    
    #page-indicator {
        font-size: 0.9rem;
    }
}


/* ======================================================== */
/* --- TABLET (VERTICAL) - ESTILOS PÁGINA DE DETALLE --- */
/* ======================================================== */
@media (min-width: 768px) {

    .location-detail {
        max-width: 650px;
        margin: 0 auto;
        padding: 2rem 2.5rem;
    }

    .location-detail__info { margin: 3rem 0; }
    .location-detail__image-wrapper { width: 40%; }
    .location-detail__title { font-size: 4rem; }
    .location-detail__back-arrow { font-size: 3rem; }
    .location-detail__contact { font-size: 1.5rem; justify-content: center; }
    .schedule__list { font-size: 1.3rem; }

    /* SOLUCIÓN ALINEACIÓN: Aplicamos las mismas reglas a ambos botones principales */
    .location-detail__button {
        width: auto;
        padding: 1rem 3rem;
        font-size: 1.4rem;
        align-self: center;
        min-width: 300px; /* Ancho mínimo para consistencia */
    }

    /* El contenedor del menú ahora se alinea igual que el botón de Reservación */
    .menu-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* SOLUCIÓN TAMAÑO SUB-BOTONES */
    .menu-dropdown__item {
        min-width: calc(300px * 0.8); /* Calculamos el 80% del ancho mínimo del padre */
        width: 80% !important;        /* Mantenemos el 80% por si el padre crece */
    }

    .location-detail__footer {
        padding-top: 4rem;
    }
}

/* ========================================================= */
/* --- TABLET (HORIZONTAL) Y DESKTOP (≥ 1024px) --- */
/* ========================================================= */
@media (min-width: 1024px) {

    /* --- 1. AJUSTES PARA LAS PÁGINAS DE DETALLE (la-perla.html, etc.) --- */

    /* Centramos el contenido en un contenedor de ancho máximo */
    .location-detail {
        max-width: 1000px; /* Un poco más de espacio */
        margin: 0 auto;
        padding: 4rem;
    }

    /* SOLUCIÓN 1: Centramos el título y pegamos la carne a la derecha */
    .location-detail__header {
        position: relative;
        justify-content: center; /* Centra el título */
    }
    
    .location-detail__back-arrow {
        position: absolute; /* La flecha se posiciona en relación al header */
        left: 0;
    }

    .location-detail__info {
        align-items: center;
    }

    .location-detail__image-wrapper {
        margin-right: -18rem; /* Anula el padding del padre para pegar la imagen */
    }
    
    .location-detail__contact {
        justify-content: flex-start;
    }
    
    .schedule__title {
        text-align: center;
    }

    /* SOLUCIÓN 2: Centramos los botones y corregimos el dropdown */
    .location-detail__actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .menu-dropdown {
        flex: 1;
        max-width: 350px;
        position: relative; /* CLAVE: Ahora es el punto de referencia */
    }
    
    .location-detail__button {
        flex: 1;
        max-width: 350px;
    }

    .menu-dropdown__content {
        position: absolute;
        top: 100%; /* Lo coloca justo donde termina el botón padre */
        left: 0;
        width: 100%; /* Ocupa el mismo ancho que el botón padre */
        margin-top: 0.5rem; /* Pequeño espacio para que no se peguen */
        /* Reseteamos el transform que ya no necesitamos */
        transform: none;
    }

    .menu-dropdown__item {
        width: 80% !important;
    }


    /* --- 2. AJUSTES MEJORADOS PARA EL VISOR DE PDF (menu.html) --- */

    /* Asegurar que el body del visor PDF tenga altura completa */
    .detail-page-body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* El contenedor principal del PDF viewer */
    .pdf-viewer {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Header fijo en la parte superior */
    .pdf-viewer .pdf-header {
        padding-left: 4rem;
        padding-right: 4rem;
        flex-shrink: 0; /* No se reduce */
    }

    /* Contenedor principal del PDF - aquí está la magia */
    #pdf-container {
        flex: 1; /* Ocupa el espacio restante */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        background-color: var(--color-fondo); /* Usa el color del tema */
        min-height: calc(100vh - 120px); /* Resta la altura del header y toolbar */
    }

    /* El canvas del PDF - estilo documento */
    #pdf-canvas {
        max-width: 900px; /* Tamaño más moderado y legible */
        width: auto !important;
        height: auto !important; /* Sin restricción de altura para documentos largos */
        
        /* Efectos visuales tipo documento */
        background-color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.3),
            0 16px 32px rgba(0, 0, 0, 0.2);
        
        /* Transición suave al cambiar páginas */
        transition: all 0.3s ease;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Toolbar fijo en la parte inferior */
    .pdf-viewer .pdf-toolbar {
        padding-left: 4rem;
        padding-right: 4rem;
        flex-shrink: 0; /* No se reduce */
        background-color: rgba(33, 33, 33, 0.95);
        backdrop-filter: blur(10px);
    }

    /* Mejoras en los botones del toolbar */
    .toolbar-button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        transition: all 0.2s ease;
    }

    .toolbar-button:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

    /* Estilo del indicador de página */
    #page-indicator {
        font-size: 1rem;
        font-weight: 500;
        color: #ffffff;
        margin: 0 1.5rem;
    }
}

/* --- MEDIA QUERY ADICIONAL PARA PANTALLAS MUY GRANDES (≥ 1440px) --- */
@media (min-width: 1440px) {
    
    #pdf-container {
        padding: 3rem;
    }
    
    #pdf-canvas {
        max-width: 1000px; /* Tamaño balanceado para pantallas grandes */
    }
    
    .pdf-viewer .pdf-header, 
    .pdf-viewer .pdf-toolbar {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

/* --- MEDIA QUERY PARA ORIENTACIÓN LANDSCAPE EN TABLETS --- */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    
    #pdf-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background-color: var(--color-fondo);
        min-height: calc(100vh - 100px);
    }
    
    #pdf-canvas {
        max-width: 800px;
        background-color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        /* Sin restricción de altura para tablets también */
    }
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 1rem 2.5rem 0;
    font-family: var(--font-texto);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--color-texto);
    opacity: 0.7;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--color-texto);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    opacity: 1;
    font-weight: bold;
}

@media (min-width: 768px) {
    .breadcrumb-nav {
        padding: 1rem 4rem 0;
    }
}

.coming-soon .breadcrumb-nav,
.error-404 .breadcrumb-nav {
    padding: 0;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.coming-soon .breadcrumb-nav .breadcrumb-item a,
.error-404 .breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.coming-soon .breadcrumb-nav .breadcrumb-item.active,
.error-404 .breadcrumb-nav .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .coming-soon .breadcrumb-nav,
    .error-404 .breadcrumb-nav {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Reglas específicas para el logo CORTÁZAR en headers */

/* Logo en páginas de detalle */
/* Logo en páginas de detalle */
.location-detail__title .location-detail__logo {
    height: 2.5rem;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0 3rem; /* Añade espacio a los lados para evitar que se pegue a la flecha */
}
/* Ajustes responsive para móvil */
@media (max-width: 767px) {
    .location-detail__title .location-detail__logo {
        height: 2rem; /* Más pequeño en móvil */
        max-width: 200px;
    }
    /* Header más compacto en móvil */
    .location-detail__header {
        padding: 0.8rem 1rem !important;
        min-height: 50px;
    }
    
    .location-detail__title .location-detail__logo {
        height: 2rem !important; /* Logo más pequeño en móvil */
        padding: 0 2.5rem !important;
    }
    
    .location-detail__back-arrow {
        font-size: 2rem !important;
    }
    
    /* Breadcrumbs más compacto */
    .breadcrumb-nav {
        padding: 0.5rem 1.5rem 0 !important;
    }
    
    /* Información compacta más ajustada */
    .location-detail__info--compact {
        margin: 1.5rem 0 1rem 0 !important;
        padding: 0 1rem;
    }
    
    .location-detail__info--compact .location__brand {
        font-size: 2rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .location-detail__info--compact .location__subtitle {
        font-size: 1.1rem !important;
    }
    
    .location-detail__info--compact address {
        font-size: 0.9rem !important;
    }
    
    /* Sección de horario en móvil */
    .location-detail__schedule--events {
        margin: 1.5rem auto !important;
        padding: 0 1rem !important;
    }
    
    .schedule__box {
        padding: 2rem 1.5rem !important;
    }
    
    .schedule__box .schedule__title {
        font-size: 1.8rem !important;
        letter-spacing: 0.2em !important;
    }
    
    .schedule__dots {
        font-size: 1.5rem !important;
    }
    
    .schedule__reservation-btn {
        min-width: 250px !important;
        font-size: 1.1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    /* Información detallada en móvil */
    .location-detail__info--detailed {
        margin: 1.5rem 0 1rem 0 !important;
        padding: 1rem 1rem 0 1rem !important;
    }
    
    .location-detail__info--detailed h4 {
        font-size: 1.2rem !important;
    }
    
    .location-detail__info--detailed .location-detail__image-wrapper {
        width: 45% !important;
        max-width: 200px !important;
        margin-right: -1rem !important; /* Compensa el padding */
    }
    
    .location-detail__info--detailed .location-detail__text {
        width: 50% !important;
    }
    
    .location-detail__info--detailed address {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    /* Contacto más compacto */
    .location-detail__contact {
        margin: 1rem 0 !important;
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }
    
    /* Footer más compacto */
    .location-detail__footer {
        padding-top: 2rem !important;
        margin-top: 2rem !important;
    }
}

/* Ajustes para tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .location-detail__title .location-detail__logo {
        height: 2.8rem;
        max-width: 280px;
    }
    .location-detail__header {
        padding: 1rem 2rem !important;
        min-height: 60px;
    }
    
    .location-detail__title .location-detail__logo {
        height: 2.3rem !important;
        padding: 0 3rem !important;
    }
    
    .location-detail__back-arrow {
        font-size: 2.5rem !important;
    }
    
    /* Breadcrumbs */
    .breadcrumb-nav {
        padding: 0.8rem 2.5rem 0 !important;
    }
    
    .breadcrumb {
        font-size: 0.95rem !important;
    }
    
    /* Información compacta en tablet */
    .location-detail__info--compact {
        margin: 2rem 0 1.2rem 0 !important;
        padding: 0 2rem;
    }
    
    .location-detail__info--compact .location__brand {
        font-size: 2.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .location-detail__info--compact .location__subtitle {
        font-size: 1.5rem !important;
    }
    
    .location-detail__info--compact address {
        font-size: 1.1rem !important;
    }
    
    /* Sección de horario en tablet */
    .location-detail__schedule--events {
        margin: 2.5rem auto !important;
        max-width: 550px !important;
        padding: 0 2rem !important;
    }
    
    .schedule__box {
        padding: 2.8rem 2.5rem !important;
    }
    
    .schedule__box .schedule__title {
        font-size: 2.2rem !important;
        letter-spacing: 0.25em !important;
        margin-bottom: 1.2rem !important;
    }
    
    .schedule__dots {
        font-size: 1.8rem !important;
        letter-spacing: 0.5em !important;
    }
    
    .schedule__reservation-btn {
        min-width: 320px !important;
        font-size: 1.3rem !important;
        padding: 1.1rem 2rem !important;
    }
    
    /* Información detallada en tablet */
    .location-detail__info--detailed {
        margin: 2.5rem 0 1.5rem 0 !important;
        padding: 1.5rem 2rem 0 2rem !important;
    }
    
    .location-detail__info--detailed h4 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .location-detail__info--detailed .location-detail__text {
        width: 52% !important;
    }
    
    .location-detail__info--detailed .location-detail__image-wrapper {
        width: 42% !important;
        max-width: 320px !important;
        margin-top: 0 !important;
        margin-right: -2rem !important;
    }
    
    .location-detail__info--detailed address {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Contacto en tablet */
    .location-detail__contact {
        margin: 1.5rem 0 !important;
        font-size: 1.3rem !important;
        padding: 0 2rem;
        justify-content: center !important;
        order: -1; /* Esto lo mueve antes si el contenedor es flex */
    }
    .location-detail__contact i {
        font-size: 1.2rem;
    }
    
    /* Footer en tablet */
    .location-detail__footer {
        padding-top: 3rem !important;
        margin-top: 2.5rem !important;
    }
    
    .footer__title {
        font-size: 1.8rem !important;
    }
    
    .footer__socials {
        gap: 2.5rem !important;
    }
    
    .footer__social-link {
        font-size: 3rem !important;
    }
    
    .footer__main-logo {
        width: 110px !important;
    }
}

/* Ajustes para desktop */
@media (min-width: 1024px) {
    .location-detail__title .location-detail__logo {
        height: 3rem; /* Ligeramente más grande en desktop */
        max-width: 320px;
    }
}

/* Logo en coming-soon.html (si lo necesitas) */
.coming-soon__title .coming-soon__logo {
    height: 3.5rem;
    max-width: 400px;
    object-fit: contain;
    margin: 0 auto;
}

/* Logo en 404.html (si lo necesitas) */
.error-404__title .error-404__logo {
    height: 4rem;
    max-width: 450px;
    object-fit: contain;
    margin: 0 auto;
}

/* Ajustes para menu.html específicamente */
.pdf-header .location-detail__title .location-detail__logo {
    height: 2.2rem; /* Más compacto para el visor PDF */
    max-width: 220px;
}

/* Fallback para texto si la imagen no carga */
.location-detail__title {
    font-size: 0; /* Oculta cualquier texto de fallback */
    line-height: 1;
    text-align: center;
}

.location-detail__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 1.5rem; /* Añade padding horizontal */
    font-family: var(--font-titulo);
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 1rem 2.5rem 0;
    font-family: var(--font-texto);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--color-texto);
    opacity: 0.7;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--color-texto);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    opacity: 1;
    font-weight: bold;
}

@media (min-width: 768px) {
    .breadcrumb-nav {
        padding: 1rem 4rem 0;
    }
}

.coming-soon .breadcrumb-nav,
.error-404 .breadcrumb-nav {
    padding: 0;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.coming-soon .breadcrumb-nav .breadcrumb-item a,
.error-404 .breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.coming-soon .breadcrumb-nav .breadcrumb-item.active,
.error-404 .breadcrumb-nav .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .coming-soon .breadcrumb-nav,
    .error-404 .breadcrumb-nav {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* =============================================== */
/* --- ESTILOS PARA LAYOUT QR OPTIMIZADO --- */
/* =============================================== */

/* Información compacta para primera vista */
.location-detail__info--compact {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.location-detail__info--compact .location-detail__text {
    width: 100%;
    text-align: center;
}

.location-detail__info--compact .location__brand {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.location-detail__info--compact .location__subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.location-detail__info--compact address {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Información detallada - REDUCCIÓN DE ESPACIOS */
.location-detail__info--detailed {
    margin: 1.5rem 0 1rem 0 !important; /* Reducido aún más */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem !important; /* Reducido */
}

.location-detail__info--detailed h4 {
    margin-bottom: 0.3rem !important; /* Reducido */
    font-size: 1.3rem !important; /* Título más pequeño */
}

.location-detail__info--detailed address {
    line-height: 1.4 !important; /* Compactar líneas */
    margin-bottom: 0 !important;
}

.location-detail__info--detailed .location-detail__text {
    width: 55% !important; /* Menos ancho para compensar imagen más pequeña */
}

.location-detail__info--detailed .location-detail__image-wrapper {
    margin-top: 0 !important; /* Sin margen superior */
    width: 40% !important; /* Imagen más pequeña */
    max-width: 280px !important; /* Tamaño máximo reducido */
}

.location-detail__info--detailed .location-detail__image-wrapper img {
    width: 100%;
    height: auto;
}

/* Estilos para la sección de horario con reservación (eventos privados) */
.location-detail__schedule--events {
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 500px;
    padding: 0 1.5rem;
}

.schedule__box {
    border: 3px solid #EAEAEA;
    padding: 2.5rem 2rem;
    text-align: center;
    background: transparent;
    width: 100%;
}

.schedule__box .schedule__title {
    font-family: var(--font-titulo, 'Courier New', monospace);
    font-size: 2rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    color: #EAEAEA;
}

.schedule__dots {
    font-size: 2rem;
    letter-spacing: 0.5em;
    color: #EAEAEA;
    margin: 0;
    opacity: 0.8;
}

.schedule__reservation-btn {
    display: inline-block;
    min-width: 300px;
    max-width: 400px;
    width: 90%;
    background-color: #B8B8B8;
    color: #2B2B2B;
    border-radius: 50px;
}

@media (min-width: 768px) {
    .location-detail__info--compact {
        margin: 2rem 0 1.5rem 0;
    }

    .location-detail__info--detailed {
        margin: 2.5rem 0 2rem 0; /* Ajuste para tablet */
        padding-top: 2rem;
    }

    .schedule__box {
        padding: 3rem 3rem;
    }

    .schedule__reservation-btn {
        min-width: 350px;
    }
}

/* Contacto inline dentro de la info compacta */
.location-detail__contact--inline {
    margin: 0.8rem 0 0 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important; /* Cambiado de center a flex-start */
    font-size: 1rem !important;
    gap: 0.5rem !important;
}

@media (max-width: 767px) {
    /* ... tus reglas existentes ... */
    
    .location-detail__contact--inline {
        justify-content: center !important; /* Centrado en móvil */
        font-size: 0.95rem !important;
        margin: 0.6rem 0 0 0 !important;
    }
}

/* =============================================== */
/* --- TABLET HORIZONTAL Y DESKTOP (1024px+) --- */
/* =============================================== */
@media (min-width: 1024px) {
    /* Header en desktop */
    .location-detail__header {
        padding: 1.2rem 3rem !important;
        min-height: 70px;
    }
    
    .location-detail__title .location-detail__logo {
        height: 2.5rem !important;
        padding: 0 4rem !important;
    }
    
    .location-detail__back-arrow {
        font-size: 2.8rem !important;
        left: 2rem !important;
    }
    
    /* Breadcrumbs en desktop */
    .breadcrumb-nav {
        padding: 1rem 3rem 0 !important;
    }
    
    /* Información compacta en desktop */
    .location-detail__info--compact {
        margin: 2.5rem 0 1.5rem 0 !important;
        padding: 0 3rem;
    }
    
    .location-detail__info--compact .location__brand {
        font-size: 3.2rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .location-detail__info--compact .location__subtitle {
        font-size: 1.8rem !important;
    }
    
    .location-detail__info--compact address {
        font-size: 1.2rem !important;
    }
    
    .location-detail__contact--inline {
        font-size: 1.2rem !important;
        margin: 1rem 0 0 0 !important;
    }
    
    /* Sección de horario en desktop */
    .location-detail__schedule--events {
        margin: 3rem auto !important;
        max-width: 600px !important;
        padding: 0 3rem !important;
    }
    
    .schedule__box {
        padding: 3.5rem 3rem !important;
    }
    
    .schedule__box .schedule__title {
        font-size: 2.5rem !important;
        letter-spacing: 0.3em !important;
        margin-bottom: 1.5rem !important;
    }
    
    .schedule__dots {
        font-size: 2rem !important;
    }
    
    .schedule__reservation-btn {
        min-width: 350px !important;
        font-size: 1.4rem !important;
        padding: 1.2rem 2.5rem !important;
    }
    
    /* Información detallada en desktop */
    .location-detail__info--detailed {
        margin: 3rem 0 2rem 0 !important;
        padding: 2rem 3rem 0 3rem !important;
    }
    
    .location-detail__info--detailed h4 {
        font-size: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .location-detail__info--detailed .location-detail__text {
        width: 50% !important;
    }
    
    .location-detail__info--detailed .location-detail__image-wrapper {
        width: 45% !important;
        max-width: 350px !important;
        margin-right: -3rem !important;
    }
    
    .location-detail__info--detailed address {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Footer en desktop */
    .location-detail__footer {
        padding-top: 4rem !important;
        margin-top: 3rem !important;
    }
    
    .footer__title {
        font-size: 2rem !important;
    }
    
    .footer__socials {
        gap: 3rem !important;
    }
    
    .footer__social-link {
        font-size: 3.5rem !important;
    }
    
    .footer__main-logo {
        width: 120px !important;
    }
}

/* =============================================== */
/* --- FIX PARA BOTONES DE DROPDOWN --- */
/* =============================================== */

.location-detail__actions--priority {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.5rem;
    margin: 2rem 0;
}

.menu-dropdown {
    position: relative;
    flex: 1;
    max-width: 350px; /* Mismo tamaño que el botón de reservación */
}

/* Botón de reservación también flex para igualar tamaño */
.location-detail__actions--priority > .location-detail__button {
    flex: 1;
    max-width: 350px;
}

.location-detail__button {
    width: 100%;
}

/* Dropdown content */
.menu-dropdown__content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* 20% más pequeño que el botón padre */
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Sub-botones del dropdown 20% más pequeños */
.menu-dropdown__item {
    width: 100% !important;
    font-size: 1.12rem !important; /* 20% menos de 1.4rem */
    padding: 0.96rem 1.6rem !important; /* 20% menos del padding original */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50px !important; /* Bordes redondeados igual que botones principales */
}

/* Responsive para tablet */
@media (min-width: 768px) {
    .location-detail__actions--priority {
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .menu-dropdown,
    .location-detail__actions--priority > .location-detail__button {
        max-width: 350px;
    }
    
    .menu-dropdown__item {
        font-size: 1.12rem !important;
        padding: 0.88rem 1.76rem !important; /* Ajuste proporcional para tablet */
    }
}

/* Responsive para móvil - mantener vertical */
@media (max-width: 767px) {
    .location-detail__actions--priority {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-dropdown,
    .location-detail__actions--priority > .location-detail__button {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================== */
/* --- FRASES DECORATIVAS --- */
/* =============================================== */

/* Frase sobre el título - POSICIÓN ABSOLUTA */
.hero__phrase-overlay {
    position: absolute;
    width: auto;
    height: auto;
    z-index: 20;
    opacity: 0.9;
    max-width: 90%;
}


/* Frase sobre los botones en páginas de detalle */
.detail__phrase-overlay {
    display: block;
    width: 320px;
    height: auto;
    margin: 1.5rem auto 1rem auto;
    opacity: 0.9;
    z-index: 5;
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .hero__phrase-overlay {
        max-width: min(280px, 85vw);
        top: 48%; /* Cambiado de 43% a 48% - bajamos 5% */
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* También ajustamos el content-wrapper para compensar */
    .hero__content-wrapper {
        margin-top: 26rem; /* Aumentado de 24rem a 26rem */
    }
    
    .detail__phrase-overlay {
        width: 260px;
        margin: 1rem auto 0.5rem auto;
    }
}

/* Responsive para tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero__phrase-overlay {
        max-width: 380px;
        top: 38%;
        left: 50%;
        transform: translateX(-50%);
    }
    .detail__phrase-overlay {
        width: 350px;
        margin: 2rem auto 1.5rem auto;
    }
}

/* Responsive para desktop */
@media (min-width: 1024px) {
    /* Subimos el título */
    .hero__title {
        font-size: 6rem;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Posicionamos la frase */
    .hero__phrase-overlay {
        max-width: 450px;
        top: 36%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Bajamos más el content-wrapper para crear espacio */
    .hero__content-wrapper {
        margin-top: 4rem; /* Aumentado de 2.5rem a 4rem */
    }

    .detail__phrase-overlay {
        width: 400px;
        margin: 2.5rem auto 2rem auto;
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1440px) {
    .hero__phrase-overlay {
        max-width: 480px;
        top: 37%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero__content-wrapper {
        margin-top: 4.5rem; /* Un poco más de espacio en pantallas grandes */
    }
}