/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ESTILOS PREMIUM - INVITACIÃ“N CABALLERÃA
   Paleta: Azul Marino, Blanco, Plata
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
    --navy-deep: #050b18;
    --navy-primary: #0a1e3d;
    --navy-light: #16325c;
    --white: #ffffff;
    --silver: #f8f9fa;
    --silver-dark: #cbd5e0;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    /* Aumentado de 0.04 para mÃ¡s presencia */
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Aumentado de 0.1 */
    --shadow-glow: rgba(255, 255, 255, 0.15);
    --red-military: #8b0000;
}

/* READING PROGRESS BAR */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.1);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
    width: 0%;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.1s ease;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050b18;
    color: var(--silver);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* AnimaciÃ³n de RespiraciÃ³n: Azul -> Gris -> Blanco (suave) */
    animation: breathingBG 18s ease-in-out infinite;
    background-attachment: fixed;
}

@keyframes breathingBG {
    0% {
        background-color: #050b18;
    }

    /* Azul Marino */
    33% {
        background-color: #1c1c1c;
    }

    /* Gris Carbón */
    66% {
        background-color: #2c3e50;
    }

    /* Azul Grisáceo (Blanco en contexto nocturno) */
    100% {
        background-color: #050b18;
    }

    /* Regresa al Azul */
}

h1,
h2,
h3,
.font-military {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* â”€â”€â”€ NAV HEADER â”€â”€â”€ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1000;
    background: rgba(5, 11, 24, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(214, 175, 55, 0.3);
    /* LÃ­nea dorada sutil */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.6s ease;
}

.nav-header.scrolled::after {
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.5rem;
}

.nav-motto-elegant {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    /* Aumentado para el hero */
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-motto-container {
    margin-top: 30px;
    z-index: 20;
    text-align: center;
}

.nav-right {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: rgba(214, 175, 55, 0.1);
    border: 1px solid rgba(214, 175, 55, 0.3);
    color: var(--gold);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
        gap: 4px;
    }
}

.nav-btn:hover {
    background: rgba(214, 175, 55, 0.2);
    color: var(--white);
    border-color: var(--gold);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.lang-toggle {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 45px;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.3);
}

.nav-btn.playing i {
    animation: soundPulse 1.5s infinite ease-in-out;
}

@keyframes soundPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap 0 porque usamos padding y separadores */
}

/* RESPONSIVIDAD MAPA DE MESAS */
#seating-section,
#comedor-section {
    max-width: 2000px;
    padding: 60px 20px;
    margin: 0 auto;
    flex: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#seating-section.hidden,
#comedor-section.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px);
    visibility: hidden !important;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-btn {
    font-size: 1.2rem;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* INSTRUCTIONS SECTION */
#instructions-section {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 11, 24, 0.85);
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

#instructions-section.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.instructions-card {
    background: rgba(10, 30, 61, 0.95);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    text-align: center;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#instructions-section.hidden .instructions-card {
    transform: scale(0.9);
}

.instructions-card header {
    margin-bottom: 25px;
}

.instructions-card .main-icon {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--gold);
    margin-bottom: 15px;
}

.instructions-card h2 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.instructions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.instruction-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.instruction-item i {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--gold);
    width: 30px;
    text-align: center;
}

.instruction-item p {
    font-size: clamp(0.95rem, 1.5vw, 1.5rem);
    color: #ccc;
    margin: 0;
}

.instructions-card .close-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 12px 40px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.instructions-card .close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 480px) {
    .instructions-card {
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 15px;
    }

    .instructions-card .main-icon {
        margin-bottom: 5px;
    }

    .instructions-card h2 {
        margin-bottom: 15px;
    }

    .instructions-grid {
        gap: 8px;
        margin-bottom: 20px;
    }

    .instruction-item {
        padding: 10px;
        gap: 12px;
    }

    .instruction-item i {
        font-size: 1.2rem;
        width: 20px;
    }

    .instruction-item p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .instructions-card .close-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

#seating-section #scrollShadow {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(to left, rgba(5, 11, 24, 0.7), transparent);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 10;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 768px) {

    #seating-section,
    #comedor-section {
        padding: 85px 0px 40px 0px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    #seating-section {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    #seating-section .section-title {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    #seating-section .section-title::after {
        margin: 5px auto;
        width: 80px;
    }

    #seating-section iframe {
        height: 95vh;
        border-radius: 0;
    }
}

/* Estilos migrados desde HTML */

/* --- ESTILOS CROQUIS TRIBUNA (Merged from index.html) --- */
#seating-section,
#comedor-section {
    --primary-color: #050b18;
    --accent-color: #d4af37;
    --bg-color: #050b18;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #f8f9fa;
    --highlight-color: rgba(212, 175, 55, 0.8);
    --active-color: #d4af37;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    padding: 50px 20px 60px;
    background: transparent;
    color: var(--text-color);
    width: 100%;
    position: relative;
    z-index: 10;
}

