/* ============================
   Estilos generales
============================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Contenedor principal */
.container {
    max-width: 900px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Sección de matrícula */
.card-body {
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    background: #eef7ff;
    text-align: center;
}

/* Encabezados */
h2 {
    color: #007bff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Nota informativa */
.note {
    font-size: 14px;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

/* Labels */
label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    font-size: 16px;
}

/* Asterisco en rojo */
.required {
    color: red;
}

/* Inputs de texto, correo, archivos y select */
input[type="email"],
input[type="text"],
.file-input,
select {
    border-radius: 5px;
    padding: 12px;
    border: 1px solid #ccc;
    width: 100%;
    transition: all 0.3s;
    font-size: 16px;
    background-color: white;
}

/* Efecto al enfocar */
input:focus,
select:focus,
.file-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Select (Programa de interés) */
select {
    cursor: pointer;
}

/* Ajustar tamaño de Select2 */
.select2-container .select2-selection--single {
    height: 45px !important;
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Estilo para los archivos adjuntos */
.file-input {
    display: block;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
}

.file-input:hover {
    background-color: #0056b3;
}

/* Botón de envío */
.btn-success {
    background-color: #28a745;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: #218838;
}

/* ============================
   Responsividad
============================== */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 15px;
    }
    
    h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
        box-shadow: none;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .note {
        font-size: 13px;
    }
    
    .file-input {
        font-size: 12px;
        padding: 8px;
    }
    
    /* Ajuste para que el select tenga el mismo tamaño que los inputs */
    .select2-container .select2-selection--single {
        height: 40px !important;
        font-size: 14px;
    }
    
    .select2-container {
        width: 100% !important;
    }
}

/* Alineación de la imagen */
.text-center img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox y otros navegadores que soporten la propiedad estandar */
input[type="number"] {
  -moz-appearance: textfield; /* Prefijo para Firefox */
  appearance: none;           /* Propiedad estándar */
}