/* ──────────────────────────────────────────────────────────────────────────
   MiVelario · Portada (index.html)
   Estilos propios de la home, con prefijo `hm-` para no pisar styles.css.
   La vela, el clima (.candle-atmosphere) y el haz de luz son los componentes
   reales de common.js/styles.css: aquí solo se maqueta alrededor.
   ────────────────────────────────────────────────────────────────────────── */

.hm-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.hm-sec { padding-top: 72px; }
.hm-sec__head { max-width: 62ch; display: grid; gap: 14px; margin-bottom: 40px; }
.hm-sec__head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0; text-wrap: balance; }
.hm-sec__head p { font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 58ch; margin: 0; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Héroe ─────────────────────────────────────────────────────────────── */
.hm-hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
  padding-top: 28px;
}
.hm-hero__copy { display: grid; gap: 26px; min-width: 0; }
.hm-hero__kicker {
  font-family: 'Cormorant Garamond', var(--serif), serif;
  font-style: italic;
  font-size: 22px;
  color: #e6c879;
  margin: 0;
}
.hm-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
.hm-hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0;
}
.hm-hero__lead strong { color: var(--ink); font-weight: 500; }
.hm-hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 14px; color: var(--ink-faint); padding-top: 4px;
}
.hm-hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hm-hero__facts span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft);
}

