

@import url('https://fonts.googleapis.com/css2?family=Handlee&display=swap');

/* Configuracion General */
:root {
    --color-blanco: #ffffff;
    --color-azul: #323f7c;
    --color-azul-pastel: #a2d5f2;
    --color-amarillo: #f79c53;
    --color-gris-claro: #f8f9fa;
    --color-plomo: #606060;
    --color-negro: #000000;

    --color-amarillo-pastel: #fef6ee;
}


body{
    
    font-family: "Handlee", cursive;  
    
}


p {
    margin: 0px;
    /* font-size: 0.9rem; */
    font-size: 15px;
    /* display: flex;  */
    display:inline;
    text-align: justify;
    /* line-height:50px; */
}

/* body {
    margin: 0;
    background-color: rgb(223, 223, 223);
} */






/* Nuevos Estilos */
.contenedorA{
    height: 100%;
    width: 100%;

}

.contenedorA1{    
    padding: 10px;
    background: var(--color-amarillo-pastel);
    text-align: center;    
    border-radius: 10px;
    border-color: #075685;
    margin-top: 90px;
}

.contenedorA2{
    padding: 10px;    
}


.contenedorA2-1{
    /* max-width: 800px; */
    margin: 0 auto;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 75%;
    float: left;    
    /* padding: 1rem; */    
}


.contenedorA2-2{
    margin-left: 1%;
    background-color: var(--color-gris-claro);
    width: 24%;
    float: right;
    right: 0px;
    top: 50px;
    bottom: 0px;
    word-wrap: break-word;    
    font-size: 14px;
}
@media (max-width: 850px) {
    .contenedorA2-1{
        margin: 0 auto;
        display: grid;
        grid-gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        /* background-color: rgb(43, 3, 187); */
        width: 100%;        
        /* padding: 1rem; */
    }

    .contenedorA2-2{
    background-color: rgb(219, 237, 240);
    width: 100%;
    
    /* min-width: 250px; */

    /* position: fixed; */
    /* position: fixed; */
    /* position: relative; */
    
    /* word-wrap: break-word;    */
    
    /* display: flex; */
    /* flex-wrap: wrap; */
    }

    .contenedorA2{
        padding: 0px;
    }
    
}

.caja{
    background-color: var(--color-gris-claro);
    padding: 4%;
    text-align: justify;
    border: 1px solid;
    border-radius: 10px;
    border-color: var(--color-amarillo);
}


.caja2-1{
    float: left;
    /* width: 50%; */
    text-align: left;
    /* background-color: #F5F5F5;  */
}

.caja2-2{
    float: right;
    /* width: 50%; */
    /* background-color: rgb(255, 255, 255);      */
    /* text-align: center; */
    text-align: left;    
    /* width: 100%; */

}
.caja2-2 .img{
    width: 200px;
    /* height: 160px; */
    /* height: calc(32*5px); */
    border-radius: 10px;
        
}



ul{
    
    margin: 0;
    padding: 0;    
}


/* .img{
    width: 10rem;
 
} */
  

  



  

  
 




  
  
    

  /* Estilo de Radio Button */
  .opcion-radio input[type=radio] {
      position: absolute;
      opacity: 0;
  }

  .opcion-radio input[type=radio] + label:before {
      content: '';
      background: #F4F5F8;
      border-radius: 100%;
      border: 1px solid #a6aec6;
      display: inline-block;
      width: 1.4em;
      height: 1.4em;
      position: relative;
      top: -.2em;
      margin-right: .5em;
      vertical-align: top;
      cursor: pointer;
      text-align: center;
      -webkit-transition: all 250ms ease;
      transition: all 250ms ease;
      display: inline-block;
      vertical-align: middle;      
  }
  .opcion-radio input[type=radio]:checked + label:before {
      background-color: #075685;
      box-shadow: inset 0 0 0 4px #F4F5F8;
  }
  .opcion-radio label {
      display: inline-block;
      vertical-align: middle;
      line-height: 32px;
      cursor: pointer;
      font-size: 14px;
  }
  .opcion-radio input[type=radio]:checked ~ label{
    color: #075685;
    font-weight: bold;
    /* color: rgb(175, 240, 175); */
    
  }


