:root {
    --gametown-purple: #4d368c;
    /* Morado Corporativo */
    --gametown-cyan: #20b8ec;
    /* Celeste Alternativo */
    --gametown-yellow: #fce246;
    /* Amarillo Corporativo */
    --bg-light: #f8fafc;
    /* Fondo limpio y claro premium (Slate 50) */
    --text-main: #0f172a;
    /* Texto de alta lectura (Slate 900) */
    --text-muted: #64748b;
    /* Descripciones atenuadas (Slate 500) */
    --border-color: #cbd5e1;
    /* Bordes finos modernos */
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* Forzar la visualización correcta del flujo de JavaScript */
.oculto {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at 0% 0%, rgba(77, 54, 140, 0.04) 0%, transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(32, 184, 236, 0.05) 0%, transparent 45%),
                var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ==========================================================================
   SECCIÓN HERO (PANTALLA DE BIENVENIDA) 🎬
   ========================================================================== */
/* --- CONTENEDOR HERO GENERAL --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Ocupa el 80% de la altura de la pantalla */
    /* Fondo claro de alta gama con sutiles degradados morado/celeste */
    background: radial-gradient(circle at 100% 0%, rgba(32, 184, 236, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, rgba(77, 54, 140, 0.12) 0%, transparent 50%),
                linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- CAPA DE AJUSTE (OVERLAY) --- */
.overlay {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CONTENIDO CENTRAL --- */
.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LOGO --- */
.hero-content .logo {
    max-width: 220px;
    /* Tamaño controlado */
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 15px rgba(77, 54, 140, 0.12));
    /* Sombra morada corporativa suave */
    transition: transform 0.3s ease;
}

.hero-content .logo:hover {
    transform: scale(1.05);
    /* Efecto interactivo */
}

/* --- TÍTULO ÉPICO --- */
.hero-content h1 {
    color: #1a1333; /* Morado/Indigo muy oscuro */
    font-size: 2.8rem;
    /* Grande y llamativo */
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Arial Black', Impact, sans-serif;
    /* Tipografía con fuerza */
}

/* --- TEXTO SECUNDARIO --- */
.hero-content p {
    color: #4d368c; /* Morado corporativo */
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 35px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* --- BOTÓN DE ACCIÓN (ESTILO BOTÓN INICIAR PARTIDA) --- */
#btnIniciar {
    background: linear-gradient(135deg, #fce246 0%, #e2c727 100%);
    /* Amarillo GameTown */
    color: #1a1333;
    /* Texto morado muy oscuro para contraste perfecto */
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    /* Bordes redondeados modernos */
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(252, 226, 70, 0.35);
    /* Brillo amarillo suave */
    transition: all 0.2s ease;
    outline: none;
}

#btnIniciar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 226, 70, 0.55);
    background: linear-gradient(135deg, #ffffff 0%, #fce246 100%);
    /* Se ilumina a blanco */
}

#btnIniciar:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(252, 226, 70, 0.4);
}

/* --- RESPONSIVE PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content .logo {
        max-width: 170px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    #btnIniciar {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        /* El botón ocupa todo el ancho en mobile para mejor usabilidad */
        max-width: 280px;
    }
}

/* ==========================================================================
   ESTRUCTURA DE CONTENEDORES (GOMT / FORMULARIO) 🏛️
   ========================================================================== */
.contenedor-form {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--bg-light);
    animation: fadeIn 0.4s ease-out;
}

.paso {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

/* Tarjeta Fina Flotante Minimalista */
.card-form {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    border: 1px solid rgba(77, 54, 140, 0.08);
    box-shadow: 0 15px 45px rgba(77, 54, 140, 0.06), 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Borde superior tricolor con degradado de marca GameTown */
.card-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gametown-purple) 0%, var(--gametown-cyan) 50%, var(--gametown-yellow) 100%);
    z-index: 10;
}

/* Cabeceras de Secciones de Formulario */
.titulo-seccion {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.titulo-seccion .icono {
    font-size: 2rem;
}

.titulo-seccion h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gametown-purple);
}

.titulo-seccion p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   SISTEMAS DE PROGRESO (STEPPER & PROGRESS BAR) 📈
   ========================================================================== */
.progress-wrapper,
.progress-container {
    margin-bottom: 32px;
}

/* Stepper por Puntos (Paso 1) */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 16px;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    background: linear-gradient(135deg, var(--gametown-purple) 0%, var(--gametown-cyan) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(77, 54, 140, 0.3), 0 0 0 5px rgba(77, 54, 140, 0.12);
}

