/**
 * hero.css — Sección Hero fullscreen
 */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-cafe-black);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__image {
  position: absolute; inset: 0;
  background: url("/app/Assets/img/photos/hero-cafetero.jpg") center/cover no-repeat;
  filter: saturate(0.88) brightness(0.46);
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(243, 230, 205, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.72), rgba(11, 7, 4, 0.96) 48%, rgba(5, 3, 2, 1) 100%);
  mix-blend-mode: normal;
  z-index: 2;
}
.hero__rings {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.44;
  animation: heroRingsFloat 26s ease-in-out infinite;
  z-index: 2;
}
.hero__rings-image {
  position: absolute; inset: 0;
  background: url("/app/Assets/img/photos/textura-madera.jpg") center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: overlay;
  filter: saturate(0.75) brightness(0.96);
  z-index: 1;
}
.hero__watermark {
  position: absolute; inset: 0;
  background: url("/app/Assets/img/photos/albura-horizontal.jpeg") center bottom/55% no-repeat;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}
.hero__rings circle {
  fill: none;
  stroke: #E1C29C;
  stroke-width: 0.75;
  opacity: 0.56;
}
.hero__rings circle:nth-child(odd) { stroke: #C1571A; opacity: 0.32; }
@keyframes heroLogoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroRingsFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1.5%) scale(1.03); }
}

.hero__grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner { position: relative; z-index: 2; padding-top: 6rem; }

.hero__eyebrow { margin-bottom: 1.6rem; }

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: min(max(var(--fs-hero), 4.6rem), 7rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--c-marfil);
  margin: 0;
  max-width: 24ch;
}
.hero__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.9;
  color: var(--c-terracota);
}
.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 3;
  z-index: 3;
  pointer-events: none;
}
.hero__logo img {
  max-width: min(120px, 15vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.28));
  animation: heroLogoRotate 22s linear infinite;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-muted-solid);
  max-width: 42ch;
  margin-bottom: 2.6rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; bottom: 2.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--text-muted-solid);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 46px; background: #6b573f66; overflow: hidden; }
.hero__scroll-line i { display: block; width: 100%; height: 30%; background: var(--c-terracota); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(180%); }
}

@media (max-width: 640px) {
  .hero__inner { padding-top: 5.5rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(2.1rem, 10.5vw, 3.4rem); max-width: 14ch; }
  .hero__subtitle { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero__logo { display: none; }
  /* CTAs apiladas ya cubren la altura; el cue de scroll se pisa con el 2do botón en pantallas cortas */
  .hero__scroll { display: none; }
  .hero__image { background-position: center top; }
  .hero__rings-image { display: none; }
  .hero__gradient {
    background:
      radial-gradient(circle at center, rgba(243, 230, 205, 0.08), transparent 22%),
      linear-gradient(180deg, rgba(5, 3, 2, 0.94) 0%, rgba(24, 18, 12, 0.72) 16%, rgba(11, 7, 4, 0.96) 48%, rgba(5, 3, 2, 1) 100%);
  }
}

@media (min-width: 641px) {
  .hero__inner { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-height: 920px) {
  .hero__scroll { display: none; }
  .hero__inner { padding-top: 5rem; }
  .hero__eyebrow { margin-bottom: 1.1rem; }
  .hero__headline { gap: 0.8rem; margin-bottom: 1.1rem; }
  .hero__lead { margin-bottom: 1.6rem; }
}
