/* ============================================
   SISTEMA ODIN - Automatización con IA
   Estilos principales con animaciones modernas
   ============================================ */

:root {
    /* Color: paleta azul reducida + accents */
    --color-primary: #0a1628;
    --color-primary-2: #122340;
    --color-secondary: #1e3a8a;
    --color-accent: #2196f3;
    --color-accent-light: #64b5f6;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-text: #111827;
    --color-text-light: #444b56;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-border-strong: #cbd5e1;
    --color-card: #ffffff;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Spacing scale (base 8px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Font sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.05rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: clamp(1.6rem, 3vw, 2rem);
    --fs-4xl: clamp(2rem, 4vw, 3rem);
    --fs-5xl: clamp(2.5rem, 5vw, 4.2rem);

    /* Line heights */
    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;
    --lh-relaxed: 1.75;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.4);
    --shadow-button: 0 4px 20px rgba(33, 150, 243, 0.4);
    --shadow-button-hover: 0 8px 30px rgba(33, 150, 243, 0.6);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #128c7e 100%);

    /* Motion */
    --motion-fast: 200ms;
    --motion-base: 300ms;
    --motion-slow: 600ms;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all var(--motion-base) var(--ease-out);
    --transition-slow: all var(--motion-slow) var(--ease-out);

    /* Typography */
    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ANIMACIONES KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.4),
                    0 0 40px rgba(33, 150, 243, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(33, 150, 243, 0.7),
                    0 0 60px rgba(33, 150, 243, 0.4);
    }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes typing-dots {
    0%, 20% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    80%, 100% { opacity: 0.2; transform: scale(0.8); }
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 0 0 10px rgba(33, 150, 243, 0.8),
                     0 0 20px rgba(33, 150, 243, 0.5),
                     0 0 30px rgba(33, 150, 243, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(33, 150, 243, 1),
                     0 0 40px rgba(33, 150, 243, 0.8),
                     0 0 60px rgba(33, 150, 243, 0.5);
    }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(170px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}

@keyframes orbit-mid {
    from { transform: rotate(0deg) translateX(135px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(135px) rotate(-360deg); }
}

@keyframes orbit-inner {
    from { transform: rotate(0deg) translateX(105px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(105px) rotate(-360deg); }
}

@keyframes draw-line {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    z-index: 1000;
    padding: 18px 0;
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.3);
    backdrop-filter: blur(10px);
    transition: padding var(--motion-base) var(--ease-out),
                box-shadow var(--motion-base) var(--ease-out);
}

.navbar.is-scrolled {
    padding: 12px 0;
    box-shadow: 0 8px 40px rgba(10, 22, 40, 0.4);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(33, 150, 243, 0.6) 50%,
        transparent 100%);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
    transition: var(--transition);
}

.nav-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: rotate(-10deg) scale(1.1);
    filter: drop-shadow(0 0 10px var(--color-accent));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-text .brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-white);
}

.nav-logo-text .tagline {
    font-size: 0.65rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-top: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 60%;
}

.nav-menu a.active {
    color: var(--color-accent);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: var(--color-white) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    color: var(--color-white) !important;
}

.nav-cta::before {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.nav-toggle-icon {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.nav-toggle-icon--close { display: none; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon--close { display: inline-block; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: 120px 30px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.08) 0%, transparent 40%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 22, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--color-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 10px var(--color-success);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

.hero p.subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================
   HERO VISUAL - LOGO ANIMADO + ORBITALES
   ============================================ */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease forwards;
}

.logo-container {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(33, 150, 243, 0.18) 0%,
        rgba(33, 150, 243, 0.05) 40%,
        transparent 70%);
    border-radius: 50%;
}

.logo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.logo-circle:nth-of-type(1) {
    width: 100%;
    height: 100%;
    border: 1.5px dashed rgba(33, 150, 243, 0.35);
    animation: rotate-slow 60s linear infinite;
}

.logo-circle:nth-of-type(2) {
    width: 78%;
    height: 78%;
    border: 1px solid rgba(30, 58, 138, 0.25);
}

.logo-circle:nth-of-type(3) {
    display: none;
}

.logo-image-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.logo-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(10, 22, 40, 0.25))
            drop-shadow(0 0 25px rgba(33, 150, 243, 0.4));
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    pointer-events: none;
}