/* ── Ficha viva ────────────────────────────────────────────────────────── */
.hm-ficha {
  position: relative;
  min-width: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #16112a 0%, #0c0918 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.hm-ficha__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 22px 0;
  position: relative; z-index: 3;
}
.hm-ficha__title { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.hm-ficha__place { font-size: 13px; color: var(--ink-faint); white-space: nowrap; }
.hm-scene {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  height: 340px;
  overflow: hidden;
}
/* La atmósfera real (lluvia, niebla, viento…) ceñida a la vela, apoyada abajo. */
.hm-scene .candle-atmosphere {
  justify-content: flex-end;
  height: 320px;
  padding-bottom: 28px;
}
.hm-scene__floor {
  position: absolute; left: 50%; bottom: 22px;
  width: 260px; height: 26px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.hm-ficha__wx {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 0 22px 14px;
  font-size: 14px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.hm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.10); border: 1px solid rgba(212, 175, 55, 0.25);
  color: #e6c879; font-weight: 500; font-size: 13.5px;
}
.hm-ficha__bar {
  position: relative; z-index: 3;
  padding: 0 22px 18px; display: grid; gap: 8px;
  font-size: 13.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.hm-ficha__bar .hm-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.hm-ficha__bar .hm-fill { height: 100%; width: 38%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-soft), #e6c879); }
.hm-ficha__bar .hm-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-ficha__try {
  position: relative; z-index: 3;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  padding: 14px 22px 18px; display: grid; gap: 10px;
}
.hm-ficha__try .hm-lbl { font-size: 13px; color: var(--ink-faint); }
.hm-wx-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-wx-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  color: var(--ink-dim); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color .2s, border-color .2s, background .2s;
}
.hm-wx-btn:hover { color: var(--ink); border-color: rgba(212, 175, 55, 0.5); }
.hm-wx-btn[aria-pressed="true"] { color: #1a1408; background: var(--gold); border-color: var(--gold); }
.hm-ficha__note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }

/* ── Pasos ─────────────────────────────────────────────────────────────── */
.hm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.hm-step { display: grid; gap: 12px; min-width: 0; align-content: start; }
.hm-step__stage {
  position: relative; height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 21, 48, 0.0), rgba(27, 21, 48, 0.75));
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  padding: 12px 10px 16px;
}
.hm-step__stage .candle-figure { display: block; }
.hm-step__tags {
  position: relative; z-index: 6; width: 100%; flex: 1;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.hm-step__tags .hm-tag:nth-child(even) { align-self: flex-end; }
.hm-step__num {
  font-family: 'Cormorant Garamond', var(--serif), serif;
  font-style: italic; font-size: 30px; line-height: 1; color: #e6c879;
}
.hm-step h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.hm-step p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; margin: 0; }
.hm-tag {
  font-size: 11.5px; line-height: 1.3; padding: 5px 9px; border-radius: 8px;
  background: rgba(20, 16, 31, 0.92); border: 1px solid rgba(212, 175, 55, 0.28); color: var(--ink-dim);
  max-width: 160px;
}
.hm-tag--petition, .hm-tag--prayer {
  font-family: 'Cormorant Garamond', var(--serif), serif; font-style: italic; font-size: 14px; color: var(--ink);
}
.hm-tag--prayer { font-size: 13px; }
.hm-tag--pin { display: inline-flex; gap: 6px; align-items: center; }
.hm-tag--wind { color: #a8c4ff; border-color: rgba(168, 196, 255, 0.3); }
.hm-tag--omen { color: #e6c879; }
.hm-mini-map {
  position: absolute; inset: 10px 10px auto 10px; height: 70px; border-radius: 10px; opacity: .55;
  background:
    radial-gradient(circle at 30% 60%, rgba(255, 220, 130, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 35%, rgba(255, 220, 130, 0.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 70%, rgba(255, 220, 130, 0.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 45% 80%, rgba(255, 220, 130, 0.5) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px);
}

/* ── Clima ─────────────────────────────────────────────────────────────── */
.hm-wxs { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.hm-wxr {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 14px; align-items: start;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(27, 21, 48, 0.55); border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.hm-wxr__ico {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(168, 196, 255, 0.08); color: #a8c4ff;
}
.hm-wxr__ico--warm { background: rgba(255, 170, 80, 0.10); color: #ffb66b; }
.hm-wxr__ico svg { width: 24px; height: 24px; display: block; }
.hm-wxr h3 { font-size: 17px; font-family: var(--serif); margin: 0; }
.hm-wxr p { grid-column: 2 / span 2; font-size: 14px; color: var(--ink-dim); line-height: 1.5; margin: 0; }
.hm-wxr .hm-f {
  font-family: 'Jost', var(--sans), sans-serif; font-size: 13px; letter-spacing: .02em;
  white-space: nowrap; color: #e6c879; font-variant-numeric: tabular-nums; align-self: center;
}
.hm-wxr .hm-f.hm-slow { color: #a8c4ff; }
.hm-wx-foot { margin: 22px 0 0; font-size: 14.5px; color: var(--ink-faint); max-width: 70ch; line-height: 1.6; }

/* ── Doce velas ────────────────────────────────────────────────────────── */
.hm-velas { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.hm-vela {
  display: grid; gap: 8px; padding: 18px 16px 16px; border-radius: 14px; min-width: 0;
  background: linear-gradient(180deg, var(--card-glow, rgba(212, 175, 55, 0.08)) 0%, rgba(27, 21, 48, 0.3) 70%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ink);
  transition: border-color .2s, transform .15s;
}
.hm-vela:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-2px); color: var(--ink); }
.hm-vela__fig { height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.hm-vela h3 { font-size: 17px; font-family: var(--serif); margin: 0; }
.hm-vela .hm-kw { font-size: 13px; color: var(--ink-dim); line-height: 1.45; }
.hm-vela .hm-dur { font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.hm-empty { color: var(--ink-faint); font-size: 14px; }

/* ── La señal ──────────────────────────────────────────────────────────── */
.hm-senal { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hm-senal__text { display: grid; gap: 16px; min-width: 0; }
.hm-senal__text p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin: 0; }
.hm-senal__text p strong { color: var(--ink); font-weight: 500; }
.hm-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hm-shape {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 16px 8px 14px; border-radius: 14px;
  background: rgba(27, 21, 48, 0.55); border: 1px solid rgba(255, 255, 255, 0.05);
}
.hm-shape svg { width: 58px; height: 58px; display: block; }
.hm-shape b { font-family: var(--serif); font-weight: 600; font-size: 14.5px; }
.hm-shape small { font-size: 11.5px; color: var(--ink-faint); line-height: 1.3; }
.hm-shape[data-omen="muy_favorable"] svg { color: var(--gold); }
.hm-shape[data-omen="favorable"] svg { color: #e6c879; opacity: .85; }
.hm-shape[data-omen="ambiguo"] svg { color: var(--ink-dim); opacity: .7; }
.hm-shape[data-omen="advertencia"] svg { color: #d99a77; opacity: .8; }
.hm-reading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-reading div {
  padding: 14px 14px 12px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.06); border: 1px solid rgba(212, 175, 55, 0.16);
  display: grid; gap: 4px;
}
.hm-reading b { font-family: var(--serif); font-size: 15px; }
.hm-reading small { font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }

/* ── Acompañar ─────────────────────────────────────────────────────────── */
.hm-acomp { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.hm-acomp__stage {
  position: relative; height: 320px;
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 236, 170, 0.10), transparent 60%), rgba(27, 21, 48, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 26px; overflow: hidden;
}
.hm-acomp__stage .candle-figure { display: block; }
.hm-acomp__stage .hm-tag { position: absolute; max-width: 160px; z-index: 6; }
.hm-acomp__stage .hm-tag--p1 { left: 18px; top: 40px; }
.hm-acomp__stage .hm-tag--p2 { right: 18px; top: 86px; }
.hm-acomp__stage .hm-tag--p3 { left: 34px; top: 132px; }
.hm-acomp__stage .hm-count {
  position: absolute; right: 18px; bottom: 16px; z-index: 6;
  font-size: 12.5px; color: #e6c879; font-family: 'Jost', var(--sans), sans-serif; letter-spacing: .04em;
}
.hm-acomp__text { display: grid; gap: 16px; min-width: 0; }
.hm-acomp__text h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0; text-wrap: balance; }
.hm-acomp__text p { color: var(--ink-dim); line-height: 1.6; margin: 0; }
.hm-acomp__text p strong { color: var(--ink); font-weight: 500; }
.hm-acomp__list { display: grid; gap: 10px; padding: 0; margin: 4px 0 0; list-style: none; }
.hm-acomp__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--ink-dim); line-height: 1.55; }
.hm-acomp__list li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0 20%, rgba(255, 220, 130, 0.6) 45%, transparent 70%);
  margin-top: 1px;
}

/* ── Memoriales (reutiliza .memorial-cta de styles.css) ────────────────── */
.hm-sec .memorial-cta { margin: 0; padding: 36px 40px; border-radius: 24px; }
.hm-sec .memorial-cta__kicker {
  font-family: 'Cormorant Garamond', var(--serif), serif; font-style: italic;
  font-size: 20px; letter-spacing: 0; text-transform: none; color: #e6c879; margin-bottom: 10px;
}
.hm-sec .memorial-cta h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; text-wrap: balance; }
.hm-sec .memorial-cta p { font-size: 15.5px; }
.hm-sec .memorial-cta__search small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }

/* ── Tarot y péndulo ───────────────────────────────────────────────────── */
.hm-otros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-otro {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  padding: 24px; border-radius: 18px; min-width: 0;
  background: rgba(27, 21, 48, 0.5); border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.hm-otro:hover { border-color: rgba(212, 175, 55, 0.4); background: rgba(27, 21, 48, 0.8); color: var(--ink); }
.hm-otro__ico { width: 72px; height: 72px; color: #e6c879; }
.hm-otro__ico svg { width: 100%; height: 100%; display: block; }
.hm-otro h3 { font-size: 21px; margin: 0 0 6px; }
.hm-otro p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; margin: 0; }
.hm-otro .hm-go { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--gold); font-weight: 500; }
.hm-otro .hm-soon {
  display: inline-block; margin-left: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, 0.4); color: #e6c879;
  vertical-align: middle; font-family: 'Jost', var(--sans), sans-serif;
}

/* ── Cierre ────────────────────────────────────────────────────────────── */
.hm-final { text-align: center; display: grid; gap: 22px; justify-items: center; padding-top: 88px; padding-bottom: 20px; }
.hm-final h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.hm-final p { color: var(--ink-dim); max-width: 48ch; margin: 0; line-height: 1.6; }
.hm-final .hm-cta { justify-content: center; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hm-hero { grid-template-columns: 1fr; gap: 40px; }
  .hm-steps { grid-template-columns: repeat(3, 1fr); }
  .hm-senal, .hm-acomp { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hm-sec .memorial-cta { padding: 26px 20px; }
}
@media (max-width: 720px) {
  .hm-wrap { padding-left: 16px; padding-right: 16px; }
  .hm-sec { padding-top: 56px; }
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-otros { grid-template-columns: 1fr; }
  .hm-reading { grid-template-columns: 1fr; }
  .hm-scene { height: 320px; }
}
@media (max-width: 480px) {
  .hm-steps { grid-template-columns: 1fr; }
  .hm-shapes { grid-template-columns: repeat(2, 1fr); }
  .hm-ficha__top { flex-direction: column; gap: 2px; }
  .hm-acomp__stage .hm-tag--p3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-vela, .hm-wx-btn { transition: none; }
}
