/* ============================================================
 *  ENCUESTA ACAMPADA SOL
 *  Barras de porcentajes
 *  ============================================================ */

.estadisticas-encuesta {
    margin-top: 2rem;
}

.estadistica {
    margin-bottom: 2rem;
}

.estadistica h2 {
    margin-bottom: 0.75rem;
}

.barra {
    display: flex;
    width: 100%;
    min-height: 3rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.barra-si,
.barra-no {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    transition: width 0.4s ease;
}

.barra-si {
    width: 0%;
}

.barra-no {
    width: 0%;
}

.barra-si span,
.barra-si strong,
.barra-no span,
.barra-no strong {
    white-space: nowrap;
}

/* ============================================================
 *  ENCUESTA ACAMPADA SOL
 *  Respuestas abiertas
 *  ============================================================ */

.respuestas-abiertas {
    margin-top: 3rem;
}

.respuestas-seccion {
    margin-bottom: 2.5rem;
}

.respuestas-seccion h2 {
    margin-bottom: 1rem;
}

.respuesta-abierta {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background: #f8f8f8;
    line-height: 1.5;
}

/* ============================================================
 *  PAGINACIÓN DE RESPUESTAS
 *  ============================================================ */

.navegacion-respuestas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.navegacion-respuestas button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.navegacion-respuestas button:disabled {
    opacity: 0.4;
    cursor: default;
}

.navegacion-respuestas span {
    white-space: nowrap;
}

/* ============================================================
 *  ENCUESTA ACAMPADA SOL
 *  MEJORA VISUAL
 *  ============================================================ */

/* Separación general de la zona de resultados */

.estadisticas-encuesta {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.estadistica {
    margin-bottom: 2.5rem;
}

.estadistica h2 {
    margin-bottom: 0.8rem;
}


/* ------------------------------------------------------------
 *  BARRAS DE PORCENTAJES
 *  ------------------------------------------------------------ */

.barra {
    display: flex;
    width: 100%;
    min-height: 3.2rem;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #eeeeee;
}

.barra-si,
.barra-no {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    box-sizing: border-box;
    transition: width 0.4s ease;
    color: #333;
}

.barra-si {
    width: 0%;
    background: #cfe3cf;
}

.barra-no {
    width: 0%;
    background: #ead0d0;
}


/* Etiquetas Sí / No */

.barra-si span,
.barra-no span {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1rem;
}


/* Porcentajes */

.barra-si strong,
.barra-no strong {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
}

.barra-si span,
.barra-si strong,
.barra-no span,
.barra-no strong {
    white-space: nowrap;
}


/* ------------------------------------------------------------
 *  RESPUESTAS ABIERTAS
 *  ------------------------------------------------------------ */

.respuestas-abiertas {
    margin-top: 3.5rem;
}

.respuestas-seccion {
    margin-bottom: 3rem;
}

.respuestas-seccion h2 {
    margin-bottom: 1.2rem;
}

.respuesta-abierta {
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid #999;
    background: #f5f5f5;
    line-height: 1.55;
}


/* ------------------------------------------------------------
 *  NAVEGACIÓN DE RESPUESTAS
 *  ------------------------------------------------------------ */

.navegacion-respuestas button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.navegacion-respuestas button:disabled {
    opacity: 0.4;
    cursor: default;
}

.navegacion-respuestas span {
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

/* ============================================================
 *  CONTADOR DE RESPUESTAS
 *  ============================================================ */

.contador-encuesta {
    display: flex;
    align-items: baseline;
    justify-content: center;

    width: 100vw;
    margin-top: 3rem;
    margin-bottom: 4rem;
    margin-left: calc(50% - 50vw);

    text-align: center;
}

.contador-encuesta strong {
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.contador-encuesta span {
    margin-left: 0.7rem;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
}

/* Tamaño del texto del menú */

nav a {
    font-size: 1.2rem;
}

.enlace-encuesta {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}
