/*Estilo contenido medico*/

:root {
    /*
                --color-uno: #FFFFFF;
                --color-dos: #FFFFFF;
                --color-tres: #FFFFFF;
                --color-cuatro: #1840ae;
                */
    --color-uno: #EFF6FF;
    --color-dos: #FFFFFF;
    --color-tres: #EFF6FF;
    --color-cuatro: #FFFFFF;
    --primary-blue: #1E88E5;
    --dark-blue: #0D47A1;
    --light-blue: #E3F2FD;
    --green: #4CAF50;
    --orange: #FF9800;
    --gray: #757575;
    --light-gray: #f5f5f5;
    --blue-tech: #1655ff;
    --cyan-tech: #8DD2F0;
    --dark-tech: #0f2a44;
}

.main_index {
    background-color: #fff;
}

.program-card {
    border-radius: 25px;
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-header {
    padding: 20px 20px 10px;
    color: white;
    position: relative;
}

.program-header h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

.age-badge {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 27, 89);
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.age-badge-dos {
    background-color: rgb(0, 27, 89);
    color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.program-img-container {
    height: 300px;
    overflow: hidden;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-body {
    padding: 25px 20px;
}

.program-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.program-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-read-more {
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid;
}

/* Colores específicos para cada categoría */
.uno-card .program-header {
    background-color: var(--color-uno);
}

.uno-card .btn-read-more {
    background-color: var(--color-uno);
    border-color: var(--color-uno);
    color: #0F2A44;
}

.uno-card .btn-read-more:hover {
    background-color: transparent;
    color: var(--color-uno);
}


.dos-card .btn-read-more {
    background-color: var(--color-dos);
    border-color: var(--color-dos);
    color: #0B2F5F;
}

.dos-card .btn-read-more:hover {
    background-color: transparent;
    color: var(--color-dos);
}

.tres-card .program-header {
    background-color: var(--color-tres);
}

.tres-card .btn-read-more {
    background-color: var(--color-tres);
    border-color: var(--color-tres);
    color: #FFFFFF;
}

.tres-card .btn-read-more:hover {
    background-color: transparent;
    color: var(--color-tres);
}


.cuatro-card .btn-read-more {
    background-color: var(--color-cuatro);
    border-color: var(--color-cuatro);
    color: white;
}

.cuatro-card .btn-read-more:hover {
    background-color: transparent;
    color: var(--color-cuatro);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-uno), var(--color-dos), var(--color-tres));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.medicos-menu-uno {
    color: #2e2e2e;
    font-weight: 700;
    font-size: x-large;
}

.medicos-menu-dos {
    color: #0B3C6F;
}

.medicos-menu-tres {
    color: #f1f8ff;
}

.medicos-menu-cuatro {
    color: #FFFFFF;
}

/* Responsive adicional */
@media (max-width: 768px) {

    .program-card {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .program-header {
        padding: 12px 14px;
    }

    .program-header h4 {
        font-size: 1rem;
    }

    .age-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

}

/* ===== MENU HORIZONTAL MEDICOS ===== */
.menu-wrapper {
    position: relative;
}

.menu-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 36px;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
}

.menu-scroll {
    scrollbar-width: none;
}

.menu-scroll .program-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1655FF;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(22, 85, 255, 0.35);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

@media (min-width: 992px) {
    .menu-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        overflow: visible;
        padding: 0;
    }

    .menu-scroll .program-card {
        width: auto;
    }

    .scroll-btn {
        display: none;
    }
}

/* Header Superior */
.top-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.header-cta {
    background-color: var(--green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: #f8fbff;
    color: #102C55;
    padding: 60px 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(156, 234, 255, 0.689);
}

/* Servicios Grid - Estilo similar a la imagen */
.services-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-blue);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(82, 174, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 0px 0px 15px;

}

.service-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #102C55;
}

.service-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.service-body {
    padding: 20px 25px;
}

.service-feature {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.feature-label {
    font-weight: 600;
    color: #555;
}

.feature-value {
    color: var(--primary-blue);
    font-weight: 600;
}

.service-hours {
    background-color: var(--light-blue);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-blue);
}

