/* Center the toggle button for services */
.services__toggle-btn-center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
/* Dropdown menu styles for navigation */
.nav__dropdown {
    position: relative;
}
.dropdown__menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 10px;
    padding: 0;
    border-radius: 4px;
    left: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.dropdown__menu li {
    list-style: none;
}
.dropdown__link {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.dropdown__link:hover,
.dropdown__link:focus {
    background: #f0f0f0;
    outline: none;
    border-radius: 20px;
}

.nav__dropdown:hover .dropdown__menu,
.nav__dropdown.active .dropdown__menu,
.nav__dropdown:focus-within .dropdown__menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --first-color: #00344F;
  --first-color-alt: #3991CA;
  --title-color: #00344F;
  --text-color: #f3eeee;
  --text-color-light: #A6A6A6;
  --body-color: #fbfdff;
  --container-color: #FFFFFF;

  /*========== Fade duration ==========*/

  --fade-duration: 1000ms;      /* crossfade duration (ms) */
  --slide-interval: 5000ms;     /* time between slides (ms) */
  --hero-height: 82vh;          /* change hero height here */
  --overlay-color: rgba(0,0,0,0.35);
  --max-content-width: 1100px;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --h4-font-size: 0.875rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px){
  :root{
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Responsive Dropdown Menu ==========*/
@media screen and (max-width: 768px) {
  .nav__dropdown {
    position: static;
  }
  .dropdown__menu {
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 0;
    border-radius: 0 0 4px 4px;
  }
  .dropdown__link {
    padding: 15px 20px;
  }
}

@media screen and (min-width: 740px) and (max-width: 768px) {
  .nav__dropdown {
    position: relative;
  }
  .dropdown__menu {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
  }
}

/*========== BASE ==========*/
*,::before,::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #a2cee6;
  --container-color: #fafdff;
}

/*========== Button Dark/Light ==========*/
.change-theme{
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 2.1;
}

h1,h2,h3,p,ul{
  margin: 0;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section{
  padding: 4rem 0 2rem;
}

.section-title, .section-subtitle {
  text-align: center;
}

.section-title{
  font-size: var(--h4-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section--title1{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  text-align: center;
}



.section-subtitle{
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container{
  max-width: 1200px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-1);
  margin-right: var(--mb-1);
}

.bd-grid{
  display: grid;
  gap: 1.2rem;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color-alt);
}

/*========== NAV ==========*/

.nav{
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  width: 10vh;
  height: auto;
  padding: 4px;
  transition: all .3s;
  
}


@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--first-color-alt);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0,0,0,.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item{
  margin-bottom: var(--mb-2);
}

.nav__link, .nav__logo, .nav__toggle{
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover{
  color: var(--body-color);
}

.nav__link{
  transition: .3s;
}

.nav__link:hover{
  color: var(--first-color);
  transition: all .7s;
}

.nav__toggle{
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu{
  top: var(--header-height);
}

/* Active menu */
.active-link{
  color: var(--first-color);
}

/* Change background header */
.scroll-header{
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Scroll top */
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover{
  background-color: var(--container-color);
}

.scrolltop__icon{
  font-size: 1.8rem;
  color: var(--container-color);
}

/* Show scrolltop */
.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

    /* ===========================
     HERO LAYOUT
     =========================== */
  .hero {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    min-height: 420px;
    overflow: hidden;
    display: grid;
    align-items: center;
    justify-items: center;
  }

  /* Container for slides - each slide fills the hero */
  .hero__slides {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    pointer-events: none; /* background shouldn't capture pointer events */
  }

  .hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03); /* subtle zoom during static, looks nicer with fade */
    transition: opacity var(--fade-duration) ease-in-out, transform calc(var(--fade-duration)) ease-in-out;
    will-change: opacity, transform;
  }

  /* visible slide */
  .hero__slide.is-active {
    opacity: 1;
    transform: scale(1.0);
    pointer-events: none;
  }

  /* Dark overlay to make text readable on many images */
  .hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
    pointer-events: none;
  }

  /* Content: headline, subhead and CTA */
  .hero__content {
    position: relative; /* above slides */
    z-index: 5;
    width: 100%;
    padding: 3rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__inner {
    max-width: var(--max-content-width);
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 2rem;
  }

  .hero__logo__img{
    justify-content: center;
    align-items: center;
    width: 16%;
    height: 10%;
  }

  .hero__kicker {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.5rem;
  }


  .hero__title {
    margin: 0 0 0.6rem 0;
    font-size: clamp(1.6rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    font-weight: 700;
    color: var(--body-color);
  }

  .hero__subtitle {
    margin: 0 0 1.4rem 0;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    opacity: 0.95;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
  }

  .btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--first-color-alt);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  .btn:focus { outline: 3px solid rgba(255,255,255,0.18); outline-offset: 3px; }
  .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.32); }

  /* Small screen tweaks */
  @media (max-width:720px){
    .hero__inner{padding:1rem}
    .hero__title{font-size:clamp(1.4rem,6vw,2rem)}
    .hero__subtitle{font-size:0.98rem}
    .hero__kicker{font-size:0.8rem}
  }

  /* Respect user preference for reduced motion:
     - Remove transitions and disable auto-advance from JS when detected.
  */
  @media (prefers-reduced-motion: reduce){
    .hero__slide {
      transition: none;
      transform: none;
    }
    .btn { transition: none; }
  }

  /* Utility: visually hidden text for screen readers */
  .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }





