@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Otomanopee One';
    src: url('fonts/OtomanopeeOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
    font-family: "Montserrat", sans-serif;
}

:root {
    --color-rosado: #EC0DD2;
    --color-verde: #3A728E;
    --color-naranjo: #D27504;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: #DEE8EF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.logo-afp {
    max-width: 199px;
}

header {
    padding: 15px 23px;
    min-height: 100px;
}

main {
    flex: 1;
    padding: 30px;
    position: relative;
    overflow-y: visible !important;
}

footer {
    border-image: linear-gradient(to right, transparent, var(--color-rosado), transparent) 1;
    border-top: 2px solid transparent;
    min-height: 130px;
    padding-top: 20px;
    position: relative;
}

footer::after {
    background-image: url(../img/footer_ne.png);
    bottom: 10px;
    content: "";
    height: 72px;
    position: absolute;
    right: 10px;
    width: 92px;
}

.logo-capital {
    width: 166px;
}

.logo-habitat {
    width: 210px;
}

.logo-modelo {
    width: 309px;
}

.logo-planvital {
    width: 105px;
}

.logo-provida {
    width: 202px;
}

.logo-cuprum {
    width: 157px;
}

.logo-afc {
    width: 117px;
}

.contenedor-principal {
    margin: 0 auto;
    width: min(1600px, 90%);
}

.contenedor-principal.pagina-leccion {
    margin: 0 auto;
    width: min(1480px, 90%);
}

.imagen-index {
    max-width: 733px;
}

/* Estilo base reutilizable */
.underline-style {
    --color: #d06a00;
    background: none;
    border: none;
    color: var(--color);
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    padding: 0;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;

    /* 🔸 Para inputs y botones que traen estilo nativo */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Evita problemas de altura */
    line-height: 1.1;
}

/* Hover normal */
.underline-style:hover {
    color: inherit;
    text-decoration: none;
}

/* 🔸 Efecto underline */
.underline-style::after {
    background: linear-gradient(to right, transparent, var(--color), transparent);
    border-radius: 50%;
    bottom: -3px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scaleX(1);
    transition: transform 0.3s ease, background 0.3s ease;
    width: 100%;
    pointer-events: none;
    /* evita interferencias al hacer click */
}

/* 🔹 Input de texto con el mismo efecto */
.input-underline {
    --color: #d06a00;
    position: relative;
    display: inline-block;
    font-family: inherit;
    color: var(--color);
    background: #FFFFFF;
    border: none;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--color), transparent) 1;
    padding: 6px 0;
    outline: none;
    transition: border-image 0.3s ease;
    text-indent: 20px;
}


