/* Test públicos: listado, realización y resultado */

.tp {
    background: #F6F5F8;
    font-family: 'Poppins', sans-serif;
    color: #252034;
}

.tp *,
.tp *::before,
.tp *::after {
    box-sizing: border-box;
}

.tp-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.tp-contenedor--ancho {
    max-width: 1320px;
}

.tp-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Botones y etiquetas */

.tp-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid #EA1621;
    border-radius: 999px;
    background: #EA1621;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: filter .2s ease;
}

.tp-boton:hover,
.tp-boton:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(.92);
}

.tp-boton:focus-visible {
    outline: 2px solid #252034;
    outline-offset: 2px;
}

.tp-boton--oscuro {
    border-color: #252034;
    background: #252034;
}

.tp-boton--linea {
    border-color: #ECE9EF;
    background: #fff;
    color: #252034;
}

.tp-boton--linea:hover,
.tp-boton--linea:focus {
    border-color: #252034;
    color: #252034;
    filter: none;
}

.tp-etiqueta {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #FFF0F1;
    color: #EA1621;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Cabecera */

.tp-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: 22px;
    background: #252034;
    color: #fff;
}

.tp-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #EA1621;
    opacity: .9;
    pointer-events: none;
}

.tp-hero > * {
    position: relative;
    z-index: 1;
}

.tp-hero__ante {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #EA1621;
}

.tp-hero h1 {
    margin: 6px 0 8px;
    font-family: 'Anton', sans-serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}

.tp-hero h1 em {
    font-style: normal;
    color: #EA1621;
}

.tp-hero p {
    max-width: 560px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ECE9EF;
}

.tp-hero ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 600;
}

.tp-hero li i {
    margin-right: 6px;
    color: #E9F6EF;
}

/* Test seleccionado */

.tp-destacado {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
    margin: 20px 0;
    padding: 22px;
    border: 1px solid #ECE9EF;
    border-radius: 20px;
    background: #fff;
}

.tp-destacado h2 {
    margin: 10px 0 8px;
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: #252034;
}

.tp-destacado__descripcion {
    font-size: 13.5px;
    line-height: 1.6;
    color: #5B566A;
    overflow-wrap: anywhere;
}

.tp-destacado__descripcion > :last-child {
    margin-bottom: 0;
}

.tp-destacado__descripcion img {
    max-width: 100%;
    height: auto;
}

.tp-datos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.tp-dato {
    padding: 14px 8px;
    border-radius: 14px;
    background: #F6F5F8;
    text-align: center;
}

.tp-dato b {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.tp-dato small {
    font-size: 11px;
    font-weight: 600;
    color: #8A859A;
}

.tp-datos__boton {
    grid-column: 1 / -1;
}

/* Rejilla de test */

.tp-seccion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 12px;
}

.tp-seccion h3 {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: #252034;
}

.tp-buscar {
    position: relative;
    flex: 0 1 300px;
}

.tp-buscar i {
    position: absolute;
    left: 16px;
    top: 50%;
    font-size: 13px;
    color: #8A859A;
    transform: translateY(-50%);
}

.tp-buscar input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 2px solid #ECE9EF;
    border-radius: 999px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #252034;
}

.tp-buscar input:focus {
    border-color: #252034;
    outline: none;
}

.tp-rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.tp-tarjeta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #ECE9EF;
    border-radius: 16px;
    background: #fff;
    color: #252034;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tp-tarjeta[hidden] {
    display: none;
}

.tp-tarjeta:hover,
.tp-tarjeta:focus {
    border-color: #252034;
    color: #252034;
    text-decoration: none;
}

.tp-tarjeta.is-activa {
    border-color: #EA1621;
    box-shadow: 0 0 0 3px #FFF0F1;
}

.tp-tarjeta__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FFF0F1;
    color: #EA1621;
}

.tp-tarjeta b {
    font-size: 13.5px;
    line-height: 1.35;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.tp-tarjeta__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #8A859A;
}

.tp-tarjeta__pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.tp-gratis {
    padding: 3px 10px;
    border-radius: 999px;
    background: #E9F6EF;
    color: #1B7A43;
    font-size: 11px;
    font-weight: 800;
}

.tp-ir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #EA1621;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tp-vacio {
    margin: 18px 0 0;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    font-weight: 600;
    color: #8A859A;
}

/* Realización: se usa el diseño del test del panel (hacer-test.css) */

.tp--realizar .ht-barra {
    position: relative;
    top: auto;
}

.ht-registro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFF6E0;
    font-size: 12px;
    line-height: 1.5;
    color: #5B566A;
}

.ht-registro b {
    font-size: 13px;
    color: #252034;
}

.ht-registro a {
    align-self: flex-start;
    margin-top: 4px;
    font-weight: 800;
    color: #EA1621;
    text-decoration: none;
}

.ht-registro a:hover {
    text-decoration: underline;
}

/* Resultado */

.tp-resultado {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
}

.tp-nota {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px;
    border-radius: 20px;
    background: #252034;
    color: #fff;
    text-align: center;
}

.tp-nota__circulo {
    --color: #1B7A43;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--color) 0 var(--avance), #5B566A var(--avance) 100%);
}

.tp-nota.is-suspenso .tp-nota__circulo {
    --color: #EA1621;
}

.tp-nota__circulo > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #252034;
}

.tp-nota__circulo b {
    font-family: 'Anton', sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

.tp-nota__circulo small {
    font-size: 11px;
    color: #ECE9EF;
}

.tp-nota p {
    margin: 4px 0 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #E9F6EF;
}

.tp-nota.is-suspenso p {
    color: #FFF0F1;
}

.tp-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #ECE9EF;
    border-radius: 20px;
    background: #fff;
}

.tp-panel h1 {
    margin: 10px 0 4px;
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    color: #252034;
    overflow-wrap: anywhere;
}

.tp-panel__intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: #5B566A;
}

.tp-panel__nota {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #8A859A;
}

.tp-cifras {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tp-cifra {
    padding: 14px;
    border-radius: 14px;
    background: #F6F5F8;
}

.tp-cifra b {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.tp-cifra small {
    font-size: 11.5px;
    font-weight: 600;
    color: #8A859A;
}

.tp-cifra--bien b {
    color: #1B7A43;
}

.tp-cifra--mal b {
    color: #EA1621;
}

.tp-cifra--blanco b {
    color: #8A859A;
}

.tp-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #FFF0F1;
}

.tp-cta b {
    display: block;
    font-size: 15px;
}

.tp-cta span {
    font-size: 13px;
    color: #5B566A;
}

@media (max-width: 860px) {
    .tp-destacado,
    .tp-resultado {
        grid-template-columns: 1fr;
    }

    .tp-cifras {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tp-hero {
        padding: 24px 18px;
    }

    .tp-buscar {
        flex-basis: 100%;
    }

    .tp-acciones .tp-boton,
    .tp-cta .tp-boton {
        width: 100%;
    }
}
