/* --- VARIABLES DE COLOR (Sistema A2L Studio) --- */
        :root {
            /* Fondo general claro (no oscuro) */
            --bg-general: #F5F7FB;
            --primary: #1E40AF; /* Navy - Acciones principales */
            --secondary: #C084FC; /* Lavanda - Acentos */
            --success: #10B981; /* Verde - Éxito / CTA Alt */
            --whatsapp-green: #25D366;
            --gray-border: #D1D5DB; /* Bordes suaves */
            --text-dark: #1F2937;
            --text-light: #6B7280;
            --white: #FFFFFF;
            
            /* Gradientes */
            --gradient-hero: linear-gradient(135deg, #1E40AF 0%, #C084FC 100%);
            
            /* Espaciado y layout */
            --container-width: 1200px;
            --radius-md: 8px;
            --radius-lg: 16px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        /* --- RESET & BASE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-general);
            color: var(--text-dark);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden; /* Prevenir scroll horizontal por el menu */
        }

        a { text-decoration: none; transition: all 0.2s ease; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; }

        /* --- UTILIDADES --- */
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 20px;
        }
        .text-center { text-align: center; }
        .text-primary { color: var(--primary); }
        .text-secondary { color: var(--secondary); }
        .text-success { color: var(--success); }
        .text-gray { color: var(--text-light); }
        .section-padding { padding: 80px 0; }

        /* --- BOTONES --- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 1rem;
            gap: 8px;
            border: 1px solid transparent;
        }
        .btn-primary { background-color: var(--primary); color: var(--white); border-color: var(--primary); }
        .btn-secondary { background-color: var(--secondary); color: var(--white); border-color: var(--secondary); }
        .btn-success { background-color: var(--success); color: var(--white); border-color: var(--success); }
        /* Botón blanco con borde para mejor contraste en el banner */
        .btn-light { 
            background-color: var(--white); 
            color: var(--primary); 
            border-color: var(--white); 
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .btn-light:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
        }
        .btn-outline { background-color: var(--white); color: var(--primary); border-color: var(--gray-border); }
        
        .btn:hover { opacity: 0.9; transform: translateY(-1px); }

        /* --- HEADER --- */
        header {
            background-color: var(--white);
            color: var(--primary);
            border-bottom: 1px solid var(--gray-border);
            position: sticky;
            top: 0;
            z-index: 1000; /* Z-index alto para sobreponer al menu movil */
            box-shadow: var(--shadow-sm);
        }
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px; 
        }
        .logo-container { display: flex; align-items: center; }
        .logo-img { height: 50px; width: auto; }

        /* Desktop Nav */
        .desktop-nav ul { display: flex; gap: 24px; align-items: center; }
        .desktop-nav a { color: var(--primary); font-size: 0.95rem; font-weight: 500; }
        .desktop-nav a:hover { color: var(--secondary); }

        /* Mobile Menu Button (Hamburger) */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--primary);
            cursor: pointer;
        }

        /* --- MOBILE SIDE MENU (LATERAL) --- */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu-content {
            position: fixed;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background: var(--white);
            z-index: 1002;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            padding: 20px;
            box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        }
        .mobile-menu-content.active {
            transform: translateX(0);
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--gray-border);
        }
        .close-menu-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-light);
            cursor: pointer;
        }
        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .mobile-nav-links a {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            border-bottom: 1px solid transparent;
            padding-bottom: 5px;
        }
        .mobile-nav-links a:hover {
            color: var(--secondary);
            border-color: var(--secondary);
        }
        .mobile-nav-btn {
            margin-top: 20px;
            width: 100%;
        }

        /* --- WHATSAPP FLOATING BUTTON --- */
        .whatsapp-float {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 30px;
            right: 30px;
            background-color: var(--whatsapp-green);
            color: #FFF;
            border-radius: 50px;
            text-align: center;
            font-size: 30px;
            box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }
        .whatsapp-float:hover {
            transform: scale(1.1);
            background-color: #20BA59;
        }

        /* --- HERO --- */
        .hero {
            background: var(--gradient-hero);
            color: var(--white);
            padding: 100px 0 80px;
            position: relative;
            overflow: hidden;
        }
        .hero-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .hero-tagline {
            font-size: 1.1rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 16px;
            font-weight: 600;
            color: rgba(255,255,255,0.9);
        }
        .hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 24px;
        }
        .hero p {
            font-size: 1.25rem;
            margin-bottom: 40px;
            opacity: 0.9;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        .pill-badges {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }
        .badge-pill {
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(5px);
            padding: 8px 16px;
            border-radius: 50px;
            border: 1px solid rgba(255,255,255,0.4);
            font-size: 0.9rem;
            font-weight: 600;
        }

        /* --- CARDS GENERIC --- */
        .card {
            background: var(--white);
            border: 1px solid var(--gray-border);
            border-radius: var(--radius-lg);
            padding: 32px;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--secondary);
        }
        .icon-box {
            width: 60px; height: 60px;
            background: rgba(30, 64, 175, 0.1);
            color: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        /* --- SERVICES --- */
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }
        .service-card h3 {
            color: var(--primary);
            margin-bottom: 12px;
            font-size: 1.25rem;
        }
        /* Ajuste para resaltar el texto de IA sutilmente */
        .sub-note {
            font-size: 0.85rem;
            color: var(--text-light);
            font-style: italic;
            margin-top: 10px;
            display: block;
        }

        /* --- PHILOSOPHY (Sobre Nosotros) --- */
        .philosophy-wrapper {
            max-width: 900px;
            margin: 0 auto;
        }

        /* --- BLOG GRID --- */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        /* --- PRICING --- */
        .pricing-card {
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .pricing-card.featured { border: 2px solid var(--primary); }
        .pricing-card.featured::before {
            content: "Más popular";
            position: absolute;
            top: 0; left: 50%; transform: translateX(-50%);
            background: var(--primary); color: white;
            padding: 4px 12px; font-size: 0.75rem; font-weight: 600;
            border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
        }
        .price-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
        .price-features { text-align: left; margin: 24px 0; }
        .price-features li { margin-bottom: 12px; font-size: 0.95rem; display: flex; gap: 8px; }
        .price-features li i { color: var(--success); }

        /* --- CONTACT --- */
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }
        .contact-info {
            background: var(--primary);
            color: white;
            padding: 40px;
        }
        .contact-form-container { padding: 40px; }
        .social-icons a {
            display: inline-flex;
            width: 40px; height: 40px;
            align-items: center; justify-content: center;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            color: white;
            margin-right: 10px;
            transition: all 0.3s;
        }
        .social-icons a:hover { background: white; color: var(--primary); }

        .form-group { margin-bottom: 20px; }
        .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
        .form-input, .form-select, .form-textarea {
            width: 100%; padding: 12px;
            border: 1px solid var(--gray-border); border-radius: var(--radius-md);
            font-family: inherit; font-size: 1rem;
        }
        .form-input:focus { outline: none; border-color: var(--primary); }

        /* --- FOOTER --- */
        footer {
            background: #F9FAFB;
            padding: 80px 0 30px;
            border-top: 1px solid var(--gray-border);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr;
            gap: 30px;
            margin-bottom: 60px;
        }
        .legal-note { font-size: 0.85rem; color: var(--text-light); margin-top: 16px; line-height: 1.5; }
        .footer-bottom {
            text-align: center;
            border-top: 1px solid var(--gray-border);
            padding-top: 24px;
            margin-top: 40px;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 992px) {
            .hero h1 { font-size: 2.5rem; }
            .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .contact-wrapper { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            /* Ocultar menú desktop y mostrar toggle */
            .desktop-nav { display: none; }
            .mobile-toggle { display: block; }
            
            .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr; }
            .hero { padding: 60px 0; }
        }