#seating-section .main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#seating-section .sticky-header {
    width: 100%;
    max-width: 1800px;
    background-color: transparent;
    z-index: 500;
    padding: 0 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    margin: 0 auto 20px;
    border-radius: 15px;
}

.nav-content-centered {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    margin: 0 auto;
}

#seating-section #scrollArea {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#seating-section header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
    padding-top: 0;
}

#seating-section h1 {
    color: var(--accent-color);
    font-size: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

#seating-section h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

#seating-section .room-container {
    width: 100%;
    max-width: 1700px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#seating-section .map-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

#seating-section .tribuna-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

#seating-section .tribuna-shape {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: clamp(0.7rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(214, 175, 55, 0.3);
    padding: 12px 8px;
    text-align: center;
    min-height: 50px;
    flex: 1;
}

@media (max-width: 480px) {
    #seating-section .tribuna-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    #seating-section .tribuna-shape {
        padding: 6px 4px;
        min-height: 40px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    #seating-section .sticky-header {
        padding: 5px 5px 0;
    }

    #seating-section h1 {
        margin-bottom: 5px;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    #seating-section h1::after {
        height: 2px;
        bottom: -4px;
        width: 30px;
    }

    #seating-section .room-container {
        padding: 8px 5px;
        margin-bottom: 5px;
        background: transparent;
        box-shadow: none;
    }

    #seating-section .map-title {
        display: none;
    }

    #seating-section .search-container {
        margin: 5px 0 8px;
    }

    #seating-section #searchInput {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

#seating-section .tribuna-shape.central {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

#seating-section .tribuna-shape:hover,
#seating-section .tribuna-shape.active {
    transform: translateY(-3px);
    background-color: rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

#seating-section .map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 5px 0;
    height: auto;
}

#seating-section .seating-container {
    width: 100%;
    overflow-x: auto;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

#seating-section #scrollShadow {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(to left, var(--bg-color), transparent);
    pointer-events: none;
    opacity: var(--shadow-opacity, 1);
    transition: opacity 0.3s;
    z-index: 10;
    border-radius: 0 12px 12px 0;
}

#seating-section .seating-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

#seating-section .seating-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

#seating-section .seating-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 10px;
}

#seating-section .stairs-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    opacity: 0.6;
}

#seating-section .step-bar {
    height: 3px;
    width: 24px;
    background: var(--accent-color);
    border-radius: 1px;
}

#seating-section .seat-grid {
    display: grid;
    gap: 6px;
    margin: 0 auto;
    width: max-content;
    padding: 5px;
}

#seating-section .row-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: bold;
}

#seating-section .seat {
    width: clamp(35px, 2.5vw, 55px);
    height: clamp(35px, 2.5vw, 55px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 2px 2px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7rem, 0.8vw, 1rem);
    color: rgba(255, 255, 255, 0.4);
}

#seating-section .spacer {
    width: clamp(35px, 2.5vw, 55px);
    height: clamp(35px, 2.5vw, 55px);
}

#seating-section .seat.occupied {
    cursor: pointer;
}

#seating-section .seat.selected {
    background: var(--accent-color) !important;
    color: #000 !important;
    border-bottom: 3px solid #f5e0a3;
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 5;
    transform: scale(1.05);
}

#seating-section .seat.occupied:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
    z-index: 2;
}

#seating-section .seat.highlighted-search {
    background: #fff;
    color: #000;
    border-bottom: 3px solid #ccc;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
    z-index: 10;
    animation: pulse-seat 1.5s infinite;
}

@keyframes pulse-seat {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

#seating-section .search-container {
    width: 100%;
    max-width: 800px;
    margin: 30px 0 10px;
    padding: 0 10px;
}

#seating-section .search-wrapper {
    position: relative;
    width: 100%;
}

#seating-section .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.1rem;
    opacity: 0.8;
    pointer-events: none;
}

#seating-section #searchInput {
    width: 100%;
    padding: 14px 25px 14px 50px;
    font-size: clamp(0.95rem, 1.5vw, 1.4rem);
    border-radius: 50px;
    border: 1px solid rgba(214, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    outline: none;
    transition: all 0.3s ease;
}

#seating-section #searchInput::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

#seating-section #searchInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#seating-section #results {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 10px 10px 100px;
}

#seating-section .guest-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

#seating-section .guest-info h3 {
    font-size: clamp(0.95rem, 1.5vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}

#seating-section .guest-info p {
    font-size: 0.8rem;
    color: #ccc;
}

#seating-section .tooltip {
    position: fixed;
    background: rgba(10, 30, 61, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 2000;
    border: 1px solid var(--accent-color);
    transform: translate(-50%, -120%);
}

#seating-section .tooltip.show {
    opacity: 1;
    visibility: visible;
}

#seating-section .tooltip strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 2px;
}