/* Barra de Progreso Lineal (Pasos 2 al 6) */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gametown-purple) 0%, var(--gametown-cyan) 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.paso2 {
    width: 33.3%;
}

.progress-fill.paso3 {
    width: 50%;
}

.step-text,
.progress-container span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-text .badge-step {
    background-color: rgba(77, 54, 140, 0.1);
    color: var(--gametown-purple);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 700;
}

/* ==========================================================================
   CAMPOS DE ENTRADA, FORMULARIOS Y SELECTS 📝
   ========================================================================== */
.campo {
    margin-bottom: 22px;
}

.campo label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon .icon {
    position: absolute;
    right: 16px;
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
}

.input-icon input,
select,
input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon input {
    padding-right: 48px;
}

/* Interacción Limpia de Focus y Hover */
.input-icon input:hover,
select:hover,
input[type="text"]:hover,
input[type="number"]:hover,
input[type="date"]:hover {
    border-color: #94a3b8;
}

.input-icon input:focus,
select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
    background: #ffffff;
    border-color: var(--gametown-cyan);
    box-shadow: 0 0 0 4px rgba(32, 184, 236, 0.15);
}

/* Customización limpia para Menús Desplegables (Nativos) */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

input[type="file"] {
    border: 1px dashed #cbd5e1;
    background: var(--bg-light);
    padding: 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ==========================================================================
   CONTADORES NUMÉRICOS (Paso 2) 🔢
   ========================================================================== */
.contador-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.contador-card h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gametown-purple);
}

.contador {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.contador button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contador button:hover {
    background: var(--gametown-purple);
    color: #ffffff;
}

.contador span {
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-main);
}

/* ==========================================================================
   COMPONENTE DE GRIDS Y BLOQUES INFORMATIVOS (Pasos 3, 4, 5) 🔲
   ========================================================================== */
.horarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* Formatos de Cajas Seleccionables */
.horarios div {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.horarios div:hover {
    transform: translateY(-2px);
    border-color: var(--gametown-cyan);
    background-color: rgba(32, 184, 236, 0.05);
    box-shadow: 0 6px 15px rgba(32, 184, 236, 0.1);
}

.horarios div.selected {
    transform: translateY(-2px);
    background-color: rgba(77, 54, 140, 0.05) !important;
    border: 2px solid var(--gametown-purple) !important;
    box-shadow: 0 8px 20px rgba(77, 54, 140, 0.15);
}

/* Estado de Horarios Reservados / Ocupados */
.horarios div.ocupado {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.65;
}

.horarios div.ocupado:hover {
    transform: none !important;
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

/* Contenedores de Información de Resumen por Sección */
.dia-evento,
.resumen-horario,
.resumen-tematica,
.resumen-costos {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--gametown-cyan);
}

.resumen-costos {
    border-left: 4px solid var(--gametown-yellow);
    background: rgba(252, 226, 70, 0.04);
}

.resumen-costos h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gametown-purple);
}

.resumen-costos strong {
    font-size: 1.2rem;
    color: var(--gametown-purple);
    font-weight: 800;
}

#gridTematicas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tematica-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tematica-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(32, 184, 236, 0.12);
    border-color: var(--gametown-cyan);
}

.tematica-card.selected {
    transform: translateY(-4px);
    border: 3px solid var(--gametown-purple) !important;
    background-color: rgba(77, 54, 140, 0.02);
    box-shadow: 0 12px 30px rgba(77, 54, 140, 0.15);
}

.tematica-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tematica-card span {
    display: block;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--gametown-purple);
}

/* ==========================================================================
   SERVICIOS ADICIONALES Y EXTRAS ⚙️
   ========================================================================== */
#gridServicios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.servicio-card {
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(32, 184, 236, 0.12);
    border-color: var(--gametown-cyan);
}

.servicio-card.selected {
    transform: translateY(-4px);
    border: 2px solid var(--gametown-cyan) !important;
    background-color: rgba(32, 184, 236, 0.03);
    box-shadow: 0 12px 30px rgba(32, 184, 236, 0.15);
}

.servicio-card-checkbox {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%) scale(1.3);
    cursor: pointer;
    z-index: 10;
}

/* ==========================================================================
   RESUMEN DETALLADO FINAL (Paso 6) 🧾
   ========================================================================== */
