﻿﻿﻿﻿﻿/* Reset y base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc; 
    padding: 15px; /* Espacio mínimo para que el formulario no toque los bordes del celular */
    color: #0f172a;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Evita que el formulario se corte por arriba en pantallas chicas */
    justify-content: center;
}

body.reserva-cargando .pricing-card,
body.reserva-cargando .status-section,
body.reserva-cargando #formReserva,
body.reserva-cargando #visorTotal,
body.reserva-cargando .botones-accion,
body.reserva-cargando #mapa-asientos {
    visibility: hidden;
}

.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
    position: relative;
    padding: 0 !important;
}

/* Cabecera con degradado suave */
.header-evento {
    position: relative;
    /* Cirugía Alondra: Degradado ultra-suave con pasos intermedios */
    -webkit-mask-image: linear-gradient(
        to bottom, 
        rgba(0,0,0,1) 0%,      /* Empieza sólido */
        rgba(0,0,0,1) 80%,     /* Imagen 100% nítida detrás del título */
        rgba(0,0,0,0.2) 98%,   /* Desvanecimiento casi al final */
        rgba(0,0,0,0) 100%     /* Desaparece del todo al final */
    );
    mask-image: linear-gradient(
        to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 80%, 
        rgba(0,0,0,0.2) 98%, 
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
}

.form-body {
    padding: 24px;
    padding-top: 15px; /* Compactación extrema del inicio del formulario */
    position: relative;
    z-index: 1;
}

/* Títulos centrados */
.titulo-principal {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.titulo-base {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b; /* Un gris muy oscuro para que se vea bien */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.titulo-obra {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    /* Sombra blanca intensa que hace que la letra negra siempre resalte sobre fotos oscuras */
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.8);
}

/* SELECTORES Y FORMULARIO */
.selector-container, .form-grupo { margin-bottom: 1.25rem; }
.selector-label, .form-label {
    display: block;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.selector, .form-input {
    width: 100%;
    padding: 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.2s;
}
.selector:focus, .form-input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.phone-field-public .iti {
    width: 100%;
    background: #fbfdff;
    border: 1px solid var(--ui-line, #cdd9ea);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.phone-field-public .iti:focus-within {
    border-color: #86a6ff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.phone-field-public .form-input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 96px !important;
}

.phone-field-public .iti__selected-country,
.phone-field-public .iti__selected-country-primary,
.phone-field-public .iti__country-container,
.phone-field-public .iti__flag,
.phone-field-public .iti__flag-box {
    box-shadow: none !important;
}

.phone-field-public .iti__selected-country {
    border-radius: 10px 0 0 10px;
    border-right: 1px solid #d7e0ea;
    background: transparent !important;
}

.phone-field-public .iti__selected-country-primary:hover,
.phone-field-public .iti__selected-country-primary:focus,
.phone-field-public .iti__selected-country:has(+ .iti__country-selector:hover) .iti__selected-country-primary {
    background: rgba(15, 23, 42, .04) !important;
}

.phone-field-public .iti__dropdown-content {
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    overflow: hidden;
}

/* Precios */
.precios-compactos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.precio-compacto {
    position: relative;
    flex: 1 1 120px;
    padding: 12px 8px; /* Compacto verticalmente */
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background: #fff;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    min-height: 85px;
}

.precio-compacto:active {
    transform: scale(0.95);
}

/* Títulos: Siempre en una sola línea */
/* Nombres de categorías: ANTICIPADA, BOLETERÍA, JUBILADO */
.precio-tipo {
    font-size: 1.1rem !important; /* Aumentado de 0.85 a 1.1 */
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap; 
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Precios: Mantenemos el impacto pero con mejor color */
.precio-valor {
    font-size: 1.8rem !important; 
    font-weight: 900 !important;
    line-height: 1.1;
    color: #0f172a;
    text-align: center;
}

/* Colores */
/* Anticipada */
.precio-anticipada { 
    background: #f0fdf4 !important; 
    border: 2px solid #10b981 !important; 
    /* Esta sombra le da cuerpo al botón sin ser tosca */
    box-shadow: 0 4px 0 #10b981 !important; 
    margin-bottom: 4px; /* Espacio para que la sombra no se corte */
}

/* Colores de texto */
.precio-anticipada .precio-tipo { color: #065f46 !important; }
.precio-anticipada .precio-valor { color: #059669 !important; }

/* Efecto de click */
.precio-anticipada:active { 
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #10b981 !important; 
}

/* Boletería */
.precio-boleteria { 
    background: #f8fafc !important; 
    border: 2px solid #94a3b8 !important; 
    box-shadow: 0 4px 0 #94a3b8 !important; 
    margin-bottom: 4px;
}

.precio-boleteria .precio-tipo { color: #334155 !important; }
.precio-boleteria .precio-valor { color: #1e293b !important; }

.precio-boleteria:active { 
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #94a3b8 !important; 
}

/* Jubilados */
#cardJubilado { 
    background: #eff6ff !important; 
    border: 2px solid #3b82f6 !important; 
    box-shadow: 0 4px 0 #3b82f6 !important; 
    margin-bottom: 4px;
}

#cardJubilado .precio-tipo { color: #1e40af !important; }
#cardJubilado .precio-valor { color: #2563eb !important; }

#cardJubilado:active { 
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #3b82f6 !important; 
}

/* Burbuja de cantidad */
.badge-cantidad {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #0f172a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none; 
    transition: transform 0.1s;
    z-index: 10;
    overflow: visible;
}

/* Círculo rojo */
.badge-cantidad::before {
    content: "-";
    position: absolute;
    /* Lo posicionamos desde abajo para que no quede centrado */
    left: -8px; 
    bottom: -5px; 
    
    /* Círculo rojo */
    background: #ff4444; 
    color: white;
    width: 18px;         
    height: 18px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 14px;
    font-weight: bold;
    border: 1.5px solid white;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    z-index: 11; /* Lo subimos para que se vea por encima del negro */
}

/* Efecto visual cuando el usuario la toca */
.badge-cantidad:active {
    transform: scale(0.85); 
    background: #1e293b; /* Cambia un poquito el color al presionar */
}

/* Estado y barra */
/* Ajuste final de la barra */
.status-section {
    margin: 2rem 0 !important; /* Más espacio arriba y abajo */
    padding: 0 20px !important;
}

.barra-fondo {
    background-color: #f1f5f9 !important; 
    height: 12px !important; /* Un poco más de grosor */
    border-radius: 50px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    border: none !important;
}

#barraProgreso {
    border-radius: 50px !important;
    /* Efecto de cristal sobre el color */
    background-image: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0) 50%, 
        rgba(0,0,0,0.1) 100%
    ) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
}

/* --- REBRANDING PROYECTO ALONDRA: BOTONES FLOTANTES --- */
.botones-accion { 
    display: flex; 
    gap: 15px; 
    margin-top: 1.5rem; 
}

.btn-accion {
    flex: 1;
    padding: 1.1rem;
    border: none;
    border-radius: 16px; /* Mantenemos tu redondeo que es muy bueno */
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto elástico */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sombra inicial de flote */
}

/* PAGAR AHORA: Verde confianza */
.btn-pagar-ahora { 
    background: #22c55e; 
    color: white; 
}

.btn-pagar-ahora:not(:disabled):hover { 
    background: #16a34a; 
    transform: translateY(-4px); /* Sube al flotar */
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3); 
}

/* RESERVAR: Azul/Gris profesional */
.btn-reservar { 
    background: #3b82f6; /* Un azul vibrante pero confiable */
    color: white; 
}

.btn-reservar:not(:disabled):hover { 
    background: #2563eb; 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); 
}

/* Estado cuando falta seleccionar entrada */
.btn-accion:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: none !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}
/* OTROS ELEMENTOS */
.fila-cantidades { display: flex; gap: 15px; }
.fila-cantidades .form-grupo { flex: 1; }

/* MODAL */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-contenido { background: white; border-radius: 24px; padding: 2rem; max-width: 400px; width: 90%; }

@media (max-width: 380px) {
    .precio-compacto { flex: 1 1 45%; }
    .botones-accion { flex-direction: column; }
}
    .honeypot {
    display: none !important;
    visibility: hidden;
}
/* Contenedor del alias */
.alias-container {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.alias-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
}

.alias-valor {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin-bottom: 15px !important;
    font-family: 'Inter', sans-serif;
}

/* Botón copiar */
.btn-copiar {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-copiar:hover { background: #1d4ed8; }

.modal-btn-cerrar {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    background: #eef2f7;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .1s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.modal-btn-cerrar:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.modal-btn-cerrar:active {
    transform: translateY(1px);
}

#modalTituloPrincipal{
    text-align:center !important;
    font-weight:850 !important;
    font-size:1.34rem !important;
    line-height:1.18 !important;
    margin:0 0 .9rem 0 !important;
    color:#0f172a !important;
    letter-spacing:-0.01em !important;
}
@media (max-width: 430px){
    #modalTituloPrincipal{
        font-size:1.26rem !important;
        margin-bottom:.85rem !important;
    }
}
.reserva-leyenda-registrada {
    display: block;
    font-size: .98rem;
    line-height: 1.32;
    font-weight: 700;
    text-align: center;
    color: #475569;
    margin-top: 0;
}
.reserva-leyenda-registrada strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.22;
    color: #334155;
    margin-bottom: 2px;
}
.reserva-leyenda-registrada br {
    display: none;
}

.btn-cerrar-modal-visible {
    display: block;
}

/* Estado desactivado */
.btn-accion:disabled, 
.btn-pagar-ahora:disabled, 
.btn-reservar:disabled {
    background-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #94a3b8 !important;
}

/* Ocultamos grupos específicos de cantidad */
#cantidad, 
#cantidad_jubilados,
#contenedorInputJubilado,
.form-grupo:has(#cantidad),
.form-grupo:has(#cantidad_jubilados) {
    display: none !important;
}

/* Por si tu navegador no soporta :has, ocultamos las etiquetas por su texto */
label.form-label:nth-of-type(1), 
label.form-label:nth-of-type(2) {
    display: none !important;
}
/* EFECTO BOTON 3D CON SOMBRA VERDE Y SIGNO (+) ROJO */
.precio-compacto {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centra el texto verticalmente */
    padding: 12px 8px !important; /* Padding uniforme, sin los 35px de antes */
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 85px; /* Altura fija para que todas las tarjetas midan igual */
    border-radius: 18px; /* Bordes redondeados de App */
    border: 2px solid #f1f5f9; /* Borde sutil inicial */
}


/* EL SIGNO + EN ROJO - LIMPIO Y CENTRADO */
.precio-compacto::after {
    display: none !important;
}

/* Efecto de hundimiento al presionar */
.precio-compacto:active {
    transform: translateY(3px) !important;
    border-bottom: 2px solid #10b981 !important;
    background-color: #f0fdf4 !important; /* Fondo verde muy tenue al tocar */
}

/* Animación de vibración visual */
@keyframes shake-visual {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.vibrar-visual {
    animation: shake-visual 0.15s ease-in-out;
}
/* Validación de campos */

/* Clase para campos incompletos */
.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important; /* Fondo rosado sutil */
    transition: all 0.3s ease;
}

/* Vibración para llamar la atención */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Ajuste para que los inputs se vean bien al estar marcados */
input.input-error::placeholder {
    color: #f87171;
}

/* Espacio extra para que los campos de datos no queden pegados */
.form-section {
    margin-top: 30px !important;
}

.input-group {
    margin-bottom: 20px !important;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}



body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out; 
    margin: 0;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.88) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}
