/* ============================
   ESTILO GENERAL
============================ */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #7986cb, #5c6bc0);
    color: #2d3436;
    position: relative;
    overflow-y: auto;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: url("images/fondo.jpg") center/cover no-repeat;
    opacity: 0.22;
    z-index: 0;
}

.main-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 2.2rem 2rem;
    max-width: 650px;
    width: 100%;
    margin: auto;
    font-size: 0.95rem;
}

.main-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* ============================
   FORMULARIO / CONTENEDOR
============================ */
.form-container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    margin: 3rem auto;
    width: 100%;
    max-width: 850px;
}

.form-container h1 {
    text-align: center;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1.8rem;
}

/* ============================
   BOTONES
============================ */
.btn-custom {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary.btn-custom,
.btn-primary {
    background-color: #5c6bc0;
    border: none;
}

.btn-primary.btn-custom:hover,
.btn-primary:hover {
    background-color: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.35);
}

.btn-outline-light.btn-custom {
    color: #3f51b5;
    background-color: #fff;
    border: 2px solid #3f51b5;
}

.btn-outline-light.btn-custom:hover {
    color: #fff;
    background-color: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.35);
}

/* ============================
   MENÚ PRINCIPAL
============================ */
.menu-links {
    list-style: none;
    padding: 0;
}

.menu-link {
    display: block;
    font-weight: 500;
    text-decoration: none;
    color: #1a237e;
    background: #e8eaf6;
    margin: 8px auto;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    max-width: 450px;
}

.menu-link:hover {
    background: #5c6bc0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.3);
}

/* ============================
   CONVOCATORIAS
============================ */
.convocatoria-section {
    background: rgba(255, 255, 255, 0.95);
}

.convocatoria-card {
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.convocatoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.convocatoria-card h3 {
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.convocatoria-card p {
    margin: 0.3rem 0;
}

.already-postulated {
    color: #388e3c;
    font-weight: 600;
    text-align: center;
}

/* ============================
   CHECKBOX PERSONALIZADO
============================ */
.form-check-input {
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.2rem;
    cursor: pointer;
    border: 2px solid #3f51b5;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    appearance: none;
    position: relative;
}

.form-check-input:checked {
    background-color: #5c6bc0;
    border-color: #3f51b5;
}

.form-check-input:checked::after {
    content: "✔";
    position: absolute;
    top: 0;
    left: 3px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.form-check-label {
    margin-left: 10px;
    color: #2d3436;
    font-weight: 500;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .form-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    .menu-link {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

/* ============================
   FORMULARIO DE INGRESO
============================ */
.bg-login {
    background: linear-gradient(135deg, #7986cb, #5c6bc0);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.form-login {
    width: 100%;
    max-width: 380px; /* 🔹 hace el formulario más angosto */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.input-login {
    border-radius: 8px;
    padding: 10px;
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease;
}

.input-login:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 6px rgba(63, 81, 181, 0.2);
}

.btn-login {
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #3f51b5 !important;
    box-shadow: 0 6px 14px rgba(63, 81, 181, 0.3);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9em;
}
/* ============================================================
   ESTILOS ESPECÍFICOS PARA formulario_registro2.php
   Mantiene coherencia visual con formulario_registro.php
============================================================ */

/* Fondo y estructura general */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #7986cb, #5c6bc0);
    color: #2d3436;
    position: relative;
    overflow-y: auto;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: url("images/fondo.jpg") center/cover no-repeat;
    opacity: 0.22;
    z-index: 0;
}

/* Contenedor principal del formulario */
.form-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    margin: 3rem auto;
    width: 100%;
    max-width: 850px;
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Títulos principales y secciones */
h1, h2 {
    text-align: center;
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

/* Campos del formulario */
.form-label {
    font-weight: 500;
    color: #2d3436;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1.5px solid #ccc;
    padding: 10px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 6px rgba(63, 81, 181, 0.25);
}

/* Botones */
.btn-primary {
    background-color: #5c6bc0;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.35);
}

.btn-secondary {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px;
    background-color: #e8eaf6;
    color: #1a237e;
    border: 2px solid #3f51b5;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #3f51b5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.3);
}

/* Líneas separadoras entre secciones */
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #5c6bc0;
    margin: 0.6rem auto 1.4rem;
    border-radius: 10px;
}

/* Ocultación dinámica (casado/escalafón) */
.hidden {
    display: none;
}

/* Espaciado uniforme */
.mb-3 {
    margin-bottom: 1.2rem !important;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1.5rem;
    }
    h1, h2 {
        font-size: 1.3rem;
    }
    .btn-primary, .btn-secondary {
        padding: 10px;
        font-size: 0.95rem;
    }
}
.btn-change-pass {
    display: inline-block;
    padding: 10px 18px;
    background: #3a5fd1; /* Azul institucional */
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.btn-change-pass:hover {
    background: #2f4fb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
