/* variables*/
:root {
    --azul: #123a63;
    --azul-suave: #eaf0f6;
    --azul-avanzado: #2f6bed;

    --verde: #92b201;
    --verde-suave: #dceeb5;

    --naranja: #f7a525;
    --naranja-suave: #ffd89a;

    --rojo: #e74c3c;
    --rojo-deficiente: #ff8a5c;

    --gris: #f4f6f8;
    --borde: #d9dee5;

    --shadow: 0 12px 30px rgba(0,0,0,.08);
}

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

/* base*/
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--azul);
    text-align: center;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at 15% 15%, rgba(230,126,34,.30), transparent 42%),
        radial-gradient(circle at 85% 20%, rgba(47,143,70,.28), transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(59,130,246,.22), transparent 55%),
        linear-gradient(180deg, #f9fbff 0%, #eef3f9 100%);

    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(1.08) contrast(1.02);
}

.layout{

    flex:1;

    display:flex;
    flex-direction:column;

    align-items:center;

    gap:40px;

    width:100%;

    max-width:1400px;

    margin:auto;

    padding:30px 15px;

}

img {
    display: block;
    max-width: 100%;
    height:auto;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 80px;
    width:100%;
}

/* utilidades*/
.oculto { display: none !important; }
.visible { display: block; }

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* contenedor de inicio */
.home-container {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    text-align: left;
    width:100%;
    box-sizing:border-box;
}

.home-container h1 {
    text-align: center;
}

.home-container p {
    line-height: 1.6;
}

.home-container a {
    color: var(--verde);
    font-weight: bold;
}

.home-container a:not(.acceso-menu) {
    color: var(--verde);
    font-weight: bold;
}

/* menu de los test (indexTest)*/
.menu-tests {
    max-width: 900px;
    margin: 50px auto;
    width:100%;
    padding:0 10px;
    box-sizing:border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.menu-tests a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 22px;
    min-height: 130px;

    border-radius: 16px;
    text-decoration: none;
    color: var(--azul);

    background: linear-gradient(135deg, #fff, #f7fbff);
    box-shadow: var(--shadow);

    transition: .25s ease;
}

.menu-tests a div {
    text-align: center;
    width: 100%;
}

.menu-tests a:hover {
    transform: translateY(-6px);
}

/* titulos*/
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
}

/* css para el titulo de la herramienta solamente*/
.titulo-principal {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;

    padding: 0 20px;
    box-sizing: border-box;

    text-align: left;

    overflow-wrap: break-word;
}

.titulo-principal h1 {
    text-align: center;
    margin-bottom: 10px;
}

.titulo-principal h3 {
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.85;
    max-width: 100%;
}

/* imagenes en los titulos de los test*/
.test-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* icono + título */
.test-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* imagen */
.test-title img {
    width:clamp(42px,6vw,56px);
    height:clamp(42px,6vw,56px);
    object-fit: contain;
    flex-shrink: 0;
}

/* h1 sin pseudo-elemento */
.test-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
}

/* barra independiente */
.test-barra {
    width: 80px;
    height: 4px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--verde), var(--naranja));
}


/* limitar formulario*/
form{

width:100%;

max-width:900px;

margin:0 auto;

padding:0 10px;

box-sizing:border-box;

}

/* mejora visual del menu para acceder al test inicial y al index de los test */
.acceso-menu {
    display: inline-block;

    padding: 14px 24px;

    background: linear-gradient(135deg, var(--gris), var(--naranja));

    color: white;
    text-decoration: none;
    font-weight: bold;

    border-radius: 12px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.acceso-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18,58,99,.25);
}

.acceso-menu:active {
    transform: scale(.98);
}

