/* FONDO DE TODA LA PÁGINA */
body {
 background: linear-gradient(135deg, #d4f7dc, #ffffff);
   background-size: cover;       /* que cubra todo el body */
  background-position: center;  /* centrado */
  background-repeat: no-repeat; /* no se repita */
  background-attachment: fixed; /* efecto parallax al hacer scroll */
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 15px; /* 30px + 70px */
  margin: 0; /* importante para evitar espacios indeseados */
  font-family: Arial, Helvetica, sans-serif;
}
img, .hero-inner, .container {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CONTENEDOR */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


/* ===== MENÚ ===== */
/* NAVBAR CONTROLADO */

/* ===== NAVBAR ===== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
   background: linear-gradient(135deg, #d4f7dc, #ffffff);
 
  z-index: 999;
  transition: box-shadow 0.3s ease;
}
.menu.scrolled {
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* EFECTO AL PASAR EL MOUSE EN TODA LA BARRA */
.menu:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* CONTENIDO CENTRADO */
.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* LOGO */
.logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* ICONO MENU (MÓVIL) */
.menu-icono {
  width: 25px;
  cursor: pointer;
  display: none;
}

/* NAVBAR LISTA */
.navbar ul {
  display: flex;
  gap: 25px; /* mejor que margin */
  list-style: none;
  align-items: center;
}

/* LINKS */
.navbar ul li a {
  position: relative;
  text-decoration: none;
  color: #272727be;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 5px 0;
  transition: color 0.3s ease;
   font-family: 'Poppins', sans-serif;
}

/* LÍNEA ANIMADA */
.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: #4caf7a; /* verde */
  transition: width 0.3s ease;
}

/* HOVER */
.navbar ul li a:hover {
  color: #4caf7a;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* LINK ACTIVO */
.navbar ul li a.active {
  color: #4caf7a;
}

.navbar ul li a.active::after {
  width: 100%;
}

.social-nav {
  display: flex;
  align-items: center; /* Centra verticalmente el contenido */
  padding-left: 10px; /* Opcional: espacio antes del icono */
}
.social-nav a {
  display: flex;
  align-items: center;
}

.social-nav img {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  display: block; /* para evitar espacios extra si fuera imagen inline */
  margin-top: 0;
}

.social-nav img:hover {
  opacity: 1;
}

.hero-two-col {
  margin-top: 100px;
  padding-bottom: 50px;
}


.hero-two-col {
  padding: 28px 16px;
}


.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}


.hero-text {
  flex: 0 0 58%;
  min-width: 0;
  padding: 8px 12px 20px 12px;
  color: #000000;
}


.hero-text h1 {
  margin: 0 0 8px 0;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
  font-size: clamp(28px, 6.5vw, 56px);
  text-transform: uppercase;
  color: #1f3d2b;
}


.hero-text h3 {
  margin: 0 0 12px 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #ce0303af;
}
.hero-text p {
  margin: 0 0 14px 0;
  color: rgba(0, 0, 0, 0.75);
  font-size: 15px;
  line-height: 1.45;
}


.btn-1 {
  display:inline-block;
  background:#4caf50;
  color:#ececec;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  font-weight:400;
}
.btn-1:hover {
  background-color: #3e8e41;
}


.hero-image {
  flex: 0 0 40%;
  min-width: 250px;
  height:350px;
  overflow: hidden;
  border-radius: 100px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
 transform: translateY(-40px);
}

.carrusel {
  overflow: hidden;
  width: 100%;
}

.slides-auto {
  display: flex;
  transition: transform 0.5s ease;
}
.slides-auto img {
  width: 100%;
  flex-shrink: 0;
}


.finanzas-card.wide {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #2bbf2b, #1e8f1e);
  border-radius: 10px;
  padding: 20px 24px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  max-width: 1300px; /* 👈 más largo */
  margin: auto;
}

/* Icono */
.finanzas-icon {
  background: rgba(255,255,255,0.15);
  border-radius: 7px;
  padding: 5px;
  flex-shrink: 0;
}

.finanzas-icon img {
  width:120px;
  height: 75px;
}

/* Contenido ocupa todo el espacio */
.finanzas-content {
  flex: 1;
}

.finanzas-content h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.finanzas-content p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Botón alineado a la derecha */
.finanzas-action a {
  background: #fff;
  color: #1e8f1e;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.finanzas-action a:hover {
  background: #f2f2f2;
}

@media (max-width: 768px) {
  .finanzas-card.wide {
    flex-direction: column; /* 👈 pasa de horizontal a vertical */
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }

  /* Imagen más proporcional */
  .finanzas-icon img {
    width: 90px;
    height: auto;
  }

  /* Texto más legible */
  .finanzas-content h3 {
    font-size: 18px;
  }

  .finanzas-content p {
    font-size: 13px;
  }

  /* Botón ocupa todo el ancho */
  .finanzas-action {
    width: 100%;
  }

  .finanzas-action a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}


.services-section .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 16px;
  text-align: center;
  padding-top: 50px;
}