.alternativas{
    font-size: 0.8rem;/* Tamaño de simbolo y letra */    
    text-align: left;
    
}





.MarcadoBien{
    color: green;
    /* background: red; */
    /* font-size: 50px; */
}

.MarcadorMal{
    color: red;
    /* background: red; */
    /* font-size: 50px; */
}








































/* Ventana Modal */
.modalContainer {
    display: none; 
    position: fixed; 
    z-index: 1;
    padding-top: 10%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modalContainer .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid lightgray;
    border-top: 10px solid #58abb7;
    
    margin-top: 0px;
}

.modalContainer .close {
    color: #075685;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: 5%;
    
}

.modalContainer .close:hover,
.modalContainer .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}



.modalContainer .close {
    color:  #075685;;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modalContainer .close:hover,
.modalContainer .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}






td{
  /* background: red; */
  /* color: #075685; */
  font-weight: bold;
  padding-bottom: 0.5em;  
}




/*Tabla de cotejo y Celdas */
.celda{
    text-align: center;
    background-color: var(--color-amarillo-pastel);
    color: var(--color-plomo);    
    width: 3em;
    padding-top:0.5em;    
    border-radius: 0.5em;    
    border-bottom: solid;    
    border-bottom-color: var(--color-amarillo);
    border-bottom-width: 0.6em;
    cursor:pointer;

}
.tablaCotejo{
    padding-left: 1em;
}







/* div desplegable */
.cajaDesplegable {
    margin-bottom:15px;
}
.cajaDesplegable input {
    display:none;
}
.cajaDesplegable label {
    display:block;
    height:30px;
    line-height:30px;
    font-weight:bold;
    text-transform:uppercase;
    cursor: pointer;
}
.cajaDesplegable label:before {
    content:"+";
    display:inline-block;
    height:30px;
    width:30px;
    background:rgb(57, 114, 65);    
    color:White;
    text-align:center;
    margin-right:10px;
}
.cajaDesplegable div {
    display:none;
    padding-top:5px;
    padding: 0.7rem;
}
.cajaDesplegable input:checked ~ label:before {
    content:"-";
    background:#ccc;
}
.cajaDesplegable input:checked ~ div {
    display:block;
}



.btnTerminar{
    background-color: #e74c3c; /* Color rojo para llamar la atención */
    color: #ffffff; /* Color del texto en blanco */
    font-size: 16px; /* Tamaño de la fuente */
    padding: 12px 24px; /* Espaciado interno del botón */
    border: none; /* Sin bordes */
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor a mano al pasar sobre el botón */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Efecto de transición */

}
.btnTerminar:hover {
    background-color: #c0392b; /* Cambia a un rojo más oscuro al pasar el mouse */
    transform: scale(1.05); /* Aumenta ligeramente el tamaño al pasar el mouse */
}
.btnTerminar:active {
    background-color: #a93226; /* Cambia a un rojo aún más oscuro al hacer clic */
    transform: scale(0.98); /* Reduce ligeramente el tamaño al hacer clic */
}












/* Estilos para Combobox despleglables poderacion */
.combo-box {
    width: 150px;
    padding: 5px;
    border: 2px solid #3498db;
    /* Color del borde */
    border-radius: 5px;
    /* Bordes redondeados */
    background-color: #ffffff;
    /* Color de fondo */
    font-size: 14px;
    appearance: none;
    /* Quita el estilo predeterminado del navegador */
    cursor: pointer;
    /* Cambia el cursor al pasar sobre el ComboBox */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contenedor-div {
    margin-top: 10px;
}


 /* ING */
#tablaPoderacionI {
    font-size: 10px;
    border-collapse: collapse;
}
#tablaPoderacionI th,
#tablaPoderacionI td {
    border: 1px solid var(--color-negro);
    padding: 1px;
    text-align: center;
}
#tablaPoderacionI th {
    background-color: var(--color-amarillo);
}
/* SOC */
#tablaPoderacionS {
    font-size: 10px;
    border-collapse: collapse;
}
#tablaPoderacionS th,
#tablaPoderacionS td {
    border: 1px solid var(--color-negro);
    padding: 1px;
    text-align: center;
}
#tablaPoderacionS th {
    background-color: var(--color-amarillo);
}
/* BIO */
#tablaPoderacionB {
    font-size: 10px;
    border-collapse: collapse;
}
#tablaPoderacionB th,
#tablaPoderacionB td {
    border: 1px solid var(--color-negro);
    padding: 1px;
    text-align: center;
}
#tablaPoderacionB th {
    background-color: var(--color-amarillo);
}