.contenedor-index-der {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contenedor-index-der .contenedor-formulario {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contenedor-index-der .contenedor-formulario .inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contenedor-index-der .contenedor-formulario .inputs input {
    height: 52px;
    font-size: 24px;
    font-weight: 500;
}

.contenedor-index-der .contenedor-formulario .texto1 {
    color: var(--color-rosado);
    font-size: 40px;
    line-height: 100%;
    font-weight: 700;
}

.contenedor-index-der .contenedor-formulario .texto2 {
    color: var(--color-verde);
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
}

.contenedor-index-der .contenedor-formulario .texto3 {
    color: var(--color-naranjo);
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
}

.contenedor-index-der .contenedor-formulario .texto3:hover {
    text-decoration: none;
}

.contenedor-index-der .contenedor-formulario .btn-index-entrar {
    font-size: 40px;
    line-height: 100%;
    font-weight: 700;
}


.contenedor-index-der .contenedor-pie {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.contenedor-index-der .contenedor-pie span {
    text-align: right;
    color: var(--color-verde);
    font-size: 20px;
    font-weight: 500;
    line-height: 100%;
}

.btn-menu-header {
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
}


.contenedor-texto-bienvenida {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.contenedor-texto-bienvenida span {
    color: #3A728E;
    font-size: 40px;
    font-weight: 700;
    line-height: 100%;
}

.contenedor-texto-bienvenida span.nombre {
    color: var(--color-rosado);
}

.contenedor-texto-bienvenida span.texto-mora-presunta {
    font-size: 64px;
    color: var(--color-rosado);
    font-family: "Otomanopee One", sans-serif;
    font-weight: 500;
}

.btn-comenzar-curso {
    font-size: 40px;
    line-height: 100%;
    font-weight: 700;
}

.header-texto {
    font-size: 64px;
    color: var(--color-rosado);
    font-family: "Otomanopee One", sans-serif;
    font-weight: 400;
    text-align: center;
}


#wheelTab {
    --slice-active: #EC0DD2;
    --slice-fill: #3A728E;
    --slice-stroke: #FFFFFF;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

/* Todas las porciones (normal y hover) */
#wheelTab [class*="wheelnav-"][class*="-slice-basic-"],
#wheelTab [class*="wheelnav-"][class*="-slice-hover-"] {
    fill: var(--slice-fill) !important;
    stroke-width: 1 !important;
    stroke: var(--slice-stroke) !important;
    transition: fill 0.2s ease, filter 0.2s ease;
}

/* Borde exterior de la rueda */
#wheelTab svg path {
    stroke: none !important;
}

/* Slice activo (seleccionado) */
#wheelTab [class*="wheelnav-"][class*="-slice-selected-"] {
    fill: var(--slice-active) !important;
    filter: brightness(1.1);
    stroke: var(--slice-stroke) !important;
}

#wheelTab-content {
    width: 60%;
}

.wtab-pane {
    min-height: 650px;
}

#wheelTab-wheel {
    max-width: 650px;
    width: 49%;
}

