/* styles.css - GARANA Complejo Deportivo */
:root {
    --primary-color: #FFFFFF;
    --accent-color: #10B981;
    --secondary-color: #1E293B;
    --price-color: #FFFFFF;
    --dark-bg: #0F172A;
    --text-light: #f1f5f9;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.7);
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --color-fondo-tarjeta: rgba(30, 41, 59, 0.7);
    --color-fondo-modal: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-height: 60px;
    --logo-max-height: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--fondo-pagina-url, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* HEADER */
#mainHeader {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--header-bg, #0F172A);
    box-shadow: var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}
#logoHeader {
    max-height: var(--logo-max-height);
    width: auto;
    object-fit: contain;
}

/* CARRUSEL DE ACCIONES (CHIPS) */
.actions-carousel-container {
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.actions-carousel-container::-webkit-scrollbar { display: none; }
.actions-carousel {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    width: max-content;
}
.action-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-fondo-tarjeta);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.action-chip i { font-size: 1.1rem; color: var(--primary-color); }

/* CARRUSEL DE BANNERS (1080x1350) */
.banners-section {
    padding: 16px 0;
    position: relative;
}
.banners-carousel {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.banners-carousel::-webkit-scrollbar { display: none; }
.banner-item {
    flex: 0 0 80%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.banner-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.banners-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.banner-indicator {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.banner-indicator.active {
    width: 18px;
    background: var(--primary-color);
}

/* TÍTULOS */
.section-title {
    font-size: 1.6rem;
    margin: 20px 16px 16px;
    color: var(--text-light);
    font-weight: 600;
}

/* GRID DE LOGOS */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 0 16px 30px;
}
.logo-item {
    aspect-ratio: 1 / 1;
    background: var(--color-fondo-tarjeta);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;                    
    cursor: pointer;
    overflow: hidden;              
}

.logo-item:hover { transform: scale(0.98); }
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;             
    border-radius: 20px;          
}

/* PERFIL DE LOCAL */
.profile-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--header-bg, #0F172A);
    position: sticky;
    top: 0;
    z-index: 90;
    gap: 16px;
}
.back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-header-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.profile-content {
    padding: 20px 16px 30px;
}
.profile-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    background: var(--secondary-color);
}
.profile-description {
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}
.profile-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.hours-badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
}
.hours-text {
    color: rgba(255,255,255,0.8);
}
.profile-section-title {
    font-size: 1.3rem;
    margin: 24px 0 16px;
    color: var(--primary-color);
}

/* CARRUSEL DE DESTACADOS */
.featured-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-card {
    flex: 0 0 160px;
    background: var(--color-fondo-tarjeta);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}
.featured-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}
.featured-info {
    padding: 10px;
}
.featured-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.featured-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    line-height: 1.3;
}
.featured-price {
    font-weight: bold;
    color: var(--price-color);
    font-size: 0.9rem;
}

/* BOTONES DE MENÚ */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}
.menu-button.primary {
    background: #3B82F6;
    color: white;
}
.menu-button.whatsapp {
    background: #25D366;
    color: white;
}
.menu-button.full-width {
    width: 100%;
    margin-top: 16px;
}
.menu-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin-bottom: 16px;
}
.menu-image-container {
    flex: 0 0 280px;           /* Un poco más ancho */
    height: auto;               /* Altura automática */
    min-height: 380px;          /* Altura mínima más grande */
    max-height: 500px;          /* Altura máxima para no ser eterno */
    border-radius: 16px;
    overflow: hidden;
    background: var(--secondary-color); /* Fondo por si la imagen tarda en cargar */
}
.menu-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}
.modal-content {
    background: var(--color-fondo-modal);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 450px;
    margin: 50px auto;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--glass-border);
}
.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}
.modal-body { padding: 25px; }
.modal-logo {
    height: 60px;
    display: block;
    margin: 0 auto 20px;
}
.modal-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.hours-text {
    text-align: center;
    line-height: 1.8;
}

/* GALERÍA */
.gallery-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}
.gallery-img {
    flex: 0 0 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* FOOTER */
.site-footer {
    background: var(--color-fondo-modal);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    padding: 15px;
    text-align: center;
}
.copyright-text { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.powered-by { color: rgba(255,255,255,0.8); }
.gastroredes-link { color: var(--accent-color); font-weight: bold; text-decoration: none; }