/**
 * CSS PURO para formulario de preinscripciones
 * Sin dependencias de Bootstrap/AdminLTE
 * Diseño consistente y responsive
 */

/* ===== RESET Y VARIABLES ===== */
:root {
    --color-primary: rgb(3, 15, 39);
    --color-accent: rgb(255, 193, 7);
    --color-primary-light: rgba(3, 15, 39, 0.1);
    --color-accent-light: rgba(255, 193, 7, 0.1);
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    --spacing-unit: 8px;
    --border-radius: 8px;
    --input-height: 48px;
    --icon-size: 20px;
    --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ===== BASE ===== */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(3, 15, 39, 0.9) 100%);
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* ===== CONTAINER PRINCIPAL ===== */
.page-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER INSTITUCIONAL ===== */
.header-institucional {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
}

.header-institucional h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-institucional h2 i {
    color: var(--color-accent);
    font-size: 1.2em;
}

.header-institucional p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* ===== CONTAINER DE PREINSCRIPCIÓN ===== */
.preinscripcion-container {
    max-width: 950px;
    margin: 0 auto;
}

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(3, 15, 39, 0.95) 100%);
    color: white;
    padding: 20px;
    border-bottom: 3px solid var(--color-accent);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-header .card-tools {
    margin-top: 8px;
}

.card-header .card-tools small {
    font-size: 0.9em;
    opacity: 0.9;
}

.card-body {
    padding: 30px;
}

.card-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.card-footer small {
    color: #6c757d;
    font-size: 0.9em;
}

/* ===== ALERTAS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert i {
    font-size: 1.2em;
    flex-shrink: 0;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--color-info);
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--color-warning);
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--color-danger);
    color: #721c24;
}

.alert-danger i {
    color: var(--color-danger);
}

/* ===== BANNER MOTIVACIONAL ===== */
.motivational-banner {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-content i {
    font-size: 2.5em;
    color: var(--color-accent);
    flex-shrink: 0;
}

.banner-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-primary);
}

.banner-text p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* ===== INDICADOR DE PROGRESO ===== */
.progress-indicator {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.step.completed .step-number {
    background: var(--color-success);
    color: white;
}

.step-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: var(--color-primary);
}

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(255, 193, 7, 0.8) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== SECCIONES DEL FORMULARIO ===== */
.form-section {
    background: #f8f9fa;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.form-section h5 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h5 i {
    color: var(--color-accent);
    font-size: 1.1em;
}

