@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at center, #eaf5ff 0%, #ffffff 55%);
    color: #1f2d3d;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, #e6f4ff, transparent 60%);
    z-index: -1;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 15px 20px;
    border-radius: 15px;
    height: 95px;
    padding-right: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 210px;
}

.header h1 {
    font-size: 22px;
}

.header h1 span {
    color: #1e88e5;
}

.header p {
    font-size: 15px;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 100%;
}

.header-right-p {
    display: flex;
    flex-direction: column;   /* uno encima del otro */
    align-items: center;      /* centrado horizontal */
    justify-content: center;  /* centrado vertical */
    gap: 0px;
    height: 100%;
}

.user-info {
    text-align: right;
    font-size: 18px;
}

.user-info span {
    color: #555;
}

.user {
    margin-left: 220px;
    font-size: 22px;
}

.user span{
    display:block;
    font-size:18px;
    color:#555;
}

.avatar {
    width: 70px;
    border-radius: 50%;
}

.logo {
    position: absolute;
    left: 20px;
    top: 0px;
    height: 150px;
}


/* MAIN */
main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin: auto;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.titulo-central {
    text-align: center;
    margin-bottom: 40px;
}

.titulo-central h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.2;
}

.titulo-central h1 span {
    color: #1e88e5;      /* Azul SABER */
    font-weight: 800;
}

.titulo-central p {
    margin-top: 8px;
    font-size: 18px;
    color: #6b7280;
}

.cards{
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 25px;              /* separación entre botones */
  text-align: center;
}

.card{
  background:#fff;
  border-radius:22px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all .25s ease;
  cursor:pointer;
  width: 100%;            /* 👈 ya no 500px */
  height: auto;           /* 👈 deja que crezca */
  min-height: 160px;      /* opcional */
}

.card img {
    width: 150px;
    float: left;
}

.card div {
    float: left;
    margin-left: 20px;
    margin-top: 20px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: left;
}

.card p {
    font-size: 20px;
    color: #555;
    text-align: left;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 55px rgba(0,0,0,0.4);
}

/* INFO */
.info {
    text-align: left;
}

.student-img {
    max-width: 600px;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.12));
}

.student-wrapper {
    position: relative;
}

.student-wrapper::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #e6f2ff 0%, transparent 70%);
    z-index: -1;
    top: 40px;
    left: 20px;
}

.info h2 {
    font-size: 3.0rem;
    margin-bottom: 15px;
    color: #0f3c5f;
}

.info p {
    font-size: 1.5rem;
    max-width: 500px;
}

/* LOGIN CARD */
.login-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    max-height: 650px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
}

.clave-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 22px;
    position: absolute;
    width: 360px;
    left: 50%;
    top:100px;
    margin-left: -180px;
    height: 320px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
}

.login-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0f3c5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clave-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #0f3c5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card label {
    font-size: 0.9rem;
    font-weight: 500;
}

.clave-card label {
    font-size: 0.9rem;
    font-weight: 500;
}

.login-card input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #dcdcdc;
    font-size: 1rem;
    margin: 10px 0 22px;
}

.clave-card input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #dcdcdc;
    font-size: 1rem;
    margin: 10px 0 22px;
}

.login-card button {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(90deg, #ffd000, #ffb700);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2d3d;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 200, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap:8px;
}

.clave-card button {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(90deg, #ffd000, #ffb700);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2d3d;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 200, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap:8px;
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 200, 0, 0.45);
}

.clave-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 200, 0, 0.45);
}

.register {
    margin-top: 15px;
    text-align: center;
}

.register a {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 600;
}

/* LEVELS */
.levels {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 2px;
}

.levels span {
    background: #f2f7fb;
    border-radius: 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
}

