@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
}

@font-face {
    font-family: 'CovesLight';
    src: url('/fonts/coves/CovesLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'CovesBold';
    src: url('/fonts/coves/CovesBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* TOP NAVBAR */

.header-top{
    background: #39A78E;
    color: white;
}

.header-top p{
    font-family: 'Inter';
    margin: 0;
    padding: 0;
    color: white !important;
    padding-top: 2px;
}

.header-top img{
    object-fit: contain;
    width: 20px;
    margin-right: 10px;
}

.header-top .row{
    padding: 10px 0;
}



/* LOW NAVBAR */

.navbar-div{
    background: #004F73;
}

.navbar-logo{
    object-fit: contain;
    width: 200px;
}

.meedy-menu ul {
    align-items: center;
    height: 100%;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.meedy-menu > ul > li {
    display: inline-block;
    margin: 0 10px;
}

.meedy-menu > ul > li > a:hover {
    color: #39A78E ;
    transition: 0.5s;
}

.meedy-menu > ul > li > p:hover {
    color: #39A78E ;
    transition: 0.5s;
}

.meedy-menu > ul > li > a{
    color: white;
    font-size: 13px;
    font-family: 'Inter';
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    margin: 0 5px;
    padding: 17px 0;
}

.meedy-menu > ul > li >p{
    color: white;
    font-size: 13px;
    font-family: 'Inter';
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    margin: 0 5px;
    padding: 3px 0;
}

.navbar-text li{
    margin: 0;
    padding: 0;
}

.navbar-text li a{
    font-family: 'Inter';
    font-size: 15px;
    margin: 0 12px;
    padding: 19px 0;
}

.navbar-text li a:hover{
    color: #39A78E ;
    transition: 0.5s;
}

.navbar-div-sticky{
    background: #004F73;
    display: none !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14901960784313725);
    z-index: 1000;
    animation: slideDown 1s ease-out;
}

.navbar-div-sticky.sticky{
    display: block !important;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    padding-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.hamburger-btn.active,
.hamburger-btn:focus,
.hamburger-btn[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.2);
    color: #39A78E;
}

#mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}


#mobile-menu.open {
    max-height: 800px;
    opacity: 1;
}


/* DROPDOWN */
header {
  position: relative;
  z-index: 9999;
}
.dropdown-menu li a,
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

.dropdown-toggle::after { /* Eliminar flecha hacia abajo de la clase dropdown-toogle */
    display: none !important; 
}

.dropdown-menu.custom-bg{
    background: rgb(255, 255, 255);
    height: auto;
    position: absolute;
    left: 0px;
    width: 217px;
    text-align: left;
    z-index: 1000;    
    opacity: 0;
    margin: 0;
    padding: 0;
    transition: 0.5s;
    border-top: 2px solid #39A78E;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li a {
    color: #004F73 !important;
    display: block;
    line-height: 1.3;
    letter-spacing: normal;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    padding: 12px 20px;
    margin: 0px;
    color: var(--primary-color);
    overflow: hidden;
    transition: color 0.3s ease;
}

.dropdown-menu li a::before {
    background: #39A78E; 
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.dropdown-menu li a:hover{
    color: white !important;
    transition: 0.5s;
}

.dropdown-menu li a:hover::before {
    animation: slideBackground 0.5s forwards;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* elimina salto */
    animation: slideUp 0.3s ease-out forwards;
}

.owl-carousel .item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ANIMATIONS */

@keyframes slideDown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
}

@keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes slideBackground {
    0% {
        top: -100%; 
    }
    100% {
        top: 0%; 
    }
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
