/* ===== BARRA SUPERIOR ===== */
body {
    background-color: #F9FBFD;
    display: flex;
    flex-direction: column;
}

.barra1 {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

.logo {
    height: 50px;
    max-width: 100%;
}

.titulo-ministerio {
    font-weight: 600;
    font-size: 18px;
}

/* ===== BARRA SECUNDARIA ===== */
.barra2 {
    background-color: #0173C7;
    color: #ffffff;
    padding: 20px 0;
}

.titulo-formulario {
    margin: 0;
    font-size: 16px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
/*@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    .titulo-ministerio {
        font-size: 14px;
    }
    .titulo-formulario {
        font-size: 14px;
        padding: 0 10px;
    }
    .barra1 .container-1000 {
        flex-direction: column;
        align-items: flex-start;
    }
    .titulo-ministerio {
        margin-top: 5px;
    }
}
*/

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    .titulo-ministerio {
        font-size: 14px;
    }
    .titulo-formulario {
        font-size: 14px;
        padding: 0 10px;
    }
    .barra1 .container-1000 {
        flex-direction: column;
        align-items: flex-start;
    }
    .titulo-ministerio {
        margin-top: 5px;
    }

    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .form-control,
    .form-select,
    .btn {
        width: 100%;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .titulo {
        font-size: 22px !important;
        text-align: center;
    }

}



/* ESTADOS */
.is-valid {
    border-color: #198754 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

/* MENSAJES */
.invalid-feedback {
    display: block;
    font-size: 13px;
}

.valid-feedback {
    display: block;
    font-size: 13px;
}

.container-1000 {
    width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    height: 40px;
}

.titulo-ministerio {
    font-size: 26px;
    margin-left: 10px;
}

.titulo-formulario {
    font-size: 18px;
}

.container-form {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;	
}

.form-section {
    margin-bottom: 17px;
}

@media (max-width: 768px) {
    .form-check-inline {
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .form-section {
        margin-bottom: 25px;
    }
    label {
        font-weight: 600;
    }
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre elementos */
	background:#FBFCFE;
	padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.captcha-img {
    height: 50px;
}

.btn-reload {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
}

.cap-input input {
    width: 160px;
}
 
.bloque-politica {
    background:#FBFCFE;
    padding:15px;
    border:1px solid #ddd;
    border-radius:4px;
}

.mt-10 {
    margin-top:10px;
}

#mensajeExito {
    display: none;
    position: fixed;          /* 🔥 esto lo saca del flujo */
    top: 50%;                 /* centro vertical */
    left: 50%;                /* centro horizontal */
    transform: translate(-50%, -50%); /* centrado perfecto */
    background-color: #F7F2BA;
    color: #0015A0;
    padding: 20px 30px;
    text-align: start;
    width: 600px;
    z-index: 9999;            /* 🔥 encima de todo */
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

body.mensaje-activo {
    overflow: hidden;
}

.contenedor-formulario {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer {
    width: 100%;
    background-color: #b51212; /* rojo oscuro */
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.footer-box {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #b51212; /* rojo oscuro */
    color: #ffffff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

/* líneas */
.footer-linea1 {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-linea2 {
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-linea3 {
    font-size: 12px;
    opacity: 0.9;
}

.header {
    width: 100%;
    background-color: #b51212; /* rojo similar */
    color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-subtitulo {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.header-titulo {
    font-size: 22px;
    font-weight: bold;
    margin-top: 3px;
}

.header-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🔥 separa extremos */
}

/* izquierda */
.header-logo img {
    width: 200px;
}

/* centro */
.header-texto {
    flex: 1;
    margin: 0 20px;
}

/* derecha */
.header-logo-derecha img {
    width: 60px;
}


@media (max-width: 600px) {
    .header-contenido {
        display: flex;
        flex-wrap: wrap;
    }
    /* 🔥 CLAVE: cada logo ocupa la mitad */
    .header-logo,
    .header-logo-derecha {
        width: 50%;
    }
    .header-logo {
        text-align: left;
    }
    .header-logo-derecha {
        text-align: right;
    }
    /* 🔥 CLAVE: fuerza salto de línea */
    .header-texto {
        width: 100%;
        flex: 0 0 100%; /* 👈 esto es lo que te faltaba */
        order: 3;
        margin-top: 10px;
        text-align: center;
    }
}

.captcha-label {
    display: block;
    font-weight: 600;
    color: #1f2937;   /* gris oscuro elegante */
    margin-bottom: 10px;
}

.mensaje-centrado {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 90%;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 20px;
}

.contenido-mensaje {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icono {
    font-size: 26px;
    color: #28a745;
}

.texto {
    font-size: 14px;
    line-height: 1.5;
}

/* 🔥 overlay oscuro */
.overlay-exito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 📦 caja modal */
.modal-exito {
    background: #ffffff;
    width: 420px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: aparecer 0.3s ease;
}

/* encabezado */
.modal-header {
    background: #28a745;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

/* cuerpo */
.modal-body {
    padding: 20px;
    color: #333;
    line-height: 1.5;
}

/* footer */
.modal-footer {
    padding: 15px;
    text-align: center;
}

/* animación */
@keyframes aparecer {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/******/



/* Contenedor centrado */
.contenedor-aviso {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

/* Recuadro principal */
.card-aviso {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

/* Cabecera verde */
.card-aviso-header {
    background-color: #28a745;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* Cuerpo del mensaje */
.card-aviso-body {
    padding: 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

html, body {
    height: 100%;
}
.contenido-principal {
    flex: 1;
}

/* msg sin cursos  */
/* Overlay oscuro */
.overlayMsg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja tipo modal */
.modal-boxMsg {
    background: #fff;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-headerMsg {
    background: #FF0000;
    color: #fff;
    padding: 15px;
    font-weight: bold;
	font-size: 15;
	font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

.modal-bodyMsg {
    padding: 20px;
    color: #333;
	background: #FFF;
    text-align: center;
	font-size: 15;
	font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}


/* msg Fin de sesión */

.card-aviso-headerSes {
    background: #FF0000;
    color: #fff;
    padding: 15px;
    font-weight: bold;
	font-size: 15;
	font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}


.mrgTop5{
	margin-top:5px;
}

.dspNone{
display:none;}


