/* ==========================================================================
   ESTILOS DE CONTENIDO Y PÁGINAS INTERNAS (Estilo Index del Congreso)
   XXVII Congreso Internacional de Antropología Gnóstica 2027
   ========================================================================== */

/* Banner de Cabecera Interna (Estilo Welcome Section del Index) */
.page-hero-banner {
    background: linear-gradient(135deg, rgba(255, 170, 20, 0.22) 0%, rgba(15, 23, 42, 0.78) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 170, 20, 0.45);
    color: #FFFFFF;
    padding: 2rem 2.2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 140, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.banner-logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255, 195, 20, 0.8)) drop-shadow(0 0 35px rgba(225, 80, 5, 0.55));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.banner-logo:hover {
    transform: scale(1.08);
}

.banner-text h1 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.banner-text h1 .text-gold {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-text p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 650px;
}

.banner-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   HOTELES: TARJETAS Y TABLA DE TARIFAS
   ========================================================================== */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hotel-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.35);
}

.hotel-card-header {
    background: var(--bg-card-header);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hotel-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
}

.hotel-tag {
    background: var(--gold-gradient);
    color: #030713;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.hotel-body {
    padding: 1.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-price-box {
    background: rgba(3, 7, 19, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 1.4rem;
    text-align: center;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
}

.price-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.hotel-features {
    list-style: none;
    margin-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.hotel-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hotel-features li span.check {
    color: #10B981;
    font-weight: bold;
}

/* Tablas con diseño moderno oscuro */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--gold-border);
    background: var(--bg-card);
    margin: 1.5rem 0 2.5rem;
    box-shadow: var(--shadow-card);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(3, 7, 19, 0.6);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.styled-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.styled-table thead tr {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-bottom: 2px solid var(--gold-border);
}

.styled-table th {
    padding: 1.1rem 1.2rem;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.styled-table td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}

.styled-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   NOTAS Y ALERTAS (Estilo informativo oficial)
   ========================================================================== */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.notice-card {
    background: var(--bg-card);
    border-left: 4px solid var(--gold-primary);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    border-right: 1px solid rgba(245, 158, 11, 0.25);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.notice-card.featured,
.notice-card-featured {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}

.notice-card.featured::after,
.notice-card-featured::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background: url('../images/logo_dorado_fuego_perfecto.png') no-repeat center center;
    background-size: contain;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.notice-card.featured > *,
.notice-card-featured > * {
    position: relative;
    z-index: 1;
}

.notice-featured-columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .notice-featured-columns {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
}

.notice-callout-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 3px solid #F59E0B;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.notice-icon {
    font-size: 1.4rem;
}

.notice-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
}

.notice-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* ==========================================================================
   FECHAS: LÍNEA DE TIEMPO Y CRONOGRAMA
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 860px;
    margin: 2rem auto;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 3px;
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 50%, rgba(245, 158, 11, 0.2) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 17px;
    height: 17px;
    background: var(--gold-gradient);
    border: 3px solid #030713;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--gold-light);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-block;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-light);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVO INTERNO
   ========================================================================== */
@media (max-width: 768px) {
    .page-hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem 1.2rem;
    }
    
    .banner-left {
        flex-direction: column;
    }
    
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .timeline-container {
        padding-left: 1.8rem;
    }
    
    .timeline-dot {
        left: -1.8rem;
    }
}

/* ==========================================================================
   TARJETAS DE SIGNIFICADOS DEL EMBLEMA (2 Columnas)
   ========================================================================== */
.emblem-meanings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    margin-bottom: 2rem;
}

