/* Portada (index.html): estructura nueva. Usa los colores de styles.css (verde y dorado) y los efectos de fx.css.
   Movimiento solo con transform/opacity; con "reducir movimiento" todo queda quieto (al final del archivo). */

/* ---------- Base de las secciones ---------- */
.home main [id] { scroll-margin-top: 84px; }   /* que la barra fija no tape el inicio de cada sección */
.home .home-sec { max-width: 1200px; padding-block: clamp(4rem, 9vw, 7rem); }
.home .home-sec h2 { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.sec-head > div { min-width: 0; }
.sec-sub, .home .clips-sub { color: var(--muted); margin: 1.25rem 0 0; max-width: 52ch; text-align: left; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--accent-ink); white-space: nowrap; padding: .3rem 0; }
.link-arrow span { transition: translate .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover span { translate: 4px 0; } }

/* ---------- Hero: aviso del podcast ---------- */
.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; margin-bottom: 1.3rem; padding: .45rem .95rem .45rem .75rem;
  border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--bg2) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, translate .25s var(--ease-out);
}
.hero-pill b { color: var(--accent-ink); }
.pill-dot { position: relative; width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: var(--accent); }
.pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); animation: pill-ping 2.4s var(--ease-out) infinite; }
@keyframes pill-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.pill-arrow { color: var(--accent-ink); transition: translate .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-pill:hover { border-color: var(--accent); } .hero-pill:hover .pill-arrow { translate: 3px 0; } }
.fx-ready .hero .hero-pill { animation: fx-up .6s var(--ease-out) .85s backwards; }

