@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;700&display=swap');

:root{
    --oh-primary: #1E3869;
    --oh-primary-active: #942ABC;
    --oh-primary-disabled: #529dca;
    --oh-secondary: #dd7800;
    --bs-primary-rgb: 29,57,105;
    --bs-link-color: var(--oh-primary);
    --bs-link-hover-color: var(--oh-primary-active);
}

.contact-form-28 {
    color: #1E3869;
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: bold;
}

.contact-form-18 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}

.image-container {
    height: 150vh; /* Make the container taller than the viewport to trigger scroll */
    position: relative; /* Needed for positioning the image */
  }
  
  .scroll-image {
    position: absolute;
    top: 50%; /* Position the image vertically centered */
    left: 50%;
    transform: translate(-50%, -50%); /* Center the image */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease; /* Smooth transition for appearance */
  }
  
  .scroll-image.visible {
    opacity: 1; /* Make image visible */
  }

body {
    padding-top: 5.3rem;
    font-family: 'Open Sans', sans-serif;
}

.menu-title-20, .font-size-20 {
    font-size: 20px;
}

.font-size-18 {
    font-size: 18px;
}

.footer-text-size-14 {
    font-size: 14px !important;
}

.unbound-title {
    font-family: Unbounded;
    font-size: 42px !important;
    font-weight: 100 !important;
}

.border-end-accesos {
	border-right: var(--bs-border-width) var(--bs-border-style) #1E3869 !important;
}

.unbound-title-white {
    font-family: Unbounded;
    font-size: 32px !important;
    font-weight: 100 !important;
    color: #fff;
}

.opensans-title-white {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px !important;
    font-weight: 100 !important;
    color: #fff;
}

h1, h2, h3, h4, h5,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    color: var(--oh-primary);
}

nav.navbar * {
    user-select: none;
}


.progress.nav-scroll-progress {
    --bs-progress-height: 0.2rem;
}

.progress-bar {
    --bs-progress-bar-bg: var(--oh-primary);
}

.bg-oh-primary {
    background-color: var(--oh-primary);
}

.bg-oh-secondary {
    background-color: var(--oh-secondary);
}

.text-oh-secondary {
    color: var(--oh-secondary);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--oh-primary);
    --bs-btn-border-color: var(--oh-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--oh-primary-active);
    --bs-btn-hover-border-color: var(--oh-primary-active);
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--oh-primary-active);
    --bs-btn-active-border-color: var(--oh-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--oh-primary-disabled);
    --bs-btn-disabled-border-color: var(--oh-primary-disabled);
}

.btn-outline-primary {
    --bs-btn-color: var(--oh-primary);
    --bs-btn-border-color: var(--oh-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--oh-primary);
    --bs-btn-hover-border-color: var(--oh-primary);
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--oh-primary);
    --bs-btn-active-border-color: var(--oh-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--oh-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--oh-primary);
    --bs-gradient: none;
}

.accordion {
    --bs-accordion-active-color: var(--oh-primary-active);
}

.pagination {
    --bs-pagination-color: var(--oh-primary);
    --bs-pagination-hover-color: var(--oh-primary-active);
    --bs-pagination-focus-color: var(--oh-primary-active);
    --bs-pagination-active-bg: var(--oh-primary);
}

input.border-0 {
    outline: none !important;
    box-shadow: none !important;
}

.header-slim {
    position: relative;
    overflow: hidden;
}

