/**
 * Estilos específicos para la sección de Inscripción
 * Ubicación: assets/css/inscription-form.css
 */
/* Forzar a que el contenedor rompa márgenes internos del tema si es necesario */
.inscription-page-wrapper {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* --- ESTILOS DEL HERO EXACTO AL MOCKUP --- */
.inscription-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    min-height: 380px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* MODIFICACIÓN: Lee la ruta exacta inyectada desde PHP */
    background-image: var(--hero-bg); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 5rem 1.5rem;
    box-sizing: border-box;
}

/* Capa oscura superpuesta exacta */
.inscription-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72); /* Oscurecimiento dramático para resaltar textos */
    z-index: 1;
}

/* Contenido del Hero superior */
.inscription-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Título Deportivo e Impactante - Tamaño Optimizado */
.inscription-hero .hero-title {
    font-family: var(--font-race); /* Fuentes condensadas nativas de alta compatibilidad */
    /* SE REDUJO EL MÍNIMO DE 2rem A 1.4rem PARA EVITAR QUE "FORMULARIO" SE ROMPA EN MÓVILES */
    font-size: clamp(1.4rem, 7vw, 4.5rem); 
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic; /* Inclinación idéntica */
    letter-spacing: -2px; /* Junta las letras exactamente como el mockup */
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    display: block; 
    width: 100%;
    word-wrap: normal; /* Evita que la palabra se quiebre internamente si hay espacio suficiente */
    overflow-wrap: normal;
}

/* Elementos internos del título para estructurar las palabras en bloque */
.inscription-hero .hero-title span {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

/* Colores del título */
.inscription-hero .hero-title .text-white {
    color: #ffffff;
    margin-right: 8px; /* Espaciado controlado en modo horizontal (PC) */
}

.inscription-hero .hero-title .text-neon {
    color: #39ff14; /* Verde neón puro vibrante */
}

/* Subtítulo descriptivo centrado */
.inscription-hero .hero-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: #ffffff;
    font-weight: bold; /* El mockup muestra el texto blanco con buen cuerpo */
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* --- SECCIÓN DEL CUERPO --- */
.inscription-body-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

/* ==========================================================================
   Ajustes responsivos para pantallas pequeñas (Celulares hasta 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .inscription-hero {
        min-height: 320px; 
        padding: 4rem 1rem;
    }
    
    .inscription-hero .hero-title {
        /* CONTROL CRÍTICO: Espaciado de letras un poco más suave en móvil para ayudar a que quepa */
        letter-spacing: -0.5px; 
        line-height: 1.15; /* Proporción compacta ideal para bloques independientes */
    }

    .inscription-hero .hero-title .text-white,
    .inscription-hero .hero-title .text-neon {
        display: block; /* Fuerza el salto de línea por palabra completa */
        margin-right: 0;
        width: 100%;
        font-size: 33px; 
        box-sizing: border-box;
        padding: 0 4px; /* Pequeño colchón de seguridad */
    }
    
    .inscription-hero .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}
/* --- ESTILOS DE LA SECCIÓN DE REQUISITOS --- */

/* ========================================
   1. CONTENEDOR GENERAL Y RESET INTERNO
   ============================================== */
.inscription-page-wrapper {
    width: 100%;
    background-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================
   2. SECCIÓN HERO (PANTALLA COMPLETA / FULL WIDTH)
   ===================================================== */
.inscription-hero {
    position: relative;
    /* Truco estructural para romper el contenedor interno de WordPress */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    min-height: 380px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Carga la variable dinámica inyectada desde el archivo PHP */
    background-image: var(--hero-bg); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 5rem 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Capa oscura superpuesta para dar contraste dramático */
.inscription-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72); 
    z-index: 1;
}

/* Contenido sobre el overlay */
.inscription-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

/* Título de Carrera con inclinación y tipografía compacta */
.inscription-hero .hero-title {
    font-family: var(--font-race);
    font-size: 59px;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic; 
    letter-spacing: -2px; 
    margin: 0 0 1rem 0;
    line-height: 1.05;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 15px; 
}

.inscription-hero .hero-title .text-white {
    color: #ffffff;
}

.inscription-hero .hero-title .text-neon {
    color: #39ff14; /* Verde Fluorescente Oficial */
}

/* Subtítulo del Hero */
.inscription-hero .hero-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: #ffffff;
    font-weight: bold;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   3. CUERPO DE LA PÁGINA (ZONA DE CONTENIDO)
   ========================================================================== */
.inscription-body-section {
    max-width: 1200px;
    margin: 0 auto;
    padding:27px 1.5rem;
    box-sizing: border-box;
}

.form-container-inner {
    width: 100%;
}

/* ==========================================================================
   4. BLOQUE DE REQUISITOS (GRID RESPONSIVO)
   ========================================================================== */
.requirements-block {
    width: 100%;
    margin-bottom: 4rem;
    position: relative;
}

/* Detalle circular decorativo verde neón */
.requirements-block::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -60px;
    width: 130px;
    height: 130px;
    background-color: #39ff14;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.85;
    pointer-events: none;
}

