/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts and Colors */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background: linear-gradient(120deg, #e0eafc, #cfdef3);
    color: #333;
    padding: 20px;
}

header {
    background: linear-gradient(90deg, #4CAF50, #81C784);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2.5em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header i {
    margin-right: 10px;
}

main {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.3s;
}

section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    color: #555;
    margin-bottom: 20px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
}

button:hover {
    background: linear-gradient(90deg, #45a049, #3e8e41);
    transform: scale(1.05);
}

button i {
    margin-right: 10px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 10px;
    font-weight: 600;
}

form textarea, form input[type="email"] {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    resize: vertical;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}


/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #388E3C; /* Verde brillante pero elegante */
    color: #FFFFFF; /* Blanco puro para un alto contraste */
    border-radius: 10px;
    margin-top: 30px;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

footer a {
    color: #FFEB3B; /* Amarillo brillante para resaltar */
    text-decoration: underline;
    font-weight: bold;
}

footer a:hover {
    color: #FFF176; /* Amarillo más claro para hover */
}

footer i {
    color: #FF5252; /* Rojo vibrante para iconos */
    margin-left: 5px;
}

/* Destacar el texto */
section#encuesta p {
    font-size: 1.2em;
    color: #333;
    background: #fff8e6;
    padding: 15px;
    border-left: 4px solid #f8b400;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Estilo del enlace */
.cta-link {
    color: #f8b400;
    font-weight: bold;
    text-decoration: none;
}

.cta-link:hover {
    text-decoration: underline;
    color: #e08b00;
}

.hidden {
    display: none;
}

#explanation {
    margin-top: 10px;
}

#new-response {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

/* Estilo para el párrafo de términos y condiciones */
.terms-text {
    font-size: 1em; /* Tamaño de fuente legible */
    color: #333; /* Color de texto oscuro */
    margin-top: 20px; /* Separación del contenido anterior */
    text-align: justify; /* Alineación para mejorar la lectura */
}

.terms-text a {
    color: #4CAF50; /* Color verde para resaltar el enlace */
    text-decoration: none;
    font-weight: bold;
}

.terms-text a:hover {
    text-decoration: underline;
    color: #388E3C; /* Verde más oscuro al pasar el cursor */
}


iframe {
    border: none;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    max-width: 800px; /* Evita que sea demasiado ancho */
    height: 100vh; /* Usa toda la altura de la ventana */
    overflow: hidden; /* Elimina el contenido que desborde */
    margin: 20px auto;
    display: block; /* Centra el iframe */
}

/* Media Queries */

/* Para pantallas pequeñas (móviles) */
@media (max-width: 767px) {
    header {
        font-size: 1.5em; /* Tamaño más pequeño del texto */
        padding: 10px; /* Menos espacio interno */
    }
    header h1 {
        font-size: 1.2em; /* Ajusta el tamaño del encabezado */
        line-height: 1.4; /* Mejora la legibilidad */
    }
    header i {
        font-size: 1em; /* Tamaño del icono más pequeño */
        margin-right: 8px;
    }

    iframe {
        width: 95%; /* Ocupa casi todo el ancho del móvil */
        height: 500px; /* Reduce la altura para pantallas pequeñas */
        overflow: hidden; /* Evita desbordamientos */
        margin: 20px auto; /* Centra el iframe */
        display: block; /* Asegura que esté centrado */
    }

}

/* Para pantallas medianas (tabletas) */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        font-size: 1.8em;
        padding: 15px; /* Espaciado intermedio */
    }
    header h1 {
        font-size: 1.6em; /* Ajuste para tablets */
    }
    header i {
        font-size: 1.2em; /* Tamaño del icono más pequeño */
        margin-right: 10px;
    }
    iframe {
        width: 90%; /* Ajusta el ancho al tamaño de la tableta */
        height: 550px; /* Altura ligeramente menor que en escritorio */
    }

}



