/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --bg-dark: #0b0f19;
    --bg-surface: #131b2e;
    --bg-surface-light: #1e2942;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #00ff88;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #20ba5a;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--bg-surface-light);
    margin-left: 12px;
}

.btn-secondary:hover {
    background-color: var(--bg-surface-light);
    transform: translateY(-2px);
}

.btn-whatsapp-large {
    background-color: var(--whatsapp-color);
    color: var(--white);
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu .btn-nav {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.nav-menu .btn-nav:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.25);
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-text h1 span {
    background: linear-gradient(to right, #60a5fa, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 540px;
}

/* Simulación de Terminal Forense */
.tech-card {
    background-color: #070a13;
    border: 1px solid var(--bg-surface-light);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow: hidden;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.title-terminal {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 12px;
}

.card-body {
    padding: 24px;
    min-height: 200px;
}

.ln {
    margin-bottom: 8px;
    color: #e5e7eb;
}

.ln span {
    color: #4b5563;
    margin-right: 16px;
    user-select: none;
}

.text-blue { color: #3b82f6; }
.text-green { color: var(--accent); }
.text-purple { color: #a855f7; }
.text-amber { color: #f59e0b; }

/* ==========================================================================
   SECCIÓN SEVICIOS
   ========================================================================== */
.services {
    padding: 100px 0;
    background-color: rgba(19, 27, 46, 0.4);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 36px;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN CARACTERÍSTICAS / STATS
   ========================================================================== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.features-text h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.features-text p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-list i {
    color: var(--accent);
}

.features-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-box {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN CTA (CALL TO ACTION)
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.05), transparent);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
    background-color: #060910;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-logo span {
    color: var(--primary);
}

.motivational-quote {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto 30px auto;
    position: relative;
    line-height: 1.5;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 24px;
}

.copyright {
    color: #4b5563;
    font-size: 0.85rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN (ADAPTABILIDAD)
   ========================================================================== */
@media (max-width: 968px) {
    .hero-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { margin: 0 auto 36px auto; }
    
    .btn-secondary { margin-left: 0; margin-top: 12px; width: 100%; }
    .btn-primary { width: 100%; }
    .hero-actions { display: flex; flex-direction: column; max-width: 300px; margin: 0 auto; }
    
    .nav-menu { display: none; } /* En producciones avanzadas se usaría un menú hamburguesa */
}