.reserva-resumen {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.item-resumen {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.item-resumen:nth-child(even) {
    background: var(--bg-light);
}

.item-resumen:last-child {
    border-bottom: none;
}

.item-resumen span {
    color: var(--text-muted);
    font-weight: 500;
}

.item-resumen strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================================================
   BOTONES DE NAVEGACIÓN COHESIVOS 🔘
   ========================================================================== */
.botones-navegacion {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-volver {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: 2px solid rgba(77, 54, 140, 0.2);
    border-radius: var(--radius-md);
    color: var(--gametown-purple);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-volver:hover {
    background: rgba(77, 54, 140, 0.05);
    border-color: var(--gametown-purple);
    color: var(--gametown-purple);
}

.btn-continuar {
    flex: 2;
    /* Mayor peso visual al flujo afirmativo */
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--gametown-purple) 0%, var(--gametown-cyan) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(77, 54, 140, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-continuar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 184, 236, 0.35);
    background: linear-gradient(135deg, var(--gametown-cyan) 0%, var(--gametown-purple) 100%);
}

.btn-continuar:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(77, 54, 140, 0.15);
}

/* Ajuste específico para el botón final de confirmación */
#confirmarReserva {
    background-color: #10b981;
    /* Verde esmeralda para el cierre de conversión */
}

#confirmarReserva:hover {
    background-color: #059669;
}

/* ==========================================================================
   ANIMACIONES ⚡
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================================
   SOPORTE PARA DISPOSITIVOS MÓVILES (RESPONSIVE) 📱
   ========================================================================== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .contenedor-form {
        padding: 20px 12px;
    }

    .card-form {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }

    .botones-navegacion {
        flex-direction: column-reverse;
        /* El botón de avanzar se sitúa arriba en celulares para mejorar el alcance del pulgar */
        gap: 10px;
    }

    .btn-continuar,
    .btn-volver {
        width: 100%;
        padding: 14px;
    }

    .contador-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/*eSTE CODIGO PUEDE SER ELIMINDO*/

.card-form {
    position: relative;
    margin-top: 45px;
    /* Dejamos un espacio arriba para que el muñeco no se corte */
}

.contenedor-mascota {
    position: absolute;
    top: -55px;
    /* Lo empuja hacia arriba para que quede "asomado" sobre el borde */
    left: 50%;
    transform: translateX(-50%);
    /* Lo centra perfectamente */
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
    /* Evita cualquier problema al hacer clic cerca */
}

.muneco-asomado {
    width: 90px;
    /* Tamaño perfecto en computadora */
    height: auto;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
    animation: ligeroBalanceo 4s ease-in-out infinite;
}

/* Animación sutil para que no sea una imagen estática aburrida */
@keyframes ligeroBalanceo {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(3deg);
    }

    /* Flota y se inclina un poquito */
}

/* Ajustes exclusivos para Celulares (Responsive) */
@media (max-width: 480px) {
    .card-form {
        margin-top: 35px;
        /* Un poco menos de margen en pantallas chicas */
    }

    .contenedor-mascota {
        top: -45px;
        /* Ajusta la altura en móviles */
    }

    .muneco-asomado {
        width: 75px;
        /* Se encoge un poco en celulares para mantener la proporción */
    }
}

/* ==========================================================================
   RESUMEN DETALLADO FINAL (Paso 7 - GameTown Style) 🧾
   ========================================================================== */

/* Contenedor Principal en formato Grid */
.resumen-final-tabla {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 25px 0;
}

/* Cada celda o bloque de información */
.bloque-resumen {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.bloque-resumen:hover {
    border-color: var(--gametown-cyan);
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 54, 140, 0.05);
}

/* Estilo de la etiqueta superior */
.bloque-resumen strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Estilo del valor dinámico inferior */
.bloque-resumen span {
    font-size: 1rem;
    color: var(--gametown-purple);
    font-weight: 700;
    word-break: break-word;
}

/* Bloques que abarcan el ancho completo (Pastel y Relleno) */
.bloque-resumen.largo {
    grid-column: span 2;
}

/* ==========================================================================
   VARIANTES DE COLOR (TOQUES CORPORATIVOS)
   ========================================================================== */

/* Destacado Celeste (Fecha y Hora) */
.bloque-resumen.destacado-cyan {
    border-left: 4px solid var(--gametown-cyan);
    background: rgba(32, 184, 236, 0.04);
}

.bloque-resumen.destacado-cyan span {
    color: var(--gametown-cyan);
}

