/* ================================================================
   RUTY — Advanced Effects
   Todos los efectos extra. Se carga DESPUÉS del <style> inline
   para sobrescribir lo necesario.
   ================================================================ */

/* ============ CURSOR PERSONALIZADO ============ */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.25s;
    mix-blend-mode: screen;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.8);
}
.custom-cursor.ring {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--purple-light);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}
.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(245, 166, 35, 0.2);
    border: 1.5px solid var(--gold);
}
@media (max-width: 980px) {
    .custom-cursor { display: none; }
}

/* ============ PARTÍCULAS FLOTANTES EN HERO ============ */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--purple-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 12s linear infinite;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.6);
}
.particle.gold {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
}
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* ============ TIPEO ANIMADO EN HERO ============ */
.typing-text {
    display: inline-block;
    position: relative;
    color: var(--gold-light);
    font-weight: 700;
}
.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--purple-light);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ============ MOCKUP HERO — TILT 3D ============ */
.hero-mockup {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.mockup-screenshot img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-mockup:hover .mockup-screenshot img {
    transform: scale(1.04);
}

/* ============ GLOW BORDER en cards ============ */
.feature-card, .pf-item, .benefit-item {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg,
        rgba(108, 92, 231, 0) 0%,
        rgba(108, 92, 231, 0.6) 50%,
        rgba(245, 166, 35, 0) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.feature-card:hover::before {
    opacity: 1;
}

/* Spotlight que sigue al mouse */
.feature-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    z-index: 0;
}
.feature-card:hover::after {
    opacity: 1;
}
.feature-card > * {
    position: relative;
    z-index: 1;
}

/* ============ BOTONES — RIPPLE + SHINE ============ */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}
.btn:hover::before {
    left: 100%;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}
@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============ NÚMEROS — CONTEO ANIMADO ============ */
.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}
.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.5);
}

/* ============ HERO BADGE — PULSO ============ */
.hero-badge .dot {
    position: relative;
}
.hero-badge .dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ============ MAGNETIC LINKS ============ */
.nav-links a:not(.btn) {
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-links a:not(.btn):hover::after {
    width: 80%;
}

/* ============ FLOATING CARDS — MOVIMIENTO ============ */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}
.floating-card-2 {
    animation-delay: -2s;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============ SECCIONES — REVELADO MEJORADO ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: blur(4px);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.reveal.from-left {
    transform: translateX(-50px);
}
.reveal.from-right {
    transform: translateX(50px);
}
.reveal.from-left.visible,
.reveal.from-right.visible {
    transform: translateX(0);
}

/* Stagger para grids */
.features-grid .reveal { transition-delay: calc(var(--i, 0) * 0.08s); }
.benefits-grid .reveal { transition-delay: calc(var(--i, 0) * 0.04s); }

/* ============ BENEFIT ITEMS — HOVER 3D ============ */
.benefit-item {
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease,
        background 0.4s ease;
    transform-style: preserve-3d;
}
.benefit-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.25);
}
.benefit-item .bi-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}
.benefit-item:hover .bi-icon {
    transform: scale(1.3) rotate(-8deg);
}

/* ============ PLATFORM ITEMS — SLIDE ON HOVER ============ */
.pf-item {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-item:hover {
    transform: translateX(8px);
}
.pf-item:hover .pf-num {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.5);
}
.pf-num {
    transition: color 0.3s, text-shadow 0.3s;
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.6);
}

/* ============ BOTÓN BACK-TO-TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.5);
}
.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ============ LOGO — HOVER WIGGLE ============ */
nav .logo:hover img.logo-icon {
    animation: wiggle 0.5s ease;
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

/* ============ INGRESO BUTTON — PULSO SUTIL ============ */
.btn-login {
    position: relative;
}
.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 1.5px solid var(--purple);
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
    pointer-events: none;
}
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ============ TILT EN MOCKUP HERO ============ */
.hero-visual {
    perspective: 1500px;
}

/* ============ SECTION TITLE — UNDERLINE ANIMATION ============ */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title.reveal.visible::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    border-radius: 2px;
    animation: drawLine 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    width: 0;
}
@keyframes drawLine {
    to { width: 60px; }
}

