/* ===========================
   RESET Y VARIABLES GLOBALES
   =========================== */

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

:root {
    --primary-color: #00d084;
    --primary-dark: #00a86b;
    --secondary-color: #1a1a2e;
    --text-dark: #1a1a2e;
    --text-light: #666666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ===========================
   TIPOGRAFÍA Y ESTILOS BASE
   =========================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   HEADER Y LOGO
   =========================== */

.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f0f23 100%);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* ===========================
   MAIN CONTENT
   =========================== */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

.screen {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

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

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    text-align: center;
    animation: slideUp 0.5s ease;
}

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

.badge {
    display: inline-block;
    background: rgba(0, 208, 132, 0.15);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.main-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.main-title .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 8px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 500;
}

/* ===========================
   REWARD DISPLAY
   =========================== */

.reward-display {
    margin: 32px 0;
}

.reward-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-white);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reward-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.reward-amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ===========================
   QUESTION CONTAINER
   =========================== */

.question-container {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ===========================
   OPTIONS GROUP
   =========================== */

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    position: relative;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 208, 132, 0.05);
}

.option-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    margin-right: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.option-label input[type="radio"]:hover {
    border-color: var(--primary-color);
}

.option-label input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 3px var(--bg-white);
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.option-label input[type="radio"]:checked + .option-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   BOTONES CTA
   =========================== */

.cta-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    margin-top: 24px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cta-button.cta-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

.cta-button.cta-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff3333 100%);
}

/* ===========================
   REWARD SECTION
   =========================== */

.reward-section {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-white);
    margin: 0 auto 24px;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon.large {
    width: 100px;
    height: 100px;
    font-size: 60px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.reward-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.reward-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.reward-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.amount-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

/* ===========================
   SUCCESS SECTION
   =========================== */

.success-section {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.success-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.success-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ===========================
   EMAIL SECTION
   =========================== */

.email-section {
    margin: 32px 0;
}

.email-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

/* ===========================
   PROGRESS TEXT
   =========================== */

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
    font-weight: 500;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--secondary-color);
    padding: 24px 20px;
    text-align: center;
    margin-top: auto;
}

.legal-notice {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.legal-link:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .question-title {
        font-size: 20px;
    }

    .reward-amount {
        font-size: 40px;
    }

    .question-container {
        padding: 24px 16px;
    }

    .option-label {
        padding: 14px 16px;
    }

    .option-text {
        font-size: 15px;
    }

    .cta-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .reward-box {
        padding: 20px;
    }

    .reward-label {
        font-size: 13px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .success-icon.large {
        width: 90px;
        height: 90px;
        font-size: 50px;
    }

    .reward-title {
        font-size: 28px;
    }

    .success-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 16px;
    }

    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .question-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .question-container {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .options-group {
        gap: 10px;
    }

    .option-label {
        padding: 12px 14px;
    }

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

    .option-text {
        font-size: 14px;
    }

    .reward-amount {
        font-size: 36px;
    }

    .reward-box {
        padding: 16px;
    }

    .reward-label {
        font-size: 12px;
    }

    .cta-button {
        padding: 12px 16px;
        font-size: 14px;
        margin-top: 20px;
    }

    .progress-text {
        font-size: 13px;
    }

    .reward-section {
        padding: 32px 16px;
    }

    .reward-title {
        font-size: 26px;
    }

    .reward-message {
        font-size: 16px;
    }

    .success-section {
        padding: 32px 16px;
    }

    .success-title {
        font-size: 26px;
    }

    .success-message {
        font-size: 16px;
    }

    .email-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .legal-notice {
        font-size: 11px;
    }
}

/* ===========================
   ANIMACIONES ADICIONALES
   =========================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   UTILIDADES
   =========================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