/* Tabla detalles */
#tablaDetalle {
    font-size: 10px;
    border-collapse: collapse;
}
#tablaDetalle th,
#tablaDetalle td {
    border: 1px solid var(--color-negro);
    padding: 1px;
    text-align: center;
}
#tablaDetalle th {
    background-color: var(--color-amarillo);
}





/* Estilo para el tiempo*/
.tiempo {
    margin-bottom: 0.5rem;
    font-family: "Handlee", cursive;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-azul);
 }
 






















































































/* ===== TIEMPO - HEADER MEJORADO (TAMAÑO FIJO) ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-blanco, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 3px solid #f79c53;
}

.container__header {
    max-width: 1400px;
    height: 80px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Estilo del contenedor de tiempo - TAMAÑO FIJO */
.tiempo {
    background: linear-gradient(135deg, #323f7c, #4a5a9e);
    padding: 8px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(50, 63, 124, 0.3);
    border: 2px solid #f79c53;
    min-width: 200px; /* Ancho mínimo fijo */
    justify-content: center;
}

.tiempo p {
    margin: 0 !important;
    color: white !important;
    font-weight: bold;
    white-space: nowrap; /* Evita que el texto se corte */
}

.tiempo p:first-child {
    font-size: 16px;
    opacity: 0.9;
}

#temporizador {
    font-size: 20px !important;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    letter-spacing: 2px;
    color: #f79c53 !important;
    text-shadow: 0 0 5px rgba(247, 156, 83, 0.5);
    min-width: 100px; /* Ancho fijo para el temporizador */
    text-align: center;
    font-family: monospace; /* Fuente monoespaciada para que no cambie de tamaño */
}

/* ===== VENTANAS EMERGENTES - CENTRADA PERFECTAMENTE ===== */
.modalContainer {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}

/* CENTRADO PERFECTO - Usando Flexbox */
.modalContainer {
    display: none;
    justify-content: center;
    align-items: center;
}

