:root {
    --imav-main-color: #004899;
    --imav-color-font: #337ACC;
    --imav-secundario: #F9AA53;
  }

html {
    scroll-behavior: smooth;
    font-size: 16px; /* 1rem = 16px */
}

.btn.btn-primary {
    background: var(--imav-secundario);
    border-color: var(--imav-secundario);
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 600;
}

#header {
    height: 75vh;
    background: url(img/Banner_IMAV.png);
    background-size: cover;
    background-position: 50%;
}

#filosofia,
#accion
 {
    background: url(img/pattern-1.png);
    background-size: cover;
}

#metodologias {
    background: url(img/pattern-2.png);
    background-size: cover;
}

h1,h2,h3,h4,h5 {
    font-family: Montserrat;
    word-break: break-word;
    overflow-wrap: break-word;
}

p {
    font-family: Arimo;
    font-size: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--imav-color-font);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--imav-color-font);
}

small:not(#contact small) {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 150%;
    letter-spacing: 6px;
}

#filosofia h3,
#accion h3,
#filosofia p,
#accion p
 {
    color: white;
}

.bg-pattern small,
.bg-pattern h2 {
    color: white;
}

.contener-img-slider-1 {
    height: 540px;
    background: url(img/image_fx_2.jpg);
    background-size: cover;
}

.contener-img-slider-2 {
    height: 540px;
    background: url(img/Desarrollo-de-habilidades-competencias.jpg);
    background-size: cover;
}

button.btn.btn-primary {
    background: var(--imav-color-font);
    border: 0;
}

footer {
    font-family: Montserrat;
    font-size: 18px;
    font-weight: medium;
}

footer a {
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

footer .text-end a {
    margin-left: 10%;
}

/* FIX slider  */

.carousel-control-next, .carousel-control-prev {
    top: auto;
    bottom: 10%;
    width: 10%;
}

.carousel-control-next span,
.carousel-control-prev span {
    background-color: var(--imav-main-color);
    border-radius: 100%;
    background-size: 50% 50%;
}

.carousel-control-prev {
    right: 7%;
    left: auto;
}

/*NAVBAR ANIMATION*/

#navbar .container {
    background: var(--imav-main-color);
    top: 1%;
    color: white;
    font-family: Montserrat;
    font-weight: 500;
}

#navbar a {
    color: white;
    text-decoration: none;
}

#navbar img {
    width: 125px;
}

#navbar {
    transition: top 0.3s, opacity 0.3s; /* <- Added opacity transition */
    opacity: 1; /* Fully visible */
  }
  
  #navbar.hide {
    top: -9%; /* Move it out of view */
    opacity: 0; /* Fade out */
  }
  
  #navbar:hover {
    top: 1%; /* Show on hover */
    opacity: 1; /* Fully visible on hover */
  }
  
  /*ANIMATION IMG*/

  .img-fifo {
    scale: .8;
    opacity: 0;
    animation: imgfade linear forwards;
    animation-timeline: view();
    animation-range: 250px 500px;
  }

  @keyframes imgfade {
    to {scale: 1; opacity: 1;}
  }

  /*RESPONSIVE*/

  @media (max-width: 575.98px) {

    #navbar {
        width: 90%;
        margin: 0 auto;
    }

    #header {
        height: 40vh;
        background: url(img/Banner_IMAV.png);
        background-size: cover;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .btn.btn-primary {
        width: 100%;
    }

    .carousel-control-prev {
        right: 10%;
    }

  }