/* Variables CSS para facilitar personalización (Dark Mode Premium) */
:root {
    /* Paleta Principal Sofisticada (Old-Money B2B) */
    --bg-main: #0A0A0C;         /* Fondo ultra profundo, casi negro */
    --bg-secondary: #141416;    /* Fondo tarjetas minimalista */
    --bg-accent: #1C1C1F;       /* Fondos hover / separadores */
    
    /* Colores Acento */
    /* Azul muy sutil y oro blanco corporativo. Usaré un "Teal/Aqua" elegante para generar confianza o Dorado*/
    --primary-color: #38BDF8;   /* Azul eléctrico premium (Sky 400) */
    --primary-hover: #0284C7;   /* Azul intenso al hacer hover */
    --gradient-start: #38BDF8;
    --gradient-end: #818CF8;

    /* Textos */
    --text-primary: #F8FAFC;    /* Blanco puro */
    --text-secondary: #A1A1AA;  /* Gris medio para subtítulos (Zinc 400) */
    --text-muted: #71717A;

    /* Utilidades */
    --radius: 4px; /* Bordes rectos para diseño editorial serio */
    --border-color: rgba(255,255,255, 0.04); /* Ultra sutil */
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía Básica */
h1, h2 {
    font-family: 'Playfair Display', serif;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
}
h3, h4 {
    line-height: 1.3;
    font-weight: 600;
}
p {
    color: var(--text-secondary);
}

/* Contenedores */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    padding: 100px 0;
}
.bg-lighter {
    background-color: var(--bg-secondary);
}

/* Gradientes de Texto (Énfasis Editorial) */
.text-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-style: italic;
    font-weight: 700;
}

/* Enlaces y Botones */
a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
}
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.brand span { color: var(--primary-color); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Background Glows para estética Premium */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, rgba(15,18,24,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.right-glow { top: -100px; right: -200px; }
.left-glow { bottom: -100px; left: -200px; background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, rgba(15,18,24,0) 70%); }

/* Grid Cards (Problema) */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.15); /* Menos agresivo */
    box-shadow: 0 10px 30px rgba(0,0,0, 0.5);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255,255,255, 0.03);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* El Guía */
.guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 60px;
    grid-template-areas: 
        "image header"
        "image content";
    align-content: center;
}
.guide-header { grid-area: header; align-self: end; }
.guide-image { grid-area: image; align-self: center; }
.guide-content { grid-area: content; align-self: start; }
.image-placeholder {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.image-placeholder img {
    width: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}
.image-placeholder:hover img {
    filter: grayscale(0%);
}
.accent-text { color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.guide-header h2 { font-size: 2.8rem; margin: 10px 0 25px; }
.guide-content p { font-size: 1.1rem; margin-bottom: 20px; }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--text-primary); font-weight: 500;}
.check-list span { color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* El Plan */
.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.step-number {
    width: 60px; height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: var(--primary-color);
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
}
.step-line {
    position: absolute;
    top: 30px; right: 50%;
    width: 100%; height: 2px;
    background: dashed 2px rgba(255,255,255,0.1);
    z-index: 1;
}
.step:first-child .step-line { display: none; }
.step h3 { margin-bottom: 15px; }

/* CTA Section */
.cta-section { background-image: radial-gradient(circle at center, rgba(56,189,248,0.1) 0%, var(--bg-main) 70%); }
.cta-container { text-align: center; max-width: 800px; }
.cta-container h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-container p { font-size: 1.2rem; margin-bottom: 40px; }
.capture-box {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.capture-box .subtitle { font-weight: 600; color: var(--text-primary); margin-bottom: 25px; font-size: 1.1rem; }
.small-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-links a { color: var(--text-secondary); margin: 0 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }

/* Animaciones y Utilidades JavaScript (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Pulse Animation Call To Action */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.pulse { animation: pulse 2s infinite; }

/* El Plan (Nuevas clases verticales) */
.vertical-steps { flex-direction: column; gap: 50px; text-align: left; }
.vertical-step { display: flex; gap: 30px; text-align: left; position: relative; }
.inline-line { width: 2px; height: 100%; top: 60px; left: 30px; position: absolute; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { padding: 120px 0 80px; min-height: 70vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .section { padding: 60px 0; }
    .card { padding: 25px; }
    
    .guide-container { 
        grid-template-columns: 1fr; 
        grid-template-areas: 
            "header"
            "image"
            "content";
        row-gap: 30px; 
    }
    .guide-header h2 { font-size: 2rem; }
    
    /* Configuración Responsiva para Steps Verticales */
    .vertical-steps { gap: 40px; }
    .vertical-step { flex-direction: column; gap: 15px; text-align: center; }
    .vertical-step .step-number { margin: 0 auto; }
    .inline-line { display: none; /* Escondemos la línea en móvil para diseño más limpio */ }
    
    /* Cajas y CTA */
    .cta-container h2 { font-size: 2rem; }
    .capture-box { padding: 30px 20px; }
    .quote-box { padding: 20px; text-align: left; font-size: 0.95rem; }
}
