/* -------------------------------------------------------------------------- */
/* 1. VARIABLES & CONFIGURACIÓN (:root) */
/* -------------------------------------------------------------------------- */
:root {
    /* Paleta de Colores */
    --bg-primary: #0f172a;      /* Dark Slate */
    --bg-secondary: #1e293b;    /* Ligeramente más claro para tarjetas */
    --text-main: #f8fafc;       /* Blanco roto */
    --text-muted: #94a3b8;      /* Gris suave */
    --accent-blue: #3b82f6;     /* Electric Blue */
    
    /* Color de Conversión (CTA) */
    --cta-green: #10b981;       /* Neon Green */
    --cta-green-hover: #059669; 

    /* Espaciados y Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Tipografía */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------------------------------- */
/* 2. RESET & BASE STYLES */
/* -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* -------------------------------------------------------------------------- */
/* 3. UTILIDADES & COMPONENTES */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-blue);
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--cta-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--cta-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); 
}

.btn-primary:hover {
    background-color: var(--cta-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Badge decorativo */
.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* -------------------------------------------------------------------------- */
/* 4. HEADER & NAV */
/* -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo span {
    color: var(--accent-blue);
}

.main-nav ul {
    display: none; 
}

/* -------------------------------------------------------------------------- */
/* 5. SECCIONES PRINCIPALES */
/* -------------------------------------------------------------------------- */

/* Hero */
.hero-section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 50ch;
}

.trust-text {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Image */
.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Secciones Generales */
.section-padding {
    padding: 4rem 0;
}

.bg-darker {
    background-color: #0b1120; 
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Pain Points (Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

.card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Feature List en Soluciones */
.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    color: var(--cta-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list strong {
    color: var(--text-main);
}

/* -------------------------------------------------------------------------- */
/* 6. PLANES Y PRECIOS */
/* -------------------------------------------------------------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.pricing-card h3,
.pricing-card .price {
    background: linear-gradient(90deg, var(--accent-blue), var(--cta-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-features {
    text-align: left;
    margin: 0 auto 2rem auto;
    width: 100%;
}

.pricing-features li {
    margin-bottom: 0.75rem;
}

.pricing-card.featured {
    border: 1px solid var(--cta-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
    z-index: 10;
}

.featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cta-green);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------------------------- */
/* 7. NUEVAS SECCIONES (Process & FAQ) */
/* -------------------------------------------------------------------------- */

.process-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    padding: 1rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-blue);
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------------------- */
/* 8. ESTILOS DEL FOOTER (Base Móvil - 1 Columna Centrada) */
/* -------------------------------------------------------------------------- */

.site-footer {
    background-color: #0b1120; 
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
    padding-bottom: 0 !important;
}

/* Grid del Footer (Móvil: 1 columna, centrado) */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto; /* Centrado en móvil */
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-blue); }

.contact-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado en móvil */
}

.footer-mail {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.social-row {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Centrado en móvil */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

/* BARRA INFERIOR (CERO ESPACIOS) */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 15px 0 15px 0 !important;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    display: block;
}

.footer-bottom p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
    display: block !important;
}

.signature {
    margin-top: 5px !important;
    opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* 9. MEDIA QUERIES (Desktop) */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
        gap: 2rem;
    }
    
    .main-nav a {
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .main-nav a:hover {
        color: var(--accent-blue);
    }

    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solutions-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    /* Process grid */
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faq-container {
        max-width: 800px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }

    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    /* --- CONFIGURACIÓN FOOTER DESKTOP (3 COLUMNAS ORDENADAS) --- */
    /* Aquí forzamos las 3 columnas y quitamos el centrado */
    .footer-grid {
        display: grid;
        /* PROPORCIÓN DE ORO: 2 partes para marca, 1 para enlaces, 1 para contacto */
        grid-template-columns: 2fr 1fr 1fr; 
        gap: 2rem;
        text-align: left; /* Alineación a la izquierda */
        align-items: start; /* Alineados arriba */
    }
    
    .footer-tagline {
        margin: 0; /* Quitar margen automático */
    }
    
    /* Columna de Enlaces */
    .footer-links {
        padding: 0;
    }
    
    /* Columna de Contacto (Alineada a la derecha) */
    .contact-col {
        align-items: flex-end; 
        text-align: right;
    }
    
    .social-row {
        justify-content: flex-end; /* Iconos a la derecha */
    }
}

/* --- NUEVA SECCIÓN: SOBRE NOSOTROS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Estadísticas rápidas */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tarjeta de Código Decorativa (Efecto WOW) */
.about-image {
    display: flex;
    justify-content: center;
}

.code-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    font-family: 'Courier New', monospace;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-body p {
    margin-bottom: 0.5rem;
    color: #abb2bf;
    font-size: 0.9rem;
}

.indent { padding-left: 20px; }

/* Colores de sintaxis */
.code-purple { color: #c678dd; }
.code-blue { color: #61afef; }
.code-green { color: #98c379; }
.code-orange { color: #d19a66; }

/* Desktop Grid */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Texto izq, Código der */
    }
    .about-content h2 { font-size: 3rem; }
}

/* --- ESTILOS DEL FORMULARIO DE CONTACTO --- */
.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-primary);
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}