/* Cuando el modal está visible */
.modalContainer[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh; /* Altura máxima */
    overflow-y: auto; /* Scroll si es necesario */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #f79c53;
    border-top: 10px solid #323f7c;
    animation: slideUpModal 0.4s ease;
    position: relative;
    margin: 0; /* Eliminamos márgenes automáticos */
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(247, 156, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.modal-content h2 {
    color: #323f7c;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.modal-content h3 {
    color: #f79c53;
    font-size: 1.4rem;
    margin: 20px 0;
    text-align: center;
}

.modal-content p {
    color: #606060;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 15px 0;
}

/* Tabla dentro del modal - SCROLLABLE */
.modal-content table {
    width: 100%;
    margin: 25px 0;
    background: linear-gradient(135deg, #323f7c, #4a5a9e);
    border-radius: 20px;
    /* padding: 25px; */
    color: white;
    border-collapse: separate;
    border-spacing: 0 10px;
    overflow-x: auto; /* Scroll horizontal si es necesario */
    display: block;
}

.modal-content table td {
    padding: 12px 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    white-space: normal; /* Permite que el texto se ajuste */
    word-wrap: break-word;
}

.modal-content table td:first-child {
    font-weight: 500;
    opacity: 0.9;
    width: 60%;
}

.modal-content table td:last-child {
    font-weight: bold;
    text-align: right;
    color: #f79c53;
}

/* Botones del modal */
.modal-content .close {
    display: inline-block;
    padding: 12px 35px;
    margin: 10px 8px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#cerrarExamen, #msgVerRespuestaNo {
    background-color: #e9ecef;
    color: #606060;
}

#iniciarExamen, #msgVerRespuestaSi1, #msgVerRespuestaSi2 {
    background: linear-gradient(135deg, #f79c53, #f9b57d);
    color: #323f7c;
}

.close:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#iniciarExamen:hover, #msgVerRespuestaSi1:hover, #msgVerRespuestaSi2:hover {
    background: linear-gradient(135deg, #f9b57d, #f79c53);
    color: white;
}

#cerrarExamen:hover, #msgVerRespuestaNo:hover {
    background-color: #d3d9e0;
    color: #323f7c;
}

/* Enlace dentro del modal */
.modal-content a {
    text-decoration: none;
}

/* ===== RESPONSIVE PARA MODALES (TOTALMENTE RESPONSIVO) ===== */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-content table {
        padding: 15px;
        margin: 15px 0;
    }
    
    .modal-content table td {
        font-size: 0.95rem;
        padding: 10px;
    }
    
    .modal-content .close {
        padding: 10px 25px;
        font-size: 1rem;
        margin: 8px 5px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.4rem;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-content p {
        font-size: 0.95rem;
    }
    
    .modal-content table td {
        font-size: 0.85rem;
        padding: 8px 5px;
    }
    
    /* Botones en bloque para móvil */
    .modal-content .close {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .modal-content table {
        padding: 10px;
    }
    
    .modal-content table td {
        font-size: 0.8rem;
        padding: 6px 3px;
    }
}

/* ===== PUBLICIDAD MEJORADA ===== */
.bannerPublicidad {
    text-align: center;
    margin: 25px 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.bannerPublicidad:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(247, 156, 83, 0.3);
}

.bannerPublicidad::after {
    content: '📢 Publicidad';
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(50, 63, 124, 0.9);
    color: #f79c53;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.bannerPublicidad:hover::after {
    opacity: 1;
}

/* Banner 1 - Horizontal superior */
#banner-1 {
    width: 100%;
    max-width: 1140px;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#banner-1:hover {
    transform: scale(1.05);
}

/* Banner 2 - Vertical (lateral) */
#banner-2-1 {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#banner-2-1:hover {
    transform: scale(1.03);
}

/* Banner 2 - Horizontal (móvil) */
#banner-2-2 {
    display: none;
    width: 100%;
    max-width: 1140px;
    height: auto;
    max-height: 150px;
    object-fit: cover;
}

/* ===== RESPONSIVE PARA TIEMPO (TAMAÑO FIJO) ===== */
@media (max-width: 992px) {
    .container__header {
        height: 70px;
        padding: 0 20px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .tiempo {
        padding: 5px 15px;
        gap: 8px;
        min-width: 180px;
    }
    
    #temporizador {
        font-size: 18px !important;
        padding: 4px 10px;
        min-width: 90px;
    }
    
    .tiempo p:first-child {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container__header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }
    
    .tiempo {
        width: 100%;
        justify-content: center;
        min-width: unset; /* Elimina el min-width en móvil */
        max-width: 300px; /* Pero mantiene un máximo */
        margin: 0 auto;
    }
    
    #temporizador {
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .tiempo {
        flex-direction: row; /* Mantiene en fila si es posible */
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px 12px;
    }
    
    .tiempo p:first-child {
        font-size: 14px;
    }
    
    #temporizador {
        font-size: 16px !important;
        min-width: 75px;
        padding: 4px 8px;
    }
}

@media (max-width: 375px) {
    .tiempo {
        flex-direction: column; /* Solo en pantallas muy pequeñas se apila */
        gap: 3px;
    }
    
    #temporizador {
        width: 100%;
    }
}

/* ===== RESPONSIVE PARA BANNERS ===== */
@media screen and (max-width: 1340px) {
    .bannerPublicidad {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #banner-1 {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 850px) {
    /* Cambia de vertical a horizontal en móvil */
    #banner-2-1 {
        display: none;
    }
    
    #banner-2-2 {
        display: block;
        width: 100%;
        height: auto;
    }
}

/* Posicionamiento específico de banners */
#bannerPublicidad-1 {
    margin-top: 10px;
    margin-bottom: 30px;
}

#bannerPublicidad-2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

#bannerPublicidad-2-2 {
    margin-top: 20px;
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Efecto para el temporizador cuando queda poco tiempo */
.tiempo-poco {
    background: linear-gradient(135deg, #dc3545, #ff6b6b) !important;
    animation: pulse 1s infinite;
}

.tiempo-poco #temporizador {
    color: white !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #323f7c, #f79c53);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f79c53, #323f7c);
}