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

:root {
    --primary-color: #FF9900;
    --secondary-color: #146EB4;
    --success-color: #00A651;
    --accent-color: #FF4757;
    --next-button-color: #2ECC71; /* Verde llamativo para botón siguiente */
    --background: #F5F7FA;
    --card-background: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header - Reducido con logo */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFB84D 100%);
    color: white;
    padding: 20px 20px;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Main content - Reducido padding */
main {
    padding: 20px 20px;
    min-height: 300px;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome screen - Compacto con animación de fondo */
.welcome-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Fondo animado con círculos flotantes */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FFB84D 0%, #FF9900 100%);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #146EB4 0%, #4A90E2 100%);
    top: 20%;
    right: -30px;
    animation-delay: 2s;
    animation-duration: 20s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2ECC71 0%, #00A651 100%);
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.circle-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF4757 0%, #FF6348 100%);
    bottom: 30%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 18s;
}

.circle-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #A29BFE 0%, #6C5CE7 100%);
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    animation-duration: 24s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.welcome-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.benefits {
    list-style: none;
    text-align: left;
    max-width: 350px;
    margin: 15px auto;
    background: var(--background);
    padding: 15px;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.benefits li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Trust Section - Nueva sección con H2 */
.trust-section {
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.trust-item {
    background: var(--background);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trust-item h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    margin: 8px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFB84D 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.6);
}

/* Accuracy Meter - MEJORADO PARA RESALTAR MÁS */
.accuracy-meter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.accuracy-circle {
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 216, 102, 0.5));
}

.accuracy-svg {
    transform: rotate(-90deg);
}

.accuracy-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 8;
}

.accuracy-progress {
    fill: none;
    stroke: #00D866;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 8px rgba(0, 216, 102, 0.8));
}

.accuracy-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.accuracy-percentage {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 216, 102, 0.8);
}

.accuracy-info {
    flex: 1;
}

.accuracy-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-weight: 500;
}

/* Progress info - OCULTO */
.progress-info {
    display: none;
}

/* Question container - Compacto con menos margen */
.question-container {
    margin: 10px 0;
}

.question-container h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    background: var(--background);
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.option:hover {
    background: #E8EDF2;
    transform: translateX(3px);
}

.option.selected {
    background: #E3F2FD;
    border-color: var(--secondary-color);
    box-shadow: 0 3px 10px rgba(20, 110, 180, 0.2);
}

/* Action buttons - Optimizados para móvil sin scroll */
.action-buttons {
    display: none;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOTÓN SIGUIENTE - VERDE LLAMATIVO - Optimizado */
.btn-next-action {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    color: white;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.5);
    min-width: 200px;
}

.btn-next-action:hover {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.7);
}

/* BOTÓN PRINCIPAL - ROJO LLAMATIVO - Optimizado */
.btn-amazon-action {
    background: linear-gradient(135deg, #FF4757 0%, #FF6348 100%);
    color: white;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    animation: pulse 2s infinite;
    min-width: 200px;
}

.btn-amazon-action:hover {
    background: linear-gradient(135deg, #FF6348 0%, #FF4757 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 71, 87, 0.8);
    }
}

/* Footer - Compacto */
footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    header {
        padding: 12px 10px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    main {
        padding: 12px 10px;
    }
    
    .icon-large {
        font-size: 2.5rem;
    }
    
    .welcome-content h2 {
        font-size: 1.2rem;
    }
    
    .trust-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .trust-item h2 {
        font-size: 1rem;
    }
    
    .trust-item p {
        font-size: 0.85rem;
    }
    
    .accuracy-meter {
        padding: 12px;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .accuracy-circle svg {
        width: 70px;
        height: 70px;
    }
    
    .accuracy-percentage {
        font-size: 1.2rem;
    }
    
    .accuracy-info p {
        font-size: 0.8rem;
    }
    
    .question-container {
        margin: 8px 0;
    }
    
    .question-container h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .option {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .action-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    .btn-next-action,
    .btn-amazon-action {
        padding: 11px 20px;
        font-size: 0.85rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1rem;
    }
    
    main {
        padding: 10px 8px;
    }
    
    .accuracy-meter {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .accuracy-circle svg {
        width: 60px;
        height: 60px;
    }
    
    .accuracy-percentage {
        font-size: 1rem;
    }
    
    .question-container h3 {
        font-size: 0.9rem;
    }
    
    .option {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-next-action,
    .btn-amazon-action {
        width: 100%;
        min-width: unset;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .floating-circle {
        opacity: 0.1;
    }
}