.header-slim::before {
    content: '';
    filter: blur(8px);
    opacity: 0.5;
    background-image: url('../images/placeholder-header-slim.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.header-slim::after {
    content: '';
    background-color: var(--oh-primary);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

.icon-widened {
    width: 17px;
    overflow: hidden;
}

.nav-link.text-primary:hover,
.nav-link.text-primary:focus,
.nav-link.text-primary:active,
.nav-link.text-primary.active {
    color: var(--oh-primary-active) !important;
}

.mh-sm {
    max-height: 100pt
}

.mh-md {
    max-height: 200pt
}

.mh-lg {
    max-height: 200pt
}

.nav-tags {
    border-bottom: 2px solid transparent;
}

.nav-tags a:hover,
.nav-tags a:focus,
.nav-tags a:active,
.nav-tags a.active {
    color: var(--oh-primary-active) !important;
}

.nav-tags a.active {
    border-bottom: 2px solid var(--oh-primary-active);
}

.pagination-nav {
    --bs-pagination-color: var(--bs-gray);
    --bs-pagination-border-width: 0px;
    --bs-pagination-border-radius: 0;
    --bs-pagination-hover-color: var(--bs-gray);
    --bs-pagination-hover-bg: #e9ecef;
    --bs-pagination-hover-border-color: #dee2e6;
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: #e9ecef;
    --bs-pagination-active-color: #fff;
}

footer.bg-dark {
    --bs-dark-rgb: 29,57,105;
}

footer a, footer a:hover, footer a:active {
    color: var(--bs-white);
}

.dropdown-menu-fullwidth {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    position: fixed !important;
    top: calc(5.3rem + 0.2rem) !important;
    transform: none !important;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    border-radius: 0;
   /* z-index: 10001;*/
    background: #fff;
    border: none;
    padding: 0;
    min-height: 0px;
    overflow: hidden;
}

.dropdown-menu-fullwidth::before,
.dropdown-menu-fullwidth::after {
    display: none;
}

.dropdown-menu-fullwidth .dropdown-logo {
    max-width: 280px;
    height: auto;
    filter: none;
    opacity: 1;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    width: 90%;
    pointer-events: none;
    font-family: 'Unbounded', cursive, sans-serif;
    text-shadow: 0 2px 8px rgba(30,56,105,0.25);
    letter-spacing: 1px;
}

.dropdown-menu-fullwidth .dropdown-item {
    white-space: normal;
    color: #1E3869;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-menu-fullwidth .dropdown-item:hover {
    color: #942ABC;
}

.dropdown-menu-fullwidth .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu-fullwidth .dropdown-right {
    flex: 1;
    padding-left: 60px;
}

.dropdown-menu-fullwidth .dropdown-left {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dropdown-menu-fullwidth .dropdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0px;
    width: 100%;
}

.dropdown-menu-fullwidth .container {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px 0;
    max-width: 1320px;
    margin: 0 auto;
}

.search-box {
    z-index: 9999;
}

/* Enhanced Search Box Styles */
.search-box {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



.search-box .input-group .form-control:focus {
    border-color: var(--oh-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 57, 105, 0.25) !important;
}

.search-box .btn-search-close {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-box .btn-search-close:hover {
    background-color: var(--oh-primary);
    color: white;
}

/* Search Box Animation */
.search-box {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-box.d-flex {
    opacity: 1;
    visibility: visible;
}

/* Search input focus state */
.search-box input[type="search"]:focus {
    outline: none;
}

/* Mobile search box adjustments */
@media (max-width: 768px) {
    .search-box .input-group input {
        font-size: 18px !important;
        padding: 15px !important;
    }
    
    .search-box .col-lg-8 {
        padding: 0 15px;
    }
}

.navbar-brand {
    position: relative;
    /*z-index: 10000;*/
}

/* Asegurar que toda la navbar esté por encima del overlay */
.fixed-top {
    z-index: 9999;
}

.navbar {
    position: relative;
    z-index: 9999;
}

/* Mobile navbar - ensure it's on top of everything */
.navbar.d-lg-none {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000 !important;
    width: 100%;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar.d-lg-none .navbar-collapse {
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10001;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Overlay oscuro cuando el dropdown está activo */
body:has(.dropdown-menu.show)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: none;
}

/* Fallback para navegadores que no soportan :has */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.dropdown-backdrop.show {
    display: block;
}

/* Script para manejar el overlay */

@media (min-width: 1400px) {
    .text-xxl-uppercase {
        text-transform: uppercase;
    }

    .nav-link.text-primary {
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
    }

    /*
    .nav-link.text-primary:hover,
    .nav-link.text-primary:focus,
    .nav-link.text-primary:active,
    .nav-link.text-primary.active {
        border-bottom: 2px solid var(--oh-primary-active);
    }
    */
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1320px;
    }
}

.custom-logo-size {
    width: 260px;
    height: 119px;
}

.custom-logo-size-white {
    filter: brightness(0) invert(1);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border: 2px solid #B3B3B3; /* Adjust color to match your design */
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1em; /* Adjust as needed */
  }
  .icon-circle .fa-magnifying-glass {
    margin: 0;
    font-size: 1em; /* Adjust as needed */
  }

  .text-primary-header {
    --bs-text-opacity: 1;
    color: black !important;
  }

  /* Social Media Icons Style */
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 28px;
    background: #607496;
    color: white;
  }

  .social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: white;
    color: #6E7B99;
  }

  .social-icon i {
    font-size: 24px;
  }