*, *::before, *::after {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f9f4;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 80px;
  background-color: #305a27;
}

#header .container {
  width: 100%;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

#header .logo img {
  height: 60px;
  width: auto;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}

.nav__link {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.nav__link {
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #a8e063;
}

.nav__link {
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #a8e063;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

#header .logo {
  margin-left: 0px;
}

#header nav {
  margin-left: auto;
  margin-right: 0;
}

.hero {
  padding: 4rem 1rem;
  min-height: 70vh;
  margin-top: 100px;
  scroll-margin-top: 100px;
}
.hero-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.hero-content h1 {
  font-size: 3rem;
  text-align: center;
  color: #305a27;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1rem;
  color: black;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  text-align: center;
  background-color: #4caf50;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #45a045;
}
.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: right;
}
.hero-image img {
  max-width: 100%;
  height: auto;
}

.nav__list {
  align-items: center;
  height: 100%;
}

.nav__item {
  margin: 0 0.5rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav__link:hover,
.nav__link:focus {
  background-color: rgba(168, 224, 99, 0.2);
  color: #fff;
}

#header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.section-divider {
  width: 100%;
  border: none;
  height: 5px;
  background-color: #305a27;
  border-radius: 5px;
  margin: 0;
  
}

@media (max-width: 768px) {
  .hero {
    margin-top: 60px;
    scroll-margin-top: 60px;
  }
  nav.nav {
    display: none;
  }
  .about {
    margin-top: 0;
    padding-top: 1rem;
  }
}

.mobile-title {
  display: none;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-left: 3rem;
}

@media (max-width: 768px) {
  .mobile-title {
    display: block;
  }
}

.about {
  padding: 2rem 1rem;
  scroll-margin-top: 50px;
  background-color: #ffffff;
}
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  margin-top: 4rem;
}

