/* ==========================================================================
   ESTILOS PREMIUM - VIAJAR AL PERÚ QUIZ
   ========================================================================== */

/* Variables y Tokens de Diseño */
:root {
    --primary-grad: linear-gradient(135deg, #FF3B4C 0%, #D91023 100%); /* Rojo Bandera */
    --secondary-grad: linear-gradient(135deg, #10B981 0%, #047857 100%);
    --accent-grad: linear-gradient(135deg, #FFD301 0%, #D97706 100%); /* Oro Inca */
    --dark-grad: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    
    --bg-dark: #0F172A; /* Azul Noche */
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.85); /* Azul Noche Claro Translúcido */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(217, 16, 35, 0.15);
    
    --rojo-bandera: #D91023;
    --oro-inca: #FFD301;
    --azul-noche-claro: #1E293B;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-inter);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.font-outfit {
    font-family: var(--font-outfit);
}

/* Fondos Abstractos de Alto Impacto */
.bg-blur-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}
.bg-blur-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(217, 16, 35, 0.12) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}
.bg-blur-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 211, 1, 0.08) 0%, transparent 70%);
    bottom: -15%;
    left: -15%;
}

/* Header */
.app-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--bg-dark); /* Estrictamente Azul Noche */
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ========================================= */
/* LOGO VIAJARALPERU.COM (Opción 1 - Patriótica) */
/* ========================================= */
.logo-viajaralperu {
    font-family: var(--font-outfit);
    font-size: 2.2rem; 
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-viajaralperu:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.logo-viajaralperu .brand {
    color: #ffffff; 
    font-weight: 900;
}
.logo-viajaralperu .domain {
    color: #D91023; 
    font-weight: 800;
}
.logo-viajaralperu .tld {
    color: #FBBF24; 
    font-weight: 600;
    font-size: 1.6rem; 
}
.header-tagline {
    font-size: 14px;
    color: var(--oro-inca);
    font-weight: 600;
    background: rgba(30, 41, 59, 0.5); /* Azul Noche ligeramente más claro */
    padding: 6px 14px;
    border-radius: 50px;
    border: 2px solid var(--oro-inca); /* Borde Oro Inca */
}

/* Main Layout */
.app-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}
.main-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Tarjeta Glassmorphic */
.glassmorphism-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 680px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.glassmorphism-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rojo-bandera); /* Rojo Bandera */
}

/* Elementos Comunes del Quiz */
.quiz-step {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 211, 1, 0.12); /* Oro Inca transparente */
    color: var(--oro-inca); /* Oro Inca */
    border: 1px solid var(--oro-inca); /* Oro Inca */
    margin-bottom: 16px;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-celebrate {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.step-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.step-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pantalla Welcome */
.features-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.feature-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oro-inca); /* Oro Inca para los iconos */
}
.feature-text {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF; /* Blanco puro para legibilidad */
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: auto;
}
.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 16, 35, 0.39); /* Sombra roja sutil */
    border: 1px solid transparent;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FF5262 0%, #D91023 100%);
    box-shadow: 0 6px 20px 0 rgba(217, 16, 35, 0.5);
    border-color: var(--oro-inca); /* Brilla con borde Oro Inca */
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-block {
    width: 100%;
}
.button-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

/* Barra de Progreso */
.progress-container {
    margin-bottom: 40px;
}
.progress-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar {
    height: 100%;
    background: var(--primary-grad);
    width: 25%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cuadrícula de Opciones */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 63, 27, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.option-card.selected {
    background: rgba(212, 63, 27, 0.08);
    border-color: #D43F1B;
    box-shadow: 0 0 15px rgba(212, 63, 27, 0.15);
}
.option-title {
    font-family: var(--font-outfit);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}
.option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.option-card:hover .option-check {
    border-color: rgba(212, 63, 27, 0.5);
}
.option-card.selected .option-check {
    background: #D43F1B;
    border-color: #D43F1B;
}
.option-card.selected .option-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Formulario Opt-in */
#form-quiz-lead {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 16px;
    color: var(--text-light);
    outline: none;
    transition: var(--transition-smooth);
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #D43F1B;
    box-shadow: 0 0 15px rgba(212, 63, 27, 0.15);
}
.form-error {
    color: #EF4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Checkbox Consentimiento */
.consent-checkbox {
    margin-bottom: 28px;
}
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    user-select: none;
}
.checkbox-container input {
    display: none;
}
.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.checkbox-container:hover .checkmark {
    border-color: rgba(212, 63, 27, 0.5);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: #D43F1B;
    border-color: #D43F1B;
}
.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Bloqueo y Candado */
.lock-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.lock-indicator svg {
    color: var(--text-muted);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pantalla de Resultados */
.result-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}
.result-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 36px;
}
.result-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Sección Itinerario */
.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.itinerary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.itinerary-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14.5px;
    line-height: 1.6;
    position: relative;
    border-left: 4px solid #10B981; /* Verde esmeralda para marcar el itinerario */
}

/* Sección de Monetización */
.affiliate-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.affiliate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.affiliate-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(251, 191, 36, 0.4); /* Brillo dorado andino */
    transform: translateY(-2px);
}
.affiliate-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.affiliate-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Colores específicos de afiliados */
.icon-booking { background: rgba(30, 117, 216, 0.15); color: #1E75D8; }
.icon-civitatis { background: rgba(240, 80, 35, 0.15); color: #F05023; }
.icon-iati { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.icon-flights { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.icon-amazon { background: rgba(255, 153, 0, 0.15); color: #FF9900; }

.affiliate-title {
    font-family: var(--font-outfit);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}
.affiliate-meta {
    font-size: 12px;
    color: var(--text-muted);
}
.affiliate-action {
    color: #FBBF24;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    transition: var(--transition-smooth);
}
.affiliate-card:hover .affiliate-action {
    gap: 10px;
}

/* Footer */
.app-footer {
    padding: 16px 0;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-dark); /* Estrictamente Azul Noche */
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7); /* Blanco con opacidad */
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.7);
}
.footer-copy a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-copy a:hover {
    color: var(--oro-inca); /* Oro Inca al hover */
}
.app-footer a {
    color: rgba(255, 255, 255, 0.7); /* Blanco con opacidad */
    text-decoration: none;
    transition: var(--transition-smooth);
}
.app-footer a:hover {
    color: var(--oro-inca); /* Oro Inca al hover */
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    position: relative;
}
.footer-links a:not(:last-child)::after {
    content: '|';
    color: var(--glass-border);
    position: absolute;
    right: -12px;
}

/* Responsividad */
@media (max-width: 768px) {
    .glassmorphism-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .step-title {
        font-size: 26px;
    }
    .btn {
        width: 100%;
        padding: 14px 28px;
    }
    .button-wrapper {
        justify-content: center;
    }
    .affiliate-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .affiliate-action {
        width: 100%;
        justify-content: flex-end;
    }
    .header-container {
        flex-direction: column;
        gap: 12px;
    }
    .logo-viajaralperu {
        font-size: 1.8rem;
    }
    .logo-viajaralperu .tld {
        font-size: 1.3rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* Botón Volver Atrás */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    width: auto;
}
.btn-back:hover {
    color: var(--oro-inca);
    background: rgba(255, 255, 255, 0.04);
}
.btn-back svg {
    transition: transform 0.3s ease;
}
.btn-back:hover svg {
    transform: translateX(-4px);
}