.services-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
}


.services-subtitle {
  color: #8a8a8a;
  margin: 0 0 28px;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 36px;
  align-items: stretch;
  justify-items: center;
}


.service-card {
  width: 250px;
  min-height: 200px;         
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 24, 32, 0.06);
  padding: 28px 20px;
  text-align: center;
  display: flex;            
  flex-direction: column;   
  justify-content: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}


.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(18,24,32,0.10);
}


.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eaf6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}


.service-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


.service-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: #2b2b2b;
}

.service-desc {
  font-size: 14px;
  color: #7a7a7a;
  line-height: 1.35;
  margin: 0;
}


@media (min-width: 760px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.info {
  padding: 60px 0;
  display: flex;
  align-items: center;
  gap: 60px;             
  max-width: 1200px;
  margin: 0 auto;
}


.info-img {
  flex: 0 0 45%;          
}

.info-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;    
  object-fit: cover;
  margin-top: 20px;
}


.info-txt {
  flex: 1;
}

.info-txt h2 {
  font-size: 28px;        
  color: #222;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-txt p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}


@keyframes slide {
  from{
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.logos-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 5px;
}


.logos {
width: 80%;
display: flex;
align-items: center;  
margin: auto;
overflow: hidden;
background: transparent;
white-space:nowrap;
position: relative;
margin-top: calc(60vh -60px);
}

.logos-slide{
  display: inline-block;
  white-space: nowrap;
  animation: 35s slide infinite linear;
  img{
    height: 60px;
    margin: 0px 70px;
    margin-top: 30px;
  }
}

.logos::before{
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  content: "";
  z-index: 1;
}

.logos::after{
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  content: "";
  z-index: 1;
}

.btn-2 {
  display: inline-block;
  padding: 8px 16px;       
  background-color: #4caf50; 
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;     
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-2:hover {
  background-color: #3e8e41;
}



.footer {
  background-color: #4caf50;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
}


.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}


.footer-top .logo-3 {
  width: 140px;
}


.footer .links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}


.footer .links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}


.footer .links ul {
  padding: 0;
  margin: 0;
}

.footer .links li {
  list-style: none;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 12px 10px;
  font-size: 12px;
  background-color: #43a047;
}







/* RESPONSIVE */

@media (max-width: 880px) {
  .hero-inner {
    flex-direction: column;
    gap: 10px;
    padding-top: 0px;
  }
  .hero-text {
    flex: 0 0 auto;
    width: 120%;
    padding: 0px 30px;
    position: relative;
    right: 30px;
  }
  .hero-image {
    flex: 0 0 auto;
    width: 100%;
    height: 260px;
    min-width: 0;
  }
  .hero-text h1 {
    font-size: clamp(28px, 9.5vw, 44px);
    text-align: left;
  }
} 

.finanzas-section {
  width: 100%;
  padding: 40px 10px;
  padding-top: 13px;
  padding-bottom: 1px;
}

.finanzas-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.finanzas-card {
  background: #28af23ce;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(18, 24, 32, 0.06);
  padding: 40px 10px;
  text-align: center;
}


