/* Inter, subconjunto latino, fuente variable: una sola peticion
           cubre de 100 a 900. swap evita el texto invisible mientras carga. */
        @font-face {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 100 900;
            font-display: swap;
            src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
        }

        :root {
            --bg: #050507;
            --surface: rgba(255, 255, 255, 0.03);
            --border: rgba(255, 255, 255, 0.08);
            --text: #E0E0E0;
            --primary: #6366F1;
            --accent: #8B5CF6;
        }

        /* Base layout */
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            left: 50%;
            top: 60%;
            width: 120vmin;
            height: 120vmin;
            transform: translate(-50%, -50%);
            background: radial-gradient(circle at center,
                    transparent 30%,
                    rgba(79, 70, 229, 0.1) 50%,
                    rgba(139, 92, 246, 0.06) 65%,
                    transparent 80%);
            pointer-events: none;
            z-index: 0;
        }

        .section-block {
            padding: 4rem 0;
        }

        @media (min-width: 768px) {
            .section-block { padding: 6rem 0; }
        }

        .section-header {
            max-width: 720px;
            margin: 0 auto 3rem;
            text-align: center;
        }

        /* Components */
        .glass-card {
            background: rgba(20, 20, 28, 0.85);
            border: 1px solid var(--border);
            border-radius: 1.5rem;
            transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        .glass-card:hover {
            background: rgba(28, 28, 40, 0.9);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
        }

        /* FAQ: acordeon nativo, sin JavaScript. El texto vive en el DOM
           desde el primer render, asi que Google lo indexa aunque este cerrado. */
        .faq-item {
            background: rgba(20, 20, 28, 0.85);
            border: 1px solid var(--border);
            border-radius: 1rem;
            transition: border-color 0.3s ease, background 0.3s ease;
        }
        .faq-item:hover,
        .faq-item[open] {
            border-color: rgba(99, 102, 241, 0.3);
            background: rgba(24, 24, 34, 0.9);
        }
        .faq-item summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            list-style: none;
            font-weight: 600;
            color: #fff;
        }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: -2px;
            border-radius: 1rem;
        }
        .faq-chevron {
            flex-shrink: 0;
            width: 1.25rem;
            height: 1.25rem;
            color: #818CF8;
            transition: transform 0.25s ease;
        }
        .faq-item[open] .faq-chevron { transform: rotate(180deg); }
        .faq-answer {
            padding: 0 1.5rem 1.35rem;
            color: #A1A1AA;
            line-height: 1.7;
        }

        .cta-button {
            background: linear-gradient(90deg, #4F46E5, #3B82F6);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(79, 70, 229, 0.35);
        }
        .cta-button::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: 0.5s;
        }
        .cta-button:hover::before { left: 100%; }
        .cta-button:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(79, 70, 229, 0.55); }

        .sparkle-button {
            background: linear-gradient(135deg, #8B5CF6, #EC4899);
            color: white;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        .sparkle-button:hover { filter: brightness(1.08); box-shadow: 0 0 24px rgba(236, 72, 153, 0.5); }

        .hero-gradient-text {
            background: linear-gradient(135deg, #E0E7FF 0%, #818CF8 50%, #4F46E5 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .accent-gradient-text { background: linear-gradient(135deg, #34D399 0%, #10B981 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
        .danger-gradient-text { background: linear-gradient(135deg, #F87171 0%, #EF4444 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

        .brand-mark {
            width: 40px;
            height: 40px;
            border-radius: 1rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
        }

        .brand-icon {
            width: 26px;
            height: 26px;
            color: white;
        }

        /* Chat typing indicator */
        .dot-flashing { position: relative; width: 6px; height: 6px; border-radius: 5px; background-color: #fff; animation: dot-flashing 1s infinite linear alternate; animation-delay: 0.5s; }
        .dot-flashing::before, .dot-flashing::after { content: ""; display: inline-block; position: absolute; top: 0; width: 6px; height: 6px; border-radius: 5px; background-color: #fff; }
        .dot-flashing::before { left: -10px; animation: dot-flashing 1s infinite alternate; animation-delay: 0s; }
        .dot-flashing::after { left: 10px; animation: dot-flashing 1s infinite alternate; animation-delay: 1s; }
        @keyframes dot-flashing { 0% { background-color: #fff; } 50%, 100% { background-color: rgba(255, 255, 255, 0.25); } }

        /* Flip cards */
        .flip-card { perspective: 1000px; height: 320px; }
        .flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
        .flip-card:focus-within .flip-card-inner,
        .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
        .flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
        .flip-card-front { background: rgba(20, 20, 25, 0.9); border: 1px solid rgba(255, 255, 255, 0.05); }
        .flip-card-back { transform: rotateY(180deg); }
        .flip-card-back-speed { background: linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(6, 95, 70, 0.1)); border: 1px solid rgba(74, 222, 128, 0.35); }
        .flip-card-back-filter { background: linear-gradient(145deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.1)); border: 1px solid rgba(99, 102, 241, 0.35); }
        .flip-card-back-automation { background: linear-gradient(145deg, rgba(96, 165, 250, 0.2), rgba(30, 64, 175, 0.1)); border: 1px solid rgba(147, 197, 253, 0.35); }

        /* Icon shells */
        .icon-4d-front, .icon-4d-back { width: 64px; height: 64px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
        .icon-4d-front { background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 16px rgba(255, 68, 68, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.12); }
        .icon-4d-back { box-shadow: 0 0 28px rgba(99, 102, 241, 0.45), inset 0 0 14px rgba(255, 255, 255, 0.45); }
        .icon-4d-back-green { background: linear-gradient(135deg, #10B981, #34D399); }
        .icon-4d-back-indigo { background: linear-gradient(135deg, #6366F1, #818CF8); }
        .icon-4d-back-blue { background: linear-gradient(135deg, #3B82F6, #60A5FA); }

        /* Chat floating dot */
        .chat-float { animation: float 3s ease-in-out infinite; }
        @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }

        /* Range slider */
        input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; width: 100%; }
        input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 18px; width: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; margin-top: -7px; box-shadow: 0 0 10px rgba(99, 102, 241, 0.45); }
        input[type=range]::-webkit-slider-runnable-track { height: 4px; cursor: pointer; background: #374151; border-radius: 2px; }

        /* Utility helpers */
        .badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(99, 102, 241, 0.35); background: rgba(99, 102, 241, 0.12); color: #c7d2fe; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }

        /* Galaxy accents */
        .hero-galaxy {
            position: absolute;
            inset: -10% 0 0 0;
            pointer-events: none;
            background-image:
                radial-gradient(60% 40% at 20% 35%, rgba(124, 58, 237, 0.12), transparent 55%),
                radial-gradient(50% 30% at 70% 25%, rgba(59, 130, 246, 0.06), transparent 60%);
            mix-blend-mode: screen;
            opacity: 0.12;
        }

        .galaxy-horizon {
            position: fixed;
            left: 0;
            right: 0;
            bottom: -8vh;
            height: 68vh;
            pointer-events: none;
            z-index: -1;
            background-image:
                radial-gradient(50% 45% at 20% 30%, rgba(99, 102, 241, 0.15), transparent 55%),
                radial-gradient(60% 50% at 75% 25%, rgba(139, 92, 246, 0.08), transparent 60%),
                radial-gradient(90% 80% at 50% 80%, rgba(59, 130, 246, 0.07), transparent 70%);
            background-repeat: no-repeat;
            mix-blend-mode: screen;
            opacity: 0.1;
        }

        /* Solutions icon */
        .solution-icon {
            width: 76px;
            height: 76px;
            border-radius: 999px;
            background: radial-gradient(circle at 50% 38%, rgba(31, 41, 55, 0.95), rgba(5, 7, 11, 0.9));
            box-shadow:
                0 0 22px rgba(59, 130, 246, 0.32),
                inset 0 0 18px rgba(255, 255, 255, 0.05);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            isolation: isolate;
        }
        .solution-icon::after {
            content: "";
            position: absolute;
            inset: -12px;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 55%);
            opacity: 0.6;
            z-index: -1;
        }
        .solution-icon svg {
            width: 40px;
            height: 40px;
            stroke: #3b82f6;
            stroke-width: 2.2;
            fill: none;
        }

        /* Integrations carousel */
        .integration-marquee {
            position: relative;
            overflow: hidden;
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        }
        .integration-track {
            display: inline-flex;
            gap: 1rem;
            animation: marquee-left 36s linear infinite;
            padding: 0.35rem 0;
        }
        .integration-track:hover { animation-play-state: paused; }
        .integration-card {
            min-width: 220px;
            background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
            border: 1px solid rgba(99, 102, 241, 0.25);
            border-radius: 1rem;
            padding: 1.1rem 1.2rem;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
        }
        .integration-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.22), rgba(59, 130, 246, 0.18));
            color: #dbeafe;
            font-weight: 800;
            letter-spacing: 0.02em;
            box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.22);
        }
        .integration-logo {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.04);
            box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.06);
            padding: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .integration-logo svg {
            width: 100%;
            height: 100%;
        }
        .integration-title { color: white; font-weight: 700; font-size: 1rem; }
        .integration-copy { color: #cbd5e1; font-size: 0.9rem; line-height: 1.35; }

        @keyframes marquee-left {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }


        @media (max-width: 767px) {
            h1 { font-size: 2.25rem; line-height: 1.2; }
            h2 { font-size: 1.9rem; }
            .section-header { margin-bottom: 2.25rem; }
            .flip-card { height: auto; }
            .flip-card-inner { transform: none !important; }
            .flip-card-back, .flip-card-front { position: relative; transform: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .pulse-arrow, .chat-float, .dot-flashing,
            .dot-flashing::before, .dot-flashing::after,
            .integration-track, .hero-galaxy, .galaxy-horizon,
            body::before {
                animation: none !important;
                transition: none !important;
            }
        }
