
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  background: linear-gradient(90deg, #00a551, #a3dc35);
  color: white;
  min-height: 62vh;
  display: flex;
  align-items: center;

  box-sizing: border-box;
  overflow: hidden;
}

/* Contenedor alineado con el header */
.section-container {
  width: 100%;
  margin: 0 6%;
  display: flex;
  align-items: center;
}

/* Contenedor flexible para texto e imagen */
.hero__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

/* ---------------------------- */
/* Columna izquierda: textos */
/* ---------------------------- */
.hero__text {
  flex: 1;
  min-width: 280px;
}

/* Título grande SIEMPRE dominante */
.hero__text h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); /* nunca menos de 2rem */
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Párrafo delgado, siempre más pequeño */
.hero__text p {
  font-size: clamp(1rem, 2vw, 1.15rem); /* nunca más grande que h1 */
  margin-bottom: 2rem;
  color: #f0f0f0;
  max-width: 490px;
  line-height: 1.6;
  /* transition: font-size 0.2s; */
}

/* Botón principal */
.hero__boton {
  background: linear-gradient(90deg, #552f0a, #a86335);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, font-size 0.2s;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hero__cta:hover {
  color: #552f0a;
  background: #a86335;
  border: 1px solid #552f0a;

}

/* ---------------------------- */
/* Columna derecha: imagen */
/* ---------------------------- */
.hero__image {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  z-index: 1;
}

/* Imagen: Responsive */
.hero__image img {
  width: 100%;
  max-width: 400px;
  min-width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  transition: width 0.2s;
}

/* Fondo con forma hexagonal tipo blockchain */
.hero__image::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #ffffff22, #ffffff11);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  z-index: -1;
  top: -30px;
  left: 10%;
  animation: hexPulse 6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 165, 81, 0.19));
}

@keyframes hexPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}


@media (max-width: 900px) {
  .section-container {
    margin: 0 3%;
  }
  .hero__container {
    gap: 1.7rem;
  }
  .hero__image::before {
    width: 250px;
    height: 250px;
    left: 0;
    top: 0;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: unset;
    padding: 2.5rem 0 2rem 0;
  }
  .section-container {
    margin: 0 2%;
    align-items: flex-start;
  }
  .hero__container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
  }
  .hero__image,
  .hero__text {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
  }
  .hero__image img {
    max-width: 270px;
  }
  .hero__image::before {
    width: 170px;
    height: 170px;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero__text h1 {
    font-size: clamp(2rem, 7vw, 2.3rem); /* Siempre más grande */
  }
  .hero__text p {
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    max-width: 95vw;
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 480px) {
  .hero__image img {
    max-width: 190px;
    min-width: 100px;
  }
  .hero__image::before {
    width: 110px;
    height: 110px;
    top: -8px;
  }
  .hero__text h1 {
    font-size: 2rem;
    line-height: 1.15;
  }
  .hero__text p {
    font-size: 1rem;
  }
  .hero__cta {
    font-size: 0.97rem;
    padding: 0.6rem 1.1rem;
  }
}
