
:root {
    --verde: #39d98a;
    --verde-oscuro: #102c26;
    --fondo: #f5f8f6;
    --texto: #24332e;
    --gris: #64736d;
    --borde: #e2eae5;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--texto);
    background: #fff;
    line-height: 1.7;
}

.navbar-custom {
    background: #102c26;
    padding: 16px 0;
}

.navbar-brand {
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    color: #d7e7df;
    margin-left: 12px;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--verde);
}

.hero {
    color: #fff;
    padding: 100px 0;
    background:
        radial-gradient(circle at 80% 20%, #245747 0, transparent 35%),
        linear-gradient(135deg, #102c26, #163d32);
    overflow: hidden;
}

.etiqueta {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: var(--verde);
}

.texto-verde {
    color: var(--verde);
}

.hero .lead {
    color: #d2e1d9;
    max-width: 590px;
}

.btn-verde {
    background: var(--verde);
    border: 2px solid var(--verde);
    color: #102c26;
    font-weight: 750;
    border-radius: 12px;
    padding: 12px 22px;
    transition: transform 0.2s, background 0.2s;
}

.btn-verde:hover {
    background: #5be5a0;
    border-color: #5be5a0;
    color: #102c26;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 12px;
    padding: 12px 22px;
}

.hero-card {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.icono-grande {
    font-size: 3.5rem;
    line-height: 1.3;
}

.hero-frase {
    color: var(--verde);
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 18px;
    margin-top: 24px;
}

.seccion {
    padding: 90px 0;
}

.seccion-suave {
    background: var(--fondo);
}

.encabezado-seccion {
    max-width: 720px;
    margin: 0 auto 28px;
}

.encabezado-seccion h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -1.2px;
}

.encabezado-seccion p,
.texto-secundario {
    color: var(--gris);
}

.etiqueta-clara {
    color: #16875a;
}

.tarjeta-riesgo {
    border: 1px solid var(--borde);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 25px rgba(24, 58, 44, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tarjeta-riesgo:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(24, 58, 44, 0.1);
}

.tarjeta-destacada {
    border-top: 4px solid var(--verde);
}

.icono-tarjeta {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    background: #e9f9f0;
    border-radius: 18px;
    font-size: 2rem;
}

.mini-etiqueta {
    display: inline-block;
    background: #e9f9f0;
    color: #18764e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    margin-top: 8px;
}

.alerta-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #effaf4;
    border: 1px solid #d0f0dd;
    border-radius: 16px;
    padding: 22px;
}

.alerta-info > span {
    font-size: 1.5rem;
}

.tarjeta-mito {
    display: flex;
    flex-direction: column;
    min-height: 255px;
    padding: 28px;
    border: 1px solid var(--borde);
    border-radius: 20px;
    background: #fff;
    color: var(--texto);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tarjeta-mito:hover,
.tarjeta-mito:focus-visible {
    border-color: var(--verde);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(24, 58, 44, 0.08);
}

.mito-numero {
    color: #16875a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.respuesta-mito {
    display: none;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid var(--borde);
    color: var(--gris);
}

.tarjeta-mito.activo .respuesta-mito {
    display: block;
}

.ver-mas {
    margin-top: auto;
    padding-top: 20px;
    color: #16875a;
    font-size: 0.9rem;
    font-weight: 700;
}

.consejo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid var(--borde);
}

.consejo:last-child {
    border-bottom: none;
}

.consejo > span {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #e9f9f0;
    color: #16875a;
    font-weight: 800;
}

.consejo h3 {
    margin-bottom: 5px;
}

.consejo p {
    color: var(--gris);
    margin-bottom: 0;
}

.mensaje-final {
    padding: 80px 20px;
    background: #102c26;
    color: #fff;
}

.mensaje-final p {
    max-width: 650px;
    margin: 16px auto;
    color: #d2e1d9;
}

.quiz-contenedor {
    max-width: 720px;
    margin: 0 auto;
    padding: 35px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(24, 58, 44, 0.06);
}

#progreso-texto,
#puntuacion {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gris);
}

.progress {
    height: 9px;
    border-radius: 10px;
    background: #e9eee9;
}

.progress-bar {
    background: var(--verde);
    transition: width 0.3s;
}

.opcion-quiz {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    color: var(--texto);
    transition: background 0.2s, border-color 0.2s;
}

.opcion-quiz:hover:not(:disabled) {
    background: #f0faf4;
    border-color: var(--verde);
}

.opcion-quiz.correcta {
    background: #e2f8e9;
    border-color: #38a765;
}

.opcion-quiz.incorrecta {
    background: #fff0ed;
    border-color: #df7969;
}

.opcion-quiz:disabled {
    cursor: default;
    opacity: 1;
}

#retroalimentacion {
    font-weight: 650;
}

.lista-fuentes {
    border-radius: 16px;
    overflow: hidden;
}

.lista-fuentes .list-group-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px;
    border-color: var(--borde);
}

.lista-fuentes .list-group-item span {
    color: var(--gris);
}

.lista-fuentes .list-group-item:hover {
    background: #f0faf4;
}

.nota-final {
    color: var(--gris);
    font-size: 0.9rem;
}

.footer-custom {
    background: #0b211c;
    color: #d2e1d9;
    padding: 30px 0;
}

.footer-custom p {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-card {
        padding: 26px;
    }

    .seccion {
        padding: 65px 0;
    }

    .tarjeta-mito {
        min-height: 220px;
    }

    .quiz-contenedor {
        padding: 23px;
    }

    .consejo {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