/* pregunta */
.question {
    background: white;
    border: 2px solid var(--borde);
    border-radius: 14px;
    padding: 24px 18px 22px;
    margin-bottom: 24px;
    text-align:left;

    display:flex;
    flex-direction:column;
    align-items:center;

    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.question input[type="radio"] {
    width:18px;
    height:18px;
    margin-right:8px;
    accent-color:var(--azul-avanzado);
    cursor:pointer;
}

/* cuando está seleccionado */
.question input[type="radio"]:checked + * {

    font-weight:bold;

}

.question label[for^="check"] {

    display:inline-flex;
    width:auto;
    align-items:center;
    margin-right:20px;
    cursor:pointer;

}

/* efecto al pasar */
.question label:hover {

    border-color:var(--azul-avanzado);

    transform:translateY(-2px);

    box-shadow:0 5px 12px rgba(0,0,0,.10);

}

.question > label:first-of-type {
    display:inline-flex;
    width:auto;
    margin-bottom:0;
}

.question-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 6px;

    background: linear-gradient(
        90deg,
        var(--verde),
        var(--naranja)
    );

    border-radius: 3px;
}

.question-title {
    position: relative;
    display: block;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-weight: 600;
    width:100%;
    line-height: 1.4;
    word-break:break-word;
    hyphens:auto;
}

.question label {
    display:flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:120px;
    padding:12px 18px;
    margin:6px;
    flex:0 0 auto;
    gap:8px;
    border:2px solid var(--borde);
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* fila de respuestas SI / NO / PARCIALMENTE */
/* contenedor de respuestas */
.respuestas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;

    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

/* ocultar radio */
.respuestas input[type="radio"] {
    display: none;
}

/* botón estilo tarjeta */
.respuestas label {
    flex: 1 1 140px;
    max-width: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border: 2px solid var(--borde);
    border-radius: 12px;
    background: #fff;

    cursor: pointer;
    user-select: none;

    transition: all 0.2s ease;

    text-align: center;
}

/* hover */
.respuestas label:hover {
    transform: translateY(-2px);
    border-color: var(--azul-avanzado);
    box-shadow: 0 5px 12px rgba(0,0,0,.10);
}

/* seleccionado */
.respuestas label:has(input[type="radio"]:checked) {
    background: var(--azul-suave);
    border-color: var(--azul-avanzado);
    font-weight: bold;
    box-shadow: 0 5px 12px rgba(0,0,0,.10);
}

.respuestas input[type="radio"]:checked + label {
    background: var(--azul-suave);
    border-color: var(--azul-avanzado);
    font-weight: bold;
}

/* ajuste de texto interno */
.respuestas label {
    gap: 6px;
}

/* mejora visual del formulario*/
.panel {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border-radius: 14px;
}

/* resultados test especifico*/
.resultados {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;

    padding: 25px;

    box-sizing:border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    text-align: center;
}

.resultado-box {
    width: 100%;
    max-width: 420px;

    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    padding: 20px 25px;

    box-shadow: var(--shadow);
    box-sizing:border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin: 0 auto;
}

.nota-info {
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    color: black
}

/* css para la barra de puntuacion */
.barra-score {
    width: 100%;
    max-width: 320px;
    height: 14px;
    width:100%;
    border-radius: 50px;
    margin-top: 15px;

    position: relative;
    overflow: hidden;

    background: #e5e7eb;
}

.barra-score::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--fill, 0%);

    background: var(--color);

    transition: width 0.4s ease, background 0.3s ease;
}

.indicador {
    position: absolute;
    top: 50%;
    left: var(--fill, 0%);
    transform: translate(-50%, -50%);

    width: 18px;
    height: 18px;

    border-radius: 50%;
    background: #111827;
    border: 2px solid #fff;
    box-shadow:
        0 0 0 3px var(--color),
        0 6px 12px rgba(0,0,0,.2);

    transition: left 0.4s ease, border-color 0.3s ease;
}

.indicador::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    filter: blur(4px);
    z-index: -1;
}

.puntuacion,
.valoracion {
    margin: 0;
}

.resultados.mostrar {
    display: block;
    flex-direction: column;
    align-items: center;
}

/* puntuación */
.puntuacion {
    color: var(--color);
    font-size: 2.6rem;
    font-weight: 800;
    transition: color .3s ease;
}

.puntuacion.mostrar {
    display: flex;
}

/* valoración */
.valoracion {
    display: none;
}

.valoracion.mostrar {
    display: block;
    color: var(--color);
    font-size: 1.3rem;
    font-weight: 600;
    transition: color .3s ease;
}