/* --- Portal UI Extensions (sidebar, cards, dashboard) --- */
.a2l-container { max-width: 1200px; margin: 0 auto; padding: 18px 16px 42px; }

.a2l-topbar { background: var(--white); border-bottom: 1px solid var(--gray-border); position: sticky; top: 0; z-index: 1000; }
.a2l-top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.a2l-brand { display:flex; align-items:center; gap:12px; }
.a2l-brand img { height: 40px; width:auto; }
.a2l-actions { display:flex; gap:10px; align-items:center; flex-wrap: wrap; }

.a2l-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 9px 14px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.a2l-btn-primary { background: var(--primary); color: var(--white); }
.a2l-btn-primary:hover { opacity: .92; color: var(--white); }
.a2l-btn-outline { background: var(--white); color: var(--primary); border-color: var(--gray-border); }
.a2l-btn-outline:hover { background: #F9FAFB; }

.a2l-chip { display:inline-flex; align-items:center; gap:8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gray-border); background: #F9FAFB; color: var(--text-light); font-size: .85rem; white-space: nowrap; }

.a2l-grid { display:grid; grid-template-columns: 290px 1fr; gap: 16px; }
@media (max-width: 992px){ .a2l-grid { grid-template-columns: 1fr; } }

.a2l-sidebar { position: sticky; top: 86px; height: calc(100vh - 98px); overflow: auto; }
@media (max-width: 992px){ .a2l-sidebar { position: relative; top: 0; height: auto; } }
.a2l-menu-title { font-size: .85rem; color: var(--text-light); font-weight: 700; padding: 10px 10px 6px; }
.a2l-nav a { display:flex; align-items:center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; color: var(--text-dark); text-decoration:none; }
.a2l-nav a:hover { background:#F9FAFB; }
.a2l-nav .active { background: rgba(30,64,175,.08); color: var(--primary); border: 1px solid rgba(30,64,175,.18); }
.a2l-nav small { color: var(--text-light); }

.a2l-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.a2l-card-header { padding: 14px 16px; border-bottom: 1px solid var(--gray-border); display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.a2l-card-body { padding: 16px; }

.a2l-hero { background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(192,132,252,.10)); border: 1px solid var(--gray-border); border-radius: 16px; padding: 16px; }
.a2l-sub { color: var(--text-light); }

.kpi { border-radius: 16px; border: 1px solid var(--gray-border); padding: 16px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.04); height: 100%; }
.kpi .label { color: var(--text-light); font-weight: 700; font-size: .9rem; }
.kpi .value { font-size: 2rem; font-weight: 900; margin-top: 8px; color: var(--text-dark); }
.kpi .hint { color: var(--text-light); font-size: .85rem; margin-top: 4px; }
.kpi .icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(192,132,252,.18); display:flex; align-items:center; justify-content:center; color: var(--secondary); font-weight: 900; }
.kpi-row { display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 768px){ .kpi-row { grid-template-columns: 1fr; } }

.form-control, .form-select { border-radius: 12px !important; border: 1px solid var(--gray-border) !important; }
.form-control:focus, .form-select:focus { border-color: rgba(30,64,175,.45) !important; box-shadow: 0 0 0 .2rem rgba(30,64,175,.12) !important; }