/*========== HOME ==========*/



.home__container{
  height: calc(100vh - var(--header-height));
  align-content: center;
  padding-top: 4%;
  
}

.home__title{
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.section1-subtitle {
  font-size: var(--h4-font-size);
  color: var(--first-color);
  font-size: larger;
  border-bottom: 1px solid var(--first-color);
}

.home__title img{
  width: 16%;
  height: 10%;
  margin-bottom: var(--mb-1);

}

.home__subtitle{
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--first-color);
  margin-bottom: var(--mb-3);
}

.home_information{
  font-size: var(--h4-font-size);
  font-weight: lighter;
  color: var(--first-color);
  margin-bottom: var(--mb-3);
}

.home__img{
  width: 200px;
  justify-self: center;
  transition: all .9s;
  align-items: center;
}

.home__img:hover{
  transform: scale(1.1);
  
}


/*========== BUTTONS ==========*/
.button{
  display: inline-block;
  background-color: var(--container-color);
  color: #00344F;
  padding: .75rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--first-color);
  transition: all .9s;
}

.button:hover{
  background-color: var(--first-color-alt);
  transform: scale(1.1);
}

/*========== ABOUT ==========*/

.about section{
  background-color: var(--first-color);
}

.about__data{
  text-align: center;
}

.section2-subtitle{
  font-size: var(--h4-font-size);
  color: var(--first-color);
  font-size: larger;
  border-bottom: 1px solid var(--first-color);
}

.about__description{
  margin-bottom: var(--mb-3);
  color: var(--first-color);
  font-weight: lighter;
  font-size: var(--h4-font-size);
}

.about__img{
  width: 280px;
  border-radius: .5rem;
  justify-self: center;
  transition: all .9s;
}

.about__img:hover{
  transform: scale(1.1);
}



/*========== Mission and Vision ==========*/

.mnv__data{
  text-align: center;
  padding: 20px;
  box-shadow: 1px 2px 10px var(--first-color);
  border-radius: 25px;
}

.section--title{
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--first-color);
}

.mnv__description1{
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--first-color);
  font-size: var(--h4-font-size);
  padding: 20px;
}










/*========== SERVICES ==========*/


