/* ==========================================================================
   INCIBO ASCENSO 2026 - SISTEMA DE DISEÑO Y ESTILOS
   ========================================================================== */

/* 1. Variables y Tokens de Diseño */
:root {
    /* Colores Principales (Extraídos del Logo de INCIBO) */
    --primary-rgb: 11, 78, 211;       /* #0b4ed3 */
    --secondary-rgb: 0, 162, 232;     /* #00a2e8 */
    --primary-color: rgb(var(--primary-rgb));
    --primary-hover: #083ba3;
    --secondary-color: rgb(var(--secondary-rgb));
    --secondary-hover: #008cc8;
    
    /* Acentos y Feedback */
    --accent-color: #25d366;          /* Verde WhatsApp */
    --accent-hover: #1ebd59;
    --danger-color: #ef4444;          /* Rojo error */
    --success-color: #22c55e;         /* Verde correcto */
    
    /* Neutros */
    --bg-dark: #070d1e;
    --bg-dark-card: #0e1731;
    --bg-light: #f6f9fc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Fuentes */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Efectos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 10px 25px rgba(11, 78, 211, 0.25);
    --shadow-whatsapp: 0 10px 25px rgba(37, 211, 102, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* Grid System Helper */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.align-center { align-items: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* 3. Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

.btn-whatsapp-header {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-whatsapp-header:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-whatsapp);
}

.btn-platform-header {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-platform-header:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-whatsapp-hero {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp-hero:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp-calc, .btn-whatsapp-quiz, .btn-whatsapp-footer {
    background-color: var(--accent-color);
    color: var(--text-light);
    width: 100%;
}

.btn-whatsapp-calc:hover, .btn-whatsapp-quiz:hover, .btn-whatsapp-footer:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-whatsapp);
}

/* Iconos SVG */
.icon { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 16px; height: 16px; }

/* Badges */
.badge-accent {
    display: inline-block;
    background-color: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-primary {
    display: inline-block;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 4. Cabecera (Header) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.main-nav ul {
    display: none; /* Mobile hidden by default */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

@media (min-width: 1150px) {
    .main-nav ul {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mobile-nav-toggle {
        display: none;
    }
    .mobile-only {
        display: none !important;
    }
}

/* Navigation Drawer Mobile */
@media (max-width: 1149px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 40px 24px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 12px;
        white-space: normal;
    }

    .main-nav a.platform-link-mobile {
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        border-radius: var(--radius-md);
        text-align: center;
        font-weight: 600;
        margin-top: 10px;
    }
    
    .nav-actions {
        display: none; /* Hide header buttons on small/medium devices */
    }
}

/* 5. Sección Hero */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--secondary-rgb), 0.01) 90%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--bg-dark);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 576px) {
    .hero-ctas {
        flex-direction: row;
    }
}

.hero-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flyer-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border: 4px solid var(--bg-white);
    transition: var(--transition);
    animation: floating 6s ease-in-out infinite;
}

.flyer-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.flyer-img {
    width: 100%;
    height: auto;
}

.flyer-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* 6. Sección de Sección de Encabezado Común */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--bg-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-w: 750px;
    margin: 0 auto;
}

/* 7. Tabla Comparativa */
.table-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.comparison-table th {
    background-color: var(--bg-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th.highlight-superior {
    background-color: rgba(var(--primary-rgb), 0.04);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.comparison-table th.highlight-regular {
    background-color: rgba(var(--secondary-rgb), 0.04);
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.comparison-table tr:hover td {
    background-color: rgba(var(--bg-light), 0.3);
}

.table-label {
    font-weight: 600;
    color: var(--text-main);
    width: 25%;
    background-color: var(--bg-light);
}

.comparison-table ul {
    list-style-type: none;
    margin-left: 0;
}

.comparison-table li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.comparison-table li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 4px;
    top: -3px;
}

.table-cta-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px dashed var(--primary-color);
}

.cta-box-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* 8. Calculadora Section */
.calculator-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.calculator-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.info-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bullet-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.bullet-content {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Calculadora Card */
.calculator-card-wrapper {
    display: flex;
    justify-content: center;
}

.calculator-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.calc-card-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--bg-dark);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-select, .form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.btn-calc-submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-calc-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-primary);
}

/* Calculator Results Box */
.calc-results {
    animation: fadeIn 0.4s ease-out;
}

