        :root {
            --primary-color: #102C55;
            --accent-color: #0058FF;
            --text-color: #454545;
            --gray-bg: #F0F7FF;
        }

        .main_index {
            padding-top: 50px;
        }

        /* Header Flotante */
        .header {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            max-width: 1400px;
            background: white;
            border-radius: 50px;
            padding: 1px 15px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            background-color: #ffffff;
        }

      

        .cookie-banner {
            border: 1.5px solid rgba(22, 85, 255, 0.4);
            background: linear-gradient(145deg, #ffffff, #eef4ff);
            border-radius: 16px;
            padding: 10px;
            margin-bottom: 10px;
        }

          .bd_bandera {
            width: 60px;
        }

        .cookie-text p {
            margin: 0;
            font-size: 15px;
            line-height: 2;
            color: #2c3e50;
        }

        .btn-info-cookies-legend {
            color: #fff;
            background-color: #0058FF;
            border-color: #0058FF;
            padding: 8px;
            border-radius: 10px;
            text-decoration: none;
            cursor: pointer;
        }

        .btn-info-cookies-legend:hover {
            color: #FFF;
        }

        /* Logo */
        .logo {
            text-decoration: none;
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .search-container {
            max-width: 650px;
            width: 100%;
            position: relative;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--gray-bg);
            border-radius: 50px;
            padding: 8px 20px;
            gap: 10px;
            width: 100%;
        }

        .search-box i {
            color: #999;
            font-size: 18px;
        }

        .search-box input {
            border: none;
            background: transparent;
            outline: none;
            flex: 1;
            font-size: 15px;
            color: var(--text-color);
        }

        .search-box input::placeholder {
            color: #999;
        }

        /* Navegación */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 15px;
            list-style: none;
            flex-shrink: 0;
        }

        .nav-menu>li>a {
            text-decoration: none;
            color: var(--text-color);
            font-size: 15px;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 25px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-menu>li>a:hover,
        .nav-menu>li>a.active {
            color: var(--accent-color);
        }

        /* Dropdown */
        .dropdown {
            position: relative;
        }

        .dropdown>a i {
            font-size: 12px;
            transition: transform 0.3s;
        }

        .dropdown:hover>a i {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 15px);
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border-radius: 5px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
            min-width: 250px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            list-style: none;
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            top: calc(100% + 10px);
        }

        .dropdown-menu li {
            padding: 0;
        }

        .dropdown-menu a {
            display: block;
            padding: 12px 25px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s;
        }

        .dropdown-menu a:hover {
            background: var(--gray-bg);
            color: var(--accent-color);
        }

        .btn-user {
            background: #0066ff;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 10px;
            font-weight: 500;
            font-size: 15px;
            display: flex;
            align-items: center;
        }

        .btn-user:hover {
            background: #0052cc;
        }


        /* Botón Iniciar Sesión */
        .btn-login {
            background: var(--accent-color);
            color: white;
            border-radius: 50px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .btn-login:hover {
            background: #0b5ed7;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
            color: white;
        }

        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-color);
        }

        /* Search Results */
        .search-results {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            transform: translateX(-10%);
            margin-top: 20px !important;
            background: white;
            border-radius: 20px;
            width: 1200px !important;
            max-width: 95vw;
            height: 560px !important;
            overflow-y: auto;
            display: none;
            z-index: 1000;
            padding: 15px;
            border: 1px solid #f1f7ff;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        }

        .search-results.show {
            display: block;
        }

        .search-results-header {
            font-size: 14px;
            color: #999;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            font-weight: 600;
        }

        .result-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 8px;
            text-decoration: none;
            color: var(--text-color);
            transition: all 0.2s;
            border-bottom: 1px solid #eee;
        }

        /* Efecto cebra - cada segundo item será gris */
        .result-item:nth-child(even) {
            background: #fff;
            /* Gris clarito */
        }

        /* O si prefieres que el primero sea gris y el segundo blanco */
        .result-item:nth-child(odd) {
            background: #f8f9fa;
        }


        .result-item:hover {
            background: var(--gray-bg);
            transform: translateX(4px);
        }

        .result-image-container {
            width: 68px;
            height: 68px;
            border-radius: 12px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            overflow: hidden;
        }

        /* La imagen dentro del contenedor */
        .result-image {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }



        .result-icon {
            width: 68px;
            height: 68px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .result-icon i {
            color: var(--accent-color);
            font-size: 30px;

        }

        .result-content {
            flex: 1;
            min-width: 0;
        }

        .result-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-color);
        }

        .result-title em {
            font-weight: 400;
            font-style: normal;
            color: #666;
            font-size: 13px;
        }

        .result-desc {
            font-size: 13px;
            color: #999;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .badge-category {
            color: #3f3f3f !important;
			background: none !important;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 11px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .search-banner {
            position: sticky;
            top: 20px;
            padding: 10px;
        }

        .form-control:focus {
            color: var(--bs-body-color);
            background-color: #F0F7FF;
            border-color: #F0F7FF !important;
            box-shadow: none !important;
            outline: 0;
        }

        .navbar-collapse {
            text-align: center !important;
            flex-basis: 100%;
            flex-grow: 1;
            align-items: center;
        }



                .stepper-wrapper {
            margin: 30px auto;
            display: flex;
            justify-content: space-between;
            position: relative;
        }

        .stepper-item {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
        }

        .stepper-item::before {
            position: absolute;
            content: "";
            border-bottom: 2px solid #ccc;
            width: 100%;
            top: 20px;
            left: -50%;
            z-index: 2;
        }

        .stepper-item::after {
            position: absolute;
            content: "";
            border-bottom: 2px solid #ccc;
            width: 100%;
            top: 20px;
            left: 50%;
            z-index: 2;
        }

        .stepper-item .step-counter {
            position: relative;
            z-index: 5;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ccc;
            margin-bottom: 6px;
            color: white;
            font-weight: bold;
        }

        .stepper-item.active .step-counter {
            background-color: #0066ff;
        }

        .stepper-item.completed .step-counter {
            background-color: #4bb543;
        }

        .stepper-item.completed::after {
            border-bottom: 2px solid #4bb543;
        }

        .stepper-item:first-child::before {
            content: none;
        }

        .stepper-item:last-child::after {
            content: none;
        }

        .step-name {
            font-size: 14px;
            color: #666;
            text-align: center;
        }

        .stepper-item.active .step-name {
            color: #0066ff;
            font-weight: 600;
        }

        /* Ocultar pasos */
        .step-content {
            display: none;
        }

        .step-content.active {
            display: block;
        }



        @media (max-width: 1280px) {
            .search-results {
                transform: translateX(-16%);
            }
        }

        /* Mobile: Banner arriba, resultados abajo */
        @media (max-width: 991px) {
            .search-results {
                width: 90vw !important;
                height: 80vh !important;
            }

            .search-results .row {
                flex-direction: column-reverse;
            }

            .search-results .col-lg-3 {
                display: block !important;
                margin-bottom: 2px;
            }

            .search-banner {
                position: relative;
                top: 0;
                margin-bottom: 2px;
                transform: translateX(20%) !important;
            }

            .search-banner img {
                max-height: 200px;
                object-fit: contain;
            }
        }

        @media (max-width: 820px) {
            .search-results {
                transform: translateX(-40%);
            }
        }

        @media (max-width: 576px) {
            .search-results {
                transform: translateX(-3%);
            }

            .search-banner {
                position: sticky;
                top: 20px;
                padding: 10px;
                transform: translateX(0%) !important;
            }
        }

        /* Ajustar ancho de search results para layout de 2 columnas */
        @media (min-width: 992px) {
            .search-results {
                min-width: 800px;
            }
        }


        /* Dropdown como acordeón en mobile */
        @media (max-width: 768px) {
            .navbar-nav .dropdown-menu {
                position: static !important;
                transform: none !important;
                border: none;
                box-shadow: none;
                background: transparent;
                padding: 0;
                margin: 0;
                width: 100%;
            }

            /* CRÍTICO: Asegurar que el dropdown sea visible cuando está activo */
            .navbar-nav .dropdown-menu.show {
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .navbar-nav .dropdown-menu .dropdown-item {
                padding: 10px 20px 10px 40px;
                color: #2c3e50 !important;
                background: var(--gray-bg);
                margin: 2px 0;
                border-radius: 8px;
                text-decoration: none;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .navbar-nav .dropdown-menu .dropdown-item:hover {
                background: #d0e7ff;
                color: var(--accent-color) !important;
            }

            .navbar-nav .dropdown-toggle::after {
                float: right;
                margin-top: 8px;
            }

            .navbar-nav .dropdown.show .dropdown-toggle::after {
                transform: rotate(180deg);
            }

            .main_index {
                padding-top: 100px;
            }

        }




        /* Mobile y tablet pequeño - Layout de 2 filas (menos de 768px) */
        @media (max-width: 767px) {
            .header {
                padding: 15px 20px;
                border-radius: 40px;
            }

            .navbar-toggler {
                padding: 5px 10px;
                font-size: 1.2rem;
            }

            .contenedor {
                display: flex;
                flex-wrap: wrap;
            }

            .search-container {

                flex: 1 1 auto;
                max-width: 100%;
                min-width: 0;
            }
        }

        @media (min-width: 600px) and (max-width: 760px) {
            .search-container {
                flex: 1 1 auto;
                max-width: 600px;
                min-width: 450px;
            }
        }

        /* Tablet grande y desktop - Una sola fila (768px en adelante) */
        @media (min-width: 768px) {
            .contenedor {
                display: flex;
                flex-wrap: nowrap
            }

            .search-container {

                flex: 1 1 auto;
                max-width: 600px;
                min-width: 200px;
            }
        }

        @media (min-width: 1024px) {
            .contenedor {
                display: flex;
                flex-wrap: nowrap
            }

            .search-container {

                flex: 1 1 auto;
                max-width: 100%;
                min-width: 0;
            }
        }

        /* Desktop grande - Limitar ancho máximo del buscador */
        @media (min-width: 1200px) {
            .search-container {
                max-width: 700px;
                min-width: 500px;
            }
        }


        @media (min-width: 1400px) {
            .search-container {
                min-width: 600px;
            }
        }


        .navbar,
        .navbar-expand-lg,
        .header-floating {
            margin: auto;
        }