/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fafafa;
  color: #222;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

a {
  color: #3a9d23;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #2b6b18;
  text-decoration: underline;
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Encabezado fijo con animación */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

/* Navegación */
nav {
  background-color: transparent;
  box-shadow: none;
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav .nav-links li a {
  font-weight: 500;
  color: #222;
}

nav .nav-links li a:hover {
  color: #3a9d23;
}

/* Logo en la navegación */
nav .logo-nav {
  width: 140px;
  height: auto;
}

/* Splash / pantalla inicial */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

.splash-logo {
  width: 250px; /* logo más grande */
  height: auto;
  margin-bottom: 1.5rem;
}

.splash-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a9d23;
}

/* Hero */
.hero {
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 8rem 2rem 6rem;
  text-align: center;
  color: #222;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background-color: transparent;
  border: 2px solid #3a9d23;
  color: #3a9d23;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero .btn:hover {
  background-color: #3a9d23;
  color: #fff;
}

/* Secciones */
section {
  background-color: #fff;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Títulos secciones */
h2 {
  color: #111;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Tarjetas de formas de ayudar */
.icon-cards-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.icon-card {
  flex: 1 1 220px;
  background-color: #fefefe;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.icon-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.icon-card img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.icon-card h3 {
  margin-bottom: 0.8rem;
  color: #3a9d23;
}

.icon-card p {
  font-size: 1rem;
  color: #555;
}

/* Eventos */
.eventos-row {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
}

.evento-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.evento-card:hover {
  transform: translateY(-6px);
}

.evento-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.evento-card .evento-texto {
  padding: 1rem;
}

.evento-card .evento-texto h4 {
  margin-bottom: 0.5rem;
  color: #222;
}

.evento-card .evento-texto p {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

/* Impacto */
.impact-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.impact-box {
  flex: 1 1 220px;
  background-color: #fefefe;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.impact-box:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.impact-box h3 {
  color: #3a9d23;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.impact-box p {
  color: #555;
  font-size: 1rem;
}

/* Testimonios */
.testimonios-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  font-style: italic;
  color: #444;
  font-size: 1.1rem;
  border-left: 4px solid #3a9d23;
}

.testimonios-slider .autor {
  margin-top: 1rem;
  font-weight: 700;
  color: #3a9d23;
  text-align: right;
}

/* Blog */
.blog-lista {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
}

.blog-item {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-6px);
}

.blog-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-item .blog-texto {
  padding: 1rem;
}

.blog-item .blog-texto h4 {
  margin-bottom: 0.6rem;
  color: #222;
}

.blog-item .blog-texto p {
  color: #666;
  font-size: 0.9rem;
}

/* Formulario de donaciones */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: 600;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #3a9d23;
}

form textarea {
  min-height: 100px;
}

form button {
  background-color: transparent;
  border: 2px solid #3a9d23;
  color: #3a9d23;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
  background-color: #3a9d23;
  color: #fff;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
  margin-top: 3rem;
}

footer a {
  color: #3a9d23;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
  .icon-cards-row {
    flex-direction: column;
    align-items: center;
  }
  .impact-container {
    flex-direction: column;
    align-items: center;
  }
  .eventos-row {
    grid-template-columns: 1fr;
  }
  nav .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}