.tab-contenedor {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

.tab-contenedor .titulo {
    color: var(--color-rosado);
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
}

.tab-contenedor .titulo span {
    color: var(--color-verde);
}

.tab-contenedor .descripcion {
    color: var(--color-verde);
    font-size: 30px;
    font-weight: 500;
    line-height: 100%;
}

.tab-contenedor .presentacion-fila-leccion {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-contenedor .presentacion-fila-leccion .icono {
    align-items: center;
    aspect-ratio: 1/1;
    background-color: var(--color-verde);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    width: 83px;
}

.tab-contenedor .presentacion-fila-leccion .icono img {
    width: 41px;
}

.tab-contenedor .presentacion-fila-leccion span {
    color: var(--color-verde);
    font-size: 30px;
    font-weight: 500;
    line-height: 100%;
    max-width: calc(100% - 100px);
}

.tab-contenedor .btn-entrar-leccion {
    font-size: 40px;
    font-weight: 700;
    line-height: 100%;
}

.titulo-leccion {
    display: flex;
    align-items: center;
    gap: 20px;
}

.titulo-leccion span {
    color: var(--color-naranjo);
    font-size: 36px;
    font-weight: 700;
    line-height: 100%;
}

.titulo-leccion img {
    width: 50px;
}



.sidebar {
    align-items: center;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    gap: 15px;
    left: 0;
    padding-top: 20px;
    position: absolute;
    top: 0;
    width: 60px;
}

.sidebar a {
    align-items: center;
    border-radius: 8px;
    color: #3b6d84;
    display: flex;
    font-size: 22px;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar a.active i {
    color: var(--color-naranjo);
}

.contenedor-leccion {
    display: flex;
    flex-direction: column;
    padding: 20px 0px;
}

.contenedor-leccion .bajada {
    color: #3A728E;
    font-size: 30px;
    font-weight: 500;
    line-height: 100%;
    text-align: justify;
}

.contenedor-leccion .titulo {
    color: #EC0DD2;
    font-family: "Otomanopee One", sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 100%;
}

.contenedor-leccion .subtitulo {
    color: #EC0DD2;
    font-family: "Otomanopee One", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 100%;
}

.contenedor-leccion .contenedor-cajitas-caso {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso {
    align-items: center;
    background-image: url(/assets/img/cajita_caso_verde.png);
    background-position: 50%;
    background-size: cover;
    display: flex;
    height: 64px;
    justify-content: center;
    width: 181px;
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso:hover {
    background-image: url(/assets/img/cajita_caso_rosado.png);
    text-decoration: none;
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso.activo {
    background-image: url(/assets/img/cajita_caso_rosado.png);
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso.estilo2 {
    background-image: url(/assets/img/cajita_caso_verde_estilo2.png);
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso.estilo2:hover {
    background-image: url(/assets/img/cajita_caso_rosado_estilo2.png);
    text-decoration: none;
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso.estilo2.activo {
    background-image: url(/assets/img/cajita_caso_rosado_estilo2.png);
}

.contenedor-leccion .contenedor-cajitas-caso .cajita-caso span {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 100%;
    text-align: center;
    width: 140px;
}

.contenedor-caso-encontrado {
    align-items: center;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, #447994, transparent) 1;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    outline: none;
    padding: 10px 0;
    position: relative;
}

.contenedor-caso-encontrado span {
    color: #447994;
    font-size: 22px;
    font-weight: 700;
    line-height: 100%;
    text-align: justify;
}

.contenedor-caso-encontrado a {
    align-items: center;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    width: 71px;
}

.contenedor-caso-encontrado a i {
    color: #447994;
    font-size: 56px;
}

.contenedor-caso-encontrado a i.completado {
    color: #EC0DD2;
}

/* .contenedor-caso-encontrado .completado {
    bottom: -8px;
    color: #03A696;
    font-size: 22px;
    position: absolute;
    right: -8px;
} */

.titulo-caso {
    color: #EC0DD2;
    font-size: 34px;
    font-weight: 700;
    line-height: 100%;
    text-align: justify;
}

.textito-naranjo {
    color: #D27504;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0%;
    line-height: 100%;
}

.titulo-seccion {
    color: #3A728E;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0%;
    line-height: 100%;
}

/* Wrapper que mantiene el aspect-ratio 1480x870 */
.scorm-wrapper {
    aspect-ratio: 1480 / 870;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* El iframe ocupa todo el wrapper */
.scorm-wrapper iframe {
    border: none;
    display: block;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}




/* Popup: solo estética y padding 0 */
.swal2-fullscreen {
    background: #000 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Contenedor HTML sin márgenes ni padding extra */
.swal2-fullscreen .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    /* importante: que deje crecer al contenido */
}

/* Ocultar acciones (footer) */
.swal2-fullscreen .swal2-actions {
    display: none !important;
}

/* Asegurar que la X sea visible sobre el iframe */
.swal2-fullscreen .swal2-close {
    color: #d06a00;
    opacity: 0.9;
    position: absolute;
    right: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    top: 10px;
    z-index: 5;
}

.swal2-fullscreen .my-custom-close {
    height: 40px;
    width: 40px;

    background-image: url("../img/btn_cerrar_modal.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border: none !important;
    outline: none !important;

    /* Quitar el texto "×" de SweetAlert */
    font-size: 0 !important;

    top: 20px !important;
    right: 25px !important;

    /* Evitar el fondo hover de SweetAlert */
    background-color: transparent !important;
}


.swal2-fullscreen .scorm-wrapper-swal2 {
    position: relative;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;

    /* relación 1480x870 */
    aspect-ratio: 1480 / 870;

    /* ancho ideal, pero limitado por viewport */
    width: min(1480px,
            /* tamaño “diseño” */
            95vw,
            /* que no se pase del ancho de la pantalla */
            calc(95vh * 1480 / 870)
            /* que al calcular la altura no supere 95vh */
        );
}

.swal2-fullscreen .scorm-wrapper-swal2 iframe {
    border: none;
    display: block;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}