/* ======= ESTILOS GENERALES ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* ======= HEADER ======= */
header {
  background-color: #4f8370;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 100px;
  filter: brightness(1.25);
  transition: transform 0.3s ease-in-out;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  position: relative;
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00c760;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

/* ======= HERO / INICIO ======= */
.inicio-hero {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2);
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 1.2s ease-in;
}

.contenido-hero h1 {
  font-size: 2.5rem;
  color: #4f8370;
  margin-bottom: 10px;
}

.eslogan {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
}

.imagen-hero {
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-in;
}

/* ======= SECCIÓN BIENVENIDA ======= */
.bienvenida {
  padding: 40px 20px;
  text-align: center;
}

.bienvenida h1 {
  color: #00a651;
  margin-bottom: 10px;
}

.bienvenida p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.bienvenida img {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

/* ======= FOOTER ======= */
footer {
  background-color: #f5f5f5;
  color: #666;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  margin-top: 30px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }
}

/* ======= ANIMACIONES ======= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= CARRUSEL ======= */
.carrusel-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carrusel-slide {
  display: flex;
  transition: transform 1s ease;
}

.carrusel-slide img {
  flex-shrink: 0;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

/* Responsive para celulares */
@media (max-width: 600px) {
  .carrusel-slide img {
    height: 250px;
  }
}