.services__container{
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.services__content{
  text-align: center;
  border-radius: 15px;
  padding: 10px;
  transition: all .9s;
  background-color: var(--first-color);
  width: 100%;
}


.services__content:hover{
  background-color: var(--first-color-alt);
  transform: scale(1.1);
  color: var(--body-color);
}

.services__img{
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
  background-color: var(--body-color);
  padding: 10px;
  border-radius: 15px;
}


.services__title{
  font-size: var(--h4-font-size);
  color: var(--body-color);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.services__description{
  color: var(--first-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  height: 200px;
  font-size: small;
}
.services__description::after{
  color: var(--body-color);

}

.button_container{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.view-more-btn{
  background-color: var(--first-color-alt);
  color: var(--body-color);
  padding: 0.5rem 1rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  transition: all .3s;
  height: 40px;
  width: 150px;
  text-align: center;
  border-radius: 20px;
}


.services__more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
 

  /* Hide initially */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* When active, show */
.services__more.active {
  max-height: 1000px; /* Large enough to fit content */
  opacity: 1;
}
/* Responsive styles */
@media (max-width: 800px) {
  .button_container {
    flex-direction: column;
    padding: 0.5rem;
  }
  .view-more-btn {
    width: 100%;
    min-width: 120px;
    font-size: 0.95rem;
    height: 38px;
    margin: 0.5rem 0;
  }
  .services__more {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

.services__content_more{
  text-align: center;
  background-color: var(--first-color-alt);
  border-radius: 20px;
  padding: 5%;
  transition: all .9s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  padding: 10px;
  background-color: var(--first-color);
  width: 100%;
}

.services__content_more:hover{
  transform: scale(1.1);
  color: var(--body-color);
}

.services__img_more{
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
  background-color: var(--first-color);
}

.services__title_more{
  font-size: var(--h4-font-size);
  color: var(--body-color);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}


.services__img_more{
  width: 64px;
  height: 64px;
  fill: var(--body-color);
  margin-bottom: var(--mb-2);
  border-radius: 30px;
  background-color: white;
  padding: 20px;
}











/*========== SERVICE2 ==========*/
.servicesmenu__container{
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services__content2{
  text-align: center;
  border-radius: 15px;
  transition: all .9s;
  position: relative;
  overflow: hidden;
  box-shadow: 1px 4px 10px var(--first-color);
  background-color: var(--first-color);
  padding: 10px;
}

.hover-content {
  display: none;
  color: var(--body-color);
  animation: fadeIn 0.9s ease-in-out;
  background-color: var(--first-color-alt);
  padding: 32px;
  border-radius: 7%;
}

.default-content img {
  border-radius: 15px;
}

.services__title2 {
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
  color: var(--body-color);
}

.services__description2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 200px;
  font-weight: lighter;
  font-size: var(--h4-font-size);
  border-radius: 20px;
  
}

.modal-content {
  position: absolute;
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--first-color-alt);
}


.view-details-btn{
  position: absolute;
  height: 40px;
  width: 150px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--first-color-alt);
  color: var(--body-color);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.view-details-btn:hover{
  box-shadow: 0 4px 16px 0 rgba(0, 52, 79, 0.35), 0 1.5px 4px 0 rgba(0, 52, 79, 0.18);
  background-color: #226fa1;
  color: #fff;
  transition: box-shadow 0.3s, background 0.3s, color 0.3s;
}



.modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        .modal-content {
            background-color: #fff;
            margin: 0 auto;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            position: absolute;
            width: 95%;
            max-width: 370px;
            min-width: 260px;
            padding: 32px 24px 24px 24px;
            border: 1px solid #0042a5;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,52,79,0.18);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .modal-content h3, .modal-content h4 {
            margin: 0 0 8px 0;
            color: #00344F;
        }
        .modal-content p {
            margin: 4px 0;
            color: #226fa1;
            font-size: 1rem;
        }
        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            position: absolute;
            right: 16px;
            top: 8px;
            transition: color 0.2s;
        }
        .close:hover,
        .close:focus {
            color: #00344F;
            text-decoration: none;
            cursor: pointer;
        }
        @media (max-width: 480px) {
            .modal-content {
                max-width: 98vw;
                min-width: 0;
                padding: 18px 6vw 18px 6vw;
            }
        }


/* Optional fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.services__img2{
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
  border-radius: 2px;
}



/*========== CONTACT ==========*/
.contact__container{
  text-align: center;
}

.contact__description{
  margin-bottom: var(--mb-3);
  color: var(--first-color);
}

/*========== FOOTER ==========*/
.f_main{
  background-color: var(--first-color-alt);
  padding: 2rem 0;
}


.footer__container{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}



.footer__logo{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__description{
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
  color: var(--first-color);
}

.footer__social{
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__title{
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-2);
}

.footer__adress{
  color: var(--first-color);
}

.footer__link{
  display: inline-block;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover{
  color: var(--body-color);
}

.footer__copy{
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--body-color);
  margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px){
  .home__container,
  .about__container,
  .app__container{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }

  .about__data, .about__initial,
  .app__data, .app__initial,
  .contact__container, .contact__initial{
    text-align: initial;
  }

  .about__img{
    width: 380px;
    order: -1;
  }

  .home__img{
    width: 380px;
  }

  .contact__container{
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact__button{
    justify-self: center;
  }
}

@media screen and (min-width: 770px){
  body{
    margin: 0;
  }

  .section{
    padding-top: 8rem;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list{
    display: flex;
  }
  .nav__item{
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav__toggle{
    display: none;
  }

  .change-theme{
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container{
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container{
    margin-top: var(--mb-6);
  }

  .menu__container{
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }
  .menu__content{
    padding: 1.5rem;
  }
  .menu__img{
    width: 130px;
  }
}

@media screen and (min-width: 960px){
  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }

  .home__img{
    width: 500px;
  }

  .about__container,
  .app__container{
    column-gap: 7rem;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
    .home__container {
        height: 640px;
    }
}