/* =========================================
   ROADMAP - VIVIR DE MI ARTE
========================================= */

.roadmap-box {
    position: relative;
    border: 2px dashed #e8b4cc;
    border-radius: 10px;
    background: #fffaf5;
    padding: 25px 18px 18px;
    margin: 0 0 2px 0;
    color: #4a0020;
}


/* ---------- ETIQUETAS ---------- */

.roadmap-label {
    position: absolute;
    top: -14px;
    left: 16px;

    background: #e5a21a;
    border: 2px solid #c77e00;
    border-radius: 6px;

    padding: 2px 12px;

    font-size: 16px;
    font-weight: 900;
    color: #5a3000;

    letter-spacing: 1px;

    line-height: 1.1;
}


/* ---------- CONTADOR ---------- */

.contador-box {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 22px;
}

.contador-numero {
    font-size: 72px;
    line-height: 0.9;
    font-weight: 900;
    color: #c45d82;
    margin-top: 5px;
}

.contador-subtitulo {
    font-size: 17px;
    color: #9a6070;
    margin-top: 8px;
    margin-bottom: 14px;
}

.barra-progreso {
    height: 12px;
    background: #ffd6e7;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 2px;
}

.barra-progreso-relleno {
    height: 100%;
    width: 0%;
    background: #c45d82;
    border-radius: 10px;

    transition: width 0.5s ease;
}

.contador-restante {
    text-align: right;
    font-size: 15px;
    color: #9a6070;
    margin-top: 5px;
}

.contador-fecha {
    text-align: center;
    font-size: 15px;
    color: #673946;
    margin-top: 10px;
}

/* ---------- MISIÓN ---------- */

.mision-box {
    padding-top: 20px;
    padding-bottom: 20px;
}

.mision-box p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}


/* ---------- ROADMAP ---------- */

.roadmap-principal {
    padding-top: 27px;
    padding-left: 18px;
    padding-right: 18px;
}


/* ---------- NIVELES ---------- */

.nivel {
    border: 1px solid #e8b4cc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff5f8;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.nivel:last-child {
    margin-bottom: 0;
}


/* CABECERA */

.nivel-cabecera {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    background: #ffd6e7;
}

.nivel-superado .nivel-cabecera {
    background: #d4f1e5;
}

.nivel-en-curso .nivel-cabecera {
    background: #ffd3e3;
}

.nivel-bloqueado .nivel-cabecera {
    background: #f1f1f1;
}

.nivel-final .nivel-cabecera {
    background: #ffe4ad;
}


.nivel-nombre {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 18px;
    font-weight: 900;
}

.nivel-nombre:first-letter {
    font-size: 25px;
}


.nivel-estado {
    padding: 4px 11px;

    border-radius: 20px;

    background: #c45d82;
    color: white;

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;
}

.nivel-superado .nivel-estado {
    background: #59b58a;
}

.nivel-en-curso .nivel-estado {
    background: #c45d82;
}

.nivel-bloqueado .nivel-estado {
    background: #c9c9c9;
    color: #666;
}

.nivel-final .nivel-estado {
    background: #d69b28;
}


/* CONTENIDO */

.nivel-contenido {
    padding: 5px 14px 10px;
}


/* ---------- CHECKLIST ---------- */

.objetivo {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 33px;

    border-bottom: 1px dashed #e8b4cc;

    font-size: 19px;
    color: #4a0020;

    cursor: pointer;
}

.objetivo:last-child {
    border-bottom: none;
}


/* CHECKBOX */

.objetivo input {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border: 2px solid #e9a5c3;
    border-radius: 5px;

    background: #fff;

    flex-shrink: 0;

    cursor: pointer;

    position: relative;
}


/* CHECK */

.objetivo input:checked {
    background: #ffe0ed;
    border-color: #c45d82;
}

.objetivo input:checked::after {
    content: "✓";

    position: absolute;

    left: 2px;
    top: -3px;

    font-size: 17px;
    font-weight: 900;

    color: #c45d82;
}


/* TEXTO COMPLETADO */

.objetivo:has(input:checked) span {
    color: #9a6070;
    text-decoration: line-through;
}


/* NIVELES BLOQUEADOS */

.nivel-bloqueado .nivel-contenido {
    opacity: 0.55;
}

.nivel-bloqueado .objetivo {
    cursor: default;
}

.nivel-bloqueado .objetivo input {
    cursor: default;
}


/* TEXTO FINAL */

.final-texto {
    margin: 8px 0 5px;

    text-align: center;

    font-size: 18px;
    line-height: 1.7;

    color: #7a3050;
}

.nivel-nombre small {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: normal;
    color: #9a6070;
}

/* =========================================
   OBJETIVOS DESPLEGABLES
========================================= */

.objetivos-extra {
    display: none;
}

.objetivos-limitados.abierto .objetivos-extra {
    display: block;
}

.ver-mas {
    display: block;

    width: 100%;

    margin-top: 8px;
    padding: 7px;

    border: none;
    border-top: 1px dashed #e8b4cc;

    background: transparent;

    font-family: inherit;
    font-size: 14px;
    font-style: italic;

    color: #b06a82;

    cursor: pointer;
}

.ver-mas:hover {
    color: #c45d82;
    text-decoration: underline;
}

/* =========================================
   ROADMAP EN MÓVIL
========================================= */

@media (max-width: 768px) {

    .roadmap-box {
        border-radius: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .roadmap-label {
        font-size: 15px;
        left: 12px;
    }

    .contador-numero {
        font-size: 58px;
    }

    .contador-subtitulo {
        font-size: 16px;
    }

    .mision-box p {
        font-size: 18px;
    }

    .nivel-cabecera {
        padding: 8px 10px;
    }

    .nivel-nombre {
        font-size: 17px;
        gap: 8px;
    }

    .nivel-estado {
        font-size: 11px;
        padding: 4px 8px;
    }

    .objetivo {
        font-size: 17px;
        min-height: 38px;
    }

}