.calc-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.result-heading {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-category {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.result-category span {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
}

.result-details {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid var(--primary-color);
}

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

/* 9. Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.feature-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-8px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.icon-brand {
    width: 30px;
    height: 30px;
}

.bg-blue-light { background-color: rgba(11, 78, 211, 0.1); color: var(--primary-color); }
.bg-cyan-light { background-color: rgba(0, 162, 232, 0.1); color: var(--secondary-color); }
.bg-indigo-light { background-color: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.bg-emerald-light { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 10. Simulador Express Section */
.quiz-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.quiz-box-container {
    max-w: 750px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.quiz-selector-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-light);
}

.quiz-tab {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.quiz-tab:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.02);
}

.quiz-tab.active {
    color: var(--primary-color);
    background-color: var(--bg-white);
    border-bottom-color: var(--primary-color);
}

.quiz-body-card {
    padding: 40px;
}

/* Quiz Progress Bar */
.quiz-progress-bar-wrapper {
    margin-bottom: 30px;
}

.quiz-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.quiz-progress-track {
    height: 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Question Area */
.quiz-question-area {
    margin-bottom: 30px;
}

.quiz-question-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

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

.quiz-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.02);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
    font-weight: 600;
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: rgba(34, 197, 94, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.1);
}

/* Feedback Box */
.quiz-feedback-box {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    animation: slideDown 0.3s ease-out;
}

.quiz-feedback-box.correct {
    background-color: rgba(34, 197, 94, 0.08);
    border: 1px solid var(--success-color);
}

.quiz-feedback-box.correct .feedback-status {
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.quiz-feedback-box.incorrect {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--danger-color);
}

.quiz-feedback-box.incorrect .feedback-status {
    color: var(--danger-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.feedback-explanation {
    font-size: 0.9rem;
    color: var(--text-main);
}

.quiz-actions {
    display: flex;
    justify-content: flex-end;
}

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

/* Quiz Result Screen */
.quiz-result-screen {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

.result-icon-badge {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.result-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.result-score-display {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.result-assessment {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-w: 500px;
    margin: 0 auto 30px auto;
}

.result-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* 11. Cronograma Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 30px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 14px;
    width: 4px;
    height: calc(100% - 20px);
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    left: -26px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-white);
    border: 4px solid var(--text-muted);
    border-radius: 50%;
    z-index: 10;
}

.timeline-item.past .timeline-dot {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.timeline-dot-pulse {
    position: absolute;
    top: 6px;
    left: -28px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.timeline-dot-pulse::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ringPulse 1.8s infinite ease-out;
}

@keyframes ringPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-item.past .timeline-date {
    color: var(--text-muted);
}

.timeline-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.timeline-item.active .timeline-content {
    background-color: rgba(var(--primary-rgb), 0.02);
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-item.active .timeline-content p {
    color: var(--text-main);
}

.timeline-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.badge-current {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

/* 12. Downloads Section */
.downloads-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.download-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pdf-icon-area {
    width: 70px;
    height: 70px;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
}

.pdf-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #ef4444;
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.pdf-svg {
    width: 36px;
    height: 36px;
}

.download-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.download-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 54px;
}

.btn-download {
    background-color: #ef4444;
    color: var(--text-light);
    width: 100%;
}

.btn-download:hover {
    background-color: #d32f2f;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

/* 13. Footer Area */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 20px 0;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.8fr 1fr 1.2fr 1.8fr;
    }
}

.logo-area-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.brand-name-footer {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
}

.footer-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.footer-links-col h4, .footer-cta-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links-col a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-cta-col p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    font-size: 0.8rem;
    color: #64748b;
}

/* 14. Responsive Layout Fixes & Animations */
@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .quiz-body-card {
        padding: 24px 16px;
    }
    .calculator-card {
        padding: 24px;
    }
}

/* ==========================================================================
   15. Botón Flotante de WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1) rotate(8deg);
    box-shadow: 2px 5px 18px rgba(0, 0, 0, 0.35);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Tooltip on hover */
.whatsapp-tooltip {
    visibility: hidden;
    width: 170px;
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    position: absolute;
    z-index: 1001;
    right: 75px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(10px);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #1e293b;
}

.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* Floating pulsing animation glow */
.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Responsive adjustment for floating button on very small screens */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on small mobile screens */
    }
}