/* ===== GRID SYSTEM (CSS PURO) ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row>[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.form-group .required-field::after {
    content: " *";
    color: var(--color-danger);
    font-weight: bold;
}

/* ===== INPUTS Y CONTROLES ===== */
.form-control {
    width: 100%;
    height: var(--input-height);
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Campo deshabilitado (tipo de documento) */
.form-control[style*="background-color: #e9ecef"] {
    display: flex;
    align-items: center;
    background-color: #e9ecef !important;
    cursor: not-allowed;
    color: #6c757d;
}

/* ===== INPUTS CON ICONOS ===== */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .field-icon {
    position: absolute;
    left: 15px;
    top: calc(1.5rem + 8px + 24px);
    transform: translateY(-50%);
    width: var(--icon-size);
    height: var(--icon-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1em;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
    line-height: 1;
}

.form-group.has-icon .form-control {
    padding-left: 42px !important;
    padding-right: 15px;
    position: relative;
    z-index: 1;
}

.form-group.has-icon .form-control:focus~.field-icon {
    color: var(--color-accent);
}

.form-group.has-icon select.form-control {
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    appearance: none;
}

/* Icono del teléfono volteado */
.form-group.has-icon .fa-phone {
    transform: translateY(-50%) scaleX(-1);
}

/* ===== VALIDACIÓN ===== */
.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-invalid:focus {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.form-control.is-valid:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    font-size: 0.875em;
    color: var(--color-danger);
    font-weight: 500;
}

.invalid-feedback.show {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    font-size: 0.875em;
    color: var(--color-success);
    font-weight: 500;
}

.valid-feedback.show {
    display: block;
}

/* ===== RADIO BUTTONS ===== */
.form-group>div:not(.invalid-feedback) {
    overflow: visible !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    position: relative;
    flex: 0 0 auto;
}

.form-check:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.form-check-input {
    margin: 0 !important;
    margin-right: 12px !important;
    margin-left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    cursor: pointer;
    position: relative;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    position: relative;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.form-check-label {
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    cursor: pointer;
    font-size: 0.95em;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    max-width: none !important;
    width: auto !important;
    display: inline-block !important;
    position: relative;
    line-height: 1.5;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    padding: 12px 15px;
}

.medio-informacion-options {
    margin-top: 15px;
}

.medio-option {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.medio-option:hover {
    background: #e9ecef;
    border-color: var(--color-primary-light);
}

.medio-box {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.medio-option:hover .medio-box {
    border-color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(3, 15, 39, 0.1);
}

.medio-box i {
    font-size: 2.5em;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.medio-option:hover .medio-box i {
    color: var(--color-accent);
    transform: scale(1.1);
}

.medio-option .form-check {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.medio-option .form-check-input {
    margin: 0;
    margin-top: 5px;
}

.medio-option .form-check-input:checked~.form-check-label,
.medio-option .form-check-input:checked+.form-check-label {
    color: var(--color-primary);
    font-weight: 600;
}

.medio-option .form-check-input:checked~.medio-box,
.medio-option:has(.form-check-input:checked) .medio-box {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.medio-option:has(.form-check-input:checked) {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.medio-option:has(.form-check-input:checked) .medio-box {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.15);
}

.medio-option:has(.form-check-input:checked) .medio-box i {
    color: var(--color-accent);
}

/* ===== MEDIO DE PAGO ===== */
.medio-pago-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 15px;
}

.medio-pago-text {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--color-primary);
    text-align: center;
}

.medio-pago-text strong {
    font-weight: 600;
}

.medio-pago-image {
    text-align: center;
    margin-top: 15px;
}

.img-cuenta-bancaria {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.img-cuenta-bancaria:hover {
    transform: scale(1.02);
}

/* ===== RECIBO DE PAGO ===== */
.info-contacto-box {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.whatsapp-link i {
    font-size: 1.2em;
}

.whatsapp-recibo-box {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.3em;
}

/* ===== BENEFICIOS ===== */
.benefits-box {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(3, 15, 39, 0.05) 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.benefits-box h5 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-box h5 i {
    color: var(--color-accent);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    font-size: 0.95em;
}

.benefit-item i {
    color: var(--color-accent);
    font-size: 1.2em;
    flex-shrink: 0;
}

/* ===== TIEMPO ESTIMADO ===== */
.time-estimate {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.time-estimate>div {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.time-estimate i {
    font-size: 1.5em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 5px;
}

.time-estimate span {
    font-size: 0.9em;
    color: #666;
    display: block;
}

/* ===== BOTONES ===== */
.btn {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(3, 15, 39, 0.9) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(3, 15, 39, 0.9) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1em;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn i {
    font-size: 1.1em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ===== RESPONSIVE - TABLET Y MÓVIL GRANDE ===== */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .page-container {
        padding: 0 10px;
    }

    .preinscripcion-container {
        margin: 10px auto;
    }

    .header-institucional {
        padding: 15px;
        margin-bottom: 20px;
    }

    .header-institucional h2 {
        font-size: 1.5em;
        flex-direction: column;
        gap: 8px;
    }

    .header-institucional p {
        font-size: 0.95em;
    }

    .card-body {
        padding: 20px;
    }

    .card-header {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 1.2em;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .motivational-banner {
        padding: 15px;
        margin-bottom: 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banner-content i {
        font-size: 2em;
    }

    .banner-text h4 {
        font-size: 1.1em;
    }

    .banner-text p {
        font-size: 0.9em;
    }

    .progress-indicator {
        padding: 15px;
        margin-bottom: 20px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }

    .progress-steps::before {
        display: none;
    }

    .step {
        width: 100%;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .form-section h5 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

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

    .form-control {
        font-size: 16px !important;
        height: var(--input-height);
        padding: 12px 15px;
    }

    .form-group.has-icon .form-control {
        padding-left: 42px;
    }

    .form-group.has-icon .field-icon {
        left: 15px;
        font-size: 1em;
    }

    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .time-estimate {
        flex-direction: column;
        text-align: center;
    }

    .time-estimate>div {
        min-width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Programa de Estudios - Select para tablets */
    #programa_estudios {
        font-size: 16px;
    }

    /* Medio de Pago - Ajustes para tablets */
    .medio-pago-container {
        padding: 18px;
    }

    /* Recibo de Pago - Botones para tablets */
    .btn-whatsapp {
        padding: 13px 22px;
        font-size: 1em;
    }

    /* Form sections - Mejor espaciado */
    .form-section {
        padding: 18px;
    }
}

/* ===== RESPONSIVE - MÓVIL PEQUEÑO ===== */
@media (max-width: 576px) {
    body {
        padding: 5px 0;
    }

    .page-container {
        padding: 0 8px;
    }

    .preinscripcion-container {
        margin: 5px auto;
    }

    .header-institucional {
        padding: 12px;
        margin-bottom: 15px;
    }

    .header-institucional h2 {
        font-size: 1.3em;
    }

    .header-institucional p {
        font-size: 0.85em;
    }

    .card-body {
        padding: 15px;
    }

    .card-header {
        padding: 12px;
    }

    .card-header h3 {
        font-size: 1.1em;
    }

    .motivational-banner {
        padding: 12px;
        margin-bottom: 15px;
    }

    .banner-content i {
        font-size: 1.8em;
    }

    .banner-text h4 {
        font-size: 1em;
    }

    .banner-text p {
        font-size: 0.85em;
    }

    .progress-indicator {
        padding: 12px;
        margin-bottom: 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.95em;
    }

    .step-label {
        font-size: 0.85em;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-section h5 {
        font-size: 1em;
        margin-bottom: 12px;
    }

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

    .form-control {
        font-size: 16px !important;
        padding: 12px;
        height: var(--input-height);
    }

    .form-group.has-icon .form-control {
        padding-left: 40px;
        padding-right: 12px;
    }

    .form-group.has-icon .field-icon {
        left: 12px;
        font-size: 0.95em;
    }

    .form-check {
        width: 100%;
        margin-right: 0;
    }

    .benefit-item {
        font-size: 0.9em;
        padding: 10px;
    }

    .time-estimate {
        padding: 12px;
    }

    .time-estimate i {
        font-size: 1.3em;
    }

    .time-estimate span {
        font-size: 0.85em;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .medio-option {
        padding: 12px;
        margin-bottom: 15px;
    }

    .medio-box {
        width: 80px;
        height: 80px;
    }

    .medio-box i {
        font-size: 2em;
    }

    .medio-pago-container {
        padding: 15px;
    }

    .medio-pago-text {
        font-size: 0.95em;
    }

    .img-cuenta-bancaria {
        max-width: 100%;
    }

    /* Programa de Estudios - Select */
    #programa_estudios {
        font-size: 16px !important;
        padding: 12px;
        width: 100%;
    }

    /* Medio por el cual se informó - Radio buttons */
    .form-check-label {
        font-size: 0.95em;
        padding-left: 8px;
    }

    /* Medio de Pago - Contenedor */
    .medio-pago-container {
        padding: 12px;
        margin-top: 10px;
    }

    .medio-pago-text {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .medio-pago-image {
        margin-top: 10px;
    }

    /* Recibo de Pago - Alertas y botones */
    .info-contacto-box,
    .whatsapp-recibo-box {
        margin-top: 12px;
    }

    .info-contacto-box .alert,
    .whatsapp-recibo-box .alert {
        padding: 12px;
        font-size: 0.9em;
    }

    .info-contacto-box .alert p,
    .whatsapp-recibo-box .alert p {
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .whatsapp-link {
        font-size: 0.9em;
        word-break: break-word;
    }

    .btn-whatsapp {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95em;
        justify-content: center;
        text-align: center;
    }

    .btn-whatsapp i {
        font-size: 1.2em;
    }

    /* Form sections - Espaciado mejorado */
    .form-section {
        margin-bottom: 20px;
    }

    .form-section h5 {
        font-size: 1.05em;
    }

    /* Labels mejorados */
    .required-field {
        font-size: 0.95em;
    }

    /* Select mejorado para móvil */
    select.form-control {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 35px;
    }

    /* Radio buttons mejorados para móvil */
    .form-check-input {
        width: 22px !important;
        height: 22px !important;
        margin-right: 10px !important;
    }

    .form-check-label {
        line-height: 1.5;
        padding-top: 2px;
    }

    /* Alertas mejoradas */
    .alert {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .alert strong {
        font-size: 0.95em;
    }

    /* Espaciado entre radio buttons */
    .form-check {
        margin-bottom: 12px;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    .form-check:hover {
        background-color: rgba(3, 15, 39, 0.03);
    }

    /* Botones de WhatsApp - Full width en móvil */
    .btn-whatsapp {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    min-height: var(--input-height);
}

.file-upload-label:hover {
    background: rgba(3, 15, 39, 0.95);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.file-upload-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.file-upload-label i {
    font-size: 1.2em;
    color: white;
}

.file-upload-text {
    flex: 1;
}

.file-status {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    color: #212529;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.file-status-text {
    display: block;
    width: 100%;
    word-break: break-word;
}

.file-input:focus+.file-upload-label {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.file-input:valid+.file-upload-label {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.file-input:valid+.file-upload-label:hover {
    background: #218838;
    border-color: #218838;
    color: white;
}

.file-input:valid+.file-upload-label i {
    color: white;
}

.file-input.is-invalid+.file-upload-label {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: white;
}

.file-input.is-invalid+.file-upload-label:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.file-input.is-invalid+.file-upload-label i {
    color: white;
}

/* File status cuando hay archivo seleccionado */
.file-upload-wrapper.has-file .file-status {
    background: #d4edda;
    border-color: var(--color-success);
    color: #0f5132;
}

.file-upload-wrapper.has-file .file-status-text {
    color: #0f5132;
    font-weight: 600;
}

/* Responsive para file upload */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 10px 16px;
        font-size: 0.9em;
        min-height: 44px;
    }

    .file-upload-label i {
        font-size: 1.1em;
    }

    .file-status {
        font-size: 0.85em;
        padding: 6px 10px;
        min-height: 36px;
    }
}