/* Destacado Morado (Temáticas) */
.bloque-resumen.destacado-purple {
    border-left: 4px solid var(--gametown-purple);
    background: rgba(77, 54, 140, 0.04);
}

.bloque-resumen.destacado-purple span {
    color: var(--gametown-purple);
}

/* ==========================================================================
   RESPONSIVE (CELULARES) 📱
   ========================================================================== */
@media (max-width: 580px) {
    .resumen-final-tabla {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bloque-resumen.largo {
        grid-column: span 1;
    }
}

/* Estilos para el Modal de Éxito */
/* --- CONFIGURACIÓN BASE DEL MODAL (FONDO OSCURECIDO) --- */
.modal-exito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 15, 54, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

/* Clase para ocultar el modal con JS */
.modal-exito.oculto {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* --- CONTENEDOR DEL MODAL --- */
.modal-contenido {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(77, 54, 140, 0.15);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(77, 54, 140, 0.08);
    position: relative;
    animation: desplegarModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-contenido::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gametown-purple) 0%, var(--gametown-cyan) 50%, var(--gametown-yellow) 100%);
    z-index: 10;
}

@keyframes desplegarModal {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- ELEMENTOS INTERNOS --- */
.modal-icono {
    font-size: 40px;
    background: rgba(32, 184, 236, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-contenido h2 {
    color: var(--gametown-purple);
    font-size: 24px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-contenido p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-contenido strong {
    color: var(--gametown-purple);
}

/* --- CAJA DEL CÓDIGO DE RESERVA --- */
.codigo-reserva-box {
    background-color: rgba(77, 54, 140, 0.03);
    border: 2px dashed rgba(32, 184, 236, 0.4);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
}

.codigo-reserva-box span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

.codigo-reserva-box strong {
    font-size: 32px;
    color: var(--gametown-purple);
    font-weight: 900;
    display: block;
    margin-top: 8px;
    letter-spacing: 2px;
}

.separador-modal {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* --- SECCIÓN COMPARTIR WHATSAPP --- */
.seccion-compartir h3 {
    color: var(--gametown-purple);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.btn-whatsapp-modal {
    display: inline-block;
    background: linear-gradient(135deg, var(--gametown-yellow) 0%, #e2c727 100%);
    color: #1a1503 !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 30px;
    border-radius: 50px;
    margin-top: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(252, 226, 70, 0.3);
    border: 1px solid #ebd02c;
}

.btn-whatsapp-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 226, 70, 0.6);
}

.btn-whatsapp-modal:active {
    transform: translateY(1px);
}

/* --- BOTÓN FINALIZAR (ESTILO INTERFAZ) --- */
.btn-finalizar-modal {
    width: 100%;
    background: linear-gradient(135deg, #4d368c 0%, #20b8ec 100%);
    /* Degradado Morado a Cian */
    color: white;
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 25px;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 4px 15px rgba(77, 54, 140, 0.3);
}

.btn-finalizar-modal:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    /* Efecto de iluminación sutil al pasar el mouse */
}

.btn-finalizar-modal:active {
    transform: translateY(1px);
}

/* ====================== responsive ====================== */
@media (max-width: 768px) {
    #gridTematicas {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tematica-card img {
        height: 170px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    #gridTematicas {
        grid-template-columns: 1fr;
    }

    .tematica-card img {
        height: 200px;
    }
}

/*===================ESTILOS TEMATICAS MODAL======================*/
/* ==========================================================================
   ESTILOS PREMIUM PARA FORMULARIOS Y CREACIÓN DE TEMÁTICAS
   ========================================================================== */

/* Ancho específico para el formulario de creación (más compacto y estilizado) */
.modal-form-small {
    max-width: 500px !important;
}

/* Fondo gris ultra suave para el área de inputs */
.bg-light {
    background-color: #f8fafc !important;
    /* Slate 50 */
}

/* Grupos de Formulario (Contenedor de Label + Input) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Etiquetas de Formularios (Labels) */
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    /* Slate 600 */
}

/* Asterisco de campo obligatorio */
.required {
    color: #ef4444;
    /* Rojo de advertencia */
    margin-left: 2px;
}

/* Inputs y Textareas Premium */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    /* Texto oscuro Slate 900 */
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    /* Borde suave */
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Foco interactivo (Anillo de luz Indigo) */
.form-control:focus {
    outline: none;
    border-color: #4338ca;
    /* Indigo */
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

/* Placeholders más limpios */
.form-control::placeholder {
    color: #94a3b8;
}

/* Deshabilitar el redimensionamiento tosco de los textareas */
.no-resize {
    resize: none;
}

/* Estilización del Input File */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.form-control-file {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    color: #475569;
    background-color: #ffffff;
    border: 1px dashed #cbd5e1;
    /* Borde punteado de carga */
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-control-file:hover {
    border-color: #4338ca;
    background-color: #f5f3ff;
    /* Tono lila muy suave */
}

/* Selector nativo del navegador estilizado */
.form-control-file::file-selector-button {
    background-color: #e0e7ff;
    /* Indigo super suave */
    color: #4338ca;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-right: 12px;
    transition: background-color 0.2s ease;
}

.form-control-file::file-selector-button:hover {
    background-color: #c7d2fe;
}

/* Texto de ayuda inferior */
.form-help-text {
    font-size: 11px;
    color: #64748b;
    /* Slate 500 */
    margin-top: 4px;
}

/* Botón Indigo de Guardar */
.btn-indigo {
    background: #4338ca;
    /* Indigo Principal */
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-indigo:hover {
    background: #3730a3;
    /* Indigo más oscuro */
    box-shadow: 0 4px 6px -1px rgba(67, 56, 202, 0.2);
}

/* ==========================================================================
   DISEÑO REDISEÑADO DEL PASO 7 (RESUMEN DE LA FIESTA) 📋
   ========================================================================== */
.resumen-redisenado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.resumen-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.resumen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 54, 140, 0.08);
}

.resumen-card.destacado {
    border: 2px solid var(--gametown-cyan);
    box-shadow: 0 8px 24px rgba(32, 184, 236, 0.1);
}

.resumen-card.destacado:hover {
    box-shadow: 0 10px 30px rgba(32, 184, 236, 0.15);
}

.resumen-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.resumen-icon {
    font-size: 24px;
}

.resumen-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gametown-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.resumen-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resumen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}

.resumen-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resumen-row strong {
    color: var(--text-main);
    font-weight: 600;
}

.resumen-row span {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* ==========================================================================
   ESTILOS DE SELECCIÓN DE PLAN Y CARD AMARILLA 💳
   ========================================================================== */
.plan-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8 !important;
}

.plan-card.selected {
    border-color: var(--gametown-cyan) !important;
    box-shadow: 0 0 0 4px rgba(32, 184, 236, 0.25) !important;
    transform: scale(1.02);
}

.resumen-card.destacado-yellow {
    border: 2px solid var(--gametown-yellow) !important;
    box-shadow: 0 8px 24px rgba(252, 226, 70, 0.1) !important;
}

.resumen-card.destacado-yellow:hover {
    box-shadow: 0 10px 30px rgba(252, 226, 70, 0.18) !important;
}

/* Botón de vista previa sutil para imágenes */
.preview-eye {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
    border-radius: 6px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    user-select: none !important;
}

.preview-eye:hover {
    background: #ffffff !important;
    color: var(--gametown-cyan) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.lightbox-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.9); /* Slate 900 con 90% opacidad */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.lightbox-modal.oculto {
    display: none !important;
}

.lightbox-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #ffffff;
}

.lightbox-modal:not(.oculto) .lightbox-contenido {
    transform: scale(1);
}

.lightbox-cerrar {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    line-height: 40px;
}

.lightbox-cerrar:hover {
    color: var(--gametown-cyan);
    transform: scale(1.1);
}

.plan-card img, .tematica-card img {
    cursor: zoom-in;
}

@media only screen and (max-width: 768px) {
    .lightbox-cerrar {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
    .lightbox-contenido {
        max-width: 95%;
        max-height: 75%;
    }
}

/* --- LOADING OVERLAY PRESTIGIO --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75); /* Slate 900 con opacidad */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: scaleInLoading 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInLoading {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Spinner animado GameTown */
.spinner-loading {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--gametown-purple);
    border-right: 5px solid var(--gametown-cyan);
    border-radius: 50%;
    margin: 0 auto 24px auto;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-card h3 {
    color: var(--gametown-purple);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.loading-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.loading-tip {
    display: inline-block;
    font-size: 0.8rem;
    color: #4d368c;
    background: rgba(77, 54, 140, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
}

/* Alineación de la fecha nativa */
.input-icon input[type="date"] {
    padding-right: 18px;
}

/* Estilo y alineación del indicador nativo de fecha */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}