/* Reset y tipograf铆a general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
  font-size: 20px;
}
body {
  min-width: 270px;
  line-height: 1.6;
  color: #2D3A4A;
  background-color: #fff;
}

h6 {
    font-size: 12px;
}

i{
   font-size: 2rem;
   margin-bottom: 1.2rem;
   color: #073369;
}

a{
   text-decoration: none;
   color: #073369;
}

.image img{
    border-radius: 1rem;
}

img{
    width: 100%;
}

.whatsapp-float i{
    color: #fff;
    font-size:2rem;
    margin-bottom: 0rem;

}

/* Cabecera y men煤 responsive */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 2rem;
  position: sticky;
  top: 0;
  background: #F9F9F9;
  z-index: 1000;
  
  .img{
      display: flex;
      align-items: center;
      height:80px;
      width:180px;
  }
}
.logo { height: 180px; }
nav { 
    display: flex;
    align-items: center;
}

.nav-links {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%; /* justo debajo del header*/
  right: 0%;
  width: 100%;
  background-color: #F9F9F9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 1000;
}

.nav-links li {
  margin: 0.5rem 0;
}

.nav-links.show {
  display: block;
  max-height: 300px;
}

nav a { 
    color: #2D3A4A;
    font-weight: 500;
}
nav a:hover { 
    color: #6DC8C5;
}
.menu-toggle {
  font-size: 1.7rem;
  cursor: pointer;
}

.btn-login{
    border: 2px solid #328E53;
    padding: 0.25rem 1.75rem;
    border-radius: 1rem;
    background-color:#F9F9F9;
    color: #328E53;
}

.btn-login:hover{
    background-color:#328E53 ;
    color: #F9F9F9;
    cursor: pointer;
}

/* Banner principal */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(135deg, #D1F2EB, #FCF3CF);
}
.banner-text { 
    flex:1;
    text-align: center;
}
.banner-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.banner-text button {
  border: 2px solid #328E53;
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: #328E53;
  color: #fff;
  /*border: none; */
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}
.banner-text button:hover {
  background: #F9F9F9; /*#58b3b0;*/
  color:#328E53;
}
.banner-image { 
    flex:1;
    max-width: 35rem;
}
.banner-image img {
  border-radius: 1rem;
}

/* Secciones generales */
section {
  padding: 2.6rem 1rem .5rem;
}
.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #073369;
}
.section-subtitle {
  text-align: center;
  /*color: #073369;*/
  margin-bottom: 1.2rem;
}
.mhv-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.mhv-section .image,
.mhv-section .text { 
    flex:1; padding:1rem;
}

.section-background {
    background: #FcFcFc;
}

/* Tarjetas */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
}
.card {
  background: #F0F8F6;
  padding: 1.5rem;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
}
.card.visible {
  opacity: 1;
}
.card:hover {
  transform: translateY(-5px);
}
.card img,
.card svg {
  width: 60px;
  margin-bottom: 1rem;
}

/* Llamada a la acci贸n */



.call-to-action {
  background: #D1F2EB;
  text-align: center;
  padding: 2rem;
  /*border-radius: 1rem;*/
  margin: 2rem auto;
}

.call-to-action h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.call-to-action button {
  border: 2px solid #328E53;
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: #328E53;
  color: #fff;
  /*border: none; */
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.call-to-action button:hover {
  background: #F9F9F9; /*#58b3b0;*/
  color:#328E53;
}


/*Carrusel*/
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 20px;
  img {
  max-width: 150px;
  margin-bottom: 10px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #6DC8C5;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 1;
  &:hover{
    color: #58b3b0;
  }
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/*FAQs*/
.faq-section {
  max-width: 1200px;
  margin: 40px auto;
}

.faq-item {
  border-bottom: 1px solid #ccc;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #023e8a;
  transition: background 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #f1f1f1;
}

.faq-answer {
  display: none;
  padding: 0 15px 15px;
  font-size: 1rem;
  color: #333
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: #6DC8C5;
}

.faq-question.active .arrow {
  transform: rotate(180deg); /* Flecha hacia arriba */
}

/* Footer */
footer {
  background: #F9F9F9;
  padding: 2rem 0;
  margin-top: 4.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  div{
     text-align: center;
     flex: 1;
     min-width: 200px;
     a{
        margin: 0 .5rem;
      }
    }
}
.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: #073369;
}

/* Botón scroll arriba */
#btn-top {
  display: none;
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  background: #073369;
  border: none;
  border-radius: 50%;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  i.fas{
    line-height: 0;
    font-size: 26px;
    margin-bottom: 0;
    color: white;
    }
}
#btn-top:hover {
  background: #58b3b0;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; 
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* Responsividad */
@media (min-width: 768px) {
    .nav-links {
      display: flex;
      list-style: none;
      position: relative;
      top: 0%;
      right: 0;
      box-shadow: none;
      gap: 1rem;
    }
    .menu-toggle { display: none; }
    section { padding: 4.5rem 3rem .5rem; }
    .banner-image { 
      flex:1;
      max-width: 35rem;
      padding: 0 0 0 1rem;
    }
    footer {
     padding: 2rem;
    }
}

@media (max-width: 768px) {
  .banner, .mhv-section {
    flex-direction: column;
  }
}