/* Título de Requisitos */
.requirements-main-title {
    font-family: var(--font-race);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-style: italic;
    text-transform: uppercase;
    color: #000000;
    position: relative;
    z-index: 1;
    margin: 0 0 2.5rem 0;
    padding-left: 10px;
    letter-spacing: -0.5px;
}

/* Grid de Tarjetas (2 columnas en Escritorio) */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Estructura de Tarjeta Individual */
.requirement-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #00c853; /* Línea de borde verde */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Encabezados internos de la tarjeta */
.requirement-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.75rem;
}

.requirement-card .card-header h3 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

/* Contenedor del ícono SVG */
.requirement-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #00c853;
}

.requirement-card .card-icon svg {
    width: 100%;
    height: 100%;
}

/* Listas de Requisitos */
.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.requirement-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Círculos con el check verde */
.requirement-list .check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: rgba(0, 198, 83, 0.1);
    color: #00c853;
    border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
    margin-top: 2px;
}

.requirement-list .check-icon svg {
    width: 100%;
    height: 100%;
}

.requirement-list p {
    font-family: 'Arial', sans-serif;
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Contenedor de reserva para el formulario */
.inscription-fields-container {
    width: 100%;
}

/* ==========================================================================
   5. OPTIMIZACIÓN PARA MÓVILES Y TABLETS (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .requirements-grid {
        grid-template-columns: 1fr; /* Pasa a 1 columna automáticamente */
        gap: 1.5rem;
    }
    
    .requirements-block::before {
        width: 100px;
        height: 100px;
        top: -30px;
        left: -30px;
    }
}

@media (max-width: 768px) {
    .inscription-hero {
        min-height: 280px;
        padding: 4rem 1rem;
    }
    .inscription-hero .hero-title {
        letter-spacing: -1px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .requirement-card {
        padding: 1.5rem;
    }
    
    .requirement-card .card-header h3 {
        font-size: 1.15rem;
    }
    
    .requirement-list p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   FORMULARIO DE INSCRIPCIÓN Y SIDEBAR (BASADO EN FORMULARIO.JPG)
   ========================================================================== */

/* Animación sutil de entrada al cargar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Contenedor principal en dos columnas (Formulario + Mensaje de Pago) */
.inscription-main-form-block {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Relación de aspecto del mockup */
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    margin-top: 2rem;
}

/* --- COLUMNA IZQUIERDA: EL FORMULARIO --- */
.inscription-html-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.form-block-title {
    font-family: 'Arial', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.5px;
}

.form-block-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 2rem 0;
}

/* Filas de dos columnas internas (Email/Teléfono, Cédula/Fecha) */
.form-row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

/* Grupos de campos individuales */
.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-input-group label {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
}

/* Inputs, Selects y Calendario redondeados */
.form-input-group input,
.form-input-group select {
    font-family: 'Arial', sans-serif;
    font-size: 1.05rem;
    padding: 0.85rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sutil animación interactiva de enfoque (Focus) */
.form-input-group input:focus,
.form-input-group select:focus {
    border-color: #00c853;
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1);
}

.form-input-group input::placeholder {
    color: #94a3b8;
}

/* Estilo para el selector personalizado de categorías */
.select-custom-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' 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 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

/* Contenedor del Botón */
.form-submit-row {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Botón Verde Neón exacto al mockup con sutil transición */
.btn-submit-neon {
    font-family: 'Arial', sans-serif;
    background-color: #39ff14;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 4rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(57, 255, 20, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-neon:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(57, 255, 20, 0.45);
}

.btn-submit-neon:active {
    transform: scale(0.98);
}

/* --- COLUMNA DERECHA: RECUADRO INFORMATIVO DE PAGO --- */
.inscription-payment-sidebar {
    background: #f4f6f4; /* Tono de fondo gris claro/verdoso del mockup */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.sidebar-important-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0b3c95; /* Azul informativo */
    margin-bottom: 1.5rem;
}

.sidebar-important-header .important-icon {
    width: 32px;
    height: 32px;
}

.sidebar-important-header .important-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-important-header h4 {
    font-family: 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.5px;
}

.sidebar-intro-text {
    font-family: 'Arial', sans-serif;
    font-size: 1.15rem;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.sidebar-intro-text strong {
    font-weight: 800;
}

.payment-data-box h5 {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #000000;
    margin: 0 0 1rem 0;
    letter-spacing: 0.3px;
}

.payment-data-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-data-box ul li {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #000000;
}

.payment-data-box ul li strong {
    font-weight: 800;
    display: inline-block;
    min-width: 80px;
}

.sidebar-footer-text {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.4;
    margin: 0;
}

/* --- ESTILOS DEL CONTROL DE SUBIDA DE COMPROBANTES --- */
.label-optional {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: normal;
    font-style: italic;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0.2rem;
}

/* Ocultamos el input feo por defecto */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Diseñamos el gatillo visual estilizado */
.file-upload-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #64748b;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.file-upload-trigger svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.2s ease;
}

/* Efectos hover interactivos */
.file-upload-wrapper:hover .file-upload-trigger {
    border-color: #00c853;
    background-color: rgba(0, 200, 83, 0.02);
    color: #00c853;
}

.file-upload-wrapper:hover .file-upload-trigger svg {
    color: #00c853;
}

/* --- NOTA DE CONTACTO POR WHATSAPP --- */
.whatsapp-notice-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #e8f5e9; /* Fondo verde menta muy suave */
    border: 1.5px dashed #25d366; /* Borde discontinuo con el verde de WhatsApp */
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto interactivo al pasar el cursor */
.whatsapp-notice-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.15);
}

