@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f0f4f8;
    --azul: #2563eb;
    --azul-hover: #1d4ed8;
    --preguntabg: #ffffff;
    --rojo: #ef4444;
    --verde: #10b981;
    --segundo: #fbbf24;
    --tercero: #fbbf24;
    --theme: #2563eb;
    --texto-principal: #1e293b;
    --texto-secundario: #64748b;
    --borde: #e2e8f0;
    --sombra-suave: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --sombra-media: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-fuerte: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radio-borde: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f0f4f8;
    font-size: 15px;
    margin: 0;
    padding: 8px;
    line-height: 1.6;
    color: var(--texto-principal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.inputs {
    font-family: 'Poppins', sans-serif;
    padding: 10px 14px;
    border: 2px solid var(--borde);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.inputs:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

img, object, embed, video {
    max-width: 100%;
    height: auto;
}

.ie6 img {
    width: 100%;
}

.divl {
    height: auto;
    padding: 8px;
    float: left;
    width: 150px;
    text-align: right;
    font-weight: 500;
    color: var(--texto-secundario);
}

.divr {
    height: auto;
    padding: 8px;
    float: right;
    width: 150px;
    text-align: left;
}

.remarks {
    padding: 16px;
    width: calc(100% - 32px);
    clear: both;
    margin: 16px auto;
    height: auto;
    border-radius: var(--radio-borde);
    background-color: #fef3c7;
    border: 2px solid #fbbf24;
    box-shadow: var(--sombra-suave);
}

.big_div {
    display: table;
}

.pix {
    display: table-cell;
    width: 30%;
    vertical-align: middle;
}

.div50 {
    width: 45%;
    text-align: center;
    float: left;
    height: auto;
}

.sep25 {
    height: 25px;
    clear: both;
}

.zeroMargin_desktop {
    margin-left: 0;
}

.hide_desktop {
    display: none;
}

.moreinfo {
    margin: 20px;
    padding: 20px;
    background-color: #f0f9ff;
    border-left: 4px solid var(--azul);
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.moreinfo h3 {
    color: var(--azul);
    margin-top: 0;
}

#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    color: #fff;
    background-color: var(--azul);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    transition: all 0.3s ease;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    box-shadow: var(--sombra-fuerte);
    text-decoration: none;
    z-index: 999;
}

#back-to-top:focus,
#back-to-top:hover {
    background-color: var(--azul-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 20px -5px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.pregunta {
    font-size: 15px;
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    padding: 14px 16px;
    color: white;
    border-radius: var(--radio-borde);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: 600;
    margin-bottom: 0;
    box-shadow: var(--sombra-suave);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pregunta sin responder - marcada en amarillo */
.pregunta[style*="background-color: yellow"],
.pregunta[style*="background-color:yellow"],
.pregunta[style*="background: yellow"],
.pregunta[style*="background:yellow"] {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #78350f !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), var(--sombra-media) !important;
    animation: pulseYellow 2s infinite !important;
}

@keyframes pulseYellow {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), var(--sombra-media);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.3), var(--sombra-media);
    }
}

.mainContainer {
    margin: 0 auto 20px;
    border-radius: var(--radio-borde);
    height: auto;
    padding: 20px;
    max-width: 100%;
    font-size: 15px;
    clear: both;
    background-color: white;
    box-shadow: var(--sombra-media);
}

.mainContainerBlue {
    margin: 0 auto 20px;
    border-radius: var(--radio-borde);
    height: auto;
    padding: 20px;
    max-width: 100%;
    font-size: 15px;
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: var(--sombra-media);
}

.progress {
    clear: both;
    width: 100%;
    height: 32px;
    background: linear-gradient(90deg, var(--rojo) 0%, #dc2626 100%);
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding-top: 6px;
    border-radius: 0 0 8px 8px;
    transition: width 0.3s ease;
}

.progresscontainer {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-fuerte);
    width: 90%;
    max-width: 600px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 32px;
    font-weight: 300;
    line-height: 20px;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--texto-principal);
    text-decoration: none;
    cursor: pointer;
}

a:link {
    color: var(--azul);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:active {
    color: var(--azul-hover);
    text-decoration: none;
}

a:visited {
    color: var(--azul);
    text-decoration: none;
}

a:hover {
    color: var(--azul-hover);
    text-decoration: underline;
}

.blockpregunta {
    width: 100%;
    max-width: 340px;
    margin-bottom: 30px;
    padding: 0;
    border-radius: var(--radio-borde);
    margin-right: 15px;
    display: inline-block;
    vertical-align: top;
    background-color: white;
    box-shadow: var(--sombra-media);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blockpregunta:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-fuerte);
}

