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

:root {
    /* Colores corporativos */
    --background: #2f404c;
    --foreground: #9ad7d8;
    --accent1: #a097a9;
    --accent2: #9eacb9;
    --accent3: #9cc2c8;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-light: #f5f5f5;
    --gray: #666666;
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--background) 0%, #1a2a35 100%);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(154, 215, 216, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.5px;
}

.language-selector {
    display: flex;
    gap: var(--spacing-xs);
}

.lang-btn {
    background: rgba(154, 215, 216, 0.1);
    border: 1px solid rgba(154, 215, 216, 0.3);
    color: var(--accent2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(154, 215, 216, 0.2);
    color: var(--foreground);
}

.lang-btn.active {
    background: var(--foreground);
    color: var(--black);
    border-color: var(--foreground);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.section {
    display: none;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Welcome Section */
.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent2);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.feature {
    background: rgba(154, 215, 216, 0.1);
    border: 1px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(154, 215, 216, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature span {
    font-weight: 500;
    color: var(--accent2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-primary {
    background: var(--foreground);
    color: var(--background);
}

.btn-primary:hover {
    background: #7ac5c6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(154, 215, 216, 0.1);
    border: 1px solid rgba(154, 215, 216, 0.3);
    color: var(--accent2);
}

.btn-secondary:hover {
    background: rgba(154, 215, 216, 0.2);
    color: var(--foreground);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-cta {
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--foreground) 0%, #7ac5c6 100%);
    box-shadow: 0 8px 25px rgba(154, 215, 216, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(154, 215, 216, 0.4);
}

/* Profile Section */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--foreground);
    letter-spacing: -1px;
}

.profile-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--accent2);
    opacity: 0.9;
}

.profile-question {
    margin-bottom: var(--spacing-xl);
}

.profile-question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.profile-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.profile-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xs);
    min-height: 100px;
    justify-content: center;
}

.profile-option:hover {
    background: rgba(154, 215, 216, 0.1);
    border-color: var(--foreground);
    transform: translateY(-2px);
}

.profile-option.selected {
    background: rgba(154, 215, 216, 0.2);
    border-color: var(--foreground);
    box-shadow: 0 0 20px rgba(154, 215, 216, 0.3);
}

.profile-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.profile-option span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
}

/* Quiz Section */
.quiz-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(154, 215, 216, 0.2);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--foreground) 0%, var(--accent3) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-counter {
    text-align: center;
    color: var(--accent2);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option:hover {
    background: rgba(154, 215, 216, 0.1);
    border-color: var(--foreground);
}

.option.selected {
    background: rgba(154, 215, 216, 0.2);
    border-color: var(--foreground);
    color: var(--foreground);
}

.option-text {
    font-weight: 500;
    color: inherit;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Results Section */
.results-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 215, 216, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
}

.risk-level-container {
    margin-bottom: var(--spacing-xl);
}

.risk-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(154, 215, 216, 0.2);
}

.risk-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.risk-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.risk-description {
    color: var(--accent2);
    text-align: center;
    line-height: 1.6;
}

.recommendations {
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.recommendations h3 {
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--foreground);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cta-container {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(238, 90, 36, 0.15) 100%);
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
}

.alert-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.alert-text h3 {
    color: #ffc107;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text p {
    color: var(--accent2);
    font-size: 0.9rem;
    margin: 0;
}

.cta-urgency {
    margin-bottom: var(--spacing-lg);
}

.urgency-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.cta-urgency h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.urgency-text {
    color: var(--accent2);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--foreground);
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.2rem;
}

.btn-cta-pulse {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: var(--white);
    font-size: 1.2rem;
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-height: 80px;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
        transform: scale(1.02);
    }
}

.btn-cta-pulse:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    animation: none;
}

.cta-text-main {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.cta-text-sub {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-guarantee {
    color: var(--accent2);
    font-size: 0.9rem;
    font-weight: 500;
    margin: var(--spacing-md) 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(154, 215, 216, 0.1);
    border: 1px solid rgba(154, 215, 216, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
}

.export-section h4 {
    color: var(--foreground);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.export-section p {
    color: var(--accent2);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.btn-export {
    background: linear-gradient(135deg, var(--foreground) 0%, var(--accent3) 100%);
    color: var(--black);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 215, 216, 0.3);
}

/* SEO Content */
.seo-content {
    margin-bottom: var(--spacing-xl);
    text-align: left;
    color: var(--accent2);
    font-size: 0.9rem;
    line-height: 1.7;
}

.seo-content h2 {
    color: var(--foreground);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.seo-content h3 {
    color: var(--foreground);
    font-size: 1.1rem;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.seo-content ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.seo-content li {
    margin-bottom: var(--spacing-xs);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(154, 215, 216, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 800px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand-text h4 {
    color: var(--foreground);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand-text p {
    color: var(--accent2);
    margin: 0;
    font-size: 0.9rem;
}

.footer-contact h5 {
    color: var(--foreground);
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1rem;
    font-weight: 600;
}

.footer-contact p {
    color: var(--accent2);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--accent2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--foreground);
}

.footer-nav {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.footer-nav a:hover {
    color: var(--foreground);
    background: rgba(154, 215, 216, 0.1);
}

.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(154, 215, 216, 0.1);
    width: 100%;
}

.footer-copyright p {
    color: var(--accent2);
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .title {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .welcome-content,
    .quiz-container,
    .results-container,
    .profile-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-options {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    
    .profile-option {
        padding: var(--spacing-md);
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cta-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-cta-pulse {
        font-size: 1rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .cta-text-main {
        font-size: 1rem;
    }
    
    .cta-text-sub {
        font-size: 0.8rem;
    }
    
    .export-section {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-md);
    }
    
    .export-section h4 {
        font-size: 1.1rem;
    }
    
    .btn-export {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .profile-options {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .welcome-content,
    .quiz-container,
    .results-container,
    .profile-container {
        padding: var(--spacing-md);
    }
    
    .profile-options {
        grid-template-columns: 1fr;
    }
    
    .profile-option {
        min-height: 100px;
        padding: var(--spacing-sm);
    }
} 