/* ============================================================
   BRAND SYSTEM - TDIGITALIZA
============================================================ */
:root {
    --td-dark: #0B1F3A;
    --td-blue: #1E88E5;
    --td-accent: #2F80ED;
    --bg-main: #f8fafc;
    --white: #ffffff;
    --text-main: #0B1F3A;
    --text-muted: #64748b;
    --radius-lg: 28px;
    --radius-md: 18px;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

/* ============================================================
   HERO - LOOK PREMIUM
============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0B1F3A 0%, #1E4F8A 50%, #1E88E5 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Glow decorativo */
.hero-section::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47,128,237,0.3), transparent 70%);
    filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 540px;
}

/* BOTONES SaaS */
.btn-primary {
    background: white;
    color: var(--td-dark);
    font-weight: 700;
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #f8fafc;
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.hero-trust {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.trust-item strong { display: block; font-size: 1.1rem; }
.trust-item span { font-size: 0.85rem; opacity: 0.7; }

/* ============================================================
   PHONE MOCKUP (PRO)
============================================================ */
.hero-phone-wrap { display: flex; justify-content: center; perspective: 1000px; }

.phone-frame {
    width: 300px;
    height: 600px;
    background: #0B1F3A;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-screen {
    background: white;
    border-radius: 35px;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: var(--td-dark);
}

.mini-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.app-card {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 18px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.app-card.active {
    border-color: var(--td-blue);
    background: #eff6ff;
}

.app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.gradient-blue { background: linear-gradient(135deg, #0B1F3A, #1E88E5); }
.gradient-purple { background: linear-gradient(135deg, #7C4DFF, #448AFF); }
.gradient-green { background: linear-gradient(135deg, #00C853, #B2FF59); }

.install-banner {
    margin-top: auto;
    background: var(--td-dark);
    color: white;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   SECTIONS & CARDS
============================================================ */
.section { padding: 100px 0; }

.value-grid, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card, .solution-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--td-blue);
}

.solution-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-trust { justify-content: center; }
    .value-grid, .catalog-grid { grid-template-columns: 1fr; }
    .hero-phone-wrap { margin-top: 50px; }
}
.site-header {
    background: #F4F7FA; /* Cambia aquí el color */
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Línea más sutil para fondo claro */
}

/* IMPORTANTE: Si pones el fondo claro, debes cambiar el texto de los servicios a oscuro */
.nav-item-service span {
    color: #0B1F3A; 
}
.icon-box-small {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Efecto de scroll suave para que no pegue saltos bruscos al pulsar el menú */
html {
    scroll-behavior: smooth;
}

/* Compensación para que el header sticky no tape el título de la sección al navegar */
section[id] {
    scroll-margin-top: 100px;
}
/* Asegura que los enlaces ocupen todo el ancho y sean pulsables */
.nav-link-mobile {
    width: 100%;
    display: flex !important;
    position: relative;
    z-index: 1051; /* Por encima del fondo del offcanvas */
    cursor: pointer;
}

/* Evita que el scroll suave se bloquee en móviles */
@media (max-width: 991px) {
    html {
        scroll-padding-top: 80px; /* Espacio para que el header no tape el título */
    }
}