.orbit-dot:nth-of-type(1) {
    color: var(--color-accent);
    background: var(--color-accent);
    animation: orbit 30s linear infinite;
    opacity: 0.7;
}

.orbit-dot:nth-of-type(2),
.orbit-dot:nth-of-type(3) {
    display: none;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 100px 30px;
    position: relative;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 6px 18px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Sección con fondo oscuro */
.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.servicio-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
}

.servicio-card:hover .servicio-icon {
    transform: rotate(-8deg) scale(1.1);
}

.servicio-card h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.servicio-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.servicio-card ul {
    list-style: none;
    margin-top: 18px;
}

.servicio-card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.servicio-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ============================================
   CHATBOT DEMOS - CONVERSACIONES
   ============================================ */
.chatbot-demos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.chatbot-demo {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.chatbot-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-info h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 2px;
}

.chatbot-info .status {
    color: var(--color-success);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-info .status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse-glow 2s infinite;
}

.chat-window {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar {
    width: 5px;
}

.chat-window::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.3);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: message-appear 0.5s ease forwards;
    opacity: 0;
}

.message.bot {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.message.product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 14px;
    padding: 14px;
    color: var(--color-white);
    align-self: flex-start;
    max-width: 90%;
}

.message.product .product-title {
    color: var(--color-accent-light);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.message.product .product-price {
    color: var(--color-success);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 4px;
}

.typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: none;
    gap: 5px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: typing-dots 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding: 0 4px;
    align-self: flex-start;
    max-width: 100%;
    animation: message-appear 0.4s ease forwards;
}

.quick-reply {
    background: rgba(33, 150, 243, 0.12);
    color: var(--color-accent-light);
    border: 1px solid rgba(33, 150, 243, 0.4);
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-body);
    transition: var(--transition);
    white-space: nowrap;
}

.quick-reply:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.chat-input-area {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 12px 18px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.chat-send .icon {
    width: 18px;
    height: 18px;
}

.chat-send:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

.chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.demo-restart {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 10px;
    transition: var(--transition);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-restart:hover {
    color: var(--color-accent-light);
}

.demo-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   PRECIOS
   ============================================ */
.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.precio-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 32px;
    border: 2px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.precio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.precio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.precio-card:hover::before {
    opacity: 1;
}

.precio-card.featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.precio-card.featured::after {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    transform: rotate(45deg);
}

.precio-card.featured h3,
.precio-card.featured .precio-amount {
    color: var(--color-white);
}

.precio-card.featured .precio-features li {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.precio-card h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    position: relative;
    letter-spacing: -0.01em;
}

.precio-card .precio-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
    position: relative;
}

.precio-card.featured .precio-desc {
    color: rgba(255, 255, 255, 0.7);
}

.precio-amount {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
    position: relative;
}

.precio-amount .currency {
    font-size: 1rem;
    vertical-align: top;
    color: var(--color-text-light);
}

.precio-amount .price-from {
    font-size: 1rem;
    color: var(--color-accent);
    display: block;
    font-weight: 600;
    margin-bottom: -8px;
}

.precio-card.featured .precio-amount .currency {
    color: var(--color-accent-light);
}

.precio-iva {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    position: relative;
}

.precio-card.featured .precio-iva {
    color: rgba(255, 255, 255, 0.6);
}

.precio-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
    position: relative;
}

.precio-features li {
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.92rem;
    position: relative;
}

.precio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.1rem;
}

.precio-card.featured .precio-features li::before {
    color: var(--color-accent-light);
}

