@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --bg-base: #030406;
    --bg-surface: #0a0c10;
    --bg-surface-hover: #13161c;
    --bg-card: #0d0f14;
    
    --brand-magenta: #EC297B;
    --brand-magenta-glow: rgba(236, 41, 123, 0.15);
    
    --brand-turq: #10B981;
    --brand-turq-glow: rgba(16, 185, 129, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    --border-light: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand-magenta); color: #fff; }

.accent-turq { color: var(--brand-turq); }
.accent-magenta { color: var(--brand-magenta); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 300;
}

/* --- LAYOUT UTILS --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-spacing {
    padding: 120px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand-magenta);
    color: #fff;
    box-shadow: 0 8px 30px var(--brand-magenta-glow);
}
.btn-primary:hover {
    background: #fff;
    color: var(--bg-base);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    border-color: var(--brand-turq);
    color: var(--brand-turq);
    background: var(--brand-turq-glow);
}

.btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    background: rgba(3, 4, 6, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    height: 40px;
    mix-blend-mode: normal;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}
.menu-mobile-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 200px; /* Offset navbar adaptado para logo v1 */
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-magenta-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 30px;
}
.hero h1 span {
    color: var(--brand-turq);
}
.hero .subheadline {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 24px;
    max-width: 800px;
}
.hero .support-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 48px;
}

/* --- GENERAL SECTIONS --- */
.section-header {
    max-width: 800px;
    margin-bottom: 80px;
}
.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* --- GRID CARDS (Para Quién Es & Capacidades) --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 48px 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: transparent;
    transition: var(--transition-smooth);
}
.card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: var(--border-focus);
}
.card:hover::before {
    background: linear-gradient(90deg, var(--brand-magenta), var(--brand-turq));
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 500;
}

/* --- STEPS / BLOCKS LINEAR --- */
.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.step-item {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}
.step-item:last-child {
    border-bottom: 1px solid var(--border-light);
}
.step-item h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 16px;
}
.step-item p {
    max-width: 700px;
}

/* --- DIAGNOSTICO HIGHLIGHT --- */
.diag-section {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: 100px 5%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.diag-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-turq-glow) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.checklist {
    list-style: none;
}
.checklist li {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 400;
}
.checklist li::before {
    content: '→';
    color: var(--brand-turq);
    margin-right: 16px;
    font-family: var(--font-body);
}

