:root {
            --primary-color: #1B145B;
            --secondary-color: #241B76;
            --accent-color: #30DBDB;
            --light-bg: #f8f9fa;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #333;
            overflow-x: hidden;
        }

        /* Navbar */
        .navbar {
            background-color: var(--primary-color) !important;
            border-bottom: 2px solid var(--accent-color);
        }
        .navbar-brand, .nav-link {
            color: #ffffff !important;
            transition: color 0.3s ease;
        }
        .nav-link:hover {
            color: var(--accent-color) !important;
        }

        /* Hero Carousel Section */
        .carousel-item {
            height: 650px;
            background-color: var(--primary-color);
            position: relative;
            overflow: hidden;
        }
        
        .carousel-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Overlay de gradiente oscuro para asegurar que el texto sea 100% legible */
            background: linear-gradient(180deg, rgba(129, 161, 247, 0.5) 0%, rgba(137, 160, 244, 0.5) 100%);
            z-index: 2;
        }

        .carousel-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        /* Estructura limpia y flexible para asegurar la visibilidad del texto */
        .carousel-container-custom {
            position: relative;
            z-index: 3;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .carousel-caption-custom {
            color: #ffffff;
            text-align: left;
            max-width: 800px;
            padding: 20px;
        }

        /* Personalización de Controles del Carrusel */
        .carousel-indicators [data-bs-target] {
            background-color: var(--accent-color);
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            background-color: rgba(36, 27, 118, 0.8);
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            padding: 20px;
            background-size: 50%;
        }

        /* Botones personalizados */
        .btn-accent {
            background-color: var(--accent-color);
            color: var(--primary-color) !important;
            font-weight: 600;
            border: 2px solid var(--accent-color);
            transition: all 0.2s ease;
        }
        .btn-accent:hover {
            background-color: transparent;
            color: var(--accent-color) !important;
        }
        .btn-outline-accent {
            background-color: transparent;
            color: var(--accent-color) !important;
            border: 2px solid var(--accent-color);
            font-weight: 600;
            transition: all 0.3s ease;
        }
        .btn-outline-accent:hover {
            background-color: var(--accent-color);
            color: var(--primary-color) !important;
        }

        /* Secciones */
        .section-padding {
            padding: 80px 0;
        }
        .section-title {
            color: var(--primary-color);
            font-weight: 700;
            margin-bottom: 40px;
            position: relative;
            padding-bottom: 15px;
        }
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }

        /* Tarjetas de características y ventajas */
        .custom-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: #ffffff;
            height: 100%;
        }
        .custom-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(27, 20, 91, 0.1);
        }
        .icon-box {
            width: 60px;
            height: 60px;
            background-color: rgba(48, 219, 219, 0.1);
            color: var(--secondary-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 20px;
        }

        /* Sección Optimización (Fondo Oscuro) */
        .bg-dark-custom {
            background-color: var(--primary-color);
            color: white;
        }
        .bg-dark-custom .section-title {
            color: white;
        }

        /* Perfiles de usuario badges */
        .profile-badge {
            background-color: rgba(255, 255, 255, 0.15);
            border: 1px solid var(--accent-color);
            color: white;
            padding: 8px 16px;
            border-radius: 50px;
            display: inline-block;
            margin: 5px;
            font-weight: 500;
            backdrop-filter: blur(5px);
        }

        /* Footer */
        footer {
            background-color: #0f0a36;
            color: #a5a1c7;
            padding: 30px 0;
            border-top: 1px solid rgba(48, 219, 219, 0.2);
        }

        /* Estilos de la Cadena del Ecosistema */
        .ecosystem-chain {
            position: relative;
        }
        .ecosystem-col {
            position: relative;
        }
        .ecosystem-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            background: #ffffff;
            transition: all 0.3s ease;
            height: 100%;
            z-index: 2;
            position: relative;
        }
        .ecosystem-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(48, 219, 219, 0.15);
            border-color: var(--accent-color) !important;
        }
        .ecosystem-card svg {
            border-top-left-radius: 15px;
            border-top-right-radius: 15px;
            height: 130px;
            object-fit: cover;
        }
        /* Conectores tipo flecha en pantallas grandes */
        @media (min-width: 992px) {
            .ecosystem-col::after {
                content: '\F285'; /* Icono bootstrap-icons arrow-right */
                font-family: 'bootstrap-icons';
                position: absolute;
                top: 40%;
                right: -25px;
                transform: translateY(-50%);
                font-size: 2rem;
                color: var(--accent-color);
                z-index: 10;
                opacity: 0.8;
                animation: pulseArrowHorizontal 2s infinite;
            }
            .ecosystem-col:last-child::after {
                display: none;
            }
        }
        /* Conectores tipo flecha en móviles/tablets */
        @media (max-width: 991.98px) {
            .ecosystem-col {
                margin-bottom: 40px;
            }
            .ecosystem-col::after {
                content: '\F282'; /* Icono bootstrap-icons arrow-down */
                font-family: 'bootstrap-icons';
                position: absolute;
                bottom: -35px;
                left: 50%;
                transform: translateX(-50%);
                font-size: 2rem;
                color: var(--accent-color);
                z-index: 10;
                opacity: 0.8;
                animation: pulseArrowVertical 2s infinite;
            }
            .ecosystem-col:last-child::after {
                display: none;
            }
        }
        @keyframes pulseArrowHorizontal {
            0%, 100% { transform: translateY(-50%) translateX(0); }
            50% { transform: translateY(-50%) translateX(6px); }
        }
        @keyframes pulseArrowVertical {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(6px); }
        }