.btn-see-all {
    background-color: transparent;
    color: #1655ff;
    border: 2px solid #1655ff;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-see-all:hover {
    background-color: #b0c5ff;
    color: #1655ff;
}

/* Suscripción Section */
.subscribe-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.subscribe-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.subscribe-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.email-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-subscribe {
    background-color: var(--green);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: #3d8b40;
}

.subscribe-note {
    color: var(--gray);
    font-size: 0.9rem;
}



/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.badge {
    background-color: #FF9800;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    margin-top: 7px !important;
    width: 30%;
}


/* ===== MENU HORIZONTAL PACIENTES ===== */

.services-wrapper {
    position: relative;
}

.services-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 36px;
}

.services-scroll::-webkit-scrollbar {
    display: none;
}

.services-scroll {
    scrollbar-width: none;
}

.services-scroll .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

/* Reutilizamos los mismos botones */
.services-wrapper .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.35);
}

.services-wrapper .scroll-btn.left {
    left: 0;
}

.services-wrapper .scroll-btn.right {
    right: 0;
}

/* ===== DESKTOP: VOLVER A GRID ===== */
@media (min-width: 992px) {
    .services-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        overflow: visible;
        padding: 0;
    }

    .services-scroll .service-card {
        width: auto;
    }

    .services-wrapper .scroll-btn {
        display: none;
    }
}


/* ===== SECTION ===== */
.otros-servicios {
    padding: 45px 0;

}

.otros-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 56px;
    color: var(--dark-tech);
}

/* ===== CARD PRINCIPAL ===== */
.servicio-marketing {

    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(15, 42, 68, 0.12);
    position: relative;
    overflow: hidden;
}

/* Glow decorativo */
.servicio-marketing::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;

    top: -120px;
    right: -120px;
    opacity: 0.35;
}

/* Layout */
.marketing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Imagen */
.marketing-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;

}

/* ===== PHARMA TECH ===== */
.pharma-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-tech), var(--cyan-tech));
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
    box-shadow: 0 0 0 rgba(141, 210, 240, 0.7);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(141, 210, 240, 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(141, 210, 240, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(141, 210, 240, 0);
    }
}

.pharma-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--blue-tech), var(--blue-tech));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

/* Texto */
.marketing-content p {
    font-size: 1.05rem;
    color: #4a5d73;

    margin-bottom: 28px;
}

/* ===== SUB CARDS ===== */
.sub-servicios,
.sub-servicios-cien {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.sub-servicios {
    grid-template-columns: 1fr 1fr;
}

.sub-card {

    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.08);
    transition: all 0.3s ease;
}

.sub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(22, 85, 255, 0.2);
}

.sub-card img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.sub-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-tech);
}

/* ===== PHARMA CORE ===== */
.sub-card-pharma {
    border: 1.5px solid rgba(22, 85, 255, 0.4);
    background: linear-gradient(145deg, #ffffff, #eef4ff);

}

.sub-card-pharma h4 {
    color: var(--blue-tech);
    font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .marketing-layout {
        grid-template-columns: 1fr;
    }

    .marketing-img img {
        height: 260px;
    }

    .sub-servicios {
        grid-template-columns: 1fr;
    }
}

.pharma-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    /* para responsive */
}

.footer {
    background: #f6faff;
    padding: 64px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    height: 42px;
    margin-bottom: 24px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 32px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: left;
}

.contact-col {
    text-align: center;
}

.marketing-col {
    text-align: end;
}


.footer-col h4 {
    font-size: 15px;
    color: #374151;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #6B7280;
    text-decoration: none;
}

.footer-col a:hover {
    color: #111827;
}