.precio-features li:last-child {
    border-bottom: none;
}

/* ============================================
   CRONOGRAMA / TIMELINE
   ============================================ */
.cronograma {
    margin-top: 70px;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.cronograma::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        var(--color-accent) 0%,
        var(--color-secondary) 50%,
        var(--color-accent) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.cronograma-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.cronograma-content {
    background: var(--color-white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.cronograma-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.cronograma-item:nth-child(odd) .cronograma-content {
    grid-column: 1;
    text-align: right;
}

.cronograma-item:nth-child(even) .cronograma-content {
    grid-column: 3;
    text-align: left;
}

.cronograma-marker {
    grid-column: 2;
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto;
    box-shadow: 0 0 0 6px var(--color-white), 0 8px 24px rgba(33, 150, 243, 0.35);
    position: relative;
    z-index: 2;
}

.cronograma-content h4 {
    font-family: var(--font-body);
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.cronograma-item:nth-child(odd) .cronograma-content h4 {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.cronograma-content .week {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: block;
}

.cronograma-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CLIENTES / TESTIMONIOS
   ============================================ */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cliente-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cliente-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: Georgia, serif;
    font-size: 8rem;
    color: rgba(33, 150, 243, 0.15);
    line-height: 1;
}

.cliente-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.2);
}

.cliente-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cliente-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cliente-info h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cliente-info .industria {
    color: #a8d4ff;
    font-size: 0.85rem;
}

.cliente-quote {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cliente-resultados {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resultado {
    text-align: center;
}

.resultado-numero {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent-light);
    display: block;
}

.resultado-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ============================================
   CONTACTO / CTA FINAL
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--color-white);
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contacto-info {
    padding: 20px 0;
}

.contacto-item {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.contacto-item h4 {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contacto-item p,
.contacto-item a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contacto-item a:hover {
    color: var(--color-accent);
}

.contacto-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    display: block;
}

.form-optional {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row--split {
        grid-template-columns: 1fr;
    }
}

.form-trust-signals {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.trust-icon {
    font-size: 0.9rem;
}

#contacto {
    scroll-margin-top: 90px;
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 30px 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .nav-logo {
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h5 {
    font-family: var(--font-body);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-accent-light);
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-link .icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}

span.footer-contact-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--gradient-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

/* ============================================
   AOS - ANIMACIONES AL HACER SCROLL
   ============================================ */
.aos-init {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.aos-init[data-aos="fade-up"] {
    transform: translateY(40px);
}

.aos-init[data-aos="fade-left"] {
    transform: translateX(-40px);
}

.aos-init[data-aos="fade-right"] {
    transform: translateX(40px);
}

.aos-init[data-aos="zoom-in"] {
    transform: scale(0.9);
}

.aos-animate {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-container,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 400px;
    }

    .logo-container {
        width: 300px;
        height: 300px;
    }

    .logo-image-wrap {
        width: 220px;
        height: 220px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .cronograma::before {
        left: 30px;
    }

    .cronograma-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .cronograma-marker {
        grid-column: 1;
    }

    .cronograma-item:nth-child(odd) .cronograma-content,
    .cronograma-item:nth-child(even) .cronograma-content {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--color-primary);
        flex-direction: column;
        padding: 30px 20px;
        transition: right 0.4s ease;
        align-items: stretch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 14px 16px;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 20px;
    }

    .precio-card.featured {
        transform: scale(1);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chatbot-demos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   LINK DIAGNÓSTICO GRATUITO (hero)
   ============================================ */
.hero-diagnostico-link {
    margin-top: 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.link-diagnostico {
    color: var(--color-accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-diagnostico:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-container {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a2f50 100%);
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 16px;
    padding: 40px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(33,150,243,0.1);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 10px;
    font-family: var(--font-display);
}

.modal-header p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .modal-container {
        padding: 28px 20px;
    }

    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG – ARTÍCULO
   ============================================ */
.breadcrumb-nav {
    padding: 80px 0 0;
    background: var(--color-primary);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 14px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255,255,255,0.3);
}

.breadcrumb a {
    color: var(--color-accent-light);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.blog-article-wrapper {
    background: var(--color-primary);
    min-height: 80vh;
    padding: 40px 20px 80px;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.article-category {
    background: rgba(33, 150, 243, 0.15);
    color: var(--color-accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-separator { color: rgba(255,255,255,0.2); }

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.article-content {
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    font-size: 1.05rem;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 1.15rem;
    color: var(--color-accent-light);
    margin: 30px 0 12px;
}

.article-content p { margin-bottom: 20px; }

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: #fff; }

.article-content a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 20px;
    margin: 28px 0;
    background: rgba(33,150,243,0.07);
    border-radius: 0 8px 8px 0;
    color: rgba(255,255,255,0.75);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.article-content thead tr,
.article-content thead {
    background: rgba(33, 150, 243, 0.12);
}

.article-content th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.3);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.88rem;
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.article-content table strong {
    color: var(--color-accent-light);
}

@media (max-width: 768px) {
    .article-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.article-cta-box {
    background: linear-gradient(135deg, rgba(30,58,138,0.5) 0%, rgba(33,150,243,0.12) 100%);
    border: 1px solid rgba(33,150,243,0.25);
    border-radius: 16px;
    padding: 36px 40px;
    margin: 48px 0;
    text-align: center;
}

.article-cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.article-cta-box p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
}

.article-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 12px;
    flex-wrap: wrap;
}

.article-nav-prev,
.article-nav-next,
.article-nav-index {
    color: var(--color-accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-nav-index {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.article-nav-prev:hover,
.article-nav-next:hover { color: #fff; }

/* ============================================
   UTILITY CLASSES (reemplazan inline styles)
   ============================================ */
.u-relative-z1 { position: relative; z-index: 1; }
.u-text-center { text-align: center; }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-12 { margin-top: var(--space-12); }
.u-pt-10 { padding-top: var(--space-10); }
.u-text-small {
    font-size: var(--fs-sm);
    margin-top: var(--space-1);
}

.info-banner {
    text-align: center;
    margin-top: var(--space-12);
    padding: var(--space-6);
    background: rgba(33, 150, 243, 0.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.info-banner p {
    color: var(--color-text);
    font-size: var(--fs-base);
    margin: 0;
}

.cta-section .btn-secondary--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-section .btn-secondary--ghost:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.modal-form .form-status--note {
    text-align: center;
    font-size: var(--fs-xs);
    margin-top: var(--space-3);
    color: var(--color-accent-light);
}

.precio-amount--custom {
    font-size: 2rem;
    padding-top: 18px;
}

.section-clientes {
    padding-top: var(--space-10);
}

/* ============================================
   RECURSOS / PILARES
   ============================================ */
.recursos-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(33,150,243,0.04) 100%);
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.recurso-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.recurso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--motion-base) ease;
}

.recurso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.recurso-card:hover::before {
    transform: scaleX(1);
}

.recurso-tag {
    align-self: flex-start;
    background: rgba(33, 150, 243, 0.1);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.recurso-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.recurso-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.recurso-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

.recurso-card:hover .recurso-link {
    color: var(--color-secondary);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    background: var(--color-bg);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    list-style: none;
    transition: color var(--motion-fast) ease;
}

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

.faq-item summary:hover {
    color: var(--color-accent);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--motion-base) ease;
    color: var(--color-accent);
}

.faq-icon svg {
    width: 20px;
    height: 20px;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-more {
    margin-top: 32px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.faq-more a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.faq-more a:hover {
    color: var(--color-secondary);
}

/* ============================================
   404 / ERROR PAGE
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
    background: var(--color-white);
}

.error-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.error-subtitle {
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto var(--space-10);
    font-size: 1.05rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
}

.error-suggestions,
.error-pillars {
    margin-top: var(--space-16);
    text-align: left;
}

.error-suggestions h2,
.error-pillars h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.error-suggestions ul {
    list-style: none;
    max-width: 560px;
    margin: 0 auto;
}

.error-suggestions li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.error-suggestions li:last-child { border-bottom: none; }

.error-suggestions a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--motion-fast) ease;
}

.error-suggestions a:hover {
    color: var(--color-accent);
}

.error-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.error-pillar-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    text-decoration: none;
    transition: var(--transition);
}

.error-pillar-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.error-pillar-card h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.error-pillar-card p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   PILLAR PAGES (clusters)
   ============================================ */
.pillar-hero {
    padding: 140px 24px 80px;
    background: var(--gradient-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.pillar-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.pillar-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.pillar-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin: 16px 0 20px;
    letter-spacing: -0.02em;
}

.pillar-hero .subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 32px;
}

.pillar-hero .pillar-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 8px;
}

.pillar-section {
    padding: 80px 24px;
}

.pillar-container {
    max-width: 900px;
    margin: 0 auto;
}

.pillar-container h2 {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--color-primary);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.pillar-container h2:first-child { margin-top: 0; }

.pillar-container h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
}

.pillar-container p {
    color: var(--color-text);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.pillar-container ul,
.pillar-container ol {
    margin: 16px 0 24px 24px;
    line-height: 1.7;
    color: var(--color-text);
}

.pillar-container li {
    margin-bottom: 8px;
}

.pillar-container strong {
    color: var(--color-primary);
}

.pillar-container a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(33, 150, 243, 0.4);
    text-underline-offset: 3px;
    font-weight: 500;
}

.pillar-container a:hover {
    text-decoration-color: var(--color-accent);
}

.pillar-toc {
    background: rgba(33, 150, 243, 0.05);
    border-left: 4px solid var(--color-accent);
    padding: 24px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 32px 0;
}

.pillar-toc h2 {
    font-size: 0.95rem !important;
    margin: 0 0 14px !important;
    color: var(--color-accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.pillar-toc ol {
    margin: 0 0 0 20px;
}

.pillar-toc li { margin-bottom: 6px; }

.pillar-related-articles {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 80px 24px;
}

.pillar-related-articles h2 {
    color: var(--color-white) !important;
    text-align: center;
    margin-bottom: 16px !important;
}

.pillar-related-articles .pillar-section-sub {
    text-align: center;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto 48px;
}

.pillar-related-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pillar-related-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-related-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-accent);
}

.pillar-related-card h3 {
    color: var(--color-white) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.35;
}

.pillar-related-card p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin: 0 !important;
}

.pillar-cta {
    background: var(--gradient-brand);
    color: var(--color-white);
    padding: 60px 24px;
    text-align: center;
}

.pillar-cta h2 {
    color: var(--color-white) !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    margin: 0 0 16px !important;
}

.pillar-cta p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.pillar-cta .btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.pillar-cta .btn-secondary:hover {
    background: transparent;
    color: var(--color-white);
}

/* ============================================
   ICONOS SVG (reemplazo de emojis)
   ============================================ */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
}

.icon--sm {
    width: 0.95em;
    height: 0.95em;
}

.servicio-icon .icon,
.contacto-icon .icon,
.cronograma-marker-icon .icon {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.contacto-icon .icon { width: 22px; height: 22px; }

.trust-item .icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.cronograma-content h4 .icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    margin-right: 6px;
}

/* ============================================
   PREFERS-REDUCED-MOTION (accesibilidad)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .logo-circle,
    .orbit-dot,
    .logo-glow-bg,
    .logo-image-wrap,
    .hero-badge .dot,
    .cronograma-marker,
    .whatsapp-float,
    .whatsapp-float::before,
    .navbar::before,
    .chatbot-demo::before {
        animation: none !important;
    }
}
