/* --- VARIABLES & RESET --- */
:root {
    --primary: #2563EB;
    --secondary: #1E293B;
    --accent: #0F172A;
    --bg: #F8FAFC;
    --text: #334155;
    --white: #ffffff;
    --success: #10B981;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

html, body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- LAYOUT UTILS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 20px 0; }
.grid { display: grid; gap: 15px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn:hover { background: #1d4ed8; transform: translateY(-2px); }

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 20px -5px rgba(185, 28, 28, 0.4);
    transition: all 0.3s ease;
}
.btn-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(185, 28, 28, 0.5);
}
.btn-pdf svg { flex-shrink: 0; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--secondary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.nav-links a:hover { color: var(--primary); }

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- HERO --- */
.hero {
    padding-top: 80px;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-content { text-align: left; }
.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 10px;
}
.hero span { color: var(--primary); }
.hero p { font-size: 1rem; max-width: 500px; margin: 0 0 15px; color: #64748B; }
.hero-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
    width: 280px;
}
.hero-video video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge { background: #DBEAFE; color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

/* --- DIAGNOSIS --- */
.diagnosis-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-desc { font-size: 0.95rem; color: #64748B; margin-bottom: 10px; }

/* --- MODULES (PRICING) --- */
.module-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px 20px;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.module-header { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.module-tag { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; font-weight: 700; color: var(--primary); margin-bottom: 10px; display: block; }
.price { font-size: 1.75rem; font-weight: 800; color: var(--secondary); }
.price span { font-size: 0.9rem; font-weight: 400; color: #94A3B8; }
.features { margin-bottom: 15px; flex-grow: 1; }
.features li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.45; padding-left: 20px; position: relative; }
.features li::before { content: "✓"; color: var(--success); font-weight: bold; position: absolute; left: 0; top: 0; }
.features li strong { color: var(--secondary); }
.module-desc { font-size: 0.85rem; color: #64748B; line-height: 1.5; padding-top: 12px; border-top: 1px solid #f1f5f9; margin-top: auto; }

/* Recommended Label */
.rec-label {
    position: absolute; top: -12px; right: 20px;
    background: var(--secondary); color: white;
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

/* --- ROADMAP --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 4px; background-color: #e2e8f0;
    top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px;
}
.container-t { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.container-t::after {
    content: ''; position: absolute; width: 20px; height: 20px; right: -10px;
    background-color: var(--white); border: 4px solid var(--primary);
    top: 15px; border-radius: 50%; z-index: 1;
}
.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }
.left::after { right: -10px; }
.right::after { left: -10px; }

.content-t { padding: 12px 16px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.content-t h3 { font-size: 1rem; margin-bottom: 3px; }
.content-t p { font-size: 0.85rem; }

/* --- TEAM AI POWERED --- */
.ai-box {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.ai-title {
    background: -webkit-linear-gradient(#A5B4FC, #6366F1);
    background: linear-gradient(#A5B4FC, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- FACTS CAROUSEL --- */
.facts-section {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 40px 0;
    overflow: hidden;
}
.facts-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}
.facts-section .subtitle {
    color: #94A3B8;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.facts-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;
}
.facts-carousel::-webkit-scrollbar {
    height: 8px;
}
.facts-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.facts-carousel::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
.facts-carousel::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}
.fact-card {
    flex: 0 0 300px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.fact-card:hover::before {
    opacity: 1;
}
.fact-card:nth-child(1)::before { background: linear-gradient(90deg, #EF4444, #F97316); }
.fact-card:nth-child(2)::before { background: linear-gradient(90deg, #10B981, #14B8A6); }
.fact-card:nth-child(3)::before { background: linear-gradient(90deg, #8B5CF6, #A855F7); }
.fact-card:nth-child(4)::before { background: linear-gradient(90deg, #F59E0B, #EAB308); }
.fact-card:nth-child(5)::before { background: linear-gradient(90deg, #06B6D4, #0EA5E9); }
.fact-card:nth-child(6)::before { background: linear-gradient(90deg, #EC4899, #F43F5E); }

.fact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.fact-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.fact-card p {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.6;
}
.fact-highlight {
    color: #A5B4FC;
    font-weight: 600;
}
.scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 0.8rem;
    margin-top: 15px;
}
.scroll-hint svg {
    animation: scrollHint 1.5s ease-in-out infinite;
}
@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* --- FOOTER --- */
footer { background: var(--white); padding: 15px 0; border-top: 1px solid #e2e8f0; margin-top: 10px; text-align: center; font-size: 0.85rem; color: #64748B; }

/* Responsive - Tablet */
@media screen and (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .module-card { max-width: 500px; margin: 0 auto; }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    /* Navegación móvil */
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 15px 0;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .logo { font-size: 1rem; }
    
    /* Hero */
    .hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .hero-content { text-align: center; }
    .hero p { margin: 0 auto 15px; }
    .badges { justify-content: center; }
    .hero-video { 
        width: 100%; 
        max-width: 320px; 
        margin: 0 auto; 
    }
    .hero h1 { font-size: 1.6rem; }
    
    /* Grids */
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Timeline */
    .timeline::after { left: 31px; }
    .container-t { width: 100%; padding-left: 70px; padding-right: 15px; }
    .container-t::after { left: 21px; }
    .left { text-align: left; }
    .right { left: 0; }
    
    /* Cards */
    .diagnosis-card { padding: 15px; }
    .stat-number { font-size: 1.75rem; }
    
    /* Module cards */
    .module-card { padding: 25px 15px 15px; }
    .price { font-size: 1.5rem; }
    .rec-label { right: 15px; font-size: 0.7rem; padding: 3px 10px; }
    
    /* AI Box */
    .ai-box { padding: 15px; }
    .ai-title { font-size: 1.25rem; }
    
    /* Facts carousel */
    .fact-card { flex: 0 0 260px; padding: 20px; }
    
    /* Buttons */
    .btn-pdf { 
        padding: 14px 25px; 
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Section spacing */
    .section { padding: 15px 0; }
    .container { padding: 0 15px; }
    
    /* Footer */
    footer { font-size: 0.8rem; padding: 12px 0; }
}

/* Responsive - Small Mobile */
@media screen and (max-width: 400px) {
    .hero h1 { font-size: 1.4rem; }
    .badge { font-size: 0.75rem; padding: 4px 10px; }
    .fact-card { flex: 0 0 240px; }
    .price { font-size: 1.3rem; }
    .features li { font-size: 0.85rem; }
}
