
       :root {
            --bg: #0B0B0E;
            --card: #121217;
            --text: #EDEDED;
            --muted: #A0A3AA;
            --primary: #00B2FF;
            --secondary: #00D084;
            --border: rgba(255, 255, 255, 0.1);
            --shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            
            --font-body: 'Inter', sans-serif;
            --font-heading: 'Space Grotesk', sans-serif;

            --radius: 12px;
            --transition: all 0.2s ease-in-out;
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        h1, h2, h3 {
            font-family: var(--font-heading);
            font-weight: 600;
            line-height: 1.2;
        }

        h1 {
            font-size: clamp(2.25rem, 5vw, 3.75rem); /* 36px to 60px */
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        h2 {
            font-size: clamp(1.75rem, 4vw, 2.5rem); /* 28px to 40px */
        }

        h3 {
            font-size: 1.25rem; /* 20px */
        }

        p {
            color: var(--muted);
            max-width: 65ch;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        a:hover {
            color: var(--secondary);
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        section {
            padding: 6rem 0;
        }

        /*-----------------------------------*/
        /* #UTILITIES
        /*-----------------------------------*/
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 1.75rem;
            border-radius: 8px;
            font-weight: 600;
            border: 2px solid transparent;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .btn--primary {
            background: var(--gradient);
            color: #FFFFFF;
        }

        .btn--primary:hover {
            transform: translateY(-2px);
            box-shadow: 0px 4px 15px rgba(0, 194, 153, 0.2);
        }

        .btn--outline {
            background-color: transparent;
            border-image: var(--gradient) 1;
            color: var(--text);
        }

        .btn--outline:hover {
            background-color: rgba(255, 255, 255, 0.05);
            transform: translateY(-2px);
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }
        
        .section-header p {
             margin: 0.5rem auto 0;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }
        
        /* Focus visible for accessibility */
        :focus-visible {
            outline: 3px solid var(--primary);
            outline-offset: 3px;
            border-radius: 4px;
        }
        nav :focus-visible, .btn:focus-visible {
            outline-offset: 5px;
        }

        /*-----------------------------------*/
        /* #HEADER & NAVIGATION
        /*-----------------------------------*/
        .header {
            position: sticky;
            top: 0;
            width: 100%;
            padding: 1.5rem 0;
            background-color: rgba(11, 11, 14, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1000;
            border-bottom: 1px solid var(--border);
        }
        
        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .LOGOAGILITY {
            width: 150px;
            mix-blend-mode: screen;
        }
        
        .nav-links {
            display: none;
            list-style: none;
        }
        
        .nav-links a {
            color: var(--text);
            padding: 0.5rem 1rem;
            font-weight: 600;
        }
        
        .nav-links a:hover {
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }

        .hamburger {
            display: block;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
        }

        .hamburger .line {
            display: block;
            width: 25px;
            height: 3px;
            background-color: var(--text);
            margin: 5px 0;
            transition: var(--transition);
        }
        
        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 2rem;
        }
        
        .mobile-nav.active {
            display: flex;
        }
        
        .mobile-nav .nav-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .mobile-nav .nav-links a {
            font-size: 1.5rem;
        }

        .close-btn {
            position: absolute;
            top: 2rem;
            right: 5%;
            background: none;
            border: none;
            cursor: pointer;
        }

        /* Desktop Navigation */
        @media (min-width: 768px) {
            .hamburger, .close-btn {
                display: none;
            }
            
            .nav-links {
                display: flex;
                gap: 1rem;
            }
            .header .btn {
                display: inline-block;
            }
        }
        @media (max-width: 767px) {
            .header .btn {
                display: none;
            }
        }

        /*-----------------------------------*/
        /* #HERO
        /*-----------------------------------*/
        #inicio {
            padding-top: 8rem;
            text-align: center;
        }
        
        #inicio .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
        }

        .hero-content {
            max-width: 750px;
        }
        
        .hero-content h1 {
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }
        
        .hero-content p {
            margin: 1rem auto 2rem;
            font-size: 1.125rem;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }
        
        .hero-illustration {
            width: 100%;
            max-width: 500px;
            margin: 2rem 0;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .hero-illustration img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .trusted-by {
            text-align: center;
            margin-top: 6rem;
        }
        
        .trusted-by p {
            margin-bottom: 2rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-size: 0.9rem;
        }
        
        .logos-strip {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            filter: grayscale(1) opacity(0.6);
        }

        .logos-strip svg {
            height: 30px;
        }

        @media (min-width: 992px) {
            #inicio {
                text-align: left;
                padding-top: 10rem;
                padding-bottom: 8rem;
            }
            #inicio .container {
                flex-direction: row;
                justify-content: space-between;
                gap: 4rem;
            }
            .hero-content {
                width: 55%;
            }
            .hero-buttons {
                justify-content: flex-start;
            }
            .hero-illustration {
                width: 45%;
                max-width: none;
            }
        }
        
        /*-----------------------------------*/
        /* #SECTIONS (FLUJO, SOLUCIONES, INSIGHTS)
        /*-----------------------------------*/
        .grid {
            display: grid;
            gap: 1.5rem;
        }
        
        .card {
            background-color: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            transition: var(--transition);
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
            border-color: rgba(0, 178, 255, 0.3);
        }
        
        .card .icon {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            margin-bottom: 1.5rem;
        }

        .card .icon svg {
            width: 24px;
            height: 24px;
            stroke: var(--primary);
        }
        
        .card h3 {
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        @media (min-width: 576px) {
            #flujo .grid { grid-template-columns: repeat(2, 1fr); }
            #soluciones .grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (min-width: 992px) {
            #flujo .grid { grid-template-columns: repeat(4, 1fr); }
            #soluciones .grid { grid-template-columns: repeat(3, 1fr); }
            #insights .grid { grid-template-columns: repeat(3, 1fr); }
        }

        /* Insights Card Specifics */
        #insights .card {
            padding: 0;
            overflow: hidden;
        }
        
        #insights .card-image {
            height: 200px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #insights .card-image svg {
            width: 60px;
            height: 60px;
            stroke: var(--bg);
            opacity: 0.8;
        }
        
        #insights .card-content {
            padding: 1.5rem;
        }

        #insights .card-content a {
            color: var(--text);
            font-weight: 600;
        }

        /*-----------------------------------*/
        /* #PLANES (PRICING)
        /*-----------------------------------*/
        .toggle-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin-bottom: 3rem;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--card);
            border: 1px solid var(--border);
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 3px;
            background-color: var(--primary);
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--card);
        }
        
        input:checked + .slider:before {
            background-color: var(--secondary);
            transform: translateX(26px);
        }

        .discount {
            background: var(--gradient);
            color: var(--bg);
            padding: 0.2rem 0.6rem;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 12px;
        }
        
        .pricing-card {
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .pricing-card--featured {
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        
        .pricing-card--featured::before {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            z-index: -1;
            margin: -2px;
            border-radius: inherit;
            background: var(--gradient);
        }
        
        .pricing-card h3 {
            font-size: 1.5rem;
        }
        
        .price {
            font-size: 3rem;
            font-weight: 800;
            margin: 1.5rem 0;
        }
        
        .price span {
            font-size: 1rem;
            color: var(--muted);
            font-weight: 400;
        }

        .features-list {
            list-style: none;
            margin: 2rem 0;
            text-align: left;
        }

        .features-list li {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--muted);
        }
        
        .features-list svg {
            width: 20px;
            height: 20px;
            stroke: var(--secondary);
            flex-shrink: 0;
        }

        .pricing-card .btn {
            width: 100%;
        }

        /* Make all text inside the featured (Basic) pricing card white
           so it is readable over the lighter gradient/background. */
        .pricing-card--featured,
        .pricing-card--featured h3,
        .pricing-card--featured .price,
        .pricing-card--featured .price span,
        .pricing-card--featured p,
        .pricing-card--featured .features-list,
        .pricing-card--featured .features-list li,
        .pricing-card--featured .features-list li svg,
        .pricing-card--featured .btn,
        .pricing-card--featured a {
            color: #FFFFFF !important;
        }

        /* Keep the feature icon stroke color (accent) if desired —
           override only if you want icons to remain the same accent. */
        .pricing-card--featured .features-list li svg {
            stroke: var(--secondary);
            fill: none;
        }

        /* Make the primary button inside the featured (Basic) card a
           single, solid but lighter color so it stands out more over
           the gradient background without appearing to "fade". */
        .pricing-card--featured .btn--primary {
            /* lighter midpoint (approx): #33CDCD — brighter than #00C1C1 */
            background: #33CDCD !important;
            background-image: none !important;
            color: #FFFFFF !important;
            border: 2px solid rgba(255, 255, 255, 0.10);
            box-shadow: 0px 8px 22px rgba(51, 205, 205, 0.20);
            transform: none;
        }

        .pricing-card--featured .btn--primary:hover {
            transform: translateY(-2px);
            /* slightly darker on hover for affordance */
            background: #28BEBE !important;
            box-shadow: 0px 10px 28px rgba(40, 190, 190, 0.28);
        }

        /* ----------------------
           Modal (Comenzar) styles
           ---------------------- */
        .modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .modal[aria-hidden="false"] {
            display: flex;
        }

        .modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.6);
        }

        .modal-panel {
            position: relative;
            width: 92%;
            max-width: 640px;
            margin: 1rem;
            background: var(--card);
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.6);
            z-index: 10;
            padding: 1.25rem 1.5rem 1.5rem;
            border: 1px solid rgba(255,255,255,0.06);
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: var(--text);
            cursor: pointer;
            line-height: 1;
            padding: 6px;
        }

        .modal-content h3 {
            margin: 0 0 0.25rem 0;
            color: var(--text);
        }

        .modal-content p {
            color: var(--muted);
            margin-bottom: 1rem;
        }

        .form-row {
            margin-bottom: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .form-row label {
            font-size: 0.9rem;
            color: var(--text);
            font-weight: 600;
        }

        .form-row input,
        .form-row select,
        .form-row textarea {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            color: var(--text);
            padding: 0.6rem 0.75rem;
            border-radius: 8px;
            font-size: 0.95rem;
        }

        /* Default (closed) select: dark background matching modal and muted text */
        .modal-panel .form-row select {
            background: rgba(255,255,255,0.02); /* dark-looking control */
            border-color: rgba(255,255,255,0.06);
            color: var(--muted);
            appearance: none; /* hide native arrow on some browsers */
            -webkit-appearance: none;
            -moz-appearance: none;
            padding-right: 2.25rem; /* space for custom arrow */
            position: relative;
        }

        /* Add a small custom arrow on the right of the select */
        .modal-panel .form-row select::-ms-expand { display: none; }
        .modal-panel .form-row { position: relative; }
        .modal-panel .form-row::after {
            content: '\25BC';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--muted);
            font-size: 0.7rem;
        }

        /* When the select is focused/open we switch to white bg and black text
           so the dropdown options (where supported) appear with white bg and
           black text. We toggle using :focus and a helper class applied by JS. */
        .modal-panel .form-row select:focus,
        .modal-panel .form-row select.open {
            background: #ffffff;
            border-color: rgba(0,0,0,0.12);
            color: #000 !important;
        }

        /* Options: try to force black text on white background (may be
           ignored by some browsers but works in many). */
        .modal-panel .form-row select option {
            color: #000;
            background: #fff;
        }

        .form-row input::placeholder,
        .form-row textarea::placeholder {
            color: rgba(255,255,255,0.45);
        }

        .modal-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.75rem;
            justify-content: flex-end;
        }

        @media (min-width: 576px) {
            .form-row {
                flex-direction: row;
                align-items: center;
            }
            .form-row label { width: 32%; }
            .form-row input, .form-row select, .form-row textarea { width: 68%; }
        }
        
        @media (min-width: 992px) {
            #planes .grid {
                grid-template-columns: repeat(3, 1fr);
                align-items: center;
            }
            .pricing-card--featured {
                transform: scale(1.05);
            }
        }
        
        /*-----------------------------------*/
        /* #CTA
        /*-----------------------------------*/
        #empezar {
            background-color: var(--card);
        }
        
        #empezar .container {
            text-align: center;
        }
        
        #empezar h2 {
            margin-bottom: 2rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }

        /*-----------------------------------*/
        /* #FOOTER
        /*-----------------------------------*/
        .footer {
            padding: 4rem 0 2rem;
            border-top: 1px solid var(--border);
        }
        
        .footer-grid {
            display: grid;
            gap: 3rem;
            margin-bottom: 4rem;
        }

        /* Center logo and text in the first footer column so the logo
           is visually aligned with the description below it. */
        .footer .footer-col:first-child {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .footer-col h4 {
            margin-bottom: 1rem;
            font-family: var(--font-heading);
            color: var(--text);
        }

        /* Footer logo sizing: make the logo proportionate to footer text */
        .logo {
            width: 110px; /* reduced size to match footer text scale */
            height: auto;
            display: block;
            margin-bottom: 1rem; /* keep spacing consistent */
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--muted);
        }
        
        .footer-links a:hover {
            color: var(--primary);
        }
        
        .socials {
            display: flex;
            gap: 1rem;
        }
        
        .socials a svg {
            width: 24px;
            height: 24px;
            fill: var(--muted);
            transition: var(--transition);
        }
        
        .socials a:hover svg {
            fill: var(--primary);
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            color: var(--muted);
            font-size: 0.9rem;
            /* Center the footer bottom content horizontally and allow
               it to wrap on small screens. Flexbox provides robust
               centering for mixed inline content (text + links). */
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            text-align: center; /* fallback for very old browsers */
        }
        
        @media (min-width: 576px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (min-width: 992px) {
            .footer-grid {
                grid-template-columns: 2fr 1fr 1fr 1fr;
            }
        }