.footer-social {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 0;
    margin: 0px 0;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.footer-social a {
    font-size: 20px;
    color: #9CA3AF;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.footer-countries {
    font-size: 13px;
    color: #9CA3AF;
}

.footer-social img {
    width: 30px;
    height: 30px;
    display: block;
}


/* 📱 MÓVIL */
@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0px;
        text-align: center;
        justify-items: center;
    }

    .contact-col {
        text-align: center;
    }

    .marketing-col {
        text-align: center;
    }

}




      :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;
            background-color: #ffffff;
        }

        /* 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: 10px 40px;
            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: 60px;
            height: 60px;
            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: 60px;
            height: 60px;
            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;
            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;
        }

        .bd_bandera {
            width: 40px;
        }

        /* Tablet (768px–1199px): collapse es acordeón, centrar contenido y dropdown estático */
        @media (min-width: 768px) and (max-width: 1199px) {
            .navbar-collapse {
                text-align: center !important;
                flex-basis: 100%;
                flex-grow: 1;
                align-items: center;
                min-height: 360px;
            }

            /* Dropdown centrado y estático para que no se vaya al lado */
            .navbar-nav .dropdown-menu {
                position: static !important;
                transform: none !important;
                border: none;
                box-shadow: none;
                background: transparent;
                padding: 0;
                margin: 0 auto;
                width: 100%;
                text-align: center;
            }

            .navbar-nav .dropdown-menu.show {
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .navbar-nav .dropdown-menu .dropdown-item {
                padding: 10px 20px;
                color: #2c3e50 !important;
                background: var(--gray-bg);
                margin: 2px auto;
                border-radius: 8px;
                text-align: left;
            }

            .navbar-nav .dropdown-menu .dropdown-item:hover {
                background: #d0e7ff;
                color: var(--accent-color) !important;
            }
        }



        @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: 20px;
            }

            .search-banner {
                position: relative;
                top: 0;
                margin-bottom: 15px;
                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;
                color: #2c3e50 !important;
                background: var(--gray-bg);
                margin: 4px auto;
                border-radius: 8px;
                text-decoration: none;
                opacity: 1 !important;
                visibility: visible !important;
                width: 80%;
                max-width: 300px;
                text-align: left;
            }

            .navbar-nav .dropdown-menu .dropdown-item:hover {
                background: #d0e7ff;
                color: var(--accent-color) !important;
            }

            .navbar-nav .dropdown-toggle::after {
                margin-left: 8px;
                vertical-align: middle;
            }

            .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: 600px;
                min-width: 200px !important;
            }
        }

        @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: wrap
            }

            .search-container {

                flex: 1 1 auto;
                max-width: 600px;
                min-width: 200px;
            }
        }



        @media (max-width: 1024px) {
            .search-container {
                flex: 1 1 auto;
                max-width: 600px;
                min-width: 200px;
            }
        }

        /* Desktop grande - Limitar ancho máximo del buscador */
        @media (min-width: 1200px) {


            .search-container {
                max-width: 700px;
                min-width: 550px;
            }
        }


        @media (min-width: 1400px) {
            .search-container {
                min-width: 550px;
            }
        }


        .navbar,
        .navbar-expand-lg,
        .header-floating {
            margin: auto;
        }

        /* Animated placeholder styles */
        .placeholder-animado {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: #999;
            font-size: 16px;
            display: flex;
            gap: 6px;
            white-space: nowrap;
        }

        .palabra-wrapper {
            overflow: hidden;
            height: 22px;
        }

        .palabra {
            display: block;
            animation: scrollWord 3s ease-in-out infinite;
        }

        @keyframes scrollWord {
            0% {
                transform: translateY(100%);
                opacity: 0;
            }

            15% {
                transform: translateY(0);
                opacity: 1;
            }

            70% {
                transform: translateY(0);
                opacity: 1;
            }

            85% {
                transform: translateY(-100%);
                opacity: 0;
            }

            100% {
                transform: translateY(-100%);
                opacity: 0;
            }
        }

        @media (min-width: 320px) and (max-width: 1024px) {
            .placeholder-animado {
                font-size: 11px !important;
            }
        }

        .cookie-banner {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 2000;
            border: 1.5px solid rgba(22, 85, 255, 0.2);
            background: linear-gradient(135deg, #d9e9ff 0%, #e6f2ff 100%);
            border-radius: 14px;
            padding: 18px 20px;
            max-width: 420px;
            width: auto;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cookie-text p {
            margin: 0;
            font-size: 14px;
            line-height: 1.4;
            color: #2c3e50;
            margin-right: 8px;
            padding: 1rem;
        }

        .cookie-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .btn-info {
            color: #fff;
            background-color: #0058ff;
            border-color: #0058ff;
            padding: 10px 18px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            width: 100%;
            text-align: center;
        }

        .btn-info-secun {
            color: #0058ff;
            border: 1.5px solid #0058ff;
            padding: 10px 18px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            width: 100%;
            text-align: center;
        }

        @media (max-width: 767px) {
            .cookie-banner {
                left: 16px;
                right: 16px;
                bottom: 16px;
                max-width: none;
                padding: 16px;
            }

            .cookie-text p {
                font-size: 13px;
            }
        }

        /* Animations / visible default for cookie banner */
        .cookie-banner {
            transform: translateX(0);
            opacity: 1;
            transition: transform 360ms cubic-bezier(.2, .9, .2, 1), opacity 360ms ease;
        }

        .cookie-banner.show {
            transform: translateX(0);
            opacity: 1;
        }

        .cookie-banner.hide {
            transform: translateX(24px);
            opacity: 0;
            pointer-events: none;
        }

        /* Estilos para el stepper */
        .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;
        }

        /* Estilos adicionales */
        .access-text {
            color: #666;
            font-size: 18px;
            margin-top: 5px;
            text-align: center;
        }

        .btn-entrar {
            background-color: #0066ff;
            border: none;
        }

        .btn-entrar:hover {
            background-color: #0052cc;
        }

        /* Estilos para Select2 */
        .select2-container--bootstrap-5 .select2-selection {
            min-height: 38px;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            border: 1px solid #dee2e6;
        }

        .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
            line-height: 1.5;
            padding-left: 0;
        }

        .select2-container--bootstrap-5 .select2-dropdown {
            border: 1px solid #dee2e6;
            border-radius: 0.375rem;
        }

        .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
            border: 1px solid #dee2e6;
            border-radius: 0.375rem;
            padding: 0.375rem 0.75rem;
        }

        .select2-container--bootstrap-5 .select2-results__option--highlighted {
            background-color: #0066ff;
            color: white;
        }

        /* ===== CUSTOM SELECT2 STYLES ===== */
        .select2-container--open .select2-dropdown {
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border: 1px solid #eef2f6;
            overflow: hidden;
        }

        .select2-search--dropdown {
            position: relative;
            padding: 10px 12px 5px 12px;
        }

        .select2-search--dropdown .select2-search__field {
            border-radius: 50px !important;
            padding-left: 38px !important;
            height: 42px !important;
            border: 1px solid #e0e6ed !important;
            background-color: #fcfcfc;
            font-size: 0.95rem;
            outline: none !important;
        }

        .select2-search--dropdown .select2-search__field:focus {
            border-color: #1655ff !important;
            box-shadow: 0 0 0 3px rgba(22, 85, 255, 0.1) !important;
            background-color: #fff;
        }

        /* Icono de búsqueda inyectado via JS */
        .custom-search-icon {
            position: absolute;
            left: 26px;
            /* Ajustar según el padding del contenedor */
            top: 25px;
            /* Ajustar verticalmente */
            transform: translateY(-50%);
            color: #1655ff;
            z-index: 1001;
            pointer-events: none;
            font-size: 1rem;
        }

        /* Opciones del dropdown */
        .select2-results__option {
            padding: 10px 15px;
            font-size: 0.95rem;
            border-bottom: 1px solid #f9f9f9;
        }

        .select2-results__option--highlighted {
            background-color: #f0f4ff !important;
            color: #1655ff !important;
            font-weight: 600;
        }

        .select2-results__option--selected {
            background-color: #e6f0ff !important;
            color: #0d47a1 !important;
        }