/* Ícono de WhatsApp estilizado */
.whatsapp-notice-box .whatsapp-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #25d366; /* Color oficial de la marca */
}

.whatsapp-notice-box .whatsapp-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Texto de la nota */
.whatsapp-notice-box p {
    font-family: 'Arial', sans-serif;
    font-size: 1.05rem;
    color: #1b5e20; /* Texto verde oscuro de excelente legibilidad */
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.whatsapp-notice-box p strong {
    font-weight: 800;
    letter-spacing: 0.3px;
}


/* Estilo dinámico si el navegador detecta que no cumple el patrón */
.form-input-group input:focus:invalid {
    border-color: #ff3838;
    box-shadow: 0 0 8px rgba(255, 56, 56, 0.5);
}

/* Clase que aplicamos con JS al perder el foco con errores */
.input-error {
    border-color: #ff3838 !important;
}

/* Mensaje de error abajo del input */
.error-msg {
    color: #ff3838;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
    font-weight: 500;
}


.phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.phone-input-container select {
    padding: 0.6rem; /* Ajusta según el padding de tus otros inputs */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}



/* Contenedor de respuestas AJAX */
#ajax-response-container {
    width: 100%;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base de la Alerta Estilizada */
.cl-alert {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent;
    animation: slideDown 0.4s ease-out;
}

/* Variación: Éxito Radical */
.cl-alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}
.cl-alert-success .cl-alert-icon {
    background-color: #22c55e;
    color: #ffffff;
}

/* Variación: Error Crítico */
.cl-alert-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}
.cl-alert-error .cl-alert-icon {
    background-color: #ef4444;
    color: #ffffff;
}

/* Icono redondo flotante */
.cl-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Detalles del Texto */
.cl-alert-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}
.cl-alert-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}




/* Animación de entrada fluida */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resaltado opcional para los inputs con error */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}



/* --- CONSULTAS DE MEDIOS (RESPONSIVE FORM) --- */
@media (max-width: 992px) {
    .inscription-main-form-block {
        grid-template-columns: 1fr; /* Pasa a diseño vertical de una columna */
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .inscription-html-form {
        padding: 1.5rem;
    }
    
    .form-row-2-col {
        grid-template-columns: 1fr; /* Colapsa campos dobles a uno solo por fila en teléfonos */
        gap: 0;
    }
    
    .form-block-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .btn-submit-neon {
        width: 100%; /* Botón completo en pantallas muy pequeñas */
        padding: 0.9rem 2rem;
    }
}


/* ==========================================================================
   6. RESPONSIVE PARA EL FORMULARIO (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Colapsar la cuadrícula principal (Formulario + Sidebar) a 1 columna */
    .inscription-main-form-block {
        grid-template-columns: 1fr; /* Pasa de 1.6fr 1fr a una sola columna completa */
        gap: 2rem;
    }

    /* 2. Colapsar las filas internas del formulario a 1 columna */
    .form-row-2-col {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Mantiene un espacio limpio entre los inputs apilados */
    }

    /* 3. Reducir los márgenes internos (padding) para aprovechar la pantalla del móvil */
    .inscription-html-form {
        padding: 1.5rem;
    }

    .inscription-payment-sidebar {
        padding: 1.5rem;
    }

    /* 4. Ajustar los tamaños de las fuentes de los títulos para que no se desborden */
    .form-block-title {
        font-size: 1.8rem;
    }

    .form-block-subtitle {
        font-size: 1.1rem;
        margin-top: 1.5rem !important; /* Ajuste para separar mejor las secciones apiladas */
    }

    /* 5. Ajuste del botón para móviles */
    .btn-submit-neon {
        width: 100%; /* Hace que el botón ocupe todo el ancho en móviles, facilitando el toque */
        padding: 1rem;
    }
}

/* ==========================================================================
   AJUSTES EXTRA PARA PANTALLAS MUY PEQUEÑAS (EJ. TELÉFONOS ESTRECHOS)
   ========================================================================== */
@media (max-width: 480px) {
    /* Cambia la disposición a vertical */
    .phone-input-container {
        flex-direction: column;
    }
    
    /* El código de área se mantiene al 100% */
    #ins_cod_area {
        flex: 1 1 auto !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* NUEVO: Forzamos al input del número a ocupar todo el ancho disponible */
    #ins_telefono {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
}