/* ==========================
   HEADER
============================= */
.greenleaders-header {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: #2e4639;
  border-bottom: 1px solid #d4a373;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: "Poppins", sans-serif;
  z-index: 1000;
}

/* Contenedor del logo y texto */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Añadido para centrar horizontalmente */
  gap: 1rem;
  width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
  max-width: 300px; /* Opcional: limita el ancho máximo para mejor aspecto */
  margin: 0 auto; /* Centra el contenedor horizontalmente en su contenedor padre */
}

/* Imagen del logo */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
/* Ícono de menú hamburguesa */
.menu-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Íconos del header */
.header-icons {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-selector {
  display: flex;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.language-icon {
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease;
}

.language-icon:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.language-icon.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.language-icon span {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.login-icon {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.15);
  -webkit-transition: ease-out 0.4s;
  -moz-transition: ease-out 0.4s;
}

.login-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.login-icon i {
  margin-right: 0.5rem;
}

.theme-icon {
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.theme-icon:hover {
  transform: rotate(180deg);
}
/* ==========================
   BARRA DE NAVEGACION
============================= */
.greenlead-nav {
  width: 100%;
  background-color: #2e4639;
  border-bottom: 1px solid #2e4639;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.green-list {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  font-family: "Poppins", sans-serif;
}

.green-list li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.green-list li a:hover {
  color: #b99119;
}

:root {
  --celeste: #00b5ff;
  --primary: #0a7ac4;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f7fafc;
  --white: #ffffff;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f5eb;
}

header {
  background: #bde9bf;
  color: rgb(27, 27, 27);
  padding: 15px;
  text-align: left;
}

header {
  display: flex;
  justify-content: space-between; /* empuja el contenido a la derecha */
  align-items: center;
  padding: 15px 15px;
  background-color: #38934d; /* opcional */
}

/* Estilo del título */
.titulo {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
}

.logo {
  height: 70px; /* tamaño del logo */
  width: auto;
}
.titulo {
  font-size: 1.8rem;
  color: #ffffff; /* negro */
  margin: 0;
}

.btn-primary {
  background: #43a047;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
}

.btn-primary:hover {
  background: #388e3c;
}

.section {
  padding: 30px 20px;
  text-align: center;
}
/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 80vh; /* ocupa 80% de la altura de la ventana */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;

  /* Fondo con imagen */
  background-image: url("C:\Users\Estudiante A3-39\Downloads\upscalemedia-transformed.jpeg"); /* cambia la ruta a tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Overlay oscuro para mejorar legibilidad */
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Marko One", sans-serif;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 700px;
  font-family: "Poppins", sans-serif;
}

.hero .btn-primary {
  padding: 15px 35px;
  font-size: 1.2rem;
  background-color: #64b605c7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
}

.hero .btn-primary:hover {
  background-color: #539705;
  transform: scale(1.05);
}

/* -------------------- ABOUT SECTION -------------------- */
.section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1f1f1f;
  font-family: "Marko One", sans-serif;
}

.section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: auto;
  color: #1b1b1b;
  font-family: "Poppins", sans-serif;
}
.hero {
  background-image: url("https://patapila.org/_next/image?url=%2Fimg%2F9-portada-voluntario-ONG.webp&w=3840&q=75");
}

.horizontal-containers {
  display: flex;
  justify-content: center; /* centra los tres */
  gap: 20px; /* espacio entre contenedores */
  flex-wrap: wrap; /* permite bajar a otra fila en pantallas pequeñas */
  margin: 40px; /* margen alrededor de todo el grupo */
}

.container {
  flex: 1 1 200px; /* ancho flexible */
  max-width: 300px;
  object-fit: cover; /* recorta la imagen para que no se deforme */
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  margin: 10px; /* margen individual entre contenedores */
  padding: 15px; /* espacio interno dentro del contenedor */
}

/* Botón Apoya celeste y ovalado */
.btn-apoya {
  background-color: #00bfff; /* celeste */
  color: #fff;
  border: none;
  border-radius: 25px; /* lo hace ovalado */
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-apoya:hover {
  background-color: #009acd; /* azul más oscuro al pasar el mouse */
  transform: scale(1.05);
}

.container img {
  width: 100%;
  border-radius: 25px;
  height: 220px; /* altura prudente para web */
  object-fit: cover; /* recorta sin deformar */
  display: block;
}

.container h3 {
  margin-bottom: 15px; /* separa el título del texto */
  font-family: "Marko One", sans-serif;
}

.container p {
  margin-bottom: 10px; /* separa los párrafos */
  font-family: "Poppins", sans-serif;
}

footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 10px;
}

/* ===== Donaciones ===== */
.donate-section {
  text-align: center;
  padding: 40px 20px;
}

.donation-options button {
  margin: 10px;
  padding: 10px 20px;
  border: 2px solid #40916c;
  background: #fff;
  color: #40916c;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donation-options button:hover {
  background: #40916c;
  color: #fff;
  transform: scale(1.1);
}

.donation-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.donation-form input,
.donation-form select {
  padding: 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===== Impacto ===== */
.impact-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.impact-stats div {
  background: #d8f3dc;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.impact-stats div:hover {
  transform: scale(1.1);
}
#donate {
  display: none; /* Oculto al inicio */
}
/* Fondo oscuro */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
}

/* Contenido del modal */
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Botón de cerrar */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #2d6a4f;
  color: #fff;
  padding: 15px;
  margin-top: 40px;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .horizontal-containers {
    flex-direction: column;
    align-items: center;
  }

  .impact-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/*inico del footer*/
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%; /* altura del degradado */
  background: linear-gradient(to bottom, rgba(87, 75, 41, 0.6), transparent);
  z-index: 1;
}

.footer {
  background: url("nueva3.png");
  background-size: cover; /* Asegura que cubra todo el espacio */
  color: white;
  position: relative; /* ¡No uses fixed aquí si hay contenido arriba! */
  overflow: hidden;
  min-height: 50px; /* Puedes ajustar según tu imagen */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-top-curve {
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: start; /* alinea todo al inicio (izquierda) */
  flex-wrap: wrap;
  max-width: 800px;
  margin-left: 50px; /* ajusta a tu gusto */
  margin-right: auto;
  z-index: 2;
  position: relative;
  padding-top: 90px;
}

.footer-column {
  flex: 1 1 250px;
  margin: 10px;
}
.footer-column h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: rgb(255, 255, 255); /* color de los títulos */
  font-family: "Marko One", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* sombra suave */
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: rgb(247, 247, 247);
  text-decoration: none;
  font-size: 0.75em; /*letras de los enlaces*/
  font-family: "Poppins", sans-serif;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8em;
  color: #18301b; /*color de las letras de abajo*/
}

.footer-bottom a {
  display: block;
  margin-top: 10px;
  color: none;
  text-decoration: none;
}
.footer-legal {
  background-color: #18301b; /* tono oscuro compatible con el footer */
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* línea sutil */
}
/*fin del footer*/
#scrollToTopBtn {
  display: none; /* Oculto por defecto */
  position: fixed;
  bottom: 235px;
  right: 15px;
  background-color: #3333338a; /* Gris oscuro */
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px; /* Un poco redondeado */
  cursor: pointer;
  z-index: 1000;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #555;
}