.hero {
    min-height: 95vh;
    background:
        radial-gradient(circle at center, #eaf5ff 0%, #ffffff 60%);
    background-image: url("imagenes/fondo-saber.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.premio-img {
    margin-top: 20px; 
    width:220px;
}

.icono {
    width: 25px;
}

.iconog {
    width: 35px;
}

.iconom {
    width: 30px;
}

.content-buttons {
    text-align: center;
    margin-left: 91.5%;
    margin-top: 10px;
}

.content-buttons a {
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    width: 100px;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: bold;
    background-color: #0080DE;
    color: #FFF;
    text-transform: uppercase;
    border-radius: 10px;
}

.content-buttons a:hover {
    background-color: #006AB8;
}

.emergente {
    background: rgba(33, 41, 52, .50);
    position: fixed;
    inset: 0;
    z-index: 999;
    transition: background .6s;
    display: none;
    overflow-y: auto;   /* 👈 ESTA ES LA CLAVE */
}

.inicia-prueba {
    position: relative;
    margin: auto;
    max-width: 590px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

.fondo {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.contenido-texto{
    position: absolute;
    top: 340px;
    left: 90px;
    right: 90px;   /* 👈 en lugar de width fija */
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.titulo-condiciones{
    font-weight: 800;
    display: block;
    font-size: 18px;
    margin: 0 0 6px 0;     /* sin espacio exagerado */
    padding: 0;            /* quita el padding-bottom */
}

.linea{
    display: flex;
    align-items: center; /* icono arriba, texto fluye mejor */
    gap: 12px;
}

.linea p{
    margin: 0;
    line-height: 1.25;       /* más legible */
    font-size: 15.5px;
}

.icono {
    width: 40px;
}

.info-examen{
    margin-top: 5px;
    margin-left: 120px;
    width: 70%;
    display: flex;
    align-items: stretch;        /* ambos lados igual alto */
    background: linear-gradient(145deg, #f6e7c1, #e8c97a);
    border: 2px solid #d4a933;
    border-radius: 14px;
    overflow: hidden;            /* para que la línea se vea limpia */
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.bloque{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 14px;          /* controla la altura aquí */
    text-align: left;            /* se ve más natural como tu imagen */
}

.icono-info {
    width: 40px;
}

.label{
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #6b5a2b;
    margin-bottom: 4px;
}

.bloque strong{
    display: block;
    font-size: 18px;
    margin: 0;
    color: #1f1f1f;
    text-align: center;
}

.bloque:first-child{
    border-right: 2px solid #d4a933;
}

.salida {
    text-align: right;
}

.salida img {
    width: 130px;
    margin-right: 50px;
    cursor: pointer;
}

.salida img:hover {
    filter: drop-shadow(0px 0px 40px rgba(255,229,64,1));
}

.password-box {
    position: relative;
    width: 100%;
}

.password-box input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.password-box img {
    position: absolute;
    right: 15px;
    top: 35%;
    width: 25px;
    cursor: pointer;
}

/* REGRESAR */
.volver {
    margin-top: 35px;
    text-align: center;
}

.volver:hover {
    filter: drop-shadow(15px 15px 20px rgba(0,0,0,1));
}

.volver a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.volver img {
    width: 60px;
}

/* TABLA CARD */
.tabla-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 25px 45px rgba(0,0,0,.08);
    overflow-x: auto;
    margin: auto;
    margin-top: -20px;
}

.tabla-card button {
    border:none;
    cursor: pointer;
    background: none;
    margin-top: 4px;
}

.primera_celda {
    border-radius: 10px 0px 0px 10px;
}

.ultima_celda {
    border-radius: 0px 10px 10px 0px;
    border-right: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-color:#EAEDED;
}

thead th {
    background: #0b3c74;
    color: #fff;
    padding: 14px;
    font-size: 14px;
    border-right: 1px solid #abcdff;
}

tbody td {
    text-align: center;
    padding: 1px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.celda_no {
    background: #0b3c74;
    color: #fff;
    font-size: 14px;
}

.boton-play {
    width: 40px;
}

.boton-play:hover {
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,1));
}

.boton-play-off {
    width: 40px;
}

.celda_listado {
    font-family:Verdana, Arial, Helvetica, sans-serif; background-color:#ffffff; cursor: pointer;
}

.celda_listado:hover {
    background-color: #d6e3f3 !important; 
    border:1px dashed #1ca4a8 !important;
    color: #000000 !important;
}

.celda_listado:active {
    background-color: #1A5276 !important;
    color: #ffffff !important;
}

/* TOP BAR */
.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 40px;
    background:rgba(255,255,255,0.6);
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin: 10px 20px;
    border-radius: 15px;
}

.timer{
    background: #1e88e5;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    min-width: 270px;
    text-align: center;
}

/* AREAS */
.areas{
    display:flex;
    justify-content:center;
    gap:15px;
    padding:10px;
}

.areas button{
    border:none;
    padding:12px 50px;
    border-radius:10px;
    background:#e3f2fd;
    color:#1e88e5;
    font-weight:600;
    cursor:pointer;
    font-size: 15px;
}

.areas button.active{
    background:linear-gradient(135deg,#1e88e5,#1565c0);
    color:#fff;
}

.areas button.inactive{
    background:linear-gradient(135deg,#5e5e5e,#a8a8a8);
    color:#cfcfcf;
}

.grado {
    font-size: 40px;
    font-weight: bold;
    color: #1e88e5;
}
/* MAIN */
.figura{
    text-align:center;
    margin:30px 0;
}

.figura img{
    max-width:90%;
    mix-blend-mode: multiply;
}

/* OPCIONES */
.opciones{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-top:30px;
}

.opcion{
    background:#f9fbff;
    border:1px dashed #1e88e5;
    border-radius:10px;
    padding:20px;
    display:flex;
    align-items:center;
    gap:15px;
    cursor:pointer;
    transition:.25s ease;
    font-size: 18px;
}

.opcion:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(0,0,0,.12);
}

.opcion input{
    transform:scale(1.3);
}

.opcion img {
    mix-blend-mode: multiply;
}

.letra{
    background:#1e88e5;
    color:#fff;
    width:34px;
    height:34px;
    min-height: 34px;
    min-width: 34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:700;
    flex-shrink: 0;
}

.MathJax {
    line-height: 1.6 !important;
}

/* ACCIONES */
.acciones{
    display:flex;
    margin-top:35px;
    justify-content: center;
    gap: 200px;
}

.btn-siguiente{
    background:linear-gradient(135deg,#1e88e5,#1565c0);
    color:#fff;
    border:none;
    padding:10px 32px;
    font-size:16px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-siguiente:hover{
    transform:translateX(4px);
}

.btn-siguiente img {
    width: 30px;
    filter: drop-shadow(0px 0px 15px rgba(255,255,255,0.6));   
}

.btn-anterior{
    background:linear-gradient(135deg,#1e88e5,#1565c0);
    color:#fff;
    border:none;
    padding:10px 32px;
    font-size:16px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-anterior:hover{
    transform:translateX(-4px);
}

.btn-anterior img {
    width: 30px;
    filter: drop-shadow(0px 0px 15px rgba(255,255,255,0.6));   
}

.btn-iniciar{
    background:linear-gradient(135deg,#1e88e5,#1565c0);
    color:#fff;
    border:none;
    padding:10px 10px;
    font-size:16px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: auto;
    margin-top: 35px;
    margin-left: 150px;
}

.btn-iniciar img {
    width: 30px;
    filter: drop-shadow(0px 0px 15px rgba(255,255,255,1));   
}

.btn-iniciar:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(0,0,0,.12);
}

.boton_cerrar {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 1));
    background-image: url('imagenes/cerrar.png');
    position: absolute; 
    left:100%; 
    margin-top:-15px; 
    margin-left:-25px;
    width: 30px;
    height: 30px;
}

.boton_cerrar:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1));
    background-image: url('imagenes/cerraron.png') !important;
}

.btn-terminar {
    background:linear-gradient(135deg,#1e88e5,#1565c0);
    color:#fff;
    border:none;
    padding:10px 32px;
    font-size:16px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-terminar:hover{
    transform:translateY(-4px);
}

.btn-terminar img {
    width: 35px;
    filter: drop-shadow(0px 0px 15px rgba(255,255,255,1));   
}
/* MAIN */
.contenedor{
    max-width:1100px;
    margin:auto;
    padding:20px 30px 50px;
}

.contenedor-pregunta {
    min-height: 72vh;
    background: rgba(200,200,200,0.5);
    padding: 0px;
    border-radius: 18px;
}

.pregunta-card{
    max-width: 1100px;
    margin: 0 auto;    
    background: #ffffff;
    border-radius: 0px 0px 18px 18px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.pregunta-card h2{
    text-align:center;
    margin-bottom:20px;
    color:#0b3c74;
}

.enunciado{
    font-size:20px;
    margin:15px 0;
    text-align: justify;
}

.enunciado p {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

.enunciado span {
    display: block;
    text-align: right;
    font-style: italic;
    font-size: 14px;
}

.enunciado ul {
    margin-left: 40px;
}

.enunciado_general{
    font-size:22px;
    margin:15px 0;
    text-align: center;
    color: #00B2DE;
    font-weight: bold;
}

.opcion-pregunta{
    background:#f9fbff;
    border-radius:18px 18px 0px 0px;
    padding:10px;
    display:flex;
    align-items:center;
    gap:11px;
    transition:.25s ease;
    font-size: 16px;
    justify-content: center;
    border-bottom:1px dashed #1e88e5;

}

.pregunta-active {
    background:#FF7B00;
    color:#fff;
    width:30px;
    height:44px;
    min-width: 30px;
    min-height: 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    font-weight:700;
    flex-shrink: 0;
    cursor: pointer;
}

.pregunta-inactive {
    background:#e3f2fd;
    color:#1e88e5;
    border:1px dashed #1e88e5;
    width:30px;
    height:44px;
    min-width: 30px;
    min-height: 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    font-weight:700;
    flex-shrink: 0;
    cursor: pointer;
}

.pregunta-respondida {
    background:#1e88e5;
    color:#fff;
    width:30px;
    height:44px;
    min-width: 30px;
    min-height: 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    font-weight:700;
    flex-shrink: 0;
    cursor: pointer;
}

.lista-pregunta {
    padding-left: 50px;
}
/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .logo{ height: 25px; }

    .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .info {
        text-align: center;
    }

    .student-img {
        margin: 0 auto 20px;
    }

    .titulo-central h1 {
        font-size: 28px;
    }

    .cards{
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 12px;
    }

    .card img{ width: 80px; }
}