/* ============ NOISE OVERLAY EN MOCKUPS ============ */
.mockup-screenshot,
.phone-screen.phone-screenshot,
.wm-screenshot {
    position: relative;
}
.mockup-screenshot::before,
.wm-screenshot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(108, 92, 231, 0.05) 0%,
        transparent 50%,
        rgba(245, 166, 35, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* ============ ACENTO EN HIGHLIGHT ============ */
.highlight {
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(90deg,
        rgba(245, 166, 35, 0.3),
        rgba(108, 92, 231, 0.3));
    z-index: -1;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}
.hero-content.visible .highlight::after {
    transform: scaleX(1);
}

/* ============ MOBILE — DESACTIVAR EFECTOS PESADOS ============ */
@media (max-width: 768px) {
    .hero-particles,
    .custom-cursor,
    .back-to-top {
        display: none;
    }
    .reveal {
        filter: none;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ============ FAB FLOTANTE WHATSAPP ============ */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: fabIn 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 1.5s forwards;
}
@keyframes fabIn {
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}
.whatsapp-fab svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}
.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: fabPulse 2.5s ease-out infinite;
}
@keyframes fabPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
.whatsapp-fab:hover {
    background: #1ebe5a;
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Tooltip del FAB */
.whatsapp-fab .tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--dark-card);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
}
.whatsapp-fab .tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--dark-card);
}
.whatsapp-fab:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Ocultar FAB en mobile pequeño para no tapar otros elementos */
@media (max-width: 480px) {
    .whatsapp-fab {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-fab .tooltip {
        display: none;
    }
}

/* ================================================================
   FOOTER — Layout robusto de íconos + textos (overrides inline)
   ================================================================ */
.footer-col.footer-contact a,
.footer-col a:has(.ico) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.5;
    padding: 6px 0 !important;
}
.footer-col a svg.ico {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.footer-col a:hover svg.ico {
    opacity: 1;
    transform: scale(1.2);
    color: var(--purple-light);
}
.footer-col a span {
    flex: 1;
    min-width: 0;
}

/* ============ FOOTER — REDES SOCIALES ============ */
.footer-socials a {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray);
    background: rgba(108, 92, 231, 0.08);
    border-radius: 50% !important;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(108, 92, 231, 0.15);
    font-size: 0 !important;
    padding: 0 !important;
}
.footer-socials a svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}
.footer-socials a:hover {
    color: var(--white);
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}
.footer-socials a:hover svg {
    transform: scale(1.1);
}
.footer-socials a[href*="wa.me"]:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
.footer-socials a[href*="linkedin"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}
.footer-socials a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
}

/* ================================================================
   OPTIMIZACIONES MOBILE — 768px y abajo
   ================================================================ */
@media (max-width: 768px) {
    /* Tipografía más legible */
    body { font-size: 15px; }

    /* Hero: stack vertical limpio */
    .hero { padding-top: 100px !important; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem) !important; }
    .hero p { font-size: 0.95rem !important; }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px !important;
    }

    /* Stats bar — vertical en mobile */
    .stats-bar .container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* Features grid — 1 columna */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Platform — stack */
    .platform .container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .platform-visual {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Benefits grid — 2 columnas en lugar de 4+ */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    /* CTA box */
    .cta-box {
        padding: 32px 20px !important;
    }
    .cta-box h2 {
        font-size: 1.5rem !important;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    }

    /* Nav — botón Ingreso visible pero compacto */
    .nav-links {
        gap: 12px !important;
    }
    .btn-login {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
    }
    .btn-login svg {
        width: 14px;
        height: 14px;
    }

    /* Footer */
    footer .container {
        padding: 0 20px;
    }
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }

    /* Logo nav un poco más chico en mobile */
    nav img.logo-icon {
        height: 44px !important;
    }
    nav.scrolled img.logo-icon {
        height: 38px !important;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .container {
        padding: 0 16px;
    }
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }
    nav .container {
        padding: 0 16px;
    }
    /* Hamburger menu visible */
    .nav-links {
        gap: 8px !important;
    }
    .nav-links > a:not(.btn) {
        display: none;
    }
    .btn-login, .btn-primary {
        padding: 8px 14px !important;
        font-size: 0.78rem !important;
    }
}

/* Botón "Comenzar" oculto en mobile MUY chico para dejar espacio al "Ingreso" */
@media (max-width: 380px) {
    .nav-links .btn-primary {
        display: none;
    }
}

/* ================================================================
   ACCESIBILIDAD Y SEO
   ================================================================ */
/* Focus visible para keyboard navigation (SEO + a11y) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link para screen readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--purple);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 99999;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* Reducir layout shift al cargar imágenes (Core Web Vitals) */
img {
    max-width: 100%;
    height: auto;
}

/* Preferencias del sistema */
@media (prefers-reduced-data: reduce) {
    .hero-particles,
    .floating-card { display: none; }
}

/* ================================================================
   NUEVAS SECCIONES — Bot IA, Dashcams, Paquetes
   ================================================================ */