/* --- CTA FINAL --- */
.cta-final {
    text-align: center;
    padding: 120px 0;
}
.cta-final h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 800px;
    margin: 0 auto 40px;
}
.cta-final .btn-group {
    justify-content: center;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer p {
    font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .diag-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-spacing { padding: 80px 0; }
    
    .nav-links { display: none; }
    .menu-mobile-btn { display: block; }
    
    .hero { padding-top: 180px; min-height: auto; padding-bottom: 60px; }
    .hero-content { text-align: left; }
    
    .btn-group { flex-direction: column; width: 100%; gap: 16px; }
    .btn { width: 100%; padding: 16px 24px; }
    
    .grid-cards { grid-template-columns: 1fr; }
    
    .card { padding: 30px 24px; }
    
    .diag-section { padding: 60px 24px; border-radius: 20px; }
    
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    h1, h2, h3 { hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; white-space: normal; }
    .container { padding: 0 24px; }
}


/* --- NAVBAR V1 IMPORTADO --- */
.navbar {
    position: fixed !important;
    top: 0 !important; width: 100% !important;
    padding: 24px 5% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(5, 5, 5, 0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.navbar .container { display: contents !important; }
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}
.logo-container:hover {
    transform: translateY(-2px);
}
.brand-logo {
    max-height: 81px !important;
    height: auto !important;
    mix-blend-mode: normal;
}
.logo-fallback {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}
.logo-fallback span { color: var(--brand-magenta); }
.logo-fallback i { color: var(--brand-turq); font-size: 20px;}
.logo-fallback small { font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--text-secondary); display: block;}

.menu-wrapper {
    position: relative;
    padding: 10px 0;
    flex-shrink: 0;
}
.menu-trigger {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    transition: all 0.5s ease;
}
.menu-wrapper.active .menu-trigger {
    color: var(--brand-turq);
}
@media (hover: hover) {
    .menu-wrapper:hover .menu-trigger {
        color: var(--brand-turq);
    }
}
.menu-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--brand-magenta);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    -webkit-clip-path: circle(0% at 230px 20px);
    clip-path: circle(0% at 230px 20px);
    visibility: hidden;
    transition: -webkit-clip-path 0.5s cubic-bezier(0.7, 0, 0.2, 1), clip-path 0.5s cubic-bezier(0.7, 0, 0.2, 1), visibility 0.5s;
    z-index: 2000;
}
.menu-wrapper.active .menu-popup {
    visibility: visible;
    -webkit-clip-path: circle(150% at 230px 20px);
    clip-path: circle(150% at 230px 20px);
}
@media (hover: hover) {
    .menu-wrapper:hover .menu-popup {
        visibility: visible;
        -webkit-clip-path: circle(150% at 230px 20px);
        clip-path: circle(150% at 230px 20px);
    }
}
.menu-links {
    list-style: none;
    text-align: right;
    display: block !important;
}
.menu-links li { margin-bottom: 20px; display: block; }
.menu-links li:last-child { margin-bottom: 0; }
.menu-links a {
    display: inline-block !important;
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}
.menu-links a:hover {
    color: var(--bg-base) !important;
    transform: translateX(-5px) !important;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
}
.fab-circle {
    width: 20px;
    height: 20px;
    background-color: var(--brand-turq);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--brand-turq-glow);
    transition: all 0.5s ease;
}
.fab-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
}
.fab-text text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    fill: var(--text-primary);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.fab:hover .fab-circle { background-color: var(--brand-magenta); box-shadow: 0 0 20px var(--brand-magenta-glow); transform: scale(1.5); }
.fab:hover .fab-text text { fill: var(--brand-magenta); }
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Hero BG */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(236, 41, 123, 0.1) 0%, transparent 35%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 35%);
    z-index: 0;
    pointer-events: none;
}
.hero-content { z-index: 1; }

.menu-mobile-btn { display: none !important; }

/* Fix mobile menu trigger popup */
@media (max-width: 768px) {
    .menu-popup { width: 85vw; right: 0; top: 120%; border-radius: 16px; padding: 30px 20px; -webkit-clip-path: circle(0% at 90% 10px); clip-path: circle(0% at 90% 10px); }
    .menu-wrapper.active .menu-popup { -webkit-clip-path: circle(150% at 90% 10px); clip-path: circle(150% at 90% 10px); }
    .fab { bottom: 20px; right: 20px; width: 60px; height: 60px; }
    .fab-text { display: none; }
    .fab-circle { width: 40px; height: 40px; background-color: var(--brand-turq); display: flex; align-items: center; justify-content: center; position: relative; }
    .fab-circle::after { content: "💬"; font-size: 20px; position: absolute; }
    .fab:hover .fab-circle { transform: scale(1.1); background-color: var(--brand-magenta); }
    .navbar { padding: 15px 5% !important; }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: var(--brand-turq);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid var(--brand-turq);
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--brand-turq-glow);
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: rgba(3, 4, 6, 0.9);
    color: var(--brand-turq);
    border-color: var(--brand-turq);
    box-shadow: 0 0 20px var(--brand-turq-glow);
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 25px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- VSL VIDEO SECTION --- */
.vsl-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.vsl-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}
.vsl-container {
    position: relative;
    width: 100%;
    /* 9:16 Aspect Ratio para Shorts */
    padding-bottom: 177.77%; 
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid var(--border-focus);
}
.vsl-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.vsl-content h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}
.vsl-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

@media (max-width: 992px) {
    .vsl-wrapper {
        gap: 40px;
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 768px) {
    .vsl-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .vsl-container {
        max-width: 300px;
        margin: 0 auto 30px;
    }
    .vsl-content p {
        margin: 0 auto;
    }
}
