.encuesta {
    background: #f6f3f6;
    color: #27232a;
    font-size: 1rem;
    line-height: 1.55;
}

.encuesta-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem clamp(1rem, 5vw, 3rem);
    border-bottom: 1px solid #e1d7df;
    background: #fff;
}

.encuesta-cabecera img {
    display: block;
    width: 138px;
    height: auto;
}

.encuesta-enlace {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #58214d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.encuesta-contenido {
    max-width: 47rem;
    margin: clamp(1rem, 4vw, 3rem) auto;
    width: calc(100% - 2rem);
    padding: clamp(1.25rem, 4vw, 2.75rem);
    background: #fff;
    border: 1px solid #e1d7df;
    border-radius: 0.75rem;
}

.encuesta-contenido h1 {
    color: #58214d;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.encuesta-intro {
    max-width: 56ch;
    margin-bottom: 1.75rem;
    color: #544854;
}

.encuesta-pregunta {
    margin: 0 0 1.5rem;
    min-inline-size: 0;
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid #e1d7df;
}

.encuesta-pregunta legend {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.encuesta-opcion {
    display: flex;
    align-items: baseline;
    min-height: 44px;
    padding: 0.55rem 0;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
}

.encuesta-opcion input {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    transform: translateY(0.15rem);
    accent-color: #58214d;
}

.encuesta-opcion:hover,
.encuesta-opcion:focus-within {
    color: #58214d;
}

.encuesta :focus-visible {
    outline: 2px solid #58214d;
    outline-offset: 3px;
}

.encuesta-comentario {
    margin-top: 0.75rem;
}

.encuesta-comentario label {
    font-weight: 600;
}

.encuesta-ayuda,
.encuesta-error {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.encuesta-ayuda { color: #544854; }
.encuesta-error { color: #a1212d; }

.encuesta .btn-primary {
    min-height: 44px;
}