/* Bloque de pregunta sin responder */
.blockpregunta:has(.pregunta[style*="background-color: yellow"]),
.blockpregunta:has(.pregunta[style*="background:yellow"]) {
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15), var(--sombra-media) !important;
}

@media (max-width: 768px) {
    .blockpregunta {
        width: 100%;
        margin-right: 0;
        max-width: 100%;
    }
}

.categoria {
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    color: #fff;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 20px;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-media);
    text-align: center;
}

.titulos {
    border-radius: var(--radio-borde);
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--borde);
    font-weight: 600;
    color: var(--texto-principal);
    box-shadow: var(--sombra-suave);
}

.separator5 {
    height: 5px;
    clear: both;
}

.separator25 {
    height: 25px;
    clear: both;
}

.iconopregunta {
    margin-right: 8px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.disabledinput {
    visibility: hidden;
    background: #E01F22;
}

.aprueba {
    font-size: 28px;
    color: var(--verde);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.reprueba {
    font-size: 28px;
    color: var(--rojo);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.separator30 {
    height: 40px;
    clear: both;
}

.preguntaerronea {
    font-size: 18px;
    color: var(--rojo);
    font-weight: 600;
}

#header {
    height: auto;
    min-height: 110px;
    width: 100%;
    clear: both;
    padding: 16px;
    overflow: hidden;
    border-radius: var(--radio-borde);
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    box-shadow: var(--sombra-media);
    margin-bottom: 20px;
}

#slogan {
    float: left;
    font-size: 16px;
    font-weight: 600;
    width: auto;
    max-width: calc(100% - 220px);
    line-height: 1.5;
    margin-left: 15px;
    margin-top: 15px;
    padding: 10px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#logo {
    width: 90px;
    height: 90px;
    float: left;
    margin-top: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#home {
    width: 90px;
    height: 90px;
    float: right;
    vertical-align: middle;
    text-align: center;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

#home:hover {
    transform: scale(1.05);
}

input[type=radio] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--borde);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    margin-left: 10px;
    vertical-align: middle;
    transition: all 0.2s ease;
    background-color: white;
}

input[type=radio]:hover {
    border-color: var(--azul);
}

input[type=radio]:checked {
    border-color: var(--azul);
    background-color: var(--azul);
    box-shadow: 0 0 0 2px white inset;
}

.evaluacion {
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--texto-principal);
    font-size: 17px;
    font-weight: 600;
    padding: 16px;
    border-radius: var(--radio-borde);
    border: 2px solid var(--borde);
    box-shadow: var(--sombra-suave);
}

.smallt {
    margin-top: 50px;
    font-size: 13px;
    color: var(--texto-secundario);
}

div {
    border-radius: 0px;
}

#dialog-message {
    font-size: 16px;
    line-height: 1.6;
}

.dvresultadook {
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, var(--verde) 0%, #059669 100%);
    padding: 14px;
    display: none;
    margin-top: 8px;
    color: white;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.dvresultadomal {
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, var(--rojo) 0%, #dc2626 100%);
    padding: 14px;
    display: none;
    color: white;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.alternativa {
    text-align: left;
    padding: 14px 16px;
    border-radius: 8px;
    clear: both;
    z-index: 10;
    border: 2px solid var(--borde);
    background-color: white;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}

.alternativa:hover {
    border-color: var(--azul);
    background-color: #f8fafc;
    transform: translateX(4px);
}

.alternativaBuena {
    text-align: left;
    padding: 14px 16px;
    clear: both;
    z-index: 10;
    border: 2px solid var(--verde);
    color: #065f46;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--sombra-suave);
}

.lportada {
    font-size: 16px;
    line-height: 1.6;
}

.opcion-menu {
    margin: 20px 0;
    padding: 16px;
    background-color: white;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
    transition: transform 0.2s ease;
}

.opcion-menu:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.topnav {
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    position: relative;
    padding-left: 16px;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-media);
}

.topnav #myLinks {
    display: none;
    width: 220px;
    background-color: white;
    border-radius: 0 0 var(--radio-borde) var(--radio-borde);
    box-shadow: var(--sombra-media);
}

.topnav a {
    color: white;
    padding: 14px 18px;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: background-color 0.2s ease;
}

