@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");


/* 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: #333;
  font-weight: normal;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* 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;
}

.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;
}

/* =========================
   CONTENEDOR MÁS ANCHO
========================= */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================
   SECCIÓN
========================= */
.nosotros {
    padding: 80px 0;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
}

/* =========================
   TITULOS
========================= */
.nosotros-heading {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #1e293b;
}

.nosotros-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #64748b;
}

/* =========================
   LAYOUT PRINCIPAL
========================= */
.content-pro {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

@media (max-width: 768px) {

    .content-pro {
        flex-direction: column;
    }

    .container-wide {
        padding: 0 20px;
    }

    .nosotros-heading {
        font-size: 24px;
    }

}
/* =========================
   ÓRGANOS DE GOBIERNO
========================= */
.organos {
    padding: 80px 20px;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);
}

.titulo-seccion {
   text-align: center;
 font-size: 28px;
  font-weight: 800;
  color: #1f3d2b;
  margin-bottom: 15px;
  letter-spacing: 1px;

}

.organos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD ORGANOS */
.organo {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.organo h3 {
    margin-bottom: 15px;
    color: #0f172a;
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top .logo-2 {
    margin-bottom: 10px;
  }
}

.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;
    }
}

.bank-intro {
  max-width: 800px;
  margin: 0 auto 20px auto;
 
  padding: 10px 20px;
}

.bank-intro h2 {
  font-size: 22px;
  color: #1f3d2b;
  margin-bottom: 10px;
}

.bank-intro p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* Contenedor en dos columnas */
.bank-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cada tarjeta */
.bank-box {
  flex: 1 1 320px; /* se adaptan y bajan en celular */
  background: #f7f9fb;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e1e6eb;
}

/* Títulos */
.bank-box h3 {
  font-size: 16px;
  color: #1f2d3d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Icono verde */
.icon {
  color: #1e8449;
  font-weight: bold;
  margin-right: 8px;
}

/* Lista */
.bank-box ul {
  padding-left: 18px;
}

.bank-box li {
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}





.team-pro {
  padding: 80px 20px;
  background: linear-gradient(135deg, #d4f7dc, #ffffff);

padding-bottom: 15px;
}

.section-title {
  text-align: center;
 font-size: 30px;
  font-weight: 900;
  color: #1f3d2b;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 0px;
}



/* ===== CONTENEDOR FLEX LIMPIO ===== */
.team-grid {
  display: flex;
  justify-content: center;   /* centra las cards */
  gap: 25px;                 /* separación uniforme */
  flex-wrap: wrap;           /* baja a otra línea si no cabe */
  margin-bottom: 60px;
}

.team-section {
  margin-top: 100px; /* baja todo el bloque de cards */
}

/* ===== CARD ESTILO PROFESIONAL ===== */
.card {
  width: 220px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-family: "Poppins", sans-serif;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGEN */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* TEXTO */
.card h4 {
  margin: 20px 0 15px;
   color: #1f3d2b;

}

.card span {
  color: green;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.card p {
  font-size: 12px;
  padding: 0 12px 15px;
    color: #1f3d2b;
margin-top: 0;
}

/* MODAL */
/* ===== MODAL FONDO ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* ===== CAJA FIJA ===== */
.modal-box {
  width: 700px;
  height: 400px;            /* 🔥 CLAVE: tamaño fijo */
  max-width: 80%;
  background: #fff;
  border-radius: 15px;
  display: flex;
  overflow: hidden;

  transform: scale(0.9);
  transition: 0.3s;
}

.modal.active .modal-box {
  transform: scale(1);
}

/* ===== IMAGEN IZQUIERDA FIJA ===== */
.modal-left {
  width: 300px;
  flex-shrink: 0;          /* 🔥 evita que se deforme */
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== TEXTO DERECHA CONTROLADO ===== */
.modal-right {
  flex: 1;
  padding: 20px;
  overflow-y: auto;        /* 🔥 scroll interno */
  max-height: 100%;
  color: #1f3d2b;
  padding-bottom: 50px;
}

/* ===== CLOSE ===== */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}


@media (max-width: 600px) {

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
  }

  .team-section {
    margin-top: 50px;
  }

  .card {
    width: 90%;   /* ocupa casi toda la pantalla */
    max-width: 320px;
  }

  .card img {
    height: 180px;
  }

  .card h4 {
    font-size: 15px;
  }

  .card span {
    font-size: 12px;
  }

  .card p {
    font-size: 11px;
  }

}

@media (max-width: 600px) {

  .modal-box {
    width: 92%;
    height: auto;
    max-height: 85vh;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-left {
    width: 100%;
    height: 200px;
  }

  .modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-right {
    padding: 15px;
    overflow-y: auto;
  }

  .modal-right h2 {
    font-size: 18px;
  }

  .modal-right h4 {
    font-size: 14px;
  }

  .modal-right p {
    font-size: 13px;
    line-height: 1.5;
  }

  .close {
    top: 8px;
    right: 10px;
    font-size: 24px;
  }
}