/* Hero */
.hero {
  background: url("../img/ganado.jpg") center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-text {
  background: hsla(15, 67%, 56%, 0.7);
  padding: 40px;
  max-width: 600px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
  color: white;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bloques de texto */
.text-blocks {
  max-width: 1210px;
  margin: 40px auto;
  padding: 0 20px;
}

.text-block {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.text-content {
  flex: 1 1 60%;
}

.text-content h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #2c3e50;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.image-container {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  max-width: 150px;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Secciones con imagen y texto */
.section {
  max-width: 1000px;
  margin: 60px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.section:nth-child(even) {
  flex-direction: row-reverse;
}

.section img {
  flex: 1 1 400px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.section-text {
  flex: 1 1 400px;
}

.section-text h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Galería horizontal */
.gallery-triangle {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.gallery-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.gallery-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 80px;
}

.row-bottom {
  margin-top: -10px;
  padding-left: 60px;
}

.gallery-item {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.nuestros-inicios {
  text-align: center;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.nuestros-inicios h3 {
  font-size: 2rem;
  color: black;
  margin-bottom: 5px;
}

.nuestros-inicios h4 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.nuestros-inicios p {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    flex-direction: column !important;
  }

  .row-bottom {
    padding-left: 0;
    margin-top: 10px;
  }

  .gallery-row {
    flex-wrap: wrap;
  }

  .gallery-item {
    width: 45vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .gallery-item img {
    height: 100%;
  }
}

/* Sección Nuestros Inicios */
.inicios-section {
  max-width: 1210px;
  margin: 40px auto;
  padding: 50px 70px;
}

.inicios-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.inicios-text {
  flex: 3 2 30%;
  text-align: center;
}

.inicios-text h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
}

.inicios-text h4 {
  color: #888;
  margin: 10px 0;
}

.inicios-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.inicios-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inicios-image img {
  width: 350px;
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
}

/* Nuestra Visión */
.vision-box {
  background: #d84e22;
  padding: 60px 20px;
  margin: 40px auto;
  border-radius: 12px;
  max-width: 1210px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vision-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.vision-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-image img {
  width: 350px;
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
}

.vision-text {
  flex: 1 1 50%;
  color: white;
  text-align: center;
}

.vision-text h3 {
  font-size: 1.8rem;
  margin-top: 0;
  text-align: center;
}

.vision-text p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* Ajustes extra para móviles pequeños */
@media (max-width: 425px) {
  .hero-text {
    padding: 20px;
    font-size: 0.9rem;
  }

  .text-content h3,
  .vision-text h3,
  .inicios-text h3 {
    font-size: 1.4rem;
  }

  .inicios-image img,
  .vision-image img {
    width: 100%;
    height: auto;
  }

  .inicios-section,
  .vision-box,
  .text-blocks {
    padding: 20px 10px;
  }

  .gallery-item {
    width: 90vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
