/* Portada (index.html): estilo de la referencia de TikTok que eligió el cliente.
   Fondo verde muy oscuro con resplandores suaves y título centrado con la segunda
   línea en itálica. El chip y las tarjetas se sacaron a pedido del cliente.
   Colores de la página: verde menta (--green-soft) y ámbar del slogan (--orange-300). */

.hero2 {
  --focus-ring: var(--orange-300);
  --hero2-bg: var(--green-night);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--header-h);
  /* Ocupa toda la primera pantalla debajo del header, con el contenido centrado */
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0;
  background: var(--hero2-bg);
  color: rgb(255 255 255 / 0.78);
  text-align: center;
}

/* Foto de la planta casi apagada: da contexto sin competir con el texto */
.hero2__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero2__photo img,
.hero2__photo img-auto-parallax {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.4);
}

/* Resplandores de color: menta arriba, ámbar abajo a la derecha */
.hero2__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(94 181 116 / 0.45), transparent 70%),
    radial-gradient(35% 40% at 85% 85%, rgb(251 176 78 / 0.16), transparent 70%),
    radial-gradient(35% 40% at 10% 75%, rgb(94 181 116 / 0.18), transparent 70%);
}

/* Líneas verticales finas, como la textura de las referencias */
.hero2__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero2__title {
  margin: 0 auto;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}
.hero2__title em {
  display: block;
  font-family: "Noto Sans", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--orange-300);
  letter-spacing: -0.035em;
}

.hero2__lead {
  max-width: 52ch;
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
}

.hero2__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero2__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 56px;
  padding: 0.4rem 0.45rem 0.4rem 1.6rem;
  border-radius: 999px;
  /* Plus Jakarta Sans, la misma de los links del navbar (pedido del cliente) */
  font-family: "Plus Jakarta Sans", var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.hero2__btn:hover { transform: translateY(-2px); }
.hero2__btn:active { transform: translateY(0); }

/* Círculo del ícono: en el principal va a la derecha, en WhatsApp a la izquierda */
.hero2__btn-chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.hero2__btn-chip .icon { width: 1.2rem; height: 1.2rem; }
/* Ícono de WhatsApp en PNG blanco (assets/img/icon-whatsapp-white.png) */
.hero2__btn-img { width: 1.4rem; height: 1.4rem; display: block; }

/* Principal: vidrio claro; el de WhatsApp va en gris un poco más oscuro, para que los
   dos contrasten (pedido del cliente). Texto blanco y la flecha suelta al lado. Al pasar el mouse el
   vidrio se aclara apenas y la flecha se adelanta. */
.hero2__btn--solid {
  gap: 0.6rem;
  padding: 0 1.9rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-weight: 700;
}
.hero2__btn--solid .hero2__btn-chip { width: auto; height: auto; border-radius: 0; background: none; color: inherit; }
.hero2__btn--solid .hero2__btn-chip .icon { width: 1.25rem; height: 1.25rem; stroke-width: 2.4; }
.hero2__btn--solid:hover .hero2__btn-chip { transform: translateX(5px); }

/* Brillo + relleno (pedido del cliente, combinación de Shimmer Button e Interactive Hover
   Button de Magic UI): un reflejo cruza el botón cada 3 s y, al pasar el mouse, el botón se
   llena de ámbar desde la flecha con el texto en verde noche */
.hero2__btn--solid { position: relative; overflow: hidden; isolation: isolate; }
.hero2__btn--solid::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(1.9rem + 0.625rem); /* centro de la flecha */
  z-index: -2;
  width: 10px;
  height: 10px;
  margin: -5px -5px 0 0;
  border-radius: 50%;
  background: var(--orange-300);
  transform: scale(0);
  transition: transform 0.55s var(--ease-out);
}
.hero2__btn--solid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.35) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: hero2-shimmer 3.2s var(--ease-out) infinite;
}
@keyframes hero2-shimmer { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.hero2__btn--solid:hover,
.hero2__btn--solid:focus-visible { border-color: var(--orange-300); color: var(--green-night); }
.hero2__btn--solid:hover::before,
.hero2__btn--solid:focus-visible::before { transform: scale(80); }

/* WhatsApp: vidrio gris más oscuro que el principal, con el ícono blanco en PNG */
.hero2__btn--ghost {
  padding: 0.4rem 1.6rem 0.4rem 0.45rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(60 60 60 / 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
}
/* Ícono blanco suelto, sin círculo (pedido del cliente) */
.hero2__btn--ghost { gap: 0.6rem; padding: 0 1.9rem; }
.hero2__btn--ghost .hero2__btn-chip { width: auto; height: auto; border-radius: 0; background: none; }
.hero2__btn--ghost:hover .hero2__btn-chip { transform: scale(1.1); }

/* WhatsApp con el mismo efecto que "Solicitar propuesta" (brillo cada 3 s y relleno ámbar al
   pasar el mouse, acá desde el ícono) y la frase que cambia a "¡Contactanos!" (pedido del cliente) */
.hero2__btn--ghost { position: relative; overflow: hidden; isolation: isolate; }
.hero2__btn--ghost::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(1.9rem + 0.7rem); /* centro del ícono */
  z-index: -2;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--orange-300);
  transform: scale(0);
  transition: transform 0.55s var(--ease-out);
}
.hero2__btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.3) 50%, transparent 65%);
  transform: translateX(-130%);
  /* Desfasado 1,6 s del otro botón para que los dos brillos no crucen a la vez */
  animation: hero2-shimmer 3.2s var(--ease-out) 1.6s infinite;
}
.hero2__btn--ghost:hover,
.hero2__btn--ghost:focus-visible { border-color: var(--orange-300); color: var(--green-night); }
.hero2__btn--ghost:hover::before,
.hero2__btn--ghost:focus-visible::before { transform: scale(80); }
/* El ícono blanco pasa a verde noche sobre el ámbar */
.hero2__btn-img { transition: filter 0.3s; }
.hero2__btn--ghost:hover .hero2__btn-img,
.hero2__btn--ghost:focus-visible .hero2__btn-img { filter: brightness(0) saturate(100%) opacity(0.85); }

/* Cambio de frase: las dos van en la misma celda, el botón toma el ancho de la más larga */
.hero2__swap { display: inline-grid; }
.hero2__swap > span { grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.hero2__swap-b { opacity: 0; transform: translateY(0.6em); text-align: center; }
.hero2__btn--ghost:hover .hero2__swap-a,
.hero2__btn--ghost:focus-visible .hero2__swap-a { opacity: 0; transform: translateY(-0.6em); }
.hero2__btn--ghost:hover .hero2__swap-b,
.hero2__btn--ghost:focus-visible .hero2__swap-b { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .hero2__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .hero2__btn { justify-content: center; }
}

.hero2__title,
.hero2__lead,
.hero2__actions { animation: rise 0.9s var(--ease-out) both; }
.hero2__lead { animation-delay: 0.08s; }
.hero2__actions { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .hero2 *, .hero2__btn--solid::before, .hero2__btn--solid::after, .hero2__btn--ghost::before, .hero2__btn--ghost::after { animation: none !important; transition: none !important; }
}

.hero2 > .container { width: 100%; }