/* colores dinámicos*/
.resultados.critico {
    --color: var(--rojo);
}

.resultados.deficiente {
    --color: var(--rojo-deficiente);
}

.resultados.medio {
    --color: var(--naranja);
}

.resultados.eficaz {
    --color: var(--verde);
}

.resultados.total {
    --color: var(--azul-avanzado);
}

/* botones*/
button {
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;

    border: none;
    font-weight: 600;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

button:hover {
    transform: translateY(-3px);
}

button:active {
    transform: scale(0.98);
}

.card-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 16px;

    width:100%;
    box-sizing:border-box;
    padding: 18px 22px;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);

    border: 1.5px solid var(--borde);
    border-radius: 12px;

    text-decoration: none;
    color: var(--azul);

    box-shadow: 0 5px 12px rgba(0,0,0,.08);

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;

    max-width: 340px;
    margin: 20px auto;
}


.card-mini img {
    width: 60px;
    height: 60px;
    object-fit: contain;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(59,130,246,.08);
    border-radius: 8px;
    padding: 6px;
}

.card-mini strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.card-mini span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1px;
}

.card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    border-color: var(--azul-avanzado);
}

.card-mini:active {
    transform: scale(0.98);
}


/* boton para volver al index de los test*/
.boton_menu {
    background: linear-gradient(135deg, var(--verde-suave), var(--verde));

    color: black;
    border: none;
    border-radius: 12px;

    padding: 12px 20px;

    font-weight: bold;
    cursor: pointer;

    transition: .2s ease;
}

.boton_menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18,58,99,.25);
}

/* boton de inicio */
.boton_inicio {
    background: linear-gradient(
        135deg,
        var(--verde),
        #3eb85a
    );

    color: black;
    border: none;
    border-radius: 12px;

    padding: 12px 20px;

    font-weight: bold;
    cursor: pointer;

    transition: .2s ease;
}

.boton_inicio:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47,143,70,.25);
}

/* div para los botones*/
.espacio {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}


button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 3px;
}

/* botón principal */
.boton_principal {
    background: linear-gradient(135deg, var(--naranja-suave), var(--naranja));
    color: black;
}

/* recomendaciones del test inicial */
#resultado {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.recomendaciones-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    text-align: left;
}

/* cards */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    width:100%;
    padding: 18px;

    border: 1px solid rgba(255,255,255,.4);
    border-left: 6px solid var(--azul);

    transition: .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--azul-suave);
}

/* links resultados */
#resultado a:not(.oculto) {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;

    text-decoration: none;
    font-weight: bold;

    border-radius: 12px;
    border: 1px solid var(--borde);
    border-left: 6px solid var(--azul);

    color: var(--azul);

    transition: .25s ease;
}

/* checkbox del formulario*/
input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: #3b82f6;
}

/* tooltip (i)*/
.info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    width: 22px;
    height: 22px;

    margin-left: 6px;

    border-radius: 50%;
    border: 2px solid var(--naranja);
    color: var(--naranja);

    font-size: 14px;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.info:hover {
    background: var(--verde);
    color: blue;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);

    min-width:180px;
    max-width:min(260px,90vw);
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 12px;

    background: var(--verde);
    color: #fff;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;

    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.2s ease;
    z-index: 100;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);

    width: 12px;
    height: 12px;

    background: var(--verde);
    transform: translateX(-50%) rotate(45deg);
}

/* estado activo */
.info.active .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* HOME BUTTON */
#test {
    margin-top: 20px;
    padding: 12px 20px;

    border: none;
    border-radius: 10px;

    background: var(--azul);
    color: white;
    font-weight: bold;
}

/* footer*/
.footer {
    width: 100%;
    margin-top: auto;

    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(8px);
    color: #334155;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;

    padding: 6px 10px;
    font-size: 0.85rem;
    gap: 6px;

    box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}

.footer p {
    margin: 0;
    text-align: center;
}

/* logos del footer*/

.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 10px 5px;
    gap: 20px;

    flex-wrap:wrap;
    width: 100%;
    box-sizing: border-box;
}

