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

:root {
    --primary-blue: #4A90E2;
    --primary-purple: #9B59B6;
    --primary-magenta: #E91E63;
    --dark-blue: #1A237E;
    --cyan: #C4EDFF;
    --highlight: #990fbc;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'GFF Latin', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Fondo responsivo */
@media (orientation: portrait) {
    body::before {
        background-image: url('/images/bgv.jpg');
    }
}

@media (orientation: landscape) {
    body::before {
        background-image: url('/images/bgh.jpg');
    }
}

.section {
    display: none;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.section.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Glassmorphism containers */
.welcome-content,
.survey-content,
.thank-you-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

/* Welcome Section */
.welcome-content {
    text-align: center;
}

.logo {
    max-width: 300px;
    width: 100%;
    margin-bottom: 30px;
    filter: drop-shadow(var(--text-shadow));
}

.logo-small {
    max-width: 200px;
    width: 100%;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(var(--text-shadow));
}

/* Footer */
.footer-container {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

.logo-footer {
    max-width: 150px;
    width: 100%;
    filter: drop-shadow(var(--text-shadow));
}

.yeti-image {
    max-width: 250px;
    width: 100%;
    margin: 30px auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Buttons */
.submit-container {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-magenta), var(--primary-purple), var(--primary-blue));
    color: var(--white);
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(233, 30, 99, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(233, 30, 99, 0.6);
}

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

/* Survey Section */
.survey-intro {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.survey-intro p {
    font-size: 16px;
    line-height: 1.6;
    text-shadow: var(--text-shadow);
}

.form-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--cyan);
    text-shadow: var(--text-shadow);
}

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

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: var(--text-shadow);
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--highlight);
    font-weight: bold;
}

.radio-option span {
    font-size: 15px;
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked + span {
    color: var(--highlight);
    font-weight: bold;
}

/* Scale ratings */
.scale-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.scale-option {
    flex: 1;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scale-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight);
    transform: translateY(-3px);
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-option input[type="radio"]:checked ~ .scale-number {
    color: var(--highlight);
    font-weight: bold;
    font-size: 28px;
}

.scale-option input[type="radio"]:checked ~ .scale-label {
    color: var(--highlight);
    font-weight: bold;
}

.scale-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.scale-label {
    font-size: 12px;
    transition: all 0.3s ease;
}

/* NPS Scale */
.nps-group {
    width: 100%;
}

.nps-scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.nps-option {
    flex: 1;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.nps-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight);
    transform: translateY(-3px);
}

.nps-option input[type="radio"] {
    display: none;
}

.nps-option input[type="radio"]:checked + span {
    color: var(--highlight);
    font-size: 20px;
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* Textarea */
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.15);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Thank you section */
.thank-you-content {
    text-align: center;
}

.thank-you-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--cyan), var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.thank-you-content p {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: var(--text-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-content,
    .survey-content,
    .thank-you-content {
        padding: 25px;
        border-radius: 20px;
    }

    .logo {
        max-width: 220px;
    }

    .logo-small {
        max-width: 150px;
    }

    .yeti-image {
        max-width: 180px;
    }

    .btn-primary {
        padding: 15px 40px;
        font-size: 16px;
    }

    .form-section {
        padding: 20px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .scale-group {
        gap: 8px;
    }

    .scale-option {
        min-width: 60px;
        padding: 12px 5px;
    }

    .scale-number {
        font-size: 20px;
    }

    .scale-label {
        font-size: 10px;
    }

    .nps-scale {
        gap: 5px;
    }

    .nps-option {
        min-width: 40px;
        padding: 10px 5px;
        font-size: 14px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .thank-you-content h1 {
        font-size: 28px;
    }

    .thank-you-content p {
        font-size: 16px;
    }
}

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

    .welcome-content,
    .survey-content,
    .thank-you-content {
        padding: 20px;
    }

    .logo {
        max-width: 180px;
    }

    .yeti-image {
        max-width: 150px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
    }

    .radio-option,
    .checkbox-option {
        padding: 12px 15px;
        font-size: 14px;
    }

    .scale-option {
        min-width: 50px;
        padding: 10px 3px;
    }

    .scale-number {
        font-size: 18px;
    }

    .nps-option {
        min-width: 30px;
        padding: 8px 3px;
        font-size: 12px;
    }

    .nps-labels {
        font-size: 11px;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading .btn-primary::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