/* ---------- Bio ---------- */
.home .bio { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); }
.home .bio-photo { margin: 0; isolation: isolate; }
.home .bio-photo::before {   /* marco dorado desplazado detrás de la foto */
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1; border-radius: 18px;
  border: 1.5px solid var(--accent); opacity: .8;
}
.photo-tag {
  position: absolute; left: 1rem; bottom: 1rem; padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: #f2f1e8; background: rgba(6,24,20,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.home .bio-text h2 { margin-bottom: 1.4rem; }
.home .bio-text .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--text); line-height: 1.5; }
.facets {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 2rem;
  border-radius: 18px; overflow: hidden; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.facets li { background: var(--bg2); }
.facets a, .facets li > div { display: grid; gap: .2rem; height: 100%; padding: 1.1rem 1.2rem; transition: background .25s; }
.facet-k { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facets strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.1; letter-spacing: .02em; }
.facets small { color: var(--body-text); font-size: .88rem; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .facets a:hover { background: color-mix(in srgb, var(--accent) 12%, var(--bg2)); } .facets a:hover strong { color: var(--accent-ink); } }

/* ---------- Podcast: panel oscuro en los dos modos ---------- */
.podcast { max-width: 1280px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) var(--fx-gutter); }
.podcast-inner {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.6rem, 5vw, 4.5rem); border-radius: 28px; color: #f2f1e8;
  background: radial-gradient(110% 80% at 0% 0%, rgba(245,197,66,.17), transparent 55%), linear-gradient(155deg, #11403a 0%, #0b2520 45%, #061814 100%);
  box-shadow: 0 40px 90px rgba(4,20,16,.32), inset 0 0 0 1px rgba(245,197,66,.16);
}
.podcast-ghost {
  position: absolute; right: -.04em; bottom: -.2em; z-index: -1; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--display); font-size: clamp(5rem, 15vw, 14rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(245,197,66,.16);
}
.podcast .eyebrow { color: #f5c542; }
.podcast-season { font-weight: 700; color: #9fb3aa; letter-spacing: .04em; }
.podcast-title { font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: 1.02; margin: .5rem 0 1.2rem; color: #fff; }
.podcast-title > span { color: #f5c542; }
.podcast-title > span::after { display: none; }   /* sin el trazo de marcador: el dorado ya resalta */
.podcast-desc { color: #d3dcd4; font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 46ch; }
.podcast-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0 0; }
.podcast-facts > div { border-top: 1px solid rgba(242,241,232,.18); padding-top: .8rem; min-width: 0; }
.podcast-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9fb3aa; margin-bottom: .3rem; }
.podcast-facts dd { font-weight: 700; color: #fff; line-height: 1.35; }
.podcast-count { display: flex; align-items: baseline; gap: .8rem; margin: 1.8rem 0 .2rem; }
.podcast-count strong { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; color: #f5c542; font-variant-numeric: tabular-nums; }
.podcast-count span { color: #d3dcd4; font-weight: 500; max-width: 10ch; line-height: 1.25; }
.podcast .cta { margin-top: 1.8rem; }
.podcast .btn.ghost { border-color: rgba(242,241,232,.7); color: #f2f1e8; }
.podcast .btn.ghost:hover { background: #f2f1e8; color: #061814; border-color: #f2f1e8; }
.podcast :focus-visible { outline-color: #f5c542; }
.podcast-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.podcast-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.podcast-photo.is-empty { aspect-ratio: 4 / 5; border-radius: 20px; background: radial-gradient(circle at 30% 20%, rgba(245,197,66,.35), transparent 55%), #0b2520; }
.podcast-badge {
  position: absolute; top: -1rem; left: -1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 5.2rem; height: 5.2rem; border-radius: 50%;
  background: #f5c542; color: #111; text-align: center; line-height: 1; rotate: -10deg; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.podcast-badge b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; }
.podcast-badge span { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fx-ready .podcast.reveal .podcast-photo img { clip-path: inset(0 0 100% 0 round 20px); transition: clip-path 1s var(--ease-out) .2s; }
.fx-ready .podcast.reveal.visible .podcast-photo img { clip-path: inset(0 round 20px); }

/* ---------- Shows ---------- */
.agenda { display: grid; gap: 1rem; }
.agenda-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: 1rem 1.4rem 1rem 1rem;
  border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); transition: border-color .25s, translate .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .agenda-row:hover { border-color: var(--accent); translate: 0 -2px; } }
.agenda-date { display: grid; justify-items: center; padding: .7rem .4rem; border-radius: 14px; background: var(--accent); color: #111; line-height: 1; }
.agenda-date span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.agenda-date strong { font-family: var(--display); font-weight: 400; font-size: 2.6rem; margin: .2rem 0; }
.agenda-info h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .3rem; }
.agenda-meta { color: var(--accent-ink); font-weight: 700; }
.agenda-details { color: var(--body-text); font-size: .95rem; margin-top: .2rem; }
.agenda-row.is-sold { opacity: .7; }
/* Sin fechas: el cartel de marquesina de /tickets, en dos columnas */
.home .agenda-empty { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 3rem; align-items: center; text-align: left; padding: clamp(2rem, 4vw, 3rem); }
.home .agenda-empty h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.home .agenda-empty p { margin-bottom: 0; max-width: 48ch; }
.home .agenda-empty .agenda-last { margin-top: 1rem; font-size: .92rem; color: #9fb3aa; }
.home .agenda-last strong { color: #f5c542; font-weight: 700; }
.agenda-empty-copy, .agenda-empty-cta { position: relative; }
.agenda-empty-cta { display: grid; gap: .7rem; }
.agenda-empty-cta .btn { text-align: center; }
.home .agenda-empty .btn.ghost { border-color: rgba(242,241,232,.7); color: #f2f1e8; }
.home .agenda-empty .btn.ghost:hover { background: #f2f1e8; color: #061814; }

/* ---------- Clips: fila de reels (fx.css) y visor de Instagram ---------- */
.home .clip { text-align: left; }
.home .clips-sub { margin-inline: 0; }
.clip-frame.is-ig {
  width: min(400px, calc(100vw - 2rem)); aspect-ratio: auto; height: min(760px, 86vh); height: min(760px, 86dvh); background: #fff;
}
/* Más en YouTube: reproductor de las subidas del canal + texto */
.yt-block {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1rem, 2.5vw, 1.4rem); border-radius: 24px; background: var(--bg2); border: 1px solid var(--line);
}
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #061814; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(ellipse at 50% 120%, rgba(245,197,66,.25), transparent 60%), #061814; }
.yt-thumbs { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 4%; padding: 6% 8%; }
.yt-thumbs img { height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: translate .5s var(--ease-out), rotate .5s var(--ease-out); }
.yt-thumbs img:nth-child(1) { rotate: -6deg; translate: 12% 4%; }
.yt-thumbs img:nth-child(3) { rotate: 6deg; translate: -12% 4%; }
.yt-thumbs img:nth-child(2) { position: relative; z-index: 1; }
.yt-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: clamp(64px, 9vw, 84px); translate: -50% -50%; transition: scale .25s var(--ease-out); filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.yt-play svg { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .yt-poster:hover .yt-play { scale: 1.1; }
  .yt-poster:hover .yt-thumbs img:nth-child(1) { rotate: -9deg; translate: 4% 4%; }
  .yt-poster:hover .yt-thumbs img:nth-child(3) { rotate: 9deg; translate: -4% 4%; }
}
.yt-copy { padding: .5rem clamp(0rem, 1.5vw, 1rem) .5rem 0; }
.yt-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
.yt-copy h3 span { color: var(--accent-ink); }
.yt-copy > p:not(.eyebrow) { color: var(--body-text); }
.yt-copy .cta { margin-top: 1.4rem; }
.yt-btn::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .55rem; border-radius: 50%; background: #e62117; vertical-align: .08em; }

/* ---------- Tienda ---------- */
.home-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); }
.home-shop .tile-caption span { font-size: 1.1rem; line-height: 1.15; }

/* ---------- Comunidad ---------- */
.join {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.6rem, 4.5vw, 3.6rem); border-radius: 28px; background: linear-gradient(180deg, var(--show-top) 0%, transparent 100%);
}
.join::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(180deg, var(--show-edge) 0%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.perks-home { list-style: none; display: grid; gap: .9rem; margin: 1.6rem 0 2rem; }
.perks-home li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .7rem; align-items: start; color: var(--body-text); }
.perks-home svg { width: 1.6rem; height: 1.6rem; padding: .25rem; border-radius: 50%; background: var(--accent); color: #111; }
.perks-home strong { color: var(--text); }
.ranks { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 22px; background: var(--bg2); border: 1px solid var(--line); }
.ranks-title { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.rank-ladder { list-style: none; display: grid; gap: .55rem; }
.rank-ladder li { position: relative; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; overflow: hidden; background: var(--bg); }
.rank-bar-home { position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: 0; background: linear-gradient(90deg, rgba(245,197,66,.28), rgba(245,197,66,.08)); border-radius: inherit; }
.rank-ladder li > :not(.rank-bar-home) { position: relative; z-index: 1; }
.rank-step { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem; }
.rank-n { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; }
.rank-xp { color: var(--muted); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-ladder li:last-child .rank-step { background: var(--accent); color: #111; }
.xp-how { color: var(--muted); font-size: .88rem; margin-top: 1rem; }
.fx-ready .rank-bar-home { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out) calc(.3s + var(--i, 0) * 90ms); }
.fx-ready .reveal.visible .rank-bar-home { transform: none; }

/* ---------- Pie de página de la portada ---------- */
.footer-home { text-align: left; padding-top: clamp(4rem, 8vw, 6rem); }
.footer-home > * { max-width: 1200px; margin-inline: auto; }
.footer-cta { text-align: center; padding-bottom: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.footer-cta .eyebrow { justify-content: center; }
.footer-home .footer-cta h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.footer-note { color: var(--muted); margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: clamp(2rem, 5vw, 3rem) 0; }
.footer-brand p { color: var(--muted); margin-top: .6rem; max-width: 30ch; }
.footer-h { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer-links { display: grid; align-content: start; gap: .5rem; }
.footer-links > a { font-weight: 500; justify-self: start; }
.footer-links > a:hover { color: var(--accent-ink); }
.footer-home .socials { justify-content: flex-start; margin: 0; }
.footer-home .copy { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Tableta y celular ---------- */
@media (max-width: 980px) {
  .home-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podcast-inner { grid-template-columns: 1fr; }
  .podcast-photo { justify-self: center; max-width: 360px; margin: 1rem auto 0; }
  .join { grid-template-columns: 1fr; }
  .yt-block { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home .bio { grid-template-columns: 1fr; gap: 2.4rem; }
  .home .bio-photo::before { inset: .8rem -.8rem -.8rem .8rem; }
  .facets { grid-template-columns: 1fr; }
  .hero-pill { font-size: .8rem; }
  .podcast { padding-inline: 12px; }
  .podcast-inner { border-radius: 22px; }
  .podcast-facts { grid-template-columns: 1fr; gap: 0; }
  .podcast-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
  .podcast-facts dt { margin: 0; }
  .podcast-facts dd { text-align: right; }
  .podcast .cta .btn, .home .agenda-empty .btn { width: 100%; text-align: center; }
  .podcast-badge { top: -.7rem; left: -.4rem; width: 4.4rem; height: 4.4rem; }
  .agenda-row { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; padding: .9rem; }
  .agenda-date strong { font-size: 2rem; }
  .agenda-cta { grid-column: 1 / -1; }
  .agenda-cta .btn { width: 100%; text-align: center; }
  .home .agenda-empty { grid-template-columns: 1fr; }
  .home-shop .tile-caption { flex-direction: column; gap: .1rem; }
  .home-shop .tile-caption span { font-size: 1rem; }
  .yt-copy { padding: 0 .3rem .4rem; }
  .yt-copy .cta .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .pill-dot::after { animation: none; opacity: 0; }
  .fx-ready .hero .hero-pill { animation: none; }
  .fx-ready .podcast.reveal .podcast-photo img { clip-path: none; transition: none; }
  .fx-ready .rank-bar-home { transform: none; transition: none; }
  .link-arrow span, .pill-arrow, .agenda-row, .yt-thumbs img, .yt-play { transition: none; }
}
