/* =====================================================
   TEATRO.CSS - Sistema Unificado v2.1
   Optimizado para Grid, sin solapamientos
   Marca: tokens KV de Sala101 (assets/css/sala101-theme.css)
   ===================================================== */

@import url('/assets/css/sala101-theme.css');

/* Importar estilos del menú centralizado */
/* @import url('centralized_menu.css'); */

/* =====================================================
   VARIABLES CSS (alias del KV; fallback hex si el tema no carga)
   ===================================================== */

:root {
    --color-primario: var(--kv-morado-oscuro-1, #500028);
    --color-primario-oscuro: var(--kv-morado-oscuro-2, #280014);
    --color-secundario: var(--kv-azul-oscuro-2, #00143c);
    --color-acento: var(--kv-morado-medio, #8c003c);

    --color-exito: var(--kv-azul-medio, #003c78);
    --color-advertencia: var(--kv-morado-claro, #a00050);
    --color-error: var(--kv-morado-oscuro-1, #500028);
    --color-info: var(--kv-azul-medio, #003c78);

    --texto-primario: var(--text-color, #2c2c2c);
    --texto-secundario: var(--text-light, #555);
    --texto-claro: #ffffff;
    --texto-silenciado: var(--text-light, #555);

    --fondo-primario: #ffffff;
    --fondo-secundario: var(--secondary-color, #f0f0f0);
    --fondo-oscuro: var(--kv-morado-oscuro-2, #280014);
    --fondo-hover: var(--border-color, #e0e0e0);

    --borde-color: var(--border-color, #e0e0e0);
    --sombra: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
    --sombra-hover: 0 2px 8px rgba(80, 0, 40, 0.15);
    --sombra-xl: 0 4px 16px rgba(80, 0, 40, 0.20);
    
    /* Radios */
    --radio-sm: 4px;
    --radio-md: 6px;
    --radio-lg: 8px;
    
    /* Tipografía */
    --fuente-principal: var(--font-cuerpo, 'Inter', sans-serif);
    --fuente-titulo: var(--font-titulo, 'Ethnocentric', sans-serif);
    --fuente-mono: 'Courier New', monospace;
    
    /* Tamaños */
    --texto-xs: 0.75rem;
    --texto-sm: 0.85rem;
    --texto-base: 0.95rem;
    --texto-lg: 1.1rem;
    --texto-xl: 1.2rem;
    --texto-2xl: 1.4rem;
    --texto-3xl: 1.8rem;
    
    /* Espaciado */
    --espacio-xs: 0.25rem;
    --espacio-sm: 0.5rem;
    --espacio-md: 0.75rem;
    --espacio-lg: 1rem;
    --espacio-xl: 1.25rem;
    
    /* Z-index */
    --z-sticky: 100;
    --z-modal: 1000;
}

/* =====================================================
   RESET
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--fuente-principal);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--texto-primario);
    background-color: var(--fondo-secundario);
    min-height: 100vh;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    background: var(--color-primario);
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    max-width: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.logo h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: normal;
    font-family: var(--fuente-titulo);
}

.logo i {
    font-size: 1.75rem;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Bombita / tooltip del menú */
.nav-link.has-tooltip {
    position: relative;
}

.nav-link.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 240px;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 3000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.nav-link.has-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-bottom-color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 3001;
}

.nav-link.has-tooltip:hover::after,
.nav-link.has-tooltip:focus-visible::after,
.nav-link.has-tooltip:hover::before,
.nav-link.has-tooltip:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Enlaces al final del menú: bombita alineada a la derecha */
.nav .nav-link.has-tooltip:nth-last-child(-n+2)::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
}

.nav .nav-link.has-tooltip:nth-last-child(-n+2)::before {
    left: auto;
    right: 1.25rem;
    transform: translateX(0) translateY(4px);
}

.nav .nav-link.has-tooltip:nth-last-child(-n+2):hover::after,
.nav .nav-link.has-tooltip:nth-last-child(-n+2):focus-visible::after {
    transform: translateX(0) translateY(0);
}

.nav .nav-link.has-tooltip:nth-last-child(-n+2):hover::before,
.nav .nav-link.has-tooltip:nth-last-child(-n+2):focus-visible::before {
    transform: translateX(0) translateY(0);
}

.public-link {
    background: #2c3e50;
    border: 1px solid rgba(255,255,255,0.2);
}

.admin-link {
    background: #2c3e50;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
}

/* =====================================================
   LAYOUT Y CONTENEDORES
   ===================================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    padding: 24px 0;
}

/* =====================================================
   HERO COMPACTO
   ===================================================== */

.hero {
    background: #2c3e50;
    color: #fff;
    padding: 32px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.95;
}

/* =====================================================
   SECCIONES
   ===================================================== */

section {
    padding: 24px 0;
}

.section-header,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2,
.page-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

/* =====================================================
   ESTADÍSTICAS - GRID
   ===================================================== */

.stats-section {
    padding: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin: 0;
}

.stat-content small {
    color: #7f8c8d;
    font-size: 0.75rem;
}

.stat-link {
    text-decoration: none;
    color: inherit;
}

.stat-link:hover .stat-icon {
    transform: scale(1.05);
}

/* =====================================================
   GRID DE OBRAS/SHOWS
   ===================================================== */

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.show-card,
.obra-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.show-card:hover,
.obra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.show-image,
.obra-imagen {
    width: 100%;
    aspect-ratio: 3/4;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.show-poster,
.obra-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-placeholder,
.obra-placeholder {
    color: #fff;
    font-size: 2rem;
}

.show-type-badge,
.obra-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.show-content,
.obra-contenido {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.show-content h3,
.obra-titulo {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.show-troupe,
.obra-compania {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-info,
.obra-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.show-description,
.obra-descripcion {
    font-size: 0.875rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
}

.show-synopsis {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.75rem;
}

.show-content .btn,
.obra-contenido .btn {
    margin-top: auto;
}

.waitlist-info {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 8px;
    display: block;
}

/* =====================================================
   FORMULARIOS
   ===================================================== */

.registration-section {
    padding: 24px 0;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: #000;
    font-size: 0.75rem;
    margin-top: 8px;
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #2c3e50;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-success {
    background-color: #2c3e50;
    color: #fff;
}

.btn-warning {
    background-color: #7f8c8d;
    color: #fff;
}

.btn-danger,
.btn-error {
    background-color: #000;
    color: #fff;
}

.btn-secondary {
    background-color: #7f8c8d;
    color: #fff;
}

.btn-sm {
    padding: 12px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 24px 32px;
    font-size: 1.125rem;
}

/* =====================================================
   MODALES
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
    /* Siempre usar flexbox para centrar */
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[style*="display: block"],
.modal.show,
.modal.mostrar {
    display: flex !important;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

.modal-title,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close,
.close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #7f8c8d;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover,
.close:hover {
    color: #000;
}

.modal-body {
    padding: 32px;
}

.modal-footer,
.modal-actions {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    background-color: #f5f5f5;
}

/* Form row en modales */
.modal-body .form-row,
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 24px;
}

/* Preview de imagen */
.current-image-preview {
    margin-top: 16px;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.current-image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.current-image-preview span {
    display: block;
    font-size: 0.875rem;
    color: #7f8c8d;
}

/* =====================================================
   ALERTAS
   ===================================================== */

.alert,
.notification {
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-wrap;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.alert.success,
.notification.success,
.success {
    background-color: #dcfce7;
    border: 2px solid #16a34a;
    border-left-width: 8px;
    color: #14532d;
}

.alert.error,
.notification.error,
.error {
    background-color: #fee2e2;
    border: 2px solid #dc2626;
    border-left-width: 8px;
    color: #7f1d1d;
}

.alert.warning,
.notification.warning,
.warning {
    background-color: #ffedd5;
    border: 2px solid #ea580c;
    border-left-width: 8px;
    color: #9a3412;
}

.alert.info,
.notification.info,
.info {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-left-width: 8px;
    color: #78350f;
}

.alert-spam-tip {
    display: block;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: #9a3412;
    color: #fff7ed;
    border-radius: 10px;
    border: 2px solid #7c2d12;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 3px 10px rgba(154, 52, 18, 0.35);
    white-space: normal;
}

.alert-spam-tip i {
    margin-right: 0.4rem;
    color: #fdba74;
}

/* =====================================================
   TABLAS
   ===================================================== */

.table-container,
.tabla-contenedor {
    background-color: #fff;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

table,
.tabla,
.admin-table,
.shows-table,
.reservations-table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
}

table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background-color: #e0e0e0;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-reserved,
.estado-reservado {
    background-color: rgba(25, 118, 210, 0.15);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.status-checked_in,
.estado-asistio,
.estado-confirmado {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.status-waitlist,
.estado-lista-espera {
    background-color: rgba(255, 152, 0, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-no_show,
.estado-no-asistio {
    background-color: rgba(244, 67, 54, 0.15);
    color: #000;
    border: 1px solid #000;
}

.estado-cancelado {
    background-color: rgba(158, 158, 158, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

/* =====================================================
   FILTROS
   ===================================================== */

.filters-section,
.filtros {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* =====================================================
   ADMIN - TABS
   ===================================================== */

.admin-tabs {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.tabs-nav {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 24px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #fff;
    color: #000;
}

.tab-btn.active {
    background-color: #fff;
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

/* =====================================================
   TAQUILLA - SCANNER
   ===================================================== */

.scanner-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.input-group input {
    flex: 1;
}

/* Información de reserva */
.reservation-info,
.reserva-info {
    margin-bottom: 24px;
}

.reservation-card,
.reserva-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #2c3e50;
}

.reservation-details,
.reserva-detalles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.detail-group,
.grupo-detalle {
    background-color: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
}

.detail-group h4 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #2c3e50;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.detail-item i {
    width: 20px;
    color: #2c3e50;
}

/* Validación de personas */
.person-validation,
.validacion-persona {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.person-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.person-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.person-details h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.person-email {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.person-role {
    display: inline-block;
    padding: 8px 12px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 8px;
}

.attendance-buttons {
    display: flex;
    gap: 12px;
}

/* =====================================================
   INFO BOXES
   ===================================================== */

.info-box {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid #7f8c8d;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-box.warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: #7f8c8d;
}

.info-box h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

/* =====================================================
   ACOMPAÑANTES
   ===================================================== */

.acompanantes-section,
.companions-section {
    margin-top: 24px;
}

.acompanante-item,
.companion-item {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.acompanante-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.acompanante-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-md { margin-top: 16px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.hidden { display: none !important; }
.visible { display: block !important; }

.empty-state {
    text-align: center;
    padding: 32px 0;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.loading {
    text-align: center;
    padding: 32px;
}

.loading i {
    font-size: 1.75rem;
    animation: spin 1s linear infinite;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f8c8d;
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================================================
   ADMIN LOGIN PAGE
   ===================================================== */

.login-page {
    background: solid #2c3e50 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: solid #2c3e50 0%, #2c3e50 100%);
    color: white;
    padding: 48px;
    text-align: center;
}

.login-header i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.login-header h1 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.login-form {
    padding: 48px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #000;
}

.login-form input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

.login-footer {
    padding: 24px 48px;
    background-color: #f5f5f5;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    margin: 0 0 12px 0;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.link-secondary {
    color: #7f8c8d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: #2c3e50;
}

.login-info {
    padding: 24px 48px;
    background-color: #f5f5f5;
}

.login-info h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.login-info ul {
    margin: 0;
    padding-left: 32px;
}

.login-info li {
    margin: 12px 0;
    font-size: 0.875rem;
    color: #7f8c8d;
}

/* Usuario en menú admin */
.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #fff;
}

.logout-link {
    color: #000 !important;
    font-weight: 500;
}

.logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* =====================================================
   ADMIN RESET PAGE
   ===================================================== */

.reset-panel {
    margin-top: 32px;
}

.warning-box {
    background: #2c3e50;
    border-left: 4px solid #6b6b6b;
    padding: 32px;
    margin-bottom: 32px;
    border-radius: 12px;
}

.warning-box i {
    font-size: 48px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.warning-box h2 {
    color: #7f8c8d;
    margin-bottom: 16px;
}

.warning-box ul {
    margin: 16px 0;
    padding-left: 32px;
}

.warning-box li {
    margin: 12px 0;
    color: #2c3e50;
}

.reset-form {
    background-color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.reset-form h3 {
    color: #000;
    margin-bottom: 16px;
}

.form-description {
    color: #7f8c8d;
    margin-bottom: 24px;
    font-size: 1rem;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.form-help code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
}

.form-help strong {
    color: #2c3e50;
}

.info-box {
    background-color: #f5f5f5;
    border-left: 4px solid #7f8c8d;
    padding: 32px;
    border-radius: 12px;
}

.info-box i {
    font-size: 32px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.info-box h3 {
    color: #7f8c8d;
    margin-bottom: 16px;
}

.info-box ul {
    margin: 16px 0;
    padding-left: 32px;
}

.info-box li {
    margin: 12px 0;
}

.info-box strong {
    color: #000;
}

/* =====================================================
   RESPONSIVE - TABLETS
   ===================================================== */

@media (max-width: 1199px) and (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shows-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   RESPONSIVE - MÓVIL
   ===================================================== */

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .nav-separator {
        display: none;
    }
    
    .hero {
        padding: 24px 0;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .stats-grid,
    .shows-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .person-validation {
        flex-direction: column;
        text-align: center;
    }
    
    .attendance-buttons {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 12px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* =====================================================
   ADMIN - PÁGINAS ESPECÍFICAS
   ===================================================== */

/* Contenedores admin */
.admin-users-container,
.admin-shows-container,
.admin-reservations-container,
.admin-attendance-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* Stats Cards Específicos de Admin */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 500;
}

.stat-card.verified {
    border-left: 3px solid #2c3e50;
}

.stat-card.unverified {
    border-left: 3px solid #7f8c8d;
}

.stat-card.principales {
    border-left: 3px solid #2c3e50;
}

.stat-card.acompanantes {
    border-left: 3px solid #7f8c8d;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    gap: 16px;
    flex: 1;
    max-width: 600px;
}

.search-input {
    flex: 1;
}

/* Botones de filtro (estilo pills) */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background-color: #fff;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #2c3e50;
    color: #2c3e50;
    background-color: rgba(25, 118, 210, 0.05);
}

.filter-btn.active {
    border-color: #2c3e50;
    background-color: #2c3e50;
    color: #fff;
}

/* Tabla de usuarios */
.users-table-container,
.shows-table-container,
.reservations-table-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 24px;
}

.users-table,
.shows-table,
.reservations-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead,
.shows-table thead,
.reservations-table thead {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.users-table th,
.shows-table th,
.reservations-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
}

.users-table td,
.shows-table td,
.reservations-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.users-table tbody tr:hover,
.shows-table tbody tr:hover,
.reservations-table tbody tr:hover {
    background-color: #e0e0e0;
}

/* User info en tabla */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-details h4 {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.parent-info {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Badges específicos */
.status-acompanante {
    background-color: rgba(33, 150, 243, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-menor {
    background-color: rgba(255, 152, 0, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-principal {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.status-verified {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.status-unverified {
    background-color: rgba(244, 67, 54, 0.15);
    color: #000;
    border: 1px solid #000;
}

.status-published {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.status-draft {
    background-color: rgba(158, 158, 158, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-past {
    background-color: rgba(255, 152, 0, 0.15);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.15);
    color: #000;
    border: 1px solid #000;
}

/* Puntos display */
.points-display {
    font-size: 1.125rem;
    font-weight: 700;
}

.points-display.positive {
    color: #2c3e50;
}

.points-display.negative {
    color: #000;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

.points-display.text-success {
    color: #2c3e50;
}

.points-display.text-danger {
    color: #000;
}

/* Shows en admin dashboard - OPTIMIZADO */
.show-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: visible; /* Cambiado de hidden a visible para dropdowns */
    transition: box-shadow 0.2s;
    position: relative;
}

.show-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Estilos para obras pasadas (finalizadas) */
.show-card.show-past {
    opacity: 0.65;
    background: #2c3e50;
    border: 2px solid #bdc3c7;
    position: relative;
}

.show-card.show-past::before {
    content: "✓ REALIZADA";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7f8c8d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.show-card.show-past .show-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.show-card.show-past h3 {
    color: #7f8c8d;
}

.show-card.show-past .show-description,
.show-card.show-past .show-info {
    color: #7f8c8d;
}

.past-badge {
    background: #7f8c8d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.show-header {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: solid #2c3e50 0%, #fff 100%);
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0; /* Borde redondeado arriba */
    align-items: center;
    overflow: hidden; /* Solo el header tiene overflow hidden */
}

.show-header .show-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #2c3e50;
    flex-shrink: 0;
}

.show-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 1.75rem;
}

.show-info {
    flex: 1;
    min-width: 0;
}

.show-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.show-info p {
    margin: 0 0 12px 0;
    color: #7f8c8d;
    font-size: 0.875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    margin-top: 12px;
}

.show-details span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    padding: 8px 12px;
    background-color: rgba(25, 118, 210, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
}

.show-details span i {
    color: #2c3e50;
    font-size: 0.875rem;
}

.show-details strong {
    color: #000;
    font-weight: 600;
}

.show-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 8px;
    min-width: 70px;
    border: 1px solid #e0e0e0;
}

.stat-item strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item small {
    color: #7f8c8d;
    font-size: 0.75rem;
    display: block;
}

.stat-item.waitlist {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid #7f8c8d;
}

.stat-item.waitlist strong {
    color: #7f8c8d;
}

.show-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    justify-content: flex-end;
    align-items: center;
    border-radius: 0 0 12px 12px;
}

.show-actions .btn {
    font-size: 0.875rem;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.show-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive: botones en mobile */
@media (max-width: 768px) {
    .show-actions {
        justify-content: stretch;
        gap: 8px;
    }
    
    .show-actions .btn {
        flex: 1 1 auto;
        min-width: 90px;
        padding: 12px 16px;
    }
}

.show-actions .btn i {
    font-size: 1rem;
}

.show-actions .btn-secondary {
    background-color: #7f8c8d;
}

.show-actions .btn-warning {
    background-color: #7f8c8d;
}

.show-actions .btn-danger {
    background-color: #000;
}

.show-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Dropdown en acciones */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 240px;
    max-width: 320px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Si el dropdown está al final, alinear a la derecha */
.show-actions .dropdown:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #e0e0e0;
    padding-left: calc(24px + 4px);
    color: #2c3e50;
}

.dropdown-item:active {
    background-color: #f5f5f5;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
    transition: color 0.2s;
}

.dropdown-item:hover i {
    color: #2c3e50;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

.btn-info {
    background-color: #7f8c8d;
    color: #fff;
}

.btn-small,
.btn-sm {
    padding: 12px 16px;
    font-size: 0.875rem;
}

/* Detalles de reservas dentro de show */
.reservations-details {
    padding: 24px;
    background-color: #fff;
}

.reservations-details h4 {
    margin: 0 0 24px 0;
    font-size: 1.125rem;
}

/* Jerarquía de reservas */
.show-reservation-group {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 32px;
    overflow: hidden;
}

.user-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.user-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.user-contact span {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.user-type {
    display: flex;
    gap: 8px;
}

.type-badge {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.parent {
    background-color: #2c3e50;
    color: #fff;
}

.type-badge.adult {
    background-color: #7f8c8d;
    color: #fff;
}

.type-badge.minor {
    background-color: #7f8c8d;
    color: #fff;
}

.reservation-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.qr-code {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.qr-token {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.reservation-date {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Companions */
.companions-container {
    padding: 24px;
}

.companions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.companions-list {
    padding: 16px;
}

.companion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.companion-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.companion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.companion-details h5 {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.companion-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.companion-contact span {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.companion-type {
    display: flex;
    gap: 8px;
}

.companion-reservation-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.companion-qr-code {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.companion-token {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #7f8c8d;
    border: 1px solid #e0e0e0;
}

/* Admin Shows - Tarjetas de obra */
.obras-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.obra-admin-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.obra-admin-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.obra-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.obra-admin-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.obra-admin-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.obra-admin-info {
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #7f8c8d;
}

.obra-admin-info div {
    margin-bottom: 8px;
}

.obra-admin-info i {
    width: 16px;
    color: #2c3e50;
    margin-right: 8px;
}

.obra-admin-actions {
    display: flex;
    gap: 12px;
}

/* Card genérica */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 24px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body {
    padding: 24px;
}

/* Attendance badges */
.attendance-badge,
.companion-attendance {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.attendance-badge.attended,
.companion-attendance.attended {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2c3e50;
    border: 1px solid #2c3e50;
}

.attendance-badge.no-show,
.companion-attendance.no-show {
    background-color: rgba(244, 67, 54, 0.2);
    color: #000;
    border: 1px solid #000;
}

.attendance-badge.pending,
.companion-attendance.pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

/* Acciones en tablas */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* =====================================================
   RESPONSIVE - ADMIN PAGES
   ===================================================== */

@media (max-width: 1199px) {
    .show-header {
        grid-template-columns: 80px 1fr;
    }
    
    .show-stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .admin-users-container,
    .admin-shows-container,
    .admin-reservations-container,
    .admin-attendance-container {
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        padding: 12px;
    }
    
    .search-bar {
        flex-direction: column;
        max-width: none;
    }
    
    .show-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .show-header .show-image {
        margin: 0 auto;
    }
    
    .show-details {
        justify-content: center;
    }
    
    .show-stats {
        justify-content: center;
    }
    
    .user-main {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .reservation-info {
        align-items: flex-start;
    }
    
    .companion-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .companion-reservation-info {
        align-items: flex-start;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .obras-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   RANKING DE USUARIOS - LEADERBOARD
   ===================================================== */

.ranking-section {
    padding: 32px 0;
}

.ranking-section h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ranking-section h2 i {
    color: #e0e0e0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.ranking-item {
    background: #2c3e50;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ranking-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #2c3e50;
}

/* Top 3 con estilos especiales */
.ranking-item:nth-child(1) {
    background: #2c3e50;
    border: 2px solid #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ranking-item:nth-child(2) {
    background: #2c3e50;
    border: 2px solid #c0c0c0;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3);
}

.ranking-item:nth-child(3) {
    background: #2c3e50;
    border: 2px solid #6b6b6b;
    box-shadow: 0 4px 20px rgba(107, 107, 107, 0.2);
}

/* Posición con medallas */
.ranking-position {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    background: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    position: relative;
}

/* Medallas para top 3 */
.ranking-item:nth-child(1) .ranking-position {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
}

.ranking-item:nth-child(1) .ranking-position::after {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.25rem;
}

.ranking-item:nth-child(2) .ranking-position {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.5);
}

.ranking-item:nth-child(3) .ranking-position {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 107, 107, 0.3);
}

/* Usuario info */
.ranking-user {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-user strong {
    font-size: 1.125rem;
    color: #000;
    font-weight: 600;
}

.ranking-user small {
    font-size: 0.875rem;
    color: #7f8c8d;
}

/* Stats del usuario */
.ranking-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.ranking-stats .stat {
    text-align: center;
    min-width: 100px;
}

.ranking-stats .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 8px;
}

.ranking-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Destacar puntos altos */
.ranking-item:nth-child(1) .ranking-stats .stat-value {
    color: #e0e0e0;
}

.ranking-item:nth-child(2) .ranking-stats .stat-value {
    color: #c0c0c0;
}

.ranking-item:nth-child(3) .ranking-stats .stat-value {
    color: #7f8c8d;
}

/* Badges de puntos */
.points-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 12px;
}

.points-badge.points-high {
    background: #2c3e50;
    color: white;
}

.points-badge.points-medium {
    background: #2c3e50;
    color: white;
}

.points-badge.points-low {
    background: #2c3e50;
    color: white;
}

/* Barra de progreso de puntos */
.points-progress {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.points-progress-bar {
    height: 100%;
    background: #2c3e50;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* =====================================================
   RESPONSIVE - RANKING
   ===================================================== */

@media (max-width: 767px) {
    .ranking-item {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }
    
    .ranking-position {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .ranking-item:nth-child(1) .ranking-position {
        font-size: 1.75rem;
    }
    
    .ranking-stats {
        grid-column: 1 / -1;
        justify-content: space-around;
        gap: 16px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e0e0e0;
    }
    
    .ranking-stats .stat {
        min-width: auto;
    }
    
    .ranking-user strong {
        font-size: 1rem;
    }
}

/* =====================================================
   NUEVO LAYOUT: SPLIT SCREEN (Obras + Registro)
   Desktop: 70% Obras | 30% Registro
   Móvil: Stack vertical (Registro arriba, Obras abajo)
   ===================================================== */

.main-layout {
    padding: 32px 0;
    background: #f5f5f5;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px; /* 70% obras, 30% registro (fijo 380px) */
    gap: 32px;
    align-items: start;
}

/* COLUMNA IZQUIERDA: OBRAS (Protagonista) */
.obras-column {
    min-width: 0; /* Fix para overflow en grid */
}

.obras-column .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.obras-column .section-title i {
    color: #2c3e50;
    font-size: 1.8rem;
}

/* Grid de obras más espacioso */
.obras-column .shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* COLUMNA DERECHA: REGISTRO (Lateral Sticky) */
.registro-column {
    position: relative;
}

.registro-sticky {
    position: sticky;
    top: calc(60px + 16px);
    max-height: calc(100vh - 60px - 32px);
    overflow-y: auto;
}

.registro-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.registro-header {
    background: solid #2c3e50 0%, #2c3e50 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.registro-header i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.registro-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.registro-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.registration-form-compact {
    padding: 24px;
}

.registration-form-compact .form-group {
    margin-bottom: 16px;
}

.registration-form-compact label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.registration-form-compact label i {
    color: #2c3e50;
    font-size: 0.85rem;
}

.registration-form-compact input[type="text"],
.registration-form-compact input[type="email"],
.registration-form-compact input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.registration-form-compact input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.registration-form-compact .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.registro-footer {
    padding: 16px 24px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.registro-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.registro-footer i {
    color: #7f8c8d;
}

/* =====================================================
   RESPONSIVE: MÓVIL
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .layout-wrapper {
        grid-template-columns: 1fr 320px; /* Registro más estrecho en tablet */
        gap: 24px;
    }
    
    .obras-column .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Móvil */
@media (max-width: 768px) {
    .layout-wrapper {
        grid-template-columns: 1fr; /* Una columna */
        gap: 16px;
    }
    
    /* Registro primero (arriba) pero compacto */
    .registro-column {
        order: 1;
    }
    
    .obras-column {
        order: 2;
    }
    
    .registro-sticky {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .registro-header h3 {
        font-size: 1.2rem;
    }
    
    .registro-header i {
        font-size: 2rem;
    }
    
    .registration-form-compact {
        padding: 16px;
    }
    
    .obras-column .section-title {
        font-size: 1.6rem;
        margin-top: 24px;
    }
    
    .obras-column .shows-grid {
        grid-template-columns: 1fr; /* Una obra por fila en móvil */
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .container-fluid {
        padding: 0 16px;
    }
    
    .registro-header {
        padding: 16px;
    }
    
    .obras-column .section-title {
        font-size: 1.4rem;
    }
}

/* =====================================================
   CARRUSEL DE PAUTAS PUBLICITARIAS
   Debajo del formulario de registro, con animación vertical
   ===================================================== */

.advertisements-carousel {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantiene proporción cuadrada */
    overflow: hidden;
}

.advertisement-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advertisement-slide.active {
    opacity: 1;
    z-index: 1;
}

.advertisement-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.advertisement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.advertisement-slide a:hover .advertisement-image {
    transform: scale(1.05);
}

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0,0,0,0.03);
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: #2c3e50;
    width: 30px;
    border-radius: 5px;
}

.carousel-indicators .indicator:hover {
    background: #7f8c8d;
}

/* Placeholder cuando no hay pautas */
.advertisement-placeholder {
    aspect-ratio: 1 / 1;
    background: #2c3e50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
}

.placeholder-content {
    text-align: center;
    padding: 24px;
    color: #7f8c8d;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.placeholder-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #7f8c8d;
}

.placeholder-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .advertisements-carousel {
        margin-top: 16px;
    }
    
    .carousel-indicators {
        padding: 12px;
    }
}

/* =====================================================
   SISTEMA DE NOTIFICACIONES TOAST (Rápido y moderno)
   Reemplaza alerts lentos con notificaciones elegantes
   ===================================================== */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid #000;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.success {
    border-left-color: #2c3e50;
    background: #f5f5f5;
}

.toast.error {
    border-left-color: #000;
    background: #f5f5f5;
}

.toast.warning {
    border-left-color: #7f8c8d;
    background: #f5f5f5;
}

.toast.info {
    border-left-color: #7f8c8d;
    background: #f5f5f5;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #2c3e50; }
.toast.error .toast-icon { color: #000; }
.toast.warning .toast-icon { color: #7f8c8d; }
.toast.info .toast-icon { color: #7f8c8d; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: #000;
}

.toast-message {
    font-size: 0.9rem;
    margin: 0;
    color: #7f8c8d;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #000;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Modal de confirmación personalizado (rápido) */
.custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.custom-confirm-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: scaleIn 0.2s ease-out;
}

.custom-confirm-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-confirm-header i {
    font-size: 28px;
    color: #7f8c8d;
}

.custom-confirm-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #000;
}

.custom-confirm-body {
    padding: 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: #7f8c8d;
}

.custom-confirm-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f5f5f5;
}

.custom-confirm-footer button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-confirm-footer .btn-cancel {
    background: #e0e0e0;
    color: #000;
}

.custom-confirm-footer .btn-cancel:hover {
    background: #e0e0e0;
}

.custom-confirm-footer .btn-confirm {
    background: #2c3e50;
    color: white;
}

.custom-confirm-footer .btn-confirm:hover {
    background: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para toasts */
@media (max-width: 768px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
    
    .custom-confirm-content {
        width: 95%;
    }
}

/* =====================================================
   FIN
   ===================================================== */
/* ================================================================
   ESTADOS DE FUNCIONES (v3.1.5)
   ================================================================ */

/* Función en estado PASADA */
.show-past {
    filter: grayscale(100%);
    opacity: 0.7;
    position: relative;
}

.show-past::after {
    content: 'FUNCIÓN PASADA';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(127, 140, 141, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Badges para estados en admin */
.badge-past,
.badge-cancelled {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-past {
    background: rgba(127, 140, 141, 0.2);
    color: #7f8c8d;
    border: 2px solid #7f8c8d;
}

.badge-cancelled {
    background: rgba(230, 126, 34, 0.2);
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

/* Estados en lista de funciones */
.status-draft {
    background: #7f8c8d;
    color: white;
}

.status-published {
    background: #2c3e50;
    color: white;
}

.status-past {
    background: #7f8c8d;
    color: white;
}

.status-cancelled {
    background: #2c3e50;
    color: white;
}

/* Deshabilitar interacción con funciones pasadas/canceladas */
.show-past .btn,
.show-cancelled .btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Estilos para botones de acción según estado */
.btn-draft {
    background: #7f8c8d;
    color: white;
}

.btn-draft:hover {
    background: #7f8c8d;
}

.btn-cancel {
    background: #2c3e50;
    color: white;
}

.btn-cancel:hover {
    background: #7f8c8d;
}


/* ================================================================
   GESTOR DE ACOMPAÑANTES - QR Display MEJORADO (v3.1.5)
   ================================================================ */

.reservation-info {
    max-width: 800px;
    margin: 0 auto;
}

.qr-section {
    margin: 25px auto;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
}

.qr-section h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

.qr-section h5 {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

/* Grid de tarjetas QR */
.qr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qr-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qr-card:hover {
    border-color: #7f8c8d;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

.qr-card strong {
    display: block;
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.qr-card .badge {
    display: inline-block;
    padding: 5px 15px;
    background: #2c3e50;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 5px 0 15px 0;
    font-weight: 600;
}

.qr-code-display {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.qr-code-display canvas,
.qr-code-display img {
    margin: 0 auto;
    display: block;
}

.qr-hash {
    display: block;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
    margin: 15px auto;
    word-break: break-all;
    max-width: 250px;
    border: 1px dashed #ccc;
}

.qr-card .btn {
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
}

/* Botón de descarga grupal */
.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 30px auto;
    display: inline-block;
}

/* Warning box mejorado */
.warning-box {
    background: #f5f5f5;
    border-left: 5px solid #7f8c8d;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.15);
}

.warning-box h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.warning-box ul {
    line-height: 2;
    margin: 15px 0;
    padding-left: 20px;
}

.warning-box li {
    margin: 12px 0;
}

.warning-box strong {
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-info {
        padding: 15px;
    }
    
    .qr-card {
        padding: 20px 15px;
    }
}


/* ================================================================
   ADMIN DASHBOARD - Estilo Escala de Grises (v3.1.5)
   ================================================================ */

/* Tabla de reservas - Estilo minimalista */
.reservations-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.reservations-table th {
    background: #2c3e50;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservations-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #2c3e50;
    font-size: 0.95rem;
    vertical-align: top;
}

.reservations-table tr:hover {
    background: #f5f5f5;
}

/* Badges de estado - Escala de grises */
.badge-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status.reserved {
    background: #2c3e50;
    color: white;
}

.badge-status.pendiente {
    background: #7f8c8d;
    color: white;
}

.badge-status.checked-in {
    background: #2c3e50;
    color: white;
}

.badge-status.no-show {
    background: #7f8c8d;
    color: white;
}

.badge-status.cancelled {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Acompañantes display mejorado */
.companions-list {
    max-width: 300px;
}

.companion-item {
    background: #f5f5f5;
    padding: 10px 12px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 3px solid #2c3e50;
    font-size: 0.9rem;
}

.companion-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.companion-item .badge {
    background: #7f8c8d;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.companion-item .qr-mini {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 5px;
    display: block;
}

/* Botones de acción en tabla */
.table-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.table-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
}

/* Token QR display */
.token-qr {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    color: #2c3e50;
    border: 1px dashed #bdc3c7;
    word-break: break-all;
    max-width: 200px;
}

/* Responsive para tablas */
@media (max-width: 1400px) {
    .reservations-table {
        font-size: 0.9rem;
    }
    
    .reservations-table th,
    .reservations-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 1200px) {
    .reservations-table {
        display: block;
        overflow-x: auto;
    }
    
    .reservations-table table {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .reservations-table th,
    .reservations-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .table-actions {
        flex-direction: column;
    }
    
    .table-actions .btn {
        width: 100%;
    }
}

/* ========================================
   GESTOR ACOMPAÑANTES - QR DIRECTO
   ======================================== */

.reservations-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.reservation-card {
    background: #ffffff;
    border: 2px solid #2c3e50;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.reservation-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #000;
}

.badge-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-status.reserved {
    background: #000;
    color: #fff;
}

.badge-status.waitlist {
    background: #7f8c8d;
    color: #fff;
}

.reservation-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.info-item i {
    font-size: 1.5rem;
    color: #2c3e50;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.qr-display-section {
    margin: 30px 0;
    padding: 25px;
    background: #f5f5f5;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
}

.qr-display-section h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #000;
}

.qr-card-main {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.qr-visual {
    flex-shrink: 0;
}

.qr-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-box {
    padding: 15px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-align: center;
}

.token-box strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.token-box code {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.companions-display-section {
    margin: 30px 0;
    padding: 25px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.companions-display-section h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #000;
}

.companions-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.companion-qr-mini {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.companion-qr-mini:hover {
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.companion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.companion-header strong {
    font-size: 1rem;
    color: #000;
}

.badge-mini {
    padding: 4px 10px;
    background: #7f8c8d;
    color: #fff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.qr-visual-small {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.token-mini {
    display: block;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

.btn-dark {
    background: #2c3e50;
    color: #fff;
    border: none;
}

.btn-dark:hover {
    background: #000;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .reservation-card {
        padding: 20px;
    }
    
    .qr-card-main {
        flex-direction: column;
        text-align: center;
    }
    
    .companions-qr-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   INFO BOXES - BLANCO/NEGRO/GRIS
   ======================================== */

.info-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #2c3e50;
    background: #f5f5f5;
}

.info-box i {
    color: #2c3e50;
    margin-right: 8px;
}

.info-warning {
    background: #f5f5f5;
    border-left-color: #000;
}

.info-help {
    background: #f5f5f5;
    border-left-color: #7f8c8d;
}

.security-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* ========================================
   CANCEL WARNING BOX - SOLO GRISES
   ======================================== */

.cancel-warning-box {
    background: #f5f5f5;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cancel-warning-box h4 {
    color: #000;
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.warning-intro {
    font-size: 1.05rem;
    margin: 15px 0;
    color: #2c3e50;
    font-weight: 600;
}

.warning-list {
    line-height: 1.8;
    margin: 15px 0;
    padding-left: 20px;
}

.warning-list li {
    margin-bottom: 10px;
    color: #000;
}

.penalty-info {
    background: #e0e0e0;
    border: 2px solid #7f8c8d;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.penalty-info p {
    margin: 0;
    color: #000;
    font-weight: 600;
}

.cancel-confirm-text {
    text-align: center;
    font-size: 1.1rem;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 600;
}


/* ========================================
   FIX CONTRASTE ADMIN DASHBOARD
   ======================================== */

/* Asegurar que texto en celdas sea oscuro sobre fondo claro */
.reservations-table tbody td {
    background: #fff !important;
    color: #000 !important;
}

.reservations-table tbody tr:hover td {
    background: #f5f5f5 !important;
    color: #000 !important;
}

/* Usuario y contacto en negro */
.reservations-table .user-info,
.reservations-table td {
    color: #2c3e50 !important;
}

/* Headers en fondo oscuro con texto blanco */
.reservations-table thead th {
    background: #2c3e50 !important;
    color: #fff !important;
}

/* Badges con contraste correcto */
.badge-status {
    color: #fff !important;
    font-weight: 600;
}

.badge-status.RESERVADO {
    background: #2c3e50 !important;
}

.badge-status.PENDIENTE {
    background: #7f8c8d !important;
}

.badge-status.waitlist {
    background: #bdc3c7 !important;
    color: #000 !important;
}

/* Acciones visibles */
.table-actions button {
    background: #2c3e50 !important;
    color: #fff !important;
}

.table-actions button:hover {
    background: #000 !important;
}


/* Funciones ya realizadas (aún visibles unos días) */
.show-card.show-past {
    opacity: 0.72;
    filter: grayscale(0.35);
}
.show-card.show-past .past-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
}
.show-card.show-past .btn[disabled] {
    cursor: not-allowed;
}
