/* Estilos Globales La Pelusa 10 Años - VERSIÓN DEFINITIVA */
body { 
    background-color: #1a1a1a; 
    color: white; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-align: center; 
    padding: 20px; 
}

.container, .box { 
    max-width: 450px; 
    margin: auto; 
    background: #222; 
    padding: 30px; 
    border-radius: 15px; 
    border: 2px solid #f1c40f; 
    box-shadow: 0px 0px 25px rgba(241, 196, 15, 0.15); 
}

.logo-img { 
    width: 100%; 
    max-width: 280px; 
    height: auto; 
    margin-bottom: 10px; 
}

h1 { color: #f1c40f; text-transform: uppercase; margin-bottom: 5px; }
p { color: #ccc; }

label { display: block; text-align: left; margin-top: 15px; font-weight: bold; color: #f1c40f; font-size: 0.9em; }

input, select, button { 
    width: 100%; 
    padding: 14px; 
    margin: 8px 0; 
    border-radius: 8px; 
    border: none; 
    font-size: 16px; 
    box-sizing: border-box; 
}

input, select { background: #333; color: white; border: 1px solid #444; }

button { 
    background-color: #f1c40f; 
    color: black; 
    font-weight: bold; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.3s; 
    margin-top: 20px;
}

button:hover { background-color: #d4ac0d; transform: translateY(-2px); }

.cbu-box { 
    background: #111; 
    padding: 15px; 
    border-radius: 5px; 
    font-family: monospace; 
    color: #f1c40f; 
    font-size: 1.1em; 
    border: 1px dashed #f1c40f;
    margin: 15px 0;
}

.btn-whatsapp { 
    display: block; 
    background: #25d366; 
    color: white; 
    padding: 15px; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold;
    margin-top: 10px;
}

/* --- Agregados necesarios para Admin (Manteniendo la estética) --- */

.admin-logo-small {
    max-width: 120px; /* Ancho máximo pedido */
    width: 100%;      /* Para que escale bien */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: inline-block;
}

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

/* Botón específico para la Lista de Puerta en el Admin */
.btn-lista-puerta {
    background-color: #3498db; /* Azul vibrante */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-lista-puerta:hover {
    background-color: #2980b9;
    color: #fff;
}

/* Ajuste para que los botones en el header no se amontonen en el celu */
@media (max-width: 600px) {
    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn-lista-puerta, .btn-informe, .btn-logout-panel {
        width: 100%;
        justify-content: center;
    }
}


.stats { background: #222; padding: 10px; border: 1px solid #f1c40f; border-radius: 8px; font-size: 0.9em; }
.stats b { color: #f1c40f; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #333; }
th { color: #f1c40f; text-transform: uppercase; font-size: 0.8em; border-bottom: 2px solid #f1c40f; }

.status-badge { padding: 5px 10px; border-radius: 4px; font-size: 0.8em; font-weight: bold; text-transform: uppercase; }
.pagado { background: #27ae60; color: white; }
.pendiente { background: #e74c3c; color: white; }

.btn-pago { 
    background: #f1c40f; 
    color: black; 
    padding: 5px 10px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 0.8em; 
}

/* --- LISTA DE PRECIOS ESTÁTICA --- */
.precios-lista {
    background: #111;
    border: 2px solid #f1c40f;
    border-radius: 12px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.precio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.precio-item:last-child { border-bottom: none; }

.precio-info { text-align: left; }

.precio-info span { 
    display: block; 
    color: #f1c40f; 
    font-weight: bold; 
    font-size: 0.9em; 
}

.precio-info small { color: #888; font-size: 0.75em; }

.monto { 
    font-size: 1.2em; 
    font-weight: bold; 
    color: white; 
}

/* Resaltado opcional para la etapa actual (se puede quitar si preferís todo igual) */
.precio-item.actual {
    background: rgba(241, 196, 15, 0.1);
}

/* --- ESTILOS DEL PIE DE PÁGINA --- */
footer {
    text-align: center;
    padding: 40px 10px;
    margin-top: 60px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9em;
}

footer b {
    color: #f1c40f; /* Dorado de La Pelusa */
}

footer a.kuyen {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

footer a.kuyen:hover {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* Estilo para el mensaje de ayuda en el index */
.mensaje-instrucciones {
    background: rgba(241, 196, 15, 0.1); /* Un fondo dorado muy suave */
    border-left: 5px solid #f1c40f;      /* La barrita dorada al costado */
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    color: #eee;
    font-size: 0.95em;
    line-height: 1.5;
}

.mensaje-instrucciones b {
    color: #f1c40f;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* --- ESTILOS PARA LOS IDS --- */
.id-ticket {
    font-family: 'Courier New', Courier, monospace; /* Tipografía tipo código, bien clara */
    font-size: 14px; /* Tamaño ajustado para legibilidad */
    font-weight: bold;
    color: #f1c40f; /* Dorado de la banda */
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Ajuste para el informe impreso (donde el fondo es blanco) */
@media print {
    .id-ticket {
        color: #333;
        font-size: 12px;
        background: none;
        border: 1px solid #ccc;
    }
}

/* --- ESTILOS INSTRUCCIONES DE PAGO --- */
.titulo-reserva { color: #f1c40f; margin-bottom: 10px; }

.cvu-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #f1c40f;
    margin: 25px 0;
    text-align: center;
}

.cvu-header { font-weight: bold; color: #eee; text-transform: uppercase; margin-bottom: 15px; }
.cvu-label { font-size: 0.8em; color: #aaa; display: block; margin-bottom: 5px; }
.cvu-codigo { font-size: 1.1em; color: #fff; background: #000; padding: 4px 8px; border-radius: 4px; }
.alias-codigo { color: #f1c40f; font-size: 1.1em; }

.btn-copiar {
    display: block;
    margin: 10px auto 20px auto;
    font-size: 0.75em;
    padding: 6px 15px;
    cursor: pointer;
    border-radius: 20px;
    border: 1px solid #f1c40f;
    background: transparent;
    color: #f1c40f;
    transition: all 0.3s ease;
}

.btn-copiar:hover { background: #f1c40f; color: #000; }
.copiado-exito { border-color: #25d366 !important; color: #25d366 !important; }

.cvu-titular { font-size: 0.9em; color: #fff; border-top: 1px solid #333; padding-top: 15px; margin-top: 10px; }
.footer-instrucciones { margin-top: 30px; line-height: 1.6; }
.footer-instrucciones a { color: #3498db; text-decoration: none; }
.link-volver { display: block; margin-top: 20px; color: #777 !important; font-size: 0.8em; }

.info-evento {
    margin: 20px 0;
    text-align: center;
}

.ubicacion-index {
    font-size: 1.1em;
    color: #333;
}

.ubicacion-index a {
    color: #e74c3c; /* El rojo que venimos usando */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.ubicacion-index a:hover {
    border-bottom: 2px solid #e74c3c;
}
.btn-logout-panel {
    background: #444;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-logout-panel:hover {
    background: #e74c3c;
}

/* --- AJUSTES PARA CELULARES (RESPONSIVE) --- */
@media (max-width: 600px) {
    /* Aprovechamos más el ancho en el celu */
    .main-container {
        width: 98%; 
        padding: 10px;
    }

    /* Agrandamos el título para que tenga impacto */
    .intro h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .intro p {
        font-size: 1.1em;
    }

    /* La tarjeta del evento con menos padding para ganar espacio */
    .ticket-card {
        padding: 20px 15px;
    }

    .event-info p {
        font-size: 1.1em; /* Letra más legible */
        text-align: left; /* Alineado a la izquierda queda más ordenado en celu */
    }

    /* El botón de reserva más grande para el pulgar */
    .btn-cta {
        font-size: 1.2em;
        padding: 20px 10px;
    }

    /* Ajuste para que la tabla del admin no se vea minúscula */
    .container-admin {
        overflow-x: auto; /* Permite deslizar la tabla de costado */
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 650px; /* Forzamos a que la tabla no se achique más de esto */
        font-size: 0.9em;
    }
    
    .header-admin {
        flex-direction: column;
        gap: 15px;
    }
}

/* Formulario de Invitados */
.invitado-form {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #f1c40f; /* Dorado Aniversario */
    margin-bottom: 25px;
}

.invitado-form h3 {
    color: #f1c40f;
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-inline input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

.btn-invitado {
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Badge y Fila para Invitados */
.status-badge.invitado {
    background: #f1c40f;
    color: #000;
}

.fila-invitado {
    background: rgba(241, 196, 15, 0.05) !important;
}

/* Badge cuadrado para destacar invitados en la lista */
.badge-invitado {
    font-size: 11px;
    border: 2px solid #000;
    padding: 2px 6px;
    margin-left: 10px;
    font-weight: bold;
    background: #fff;
    color: #000;
    display: inline-block;
    vertical-align: middle;
}

/* El resto de los estilos de impresión se mantienen igual... */
.fila-invitado-destacado td {
    background-color: #e0e0e0 !important;
}

/* Estilo base para la página de impresión */
.body-print {
    background: #fff !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
}

.hoja-impresion {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header-lista {
    text-align: center;
    border-bottom: 3px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.header-lista h1 {
    color: #000 !important;
    margin: 0;
    font-size: 24px;
}

.tabla-puerta {
    width: 100%;
    border-collapse: collapse;
}

.tabla-puerta th, .tabla-puerta td {
    border: 1px solid #000;
    padding: 10px;
    color: #000 !important;
    font-size: 14px;
}

.tabla-puerta th {
    background: #eee;
    text-transform: uppercase;
}

.text-center { text-align: center; }
.w-10 { width: 10%; }
.w-50 { width: 50%; }
.w-20 { width: 20%; }

.footer-lista {
    margin-top: 20px;
    text-align: right;
    font-weight: bold;
}

/* Regla mágica para que no se imprima lo que no queremos */
@media print {
    .no-print, .btn-admin, footer {
        display: none !important;
    }
    .body-print {
        padding: 0;
    }
    .hoja-impresion {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Estilo para diferenciar invitados en la lista impresa */
.fila-invitado-print td {
    background-color: #7f7f7f !important; /* Gris clarito de fondo */
    color: #666 !important;            /* Texto en gris oscuro */
}

/* Para que al imprimir se respete el color de fondo gris */
@media print {
    .fila-invitado-print td {
        background-color: #b7b7b7 !important;
        -webkit-print-color-adjust: exact; /* Fuerza a Chrome/Safari a imprimir el fondo */
        print-color-adjust: exact;
    }
}

/* --- ESTILOS PARA LISTA DE PUERTA --- */
.body-print {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.hoja-impresion {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header-lista {
    text-align: center;
    border-bottom: 3px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.tabla-puerta {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
}

/* Centramos los encabezados y celdas correspondientes */
.tabla-puerta th {
    background-color: #eeeeee;
    text-transform: uppercase;
    text-align: center; /* Encabezados centrados */
    padding: 10px;
    border: 1px solid #000;
}

.tabla-puerta td {
    border: 1px solid #000;
    padding: 10px;
    color: #000 !important;
}

/* Destacado para invitados */
.fila-invitado-destacado td {
    background-color: #e0e0e0 !important;
}

.badge-invitado {
    font-size: 11px;
    border: 2px solid #000;
    padding: 2px 6px;
    margin-left: 10px;
    font-weight: bold;
    background: #fff;
    color: #000;
    display: inline-block;
}

.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.w-10 { width: 10%; }
.w-50 { width: 50%; }
.w-20 { width: 20%; }

@media print {
    .no-print { display: none !important; }
    .fila-invitado-destacado td {
        background-color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =========================================
   ESTILOS PARA LISTA DE PUERTA (IMPRESIÓN)
   ========================================= */

/* Forzamos fondo blanco y texto negro para ahorrar tinta */
.body-print {
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0;
}

.hoja-impresion {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header-lista {
    text-align: center;
    border-bottom: 3px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.header-lista h1 {
    color: #000 !important;
    font-size: 26px;
    margin: 0;
}

.tabla-puerta {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
}

.tabla-puerta th, .tabla-puerta td {
    border: 1px solid #000;
    padding: 10px;
    color: #000 !important;
}

.tabla-puerta th {
    background-color: #eeeeee;
    text-transform: uppercase;
}

/* DESTACADO PARA INVITADOS */
.fila-invitado-destacado td {
    background-color: #e0e0e0 !important; /* Gris intermedio */
    color: #333 !important;
}

.badge-guest {
    font-size: 10px;
    border: 1px solid #000;
    padding: 2px 5px;
    margin-left: 10px;
    font-weight: bold;
    background: #fff;
}

/* UTILIDADES */
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.w-10 { width: 10%; }
.w-50 { width: 50%; }
.w-20 { width: 20%; }

.back-to-panel {
    text-decoration: none;
    color: #fff;
    background: #333;
    padding: 10px 15px;
    border-radius: 5px;
}

/* CONFIGURACIÓN DE IMPRESIÓN */
@media print {
    .no-print {
        display: none !important;
    }
    .body-print {
        padding: 0;
    }
    .fila-invitado-destacado td {
        background-color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Bloque de tarjetas superiores */
.acciones-entrada {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card-admin {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

/* Botón Venta en Puerta */
.btn-venta-puerta {
    background-color: #27ae60; /* Verde billete */
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    transition: 0.3s;
}

.btn-venta-puerta:hover {
    background-color: #2ecc71;
    transform: scale(1.02);
}

/* Estilo para la fila en la tabla */
.fila-puerta {
    background-color: rgba(39, 174, 96, 0.1) !important;
    border-left: 5px solid #27ae60;
}

.status-badge.en-puerta {
    background: #27ae60;
    color: #fff;
}

/* Ajuste Responsive */
@media (max-width: 768px) {
    .acciones-entrada {
        grid-template-columns: 1fr;
    }
}
/* --- NUEVA BOTONERA SUPERIOR --- */
.top-forms-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-box, .form-box-venta {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    flex: 1;
}

.form-box h3, .form-box-venta h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #f1c40f;
}

.btn-venta-puerta {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.btn-venta-puerta:hover { background: #2ecc71; }

.fila-puerta { background-color: rgba(39, 174, 96, 0.1) !important; }
.status-badge.en-puerta { background: #27ae60; color: #fff; }

.font-bold { font-weight: bold; color: #f1c40f; }
.txt-ok { color: #27ae60; font-weight: bold; font-size: 0.85em; }

@media (max-width: 800px) {
    .top-forms-container { flex-direction: column; }
}