.about-image > .section-divider {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  height: 3px;
  background-color: #000;
  border-radius: 5px;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.about-container h2 {
  font-size: 3rem;
  color: #205b2a;
  margin-bottom: 1rem;
}
.about-container p {
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
}

.cards {
  padding: 4rem 1rem;
  background-color: #ffffff;
}
.cards-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.card {
  background-color: #ffffff;
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, #305a27, #4caf50) 1;
  border-radius: 16px;
  position: relative;
  z-index: 0;
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-icon {
  font-size: 3rem;
  margin-bottom: -3rem;
}
.card h3 {
  font-size: 2.5rem;
  color: #205b2a;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}
.card:hover {
  transform: none;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.6), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-list {
  list-style: disc inside;
  text-align: left;
  margin: 0 auto;
  padding: 0;
}
.card-list li {
  margin-bottom: 0.25rem;
  color: #205b2a;
}
.card-list li::marker {
  color: #4caf50;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
  }
}

.funds {
  padding: 4rem 1rem;
}
.funds-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.funds-container h2 {
  font-size: 2.5rem;
  color: #205b2a;
  margin-bottom: 0.75rem;
}
.funds-container p {
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.funds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.fund-block {
  background-color: #ffffff;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  padding: 1.5rem;
  height: 420px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fund-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.fund-block h3 {
  font-size: 1.25rem;
  color: #305a27;
  margin-bottom: 0.75rem;
}
.fund-block ul {
  list-style: disc inside;
  color: #333333;
}
.fund-block li {
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .funds {
    padding: 2rem 1rem;
  }
}

.socios {
  padding: 4rem 1rem;
  background-color: #ffffff;
  scroll-margin-top: 85px;
}
.socios-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.socios-container h2 {
  font-size: 2.5rem;
  color: #205b2a;
  margin-bottom: 2rem;
}
.requisitos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
  justify-items: center;
}
.requisito {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 280px;
  height: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,255,240,0.9));
}
.requisito:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.requisito:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.requisito:hover .requisito-icon {
  box-shadow: 0 2px 8px rgba(76,175,80,0.6);
}
.requisito img {
  width: auto;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.requisito p {
  font-size: 1rem;
  color: #333333;
  margin: 0;
  margin-top: auto;
  font-weight: 1000;
}
@media (max-width: 768px) {
  .socios {
    padding: 2rem 1rem;
  }
}

.requisito-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4caf50, #a8e063);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: help;
  position: relative;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.requisito-icon::after {
  content: attr(data-tooltip);
  display: block;
  max-width: 200px;
  white-space: pre-line;
  word-wrap: break-word;
  text-align: center;
  font-size: 0.9rem;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #305a27;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.requisito-icon:hover::after {
  opacity: 1;
}
.condiciones-seguro {
  background-color: #f9f9f9;
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.condiciones-seguro h2 {
  margin-top: 0;
  color: #305a27;
  font-size: 2rem;
}

.condiciones-seguro p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.condiciones-seguro ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.condiciones-seguro li {
  margin-bottom: 2rem;
}

.condiciones-seguro a {
  color: #305a27;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.condiciones-seguro a:hover {
  text-decoration: underline;
  color: #2a4e22;
}

/* Estilos para los iframe */
.condiciones-seguro iframe {
  width: 100%;
  height: 480px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.services {
  padding: 2rem 1rem;
  scroll-margin-top: 80px;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-container h2 {
  font-size: 2.5rem;
  color: #205b2a;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.services-container h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #305a27, #4caf50);
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.services-list li {
  display: flex;
  flex-direction: row;
  flex: 0 0 calc(50% - 2rem);
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.services-list li img {
  width: 33.33%;
  height: 100%;
  object-fit: cover;
}

.services-content {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.services-content span {
  font-size: 1.5rem;
  color: #305a27;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.services-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1rem;
}

.services-content ul li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.services-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.services-content .proximamente {
  font-size: 1rem;
  font-style: italic;
  color: #777;
  margin-top: 0.5rem;
}

/* Mejora responsive en móviles */
@media (max-width: 768px) {
  .services-container h2 {
    font-size: 2rem;
  }

  .services-list li {
    flex-direction: column;
    flex: 1 1 100%;
  }

  .services-list {
    gap: 1.5rem;
  }

  .services-list li img {
    width: 100%;
    height: 200px;
  }

  .services-content {
    padding: 1rem;
  }

  .services-content ul {
    grid-template-columns: 1fr;
  }

  .services-content span {
    font-size: 2rem;
  }

  .services-content ul li {
    font-size: 0.95rem;
  }
}


.servicios-extra {
  padding: 1rem 1rem;
}

.servicios-extra h2 {
  font-size: 2.5rem;
  color: #205b2a;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.servicios-extra h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #305a27, #4caf50);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

.servicio {
  background-color: #ffffff;
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, #305a27, #4caf50) 1;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 220px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.servicio:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.servicio img {
  height: 40px;
  width: auto;
  margin: 0 auto 0.8rem;
  object-fit: contain;
}

.servicio p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #000000;
}

/* Botón para móvil */
.ver-mas-container {
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

#toggle-servicios {
  padding: 0.75rem 1.5rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#toggle-servicios:hover {
  background-color: #388e3c;
}

/* Responsive: solo en móvil */
@media (max-width: 768px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
  }

  .oculto-movil {
    display: none;
  }

  .ver-mas-container {
    display: block;
  }
}

.footer-contacto {
  background-color: #305a27;
  color: #f0f0f0;
  padding: 3rem 1rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-container h2 {
  font-size: 2.5rem;
  color: #a8e063;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-container h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #a8e063, #4caf50);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.footer-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  gap: 0.6rem;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.5;
  flex: 1 1 220px;
  box-sizing: border-box;
}

.footer-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(1.2) saturate(1.5);
}

.footer-item span {
  display: block;
  word-break: break-word;
  font-weight: 400;
  max-width: 100%;
}

.footer-credito {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #ccc;
}

@media (max-width: 600px) {
  .footer-container h2 {
    font-size: 1.6rem;
  }

  .footer-datos {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    margin-top: 0rem;
  }

  .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
    margin-top: 2rem;
  }

  .footer-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.3rem;
  }

  .footer-item span {
    margin-top: 0;
    font-size: 1rem;
  }

  .footer-credito {
    font-size: 0.8rem;
    padding: 0 1rem;
    margin-top: 2rem;
  }
}