/* ENCUESTA - encuesta.css */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #ffc1cc 0%, #ffb3c1 20%, #e8b4d4 40%, #c8b8e0 60%, #a8c5e8 80%, #a0d8e8 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: #2c3e50;
}

/* Fondo con patrón */
.background-overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    opacity: 0.8;
    z-index: 0;
}

/* Contenedor principal */
.container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Sección del logo */
.logo-section {
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b9d, #c44569, #ff6b9d, transparent);
    margin: 15px auto;
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.5);
    border-radius: 2px;
}

/* Contenido */
.content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor del formulario */
.form-container {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 40px 35px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

h1 {
    font-size: 2.3em;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-intro {
    font-size: 1.15em;
    margin-bottom: 35px;
    color: #2c3e50;
    font-weight: 400;
}

/* Formulario */
.encuesta-form {
    text-align: left;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    font-size: 1.05em;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
}

.label-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2em;
}

/* Inputs y campos */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-select option {
    background: #ffffff;
    color: #2c3e50;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Sistema de calificación por estrellas */
.rating-container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars .star {
    font-size: 3em;
    color: rgba(255, 107, 157, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.rating-stars .star:hover,
.rating-stars .star:hover ~ .star,
.rating-stars input[type="radio"]:checked ~ .star {
    color: #ff6b9d;
    text-shadow: 
        0 0 20px rgba(255, 107, 157, 0.6),
        0 0 30px rgba(255, 107, 157, 0.4);
    transform: scale(1.1);
}

.rating-label {
    display: block;
    font-size: 0.95em;
    color: #2c3e50;
    opacity: 0.8;
}

/* Grupo de checkboxes/radio buttons */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-weight: 400;
}

.checkbox-label:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateX(5px);
}

.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b9d;
}

.checkbox-single {
    margin-top: 10px;
    background: rgba(168, 197, 232, 0.2);
    border: 1px solid rgba(168, 197, 232, 0.3);
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
}

.btn-submit {
    width: 100%;
    padding: 16px 40px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c44569, #a12e4d);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 107, 157, 0.6);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.1em;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(168, 197, 232, 0.3);
    border: 2px solid rgba(168, 197, 232, 0.5);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(168, 197, 232, 0.5);
    border-color: #a8c5e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 197, 232, 0.4);
}

/* Footer */
.form-footer {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-footer p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.footer-info {
    font-size: 0.9em !important;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 25px;
    }

    h1 {
        font-size: 2em;
    }

    .form-intro {
        font-size: 1.05em;
    }

    .rating-stars .star {
        font-size: 2.5em;
    }

    .btn-submit {
        font-size: 1.1em;
        padding: 14px 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .logo {
        width: 160px;
    }

    .form-container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.7em;
    }

    .form-intro {
        font-size: 1em;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .rating-stars {
        gap: 5px;
    }

    .rating-stars .star {
        font-size: 2.2em;
    }

    .btn-submit {
        font-size: 1em;
        padding: 13px 30px;
        letter-spacing: 1px;
    }

    .btn-back {
        padding: 10px 25px;
        font-size: 0.95em;
    }

    .checkbox-label {
        padding: 8px 12px;
        font-size: 0.95em;
    }
}