.topnav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.topnav a.icon {
    background: white;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--azul);
}

.active {
    background-color: var(--azul-hover);
    color: white;
    padding: 8px;
    height: 100px;
    border-radius: var(--radio-borde);
}

.icon {
    background-color: white !important;
    padding: 14px 16px !important;
    color: var(--azul) !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    margin-right: 12px !important;
    top: 12px !important;
    transition: all 0.2s ease;
}

.icon:hover {
    background-color: #f1f5f9 !important;
}

#menur {
    width: 250px;
    position: absolute;
    right: 20px;
    top: 110px;
    display: none;
    background-color: white;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-fuerte);
}

#nombre {
    color: white;
    font-size: 16px;
    font-weight: 600;
    float: left;
    margin-left: 15px;
    margin-top: 17px;
}

.menurli {
    margin: 16px 0;
    display: block;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

.menurli:hover {
    color: var(--azul);
}

.dsicontainer {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-fuerte);
    padding: 0;
    overflow: hidden;
}

.divselect {
    width: 80px;
}

.sino {
    width: 24px;
    height: 24px;
    margin-left: 0;
    margin-right: 10px;
    display: none;
    float: left;
    vertical-align: middle;
}

.btn {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--azul) 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--azul-hover) 0%, var(--azul) 100%);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.btn:active {
    transform: translateY(0);
}

.dotted {
    border-radius: var(--radio-borde);
    clear: both;
    padding: 20px;
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: 0;
    background-color: white;
    border: 2px solid var(--borde);
    box-shadow: var(--sombra-suave);
}

.caja {
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    width: 80%;
    margin-top: 8px;
    text-align: center;
    border: 2px solid var(--borde);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.caja:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cajab {
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    width: 80%;
    margin-top: 8px;
    border: 2px solid var(--borde);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cajab:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    word-wrap: break-word;
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

#countdown {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 12px;
    background: linear-gradient(90deg, var(--azul) 0%, #3b82f6 100%);
    color: white;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
}

/* Mejoras para selectores */
select.inputs {
    cursor: pointer;
    padding-right: 35px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Para Internet Explorer */
select.inputs::-ms-expand {
    display: none;
}

/* Estilos para tablas */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

td {
    padding: 10px;
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

/* Animaciones suaves */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Mejora para dispositivos móviles */
@media (max-width: 768px) {
    body {
        padding: 4px;
        font-size: 14px;
    }

    .dsicontainer {
        padding: 0;
        border-radius: 8px;
    }

    .mainContainer,
    .mainContainerBlue {
        padding: 16px;
        border-radius: 8px;
    }

    #header {
        padding: 12px;
        min-height: auto;
    }

    #slogan {
        font-size: 14px;
        max-width: calc(100% - 180px);
        margin-left: 10px;
    }

    #logo,
    #home {
        width: 70px;
        height: 70px;
    }

    .categoria {
        font-size: 18px;
        padding: 14px 16px;
        margin: 20px 0 15px;
    }

    .pregunta {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn {
        width: 100%;
        font-size: 15px;
        padding: 12px 20px;
    }

    .alternativa {
        padding: 12px 14px;
        font-size: 14px;
    }

    input[type=radio] {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        margin-left: 8px;
    }

    .caja,
    .cajab {
        width: 100%;
    }

    #countdown {
        font-size: 13px;
        padding: 10px;
    }

    #back-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 20px;
    }
}

/* Mejoras adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .divl,
    .divr {
        width: 100%;
        text-align: left;
    }

    .opcion-menu {
        margin: 15px 0;
        padding: 12px;
    }

    .aprueba,
    .reprueba {
        font-size: 24px;
    }
}

/* Estilo para modo oscuro (opcional, basado en preferencias del sistema) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e293b;
        --preguntabg: #334155;
        --texto-principal: #f1f5f9;
        --texto-secundario: #94a3b8;
        --borde: #475569;
    }
    
    /* Los gradientes se mantienen con colores brillantes para contraste */
}

/* Animación de carga */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blockpregunta {
    animation: fadeIn 0.3s ease forwards;
}

/* Mejora de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilo mejorado para listas */
ul {
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Estilo para imágenes dentro de contenido */
img {
    border-radius: 8px;
}

/* Mejora de contraste en textos importantes */
h1, h2, h3, h4, h5, h6 {
    color: var(--texto-principal);
    font-weight: 600;
    line-height: 1.3;
}

/* Estilo para inputs deshabilitados */
input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}