/* ----- ESTILOS DEL COMEDOR ----- */
#comedor-section .room-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 100%;
    max-width: 1800px;
    aspect-ratio: 9 / 5;
    gap: 30px;
    padding: 5px;
    position: relative;
    margin: 0 auto;
}

#comedor-section .table-shape {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--silver);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.8rem, 2.5vw, 1.8rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    border: 1px solid rgba(214, 175, 55, 0.3);
}

#comedor-section .table-shape:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--gold);
    color: white;
    z-index: 20;
}

#comedor-section .table-shape.mesa-principal {
    border-radius: 4px;
    aspect-ratio: auto;
    height: 100%;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: white;
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    font-weight: 800;
    text-align: center;
    padding: 2px;
    grid-column: span 3;
    letter-spacing: 1px;
}

#comedor-section .table-shape.active,
#comedor-section .table-shape.highlight {
    background: var(--gold) !important;
    color: white;
    transform: scale(1.15);
    animation: pulseGold 2s infinite linear;
    z-index: 10;
}

@keyframes pulseGold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

#comedor-section .category-banner {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    color: var(--gold);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: left;
    margin: 30px auto 0;
    width: 95%;
    max-width: 800px;
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

#comedor-section .category-banner span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

#comedor-section .table-badge {
    flex: 1;
    position: relative;
    margin-bottom: 25px;
    perspective: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#comedor-section .table-top {
    background-color: var(--gold);
    color: white;
    padding: 4px 16px;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: rotateX(25deg);
    box-shadow: 0 3px 0 #a6813d, 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    min-width: 90px;
}

#comedor-section .table-top::before,
#comedor-section .table-top::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 3px;
    height: 25px;
    background-color: var(--gold);
    z-index: -1;
}

#comedor-section .table-top::before {
    left: 4px;
    box-shadow: 6px -1px 0 0 #a6813d;
    border-radius: 0 0 1px 1px;
}

#comedor-section .table-top::after {
    right: 4px;
    box-shadow: -6px -1px 0 0 #a6813d;
    border-radius: 0 0 1px 1px;
}

@media (max-width: 768px) {
    #comedor-section .room-grid {
        gap: 20px;
    }

    #comedor-section .table-shape {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #comedor-section .room-grid {
        gap: 4px;
    }

    #comedor-section .table-shape {
        font-size: 0.65rem;
    }

    #comedor-section .table-badge {
        align-self: center;
        width: auto;
        min-width: 60px;
        margin-bottom: 20px;
    }
}

/* --- ESTILOS ESTRUCTURALES Y DE BUSCADOR PARA COMEDOR (Standarizados con Tribuna) --- */
#comedor-section .main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#comedor-section .sticky-header {
    width: 100%;
    max-width: 1000px;
    background-color: transparent;
    z-index: 500;
    padding: 0 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    margin: 0 auto 20px;
    border-radius: 15px;
}

#comedor-section header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
    padding-top: 0;
}

#comedor-section h1 {
    color: var(--accent-color);
    font-size: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

#comedor-section h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

#comedor-section .room-container {
    width: 100%;
    max-width: 1700px;
    background: transparent;
    padding: 0 !important;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#comedor-section .room-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 9 / 5;
    gap: 30px;
    padding: 25px;
    position: relative;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#comedor-section .map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 5px 0;
    height: auto;
}

#comedor-section .search-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px 0 10px;
    padding: 0 10px;
}

#comedor-section .search-wrapper {
    position: relative;
    width: 100%;
}

#comedor-section .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.1rem;
    opacity: 0.8;
    pointer-events: none;
}

#comedor-section #searchInputComedor {
    width: 100%;
    padding: 14px 25px 14px 50px;
    font-size: clamp(0.95rem, 1.5vw, 1.4rem);
    border-radius: 50px;
    border: 1px solid rgba(214, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    outline: none;
    transition: all 0.3s ease;
}

#comedor-section #searchInputComedor::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

#comedor-section #searchInputComedor:focus {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#comedor-section #scrollAreaComedor {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#comedor-section #resultsComedor {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 10px 10px 100px;
}

#comedor-section .guest-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

#comedor-section .guest-info h3 {
    font-size: clamp(0.95rem, 1.5vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}

#comedor-section .guest-info p {
    font-size: 0.8rem;
    color: #ccc;
}

@media (max-width: 480px) {
    #comedor-section {
        padding: 85px 0 40px 0 !important;
    }

    #comedor-section .room-container {
        padding: 0 8px !important;
        margin: 0 auto 15px;
        width: 100%;
        max-width: 100%;
    }

    #comedor-section .map-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }

    #comedor-section .room-grid {
        padding: 10px 4px !important;
        gap: 8px !important;
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    #comedor-section .table-shape {
        font-size: 0.65rem;
    }

    #comedor-section h1 {
        margin-bottom: 5px;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    #comedor-section .sticky-header {
        padding: 0 0 10px !important;
    }
}