/* Tag de sección (eyebrow) */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 999px;
    font-family: 'JetBrains Mono', 'Sora', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple-light);
    margin-bottom: 20px;
    font-weight: 500;
}
.section-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
}
.section-tag .dot-red {
    background: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Helpers de color */
.text-gold {
    background: linear-gradient(135deg, var(--gold), #FDCB6E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-purple {
    background: linear-gradient(135deg, var(--purple-light), #A89DFC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 50px;
}
.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.section-head .section-intro {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* ============ SECCIÓN BOT IA ============ */
.ai-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark) 0%, #14112B 100%);
    position: relative;
    overflow: hidden;
}
.ai-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.ai-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ai-content .section-title {
    margin-bottom: 20px;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}
.ai-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ai-feat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
}
.ai-feat-icon svg { width: 22px; height: 22px; }
.ai-feat h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}
.ai-feat p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0;
}

/* Chat mockup */
.chat-mock {
    background: linear-gradient(160deg, #1A172E 0%, #3A2A9E 100%);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(58, 42, 158, 0.4);
    position: relative;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}
.chat-mock::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.3), transparent 60%);
    border-radius: 50%;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #FDCB6E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}
.chat-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}
.chat-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.chat-status .live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.chat-msg {
    max-width: 88%;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: chatIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.chat-msg:nth-child(1) { animation-delay: 0.2s; }
.chat-msg:nth-child(2) { animation-delay: 0.5s; }
.chat-msg:nth-child(3) { animation-delay: 0.9s; }
.chat-msg:nth-child(4) { animation-delay: 1.2s; }
@keyframes chatIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 16px;
    border-radius: 16px 16px 4px 16px;
}
.chat-msg.bot {
    background: linear-gradient(135deg, var(--purple), #5B47E0);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 8px 22px rgba(108, 92, 231, 0.3);
}
.chat-msg.bot strong {
    color: #FDCB6E;
}
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
}

/* Banner 24/7 */
.ai-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, #FDCB6E 100%);
    color: var(--dark);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 20px 50px rgba(245, 166, 35, 0.25);
}
.ai-banner-num {
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.ai-banner p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
    color: #1A172E;
}

/* ============ SECCIÓN DASHCAMS ============ */
.dashcam-section {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.dashcam-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.dashcam-hero {
    background: linear-gradient(135deg, #0D0B1A 0%, #1A172E 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.rec-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #EF4444;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: recBlink 1.2s ease-in-out infinite;
}
@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.video-mock {
    background: #000;
    border-radius: 14px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}
.video-mock::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 40px),
        linear-gradient(135deg, #1a4a7a 0%, #2a5a8a 50%, #1a4a7a 100%);
}
.alert-box {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid var(--gold);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-box svg { color: var(--gold); }
.video-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
}
.video-tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.video-tag.alert {
    background: #EF4444;
    animation: alertPulse 1.5s ease-in-out infinite;
}
@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.dashcam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.dashcam-feat {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.dashcam-feat:hover {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
}
.dashcam-feat h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 600;
}
.dashcam-feat p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin: 0;
}

/* ============ SECCIÓN PAQUETES ============ */
.packages-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark) 0%, #0A0818 100%);
    position: relative;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.pkg-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 18px;
    padding: 28px 22px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.pkg-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
}
.pkg-featured {
    background: linear-gradient(180deg, var(--purple) 0%, #4A38C5 100%);
    border-color: transparent;
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.4);
}
.pkg-featured:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 30px 80px rgba(108, 92, 231, 0.5);
}
.pkg-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark);
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}
.pkg-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.pkg-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 18px;
    min-height: 60px;
}
.pkg-featured .pkg-desc { color: rgba(255, 255, 255, 0.85); }

.pkg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}
.pkg-featured .pkg-list { border-top-color: rgba(255, 255, 255, 0.15); }
.pkg-list li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pkg-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}
.pkg-featured .pkg-list li::before {
    color: #FDCB6E;
}

/* ================================================================
   RESPONSIVE — Nuevas secciones
   ================================================================ */
@media (max-width: 980px) {
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .ai-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 28px;
    }
    .ai-banner-num { font-size: 3.5rem; }
    .dashcam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .pkg-featured {
        transform: none;
    }
    .pkg-featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .ai-section,
    .dashcam-section,
    .packages-section { padding: 70px 0; }

    .dashcam-hero { padding: 28px 20px; }
    .dashcam-grid {
        grid-template-columns: 1fr;
    }
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .chat-mock { padding: 22px 18px; }
    .ai-banner-num { font-size: 2.8rem; }
    .ai-banner p { font-size: 0.9rem; }
    .section-head { margin-bottom: 40px; }
}

/* ================================================================
   ARREGLO: Stats bar para los nuevos valores con texto
   ================================================================ */
.stat-item .stat-number {
    /* Acomodar mejor textos largos como "App + Web" */
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    white-space: nowrap;
}
@media (max-width: 768px) {
    .stat-item .stat-number {
        font-size: 1.8rem;
    }
}