.services-section .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 16px;
  text-align: center;
  padding-top: 30px;
}


.services-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
}


.services-subtitle {
  color: #8a8a8a;
  margin: 0 0 28px;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 36px;
  align-items: stretch;
  justify-items: center;
}


.service-card {
  width: 250px;
  min-height: 200px;         
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 24, 32, 0.06);
  padding: 28px 20px;
  text-align: center;
  display: flex;            
  flex-direction: column;   
  justify-content: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}


.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(18,24,32,0.10);
}


.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eaf6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}


.service-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


.service-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: #2b2b2b;
}

.service-desc {
  font-size: 14px;
  color: #7a7a7a;
  line-height: 1.35;
  margin: 0;
}


@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.info {
  padding: 60px 0;
  display: flex;
  align-items: center;
  gap: 60px;             
  max-width: 1200px;
  margin: 0 auto;
}


.info-img {
  flex: 0 0 45%;          
}

.info-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;    
  object-fit: cover;
  margin-top: 20px;
}


.info-txt {
  flex: 1;
}

.info-txt h2 {
  font-size: 28px;        
  color: #222;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-txt p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-2 {
  display: inline-block;
  padding: 8px 16px;       
  background-color: #4caf50; 
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;     
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-2:hover {
  background-color: #3e8e41;
}



.footer {
  background-color: #4caf50;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
}


.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}


.footer-top .logo-3 {
  width: 140px;
}


.footer .links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}


.footer .links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}


.footer .links ul {
  padding: 0;
  margin: 0;
}

.footer .links li {
  list-style: none;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 12px 10px;
  font-size: 12px;
  background-color: #43a047;
}

.hero-logo {
  display: none;
}

@media (max-width: 768px) {
  .info {
    flex-direction: column;   /* 🔥 CLAVE */
    text-align: center;
    padding: 40px 20px;
  }

  .info-img {
    flex: 100%;
  }

  .info-txt {
    flex: 100%;
  }

  .info-img img {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-top .logo-2 {
    grid-column: span 2;
    margin: 0 auto;
  
  }

  .footer .links {
    display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;

  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top .logo-2 {
    margin-bottom: 10px;
  }
}


@media (max-width: 900px) {

  .hero-logo {
    display: block;
    width: 250px;
    margin: -240px 0 36px 50px
  }

}
/* ===== RESPONSIVE MENU ===== */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
  z-index: 999;
}

.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}

.logo {
  height: 60px;
}

/* MENU PC */
.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CONTENEDOR */
.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
    position: relative;
}

/* LOGO */
.logo {
    width: 120px;
}

/* ICONO */
.menu-icono {
    width: 45px;
    height: 45px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

/* líneas */
.menu-icono span {
    height: 3px;
    width: 28px;
    background: #1e293b;
    border-radius: 5px;
}

/* NAV DESKTOP */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: 0.3s;
}



/* SOCIAL */
.social-nav img {
    width: 20px;
}

#menu-toggle {
    display: none;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    /* mostrar hamburguesa */
    .menu-icono {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }

    /* menú oculto por defecto */
    .navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 50%;
        height: auto;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
        transition: 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-radius: 12px 0 0 12px;
        
    }

    /* menú abierto (JS agrega esta clase) */
    .navbar.active {
        right: 0;
    }

    /* lista vertical */
    .navbar ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* separadores */
    .navbar li {
        border-bottom: 1px solid #e2e8f0;
    }

    /* links estilo app */
    .navbar a {
        display: block;
        padding: 16px 28px;
        font-size: 16px;
        text-decoration: none;
        color: #1e293b;
        line-height: 1.9;
    }

    /* efecto toque */
    .navbar a:active {
        background: #e0f2fe;
    }
}


.modal {
    display: block;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-contenido {
    background-color: #fff;
    margin: 3% auto;
    padding: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    border-radius: 8px;
}

.modal-contenido img {
    width: 100%;
    height: auto;
}

.cerrar {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}