/* Evita desbordes */
html, body {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px solid red; */ /* 👈 Úsalo para depurar qué desborda */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  scroll-behavior: smooth;
  min-height: 100vh;
}

nav {
  /*background: rgba(1,1,146,0.8);*/
  background-color: rgba(30, 41, 59, 0.85);
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  height: 54px;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: auto;
  padding: 0 5px;
}

nav .logo {
  background-color: white;
  height: 54px;
  padding: 2px 12px;
}

nav .logo2 {
  height: 54px;
  padding: 2px 12px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#hero {
  margin-top: 54px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  padding: 0;
}

.hero-content {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.001), rgba(0, 0, 0, 0.8));
  padding: 10px 0;
  backdrop-filter: blur(3px);
  width: 100%;
}

.hero-content h2 {
  font-size: 2em;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.2em;
  color: #1e3a8a;
}

section {
  max-width: 1350px;
  width: 100%; /* 👈 nuevo */
  margin: 40px auto;
  padding: 30px 15px;
  background: #ffffff;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2 {
  margin-bottom: 20px;
  color: #1e3a8a;
  font-size: 1.8em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%; /* 👈 nuevo */
}


.card {
  color: #0f172a;
  border-radius: 4px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 15px;
  font-size: 0.95em;
}

.card a {
  color: #2563eb;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.card button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.card button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.double-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 40px auto;
  flex-wrap: wrap;
  width: 100%; /* 👈 nuevo */
}

.double-section section {
  flex: 1 1 48%;
  padding: 20px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#map {
  height: 550px;
  border-radius: 6px;
  margin-top: 10px;
}

footer {
  text-align: center;
  font-size: 0.9em;
  padding: 20px;
  color: #fff;
  background: #1e293b;
  border-top: 4px solid #0f172a;
  margin-bottom: 0px;
}

/* ✅ MEDIA QUERY RESPONSIVE */
@media (max-width: 780px) {
  .burger {
    display: block;
  }

  body {
    overflow-x: hidden;
  }

  

  #nav-menu {
    display: none;
    flex-direction: column;
    width: 100vw; /* 👈 Asegura que no desborde */
    background-color: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 54px;
    left: 0;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  #nav-menu.show {
    display: flex;
  }

  nav ul li {
    margin: 15px;
    text-align: center;
  }

  .cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }

  .double-section {
    flex-direction: column;
  }

  .double-section section {
    width: 100%;
  }

  .hero-content {
    padding: 20px 30px;
  }

  .container-flex .item {
    width: 100% !important;
  }

  .cards, .double-section, .implementacion-financista, .info-grid {
    width: 100%; /* 👈 nuevo */
  }

  .socio-card {
    max-width: 100%; /* ya estaba */
  }

  .card-img {
    height: auto; /* Ajusta la altura si es muy grande */
    max-width: 100%;
  }

  .container-flex .item {
    width: 100% !important;
  }
}

.container-flex {
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}


.implementacion-financista {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 30px 15px;
  max-width: 1350px;
  width: 100%; /* 👈 nuevo */
  margin: 40px auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.entidad {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f1f5f9;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.entidad figure {
  margin: 0;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.entidad figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  background: white;
}

.entidad h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
  color: #1e3a8a;
}

.entidad p {
  margin: 0;
  font-size: 1em;
}


.elemento {
  display: flex; 
  justify-content:space-between; 
  padding: 20px 20px; 
  align-items:center;
  width: 96%;
}

/* en hover que se haga un pequeño zoom y se cambie el color del fondo a blanco */
.elemento:hover {
  background-color: #ffffff;
  transform: scale(1.02);
  transition: transform 0.2s ease, background-color 0.2s ease;
}


/* Responsive */
@media (max-width: 768px) {
  .implementacion-financista {
    flex-direction: column;
  }

  .entidad {
    flex-direction: column;
    text-align: center;
  }

  .entidad figure {
    width: 100px;
    height: 100px;
  }
}


.titulo-seccion {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #1e3a8a;
}

.socios-elegantes {
  gap: 30px;
  justify-content: center;
}

.socio-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  flex: 1 1 300px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.socio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
  text-align: center;
}

.card-body h3 {
  margin-bottom: 15px;
  font-size: 1.3em;
  color: #0f172a;
}

.card-body button {
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.card-body button:hover {
  background-color: #3b82f6;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .socio-card {
    max-width: 100%;
  }

  .card-img {
    height: 350px;
  }
}

#info-proyecto {
  max-width: 1300px;
  margin: 50px auto;
  padding: 30px;
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.info-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-card {
  flex: 1 1 300px;
  background-color: #ffffff;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  word-wrap: break-word;        /* rompe palabras largas */
  overflow-wrap: break-word;    /* alternativa moderna */
  white-space: normal;          /* permite saltos de línea automáticos */
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #1e3a8a;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  margin-bottom: 10px;
  font-size: 0.97em;
  line-height: 1.5;
  color: #333;
}

.info-card a {
  color: #2563eb;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .info-grid {
    flex-direction: column;
    width: 100%;
  }
  .info-card {
    width: 100%;
    word-wrap: break-word;        /* rompe palabras largas */
    overflow-wrap: break-word;    /* alternativa moderna */
    white-space: normal;          /* permite saltos de línea automáticos */
  }
}



.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-primary:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}


#lista-socio {
  height: 300px;
  overflow-y: auto;
}

#lista-proyecto {
  height: 300px;
  overflow-y: auto;
}