/* ══════════════════════════════════════════════════════════════════════════
   elchiringuitodepepe.es — Home "Minimal Luz" (issues #580 / #586)
   Estilos ESPECÍFICOS de la home: hero, vaso de cerveza scroll-driven, stats,
   pilares, pasos y CTA final. Los tokens, el reset, la tipografía y el marco
   (header/footer) viven en base.css y se cargan antes desde @chiringuito/_layout.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Horizon line illustration — thin, minimal */
.horizon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  pointer-events: none;
}

.horizon svg {
  width: 100%;
  height: 100%;
}

/* Sun glow — ambient, not a face */
.sun-glow {
  position: absolute;
  bottom: 22%;
  right: clamp(4%, 8vw, 12%);
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,50,0.28) 0%, rgba(232,168,50,0.08) 55%, transparent 75%);
  filter: blur(2px);
  animation: sun-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sun-pulse {
  from { transform: scale(1); opacity: 0.85; }
  to   { transform: scale(1.12); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
  }
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--ink-60);
  margin-bottom: 2.5rem;
  max-width: 38ch;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.45;
  animation: hint-fade 3s ease-in-out 1.5s both;
}

@keyframes hint-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  30%  { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0.45; }
  100% { opacity: 0; }
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  animation: scroll-drop 1.8s ease-in-out 1.5s infinite;
}

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── BEER GLASS — FIXED STICKY ────────────────────────────────────────── */
.beer-wrapper {
  position: fixed;
  top: 50%;
  right: clamp(1.5rem, 5vw, 5rem);
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 1;
  transition: opacity 0.4s;
}

.beer-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.beer-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-align: center;
  max-width: 100px;
  line-height: 1.4;
  transition: color 0.4s;
}

/* SVG beer glass */
.beer-svg-wrap {
  width: clamp(56px, 10vw, 90px);
  filter: drop-shadow(0 8px 24px rgba(200,130,10,0.18));
}

/* ─── STATS ─────────────────────────────────────────────────────────────── */
.stats {
  background: var(--cream-d);
  border-top: 1px solid var(--ink-30);
  border-bottom: 1px solid var(--ink-30);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 0;
}

.stat {
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--ink-30);
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ─── WHAT IS ────────────────────────────────────────────────────────────── */
.what-is {
  border-bottom: 1px solid var(--ink-30);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 600px) {
  .section-header {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4rem;
  }
}

.section-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--ink-30);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.section-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.section-intro h2 em {
  font-style: italic;
  font-family: var(--serif);
}

.section-intro p {
  color: var(--ink-60);
  font-size: 1rem;
  max-width: 48ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.pillar {
  border-top: 1px solid var(--ink-30);
  padding-top: 1.5rem;
}

.pillar-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1.25rem;
  color: var(--amber);
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
}

.pillar p {
  font-size: 0.9375rem;
  color: var(--ink-60);
  line-height: 1.65;
}

/* ─── HOW IT WORKS ──────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--cream);
  border-bottom: 1px solid var(--ink-30);
}

.how-it-works .how-label {
  margin-bottom: 1rem;
}

.how-it-works .how-heading {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  max-width: 20ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--ink-60);
  line-height: 1.65;
  max-width: 26ch;
}

/* connector line between steps */
@media (min-width: 600px) {
  .step + .step::before {
    content: '';
    position: absolute;
    top: 0.4rem;
    left: -1rem;
    width: 1px;
    height: 1.5rem;
    background: var(--ink-30);
  }
}

/* ─── CTA FINAL ─────────────────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 10rem);
  border-bottom: 1px solid var(--ink-30);
  position: relative;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(200,130,10,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.cta-final p {
  color: var(--ink-60);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* empty-glass message shown via JS */
.empty-glass-msg {
  display: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.empty-glass-msg.visible {
  display: block;
}

/* ─── REDUCED MOTION (home-specific) ───────────────────────────────────────
   El reset global de animaciones/transiciones vive en base.css; aquí solo
   ocultamos el indicador de scroll, que es exclusivo de la home. */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { display: none; }
}