/* logos dentro del footer */
.logo1,
.logo2 {
    height: auto;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

/* control individual */
.logo1 {
    width:100%;
    flex: 1;
    max-width:250px;
}

.logo2 {
    width:100%;
    max-width:400px;
    opacity:0.9;
    flex: 1.3;
}

.logo1:hover,
.logo2:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* header */
.header {
    width: 100%;
    
    background: linear-gradient(135deg, var(--verde), var(--naranja));
    gap: 9px;
    box-shadow: 0 4px 15px rgba(18,58,99,.15);

    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo{
    height:100px;
    width:auto;
    object-fit:contain;
    flex-shrink:0;
}

/* .header-title {
    margin: 0;

    color: white;
    font-size:clamp(1rem,2.5vw,1.2rem);
    font-weight: 700;
    letter-spacing: -0.3px;

    text-align: center;
} */

.header-title-boton {
    background: none;
    border: none;
    color: white;
    font-size:clamp(1rem,2.5vw,1.2rem);
    font-weight: 700;
    cursor: pointer;
}

.header-title-boton:hover {
    opacity: 0.9;
}

/* evita la línea decorativa global del h1 */
.header-title::after {
    display: none;
}

/* imagenes de los test*/
.imagen {
    width:clamp(80px,12vw,120px);
    height:clamp(80px,12vw,120px);

    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* acordeon*/
.acordeon {
    width:100%;
    max-width:900px;

    margin:25px auto;

    background:rgba(255,255,255,.9);

    border-radius:18px;

    border:1px solid var(--borde);

    box-shadow:var(--shadow);

    overflow:hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-radius .5s ease;
}


.acordeon:hover {
    transform:translateY(-3px);
}


.acordeon summary {

    cursor:pointer;
    list-style:none;

    padding:22px 25px;

    font-size:1.15rem;
    font-weight:700;

    color:white;

    /* background: linear-gradient(135deg, #0f766e, #334155); */
    background: linear-gradient(135deg, #64748b, #94a3b8);
    /*background: linear-gradient(135deg, #2563eb, #0ea5e9); */

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.acordeon summary::-webkit-details-marker {
    display:none;
}


/* icono */
.acordeon summary::after {

    content:"+";

    font-size:2rem;
    font-weight:bold;

    transition: transform .5s cubic-bezier(.22,1,.36,1);
}


.acordeon[open] summary::after {
    content:"−";

    transform:rotate(180deg);
}


.acordeon[open] summary {

    background:
    linear-gradient(
        135deg,
        var(--verde),
        var(--naranja)
    );

}


/* CONTENIDO ANIMADO */
.acordeon-contenido {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;

    padding: 0 25px;

    transition:
        grid-template-rows .8s cubic-bezier(.22,1,.36,1),
        opacity .5s ease,
        padding .8s ease;
}

.acordeon-contenido > * {
    min-height: 0;
    overflow: hidden;
}


.acordeon[open] .acordeon-contenido {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 25px;
}


/* pequeño efecto de entrada de las preguntas */
.acordeon[open] .question {
    animation: aparecerPregunta .5s ease both;
}

/* acordeon del index*/
.acordeon-inicio summary {
    cursor: pointer;
    list-style: none;

    padding: 22px 25px;

    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;

    color: var(--azul);

    background: linear-gradient(
        180deg,
        #ffffff,
        #f5f7fa
    );

    border-bottom: 1px solid var(--borde);

    display: flex;
    align-items: center;
    justify-content: space-between;

    transition: background .25s ease, color .25s ease;
}

.acordeon-inicio[open] summary {
    background: #eef3f9;
    color: var(--azul);
}

.acordeon-inicio summary::after {
    content: "›";
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--azul-avanzado);

    transition: transform .4s ease;
}

.acordeon-inicio[open] summary::after {
    transform: rotate(90deg);
}

.acordeon-inicio-contenido {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;

    padding: 0 25px;

    transition:
        grid-template-rows .6s ease,
        opacity .3s ease,
        padding .6s ease;
}

.acordeon-inicio-contenido > * {
    min-height: 0;
}

.acordeon-inicio[open] .acordeon-inicio-contenido {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 20px 25px;
}

.acordeon-inicio-contenido p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.acordeon-inicio-contenido p:last-child {
    margin-bottom: 0;
}


@keyframes aparecerPregunta {

    from {
        opacity:0;
        transform:translateY(-12px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }

}

/* responsive */
/* ======================================================
   RESPONSIVE
====================================================== */

/* ==========================
   MÓVILES PEQUEÑOS
   (hasta 480px)
========================== */

@media (max-width:480px){

    body{
        background-attachment:scroll;
    }

    .layout{
        padding:20px 12px;
        gap:20px;
    }

    .home-container,
    .titulo-principal,
    .recomendaciones-container,
    form,
    .acordeon,
    .resultados{
        width:100%;
        padding-left:15px;
        padding-right:15px;
        box-sizing:border-box;
    }

    h1{
        line-height:1.2;
    }

    .test-title{
        flex-direction:column;
        gap:10px;
    }

    .test-title img{
        width:42px;
        height:42px;
    }

    .menu-tests{
        grid-template-columns:1fr;
        gap:18px;
        margin:30px auto;
    }

    .menu-tests a{
        min-height:110px;
        padding:18px;
    }

    .question{
        padding:18px 14px;
    }

    .question-title{
        font-size:1rem;
        line-height:1.5;
    }

    .respuestas{
        flex-direction:column;
        gap:10px;
    }

    .respuestas label{
        width:100%;
        max-width:none;
        flex:none;
    }

    .question label{
        width:100%;
        margin:5px 0;
        min-width:unset;
    }

    .resultado-box{
        padding:18px;
    }

    .puntuacion{
        font-size:2rem;
    }

    .valoracion{
        font-size:1.1rem;
    }

    .barra-score{
        max-width:100%;
    }

    .espacio{
        flex-direction:column;
        width:100%;
    }

    .espacio button,
    .espacio a{
        width:100%;
    }

    .card-mini{
        width:100%;
        max-width:none;
    }

    .card{
        padding:15px;
    }

    .logos-container{
        flex-direction:column;
        justify-content:center;
        gap:18px;
    }

    .logo1{
        max-width:150px;
    }

    .logo2{
        max-width:180px;
    }

    .header{
        padding:10px;
    }

    .header-title,
    .header-title-boton{
        font-size:1rem;
    }

    .imagen{
        width:80px;
        height:80px;
    }

    .tooltip{
        width:min(240px,90vw);
        left:50%;
        transform:translateX(-50%);
    }

    .acordeon summary,
    .acordeon-inicio summary{
        padding:16px;
        font-size:1rem;
    }

    .acordeon-contenido,
    .acordeon-inicio-contenido{
        padding:0 16px;
    }

    .acordeon[open] .acordeon-contenido,
    .acordeon-inicio[open] .acordeon-inicio-contenido{
        padding:16px;
    }

}

/* MÓVILES GRANDES (481px - 768px)*/

@media (min-width:481px) and (max-width:768px){

    body{
        background-attachment:scroll;
    }

    .layout{
        padding:25px 18px;
    }

    .menu-tests{
        grid-template-columns:repeat(2,1fr);
    }

    .question{
        padding:20px 16px;
    }

    .respuestas label{
        flex:1 1 45%;
    }

    .logos-container{
        flex-wrap:wrap;
        justify-content:center;
    }

    .logo1{
        max-width:170px;
    }

    .logo2{
        max-width:210px;
    }

    .imagen{
        width:95px;
        height:95px;
    }

    .acordeon summary,
    .acordeon-inicio summary{
        padding:18px;
    }

}

/* TABLETS (769px - 1024px)*/

@media (min-width:769px) and (max-width:1024px){

    .layout{
        padding:30px 20px;
    }

    .menu-tests{
        grid-template-columns:repeat(3,1fr);
    }

    .logo1{
        max-width:170px;
    }

    .logo2{
        max-width:220px;
    }

}

/* PANTALLAS MUY GRANDES*/

@media (min-width:1600px){

    .layout{
        max-width:1500px;
        margin:auto;
    }

}

