/*
 * Estilos de la encuesta efervescente.
 *
 * La paleta de colores está inspirada en tonos suaves y relajantes como los
 * verdes y azules pastel, con acentos lavanda y melocotón para aportar
 * frescura y bienestar, tal como sugieren estudios de color que asocian
 * el azul con calma y confianza y el verde con renovación y vitalidad【230514252324184†L41-L45】【388875358881202†L72-L83】.
 */

/* Importamos una fuente moderna para dar un aspecto actual (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --color-primary: #86b9b0;      /* verde-azul pastel (frescura) */
    --color-secondary: #dac4d0;    /* lavanda suave (relajación) */
    --color-accent: #f7c6c2;       /* melocotón suave (bienestar) */
    --color-dark: #114538;         /* verde oscuro para contraste */
    --color-bg: #f9f9f9;           /* fondo claro */
    --color-text: #2e3c40;         /* gris azulado oscuro */
    --radius: 12px;
}

.encuesta-efervescente-wrapper {
    max-width: 740px;
    margin: 2rem auto;
    /* Fondo con gradiente suave para transmitir calma */
    background: linear-gradient(to bottom right, #f9fbf8, #f2f8f7);
    border-radius: var(--radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--color-text);
}

.encuesta-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
    overflow: hidden;
}

.encuesta-hero h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.encuesta-hero p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Superponer una capa de color sobre la imagen para mejorar contraste y legibilidad */
.encuesta-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 69, 56, 0.3);
    z-index: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.encuesta-form {
    padding: 2rem;
}

.encuesta-question {
    margin-bottom: 1.5rem;
}

.encuesta-question label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.encuesta-question .options label {
    display: block;
    margin-bottom: 0.4rem;
    cursor: pointer;
    font-weight: 400;
}

.encuesta-question .options input[type="radio"],
.encuesta-question .options input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.15);
    accent-color: var(--color-primary);
}

.encuesta-question textarea,
.encuesta-question input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
    margin-top: 0.3rem;
}

.encuesta-question textarea:focus,
.encuesta-question input[type="text"]:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(134,185,176,0.3);
}

.encuesta-submit {
    text-align: center;
    margin-top: 1rem;
}

.encuesta-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
}
.encuesta-btn:hover {
    background: var(--color-dark);
}

.encuesta-message {
    background: var(--color-accent);
    color: var(--color-dark);
    border-radius: var(--radius);
    padding: 0.8rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Descripción del producto bajo el héroe */
/* Sección de descripción del producto: utiliza un fondo claro y bordes redondeados para armonizar con el resto del diseño */
.encuesta-description {
    background: #ffffff;
    margin: 0;
    padding: 1.75rem 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) inset;
}

.encuesta-description h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Controles de efectos relajantes */
.encuesta-relax-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--color-text);
}

.relax-option input[type="checkbox"] {
    margin-right: 0.3rem;
    transform: scale(1.2);
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Contenedor y burbujas animadas */
.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bubble-container .bubble {
    position: absolute;
    bottom: -50px;
    /* Color de burbuja con tono primario para mayor visibilidad */
    background: rgba(134, 185, 176, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .encuesta-hero {
        padding: 2rem 1rem;
    }
    .encuesta-hero h2 {
        font-size: 1.5rem;
    }
    .encuesta-form {
        padding: 1.5rem;
    }
}