.meaning-card {
    background: rgba(3, 7, 19, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.meaning-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

.meaning-card.gold-card {
    border-left: 4px solid #F59E0B;
}

.meaning-card.green-card {
    border-left: 4px solid #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

.meaning-card.blue-card {
    border-left: 4px solid #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

.meaning-card.yellow-card {
    border-left: 4px solid #FCD34D;
    border-color: rgba(252, 211, 77, 0.3);
}

.meaning-title {
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.meaning-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 680px) {
    .emblem-meanings-grid {
        grid-template-columns: 1fr;
    }
}

/* Distribución del Emblema: Exactamente 2 Columnas (Sin columna en blanco) */
.emblem-showcase-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

@media (max-width: 1080px) {
    .emblem-showcase-layout {
        grid-template-columns: 320px 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 860px) {
    .emblem-showcase-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tres Factores de la Revolución Interior: 3 columnas exactas */
.three-factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

@media (max-width: 860px) {
    .three-factors-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ESTILOS DE PÁGINA DE CONTACTO E INFORMACIÓN
   ========================================================================== */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.25);
}

.contact-card.featured-whatsapp {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.contact-card.featured-whatsapp:hover {
    border-color: #34D399;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.3);
}

.contact-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
}

.contact-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.contact-card-value {
    color: var(--gold-light);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    word-break: break-word;
}

.contact-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

/* Formulario de Contacto */
.contact-form-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.45rem;
    letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(3, 7, 19, 0.85);
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
    background: rgba(15, 23, 42, 0.95);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TABLA DINÁMICA DE HOTELES (Comparativa Interactiva Oficial)
   ========================================================================== */
.dynamic-table-toolbar {
    background: rgba(3, 7, 19, 0.75);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 600px) {
    .dynamic-table-toolbar {
        padding: 1rem 0.8rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.dyn-control-group {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.dyn-control-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
}

.dyn-nights-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.dyn-stepper-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.dyn-stepper-group input {
    width: 65px;
    height: 38px;
    text-align: center;
    background: #030713;
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--font-heading);
}

.dyn-stepper-group input:focus {
    border-color: var(--gold-light);
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.dyn-quick-nights-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
    flex-grow: 1;
}

.btn-stepper {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    width: 36px;
    height: 38px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-stepper:hover {
    background: var(--gold-light);
    color: #030713;
    border-color: var(--gold-light);
    transform: scale(1.05);
}

.btn-quick-night {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.42rem 0.55rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-weight: 600;
    flex: 1 0 auto;
    text-align: center;
    min-width: 32px;
}

.btn-quick-night:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border-color: var(--gold-border);
}

.btn-quick-night.active-quick {
    background: rgba(245, 158, 11, 0.25);
    border-color: var(--gold-light);
    color: var(--gold-light);
    font-weight: 700;
}

.dyn-guests-group {
    display: flex;
    gap: 0.35rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .dyn-guests-group {
        flex-direction: column;
    }
}

.btn-guest-pill {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.4rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.btn-guest-pill:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border-color: var(--gold-border);
}

.btn-guest-pill.active {
    border-color: var(--gold-light);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.dyn-filter-input {
    width: 100%;
    height: 38px;
    padding: 0 0.85rem;
    background: #030713;
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    font-size: 0.88rem;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dyn-filter-input:focus {
    border-color: var(--gold-light);
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.sortable-th {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sortable-th:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #FFFFFF !important;
}

.sortable-th .sort-icon {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sortable-th.active-sort .sort-icon {
    opacity: 1;
    color: var(--gold-light);
    font-weight: bold;
}

.table-row-selected {
    background: rgba(245, 158, 11, 0.12) !important;
    border-left: 3px solid var(--gold-light);
}

.btn-quote-row {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-quote-row:hover {
    background: var(--gold-light);
    color: #030713;
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.price-change-anim {
    animation: priceFlash 0.35s ease-in-out;
}

@keyframes priceFlash {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); color: #FCD34D; }
    100% { transform: scale(1); opacity: 1; }
}

#dynamicTableFooterSummary {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* ==========================================================================
   CALENDARIO DE ARRIBO Y SALIDA (Planificador de Fechas del Congresista)
   ========================================================================== */
.calendar-planner-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 19, 0.95) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .calendar-planner-box {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        margin-bottom: 2rem;
    }
}

.cal-planner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
    width: 100%;
    box-sizing: border-box;
}

.cal-planner-title-block {
    flex: 1 1 340px;
    min-width: 0;
}

.cal-nights-widget {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.1rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cal-nights-widget {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
    }
}

.calendar-presets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-cal-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.btn-cal-preset:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border-color: var(--gold-border);
}

.btn-cal-preset.active-preset {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: var(--gold-light);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.calendar-inputs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 950px) {
    .calendar-inputs-row {
        grid-template-columns: 1fr 1fr;
    }
    .calendar-inputs-row .calendar-input-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .calendar-inputs-row {
        grid-template-columns: 1fr;
    }
}

.calendar-input-group {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.calendar-input-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.calendar-input-field {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: #030713;
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.calendar-input-field:focus {
    border-color: var(--gold-light);
    outline: none;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Grilla visual del mes */
.cal-month-view {
    background: rgba(3, 7, 19, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .cal-month-view {
        padding: 0.9rem 0.75rem;
    }
}

.cal-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.cal-month-legend {
    display: flex;
    gap: 0.8rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Contenedor scrolleable responsivo para la grilla de días */
.cal-grid-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    box-sizing: border-box;
}

.cal-grid-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.cal-grid-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(3, 7, 19, 0.6);
    border-radius: 4px;
}
.cal-grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 4px;
}
.cal-grid-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    min-width: 580px;
    box-sizing: border-box;
}

.cal-weekday-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.cal-day-cell {
    position: relative;
    padding: 0.55rem 0.2rem;
    min-height: 54px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.cal-day-cell:hover:not(.empty-day) {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.cal-day-cell.empty-day {
    opacity: 0.2;
    cursor: default;
    background: transparent;
    border: none;
}

.cal-day-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.cal-day-tag {
    font-size: 0.62rem;
    margin-top: 2px;
    line-height: 1.1;
    border-radius: 3px;
    padding: 1px 4px;
    text-align: center;
    max-width: 95%;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
}

.cal-day-cell.day-checkin {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.35) 100%) !important;
    border-color: #34D399 !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.cal-day-cell.day-checkin .cal-day-num {
    color: #A7F3D0;
}

.cal-day-cell.day-checkout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(220, 38, 38, 0.35) 100%) !important;
    border-color: #F87171 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.cal-day-cell.day-checkout .cal-day-num {
    color: #FECACA;
}

.cal-day-cell.day-in-range {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.cal-day-cell.day-in-range .cal-day-num {
    color: var(--gold-light);
}

.cal-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.cal-info-item {
    background: rgba(3, 7, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    min-width: 0;
    box-sizing: border-box;
}

.cal-info-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ==========================================================================
   CAJA DE ATENCIÓN A DELEGACIONES Y CONGRESISTAS
   ========================================================================== */
.delegation-support-card {
    margin-bottom: 3rem;
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.delegation-support-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.delegation-support-info {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 100%;
}

.delegation-support-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-delegation-wa {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border: 1px solid #34D399 !important;
    color: #FFFFFF !important;
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

.btn-delegation-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.btn-delegation-email {
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    color: var(--gold-light) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    padding: 0.8rem 1.25rem;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: center;
}

.btn-delegation-email:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: var(--gold-light) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .delegation-support-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .btn-delegation-wa,
    .btn-delegation-email {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.86rem;
    }
}


