/* afterGROW — estilos (mobile first) */

/* Títulos: Config Mono VF (Adobe Fonts, proyecto web hhp6ldu, cargado en index.html).
   Es variable: el grosor se regula con --display-wght (100 a 900). */

:root {
  --green: #72dd40;
  --black: #000000;
  --white: #ffffff;
  --panel: #0d0d0d;
  --line: #1f1f1f;
  --line-strong: #3a3a3a;
  --text-soft: #d4d4d4;
  --text-muted: #a3a3a3;

  --font-mono: "config-mono-vf", ui-monospace, monospace; /* antes: 'JetBrains Mono' */
  --font-display: "config-mono-vf", 'Archivo Black', 'Arial Black', sans-serif;

  --display-wght: 800;

  --radius: 4px;
  --gutter: 20px;
  --max: 1200px;
}

* { box-sizing: border-box; }
.display, .h2, .evento-banner-title, .episode-num, .stat-num, .event-date span { font-variation-settings: "wght" var(--display-wght); }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--white); }
h1, h2, h3, p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section-pad { padding-block: 56px; }
.section-pad-sm { padding-block: 48px; }
.section-line { border-bottom: 1px solid var(--line); }
.section-line-top { border-top: 1px solid var(--line); }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* Tipografía */
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 400; }
.kicker-muted { color: var(--text-muted); }
.kicker-dark { color: var(--black); font-weight: 700; }
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 8vw, 40px); line-height: 1.02; text-transform: uppercase; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; }
.lead { font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.body { font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.mono-accent { font-family: var(--font-mono); font-weight: 300; text-transform: none; color: var(--green); }
.accent { color: var(--green); }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 48px; font-size: 14px; }
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; font-weight: 400; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-ghost-accent { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost-accent:hover { background: var(--green); color: var(--black); }
.btn-dark { background: var(--black); color: var(--green); }
.btn-dark:hover { color: var(--white); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.btn-center { align-self: stretch; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; color: var(--white); font-size: 14px; }

.icon-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.icon-link:hover { color: var(--white); }

.hide-mobile { display: none !important; }
.show-mobile { display: inline-flex; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--black); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; padding-inline: 16px; position: relative; }
.logo img { height: 44px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 8px; }

.lang { display: flex; border: 1px solid var(--green); border-radius: var(--radius); overflow: hidden; }
.lang button {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 44px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--green);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--green); color: var(--black); }
.lang button[aria-pressed="false"]:hover { background: rgba(114,221,64,.12); }
.flag {
  width: 20px; height: 14px; flex: none; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  opacity: .55; filter: grayscale(.5); transition: opacity .2s, filter .2s;
}
.lang button[aria-pressed="true"] .flag { opacity: 1; filter: none; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.lang button:hover .flag { opacity: 1; filter: none; }

.menu-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--white); cursor: pointer; }

.nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: var(--black); border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav.is-open { display: flex; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--green); }

/* HERO */
.hero {
  background-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 70%, #000 100%), url(assets/img/img_1.jpg);
  background-size: cover; background-position: center;
}
.hero-inner { min-height: 560px; padding-block: 72px 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }

/* BANNER EVENTO */
.evento-banner { background: var(--green); color: var(--black); }
.evento-banner-inner { display: flex; flex-direction: column; gap: 20px; padding-block: 32px; }
.evento-banner-text { display: flex; flex-direction: column; gap: 8px; }
.evento-banner-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.evento-banner-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 6.4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.evento-banner-meta { font-size: 14px; font-weight: 400; }
.evento-banner .btn-dark { align-self: stretch; }
.evento-banner-img-link { display: block; line-height: 0; }
.evento-banner-img { width: 100%; height: auto; border-radius: var(--radius); }
.evento-banner-img.is-placeholder { display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(0,0,0,.45); font-size: 13px; font-weight: 700; color: rgba(0,0,0,.7); }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { color: var(--green); }
@media (min-width: 768px) {
  .evento-banner-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
  .evento-banner .btn-dark { align-self: center; flex-shrink: 0; }
  .evento-banner-img-link { flex: 0 0 min(40%, 420px); }
  .evento-banner-text { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* en tablet el botón baja a su propia fila para no salirse de la pantalla */
  .evento-banner .btn-dark { flex-basis: 100%; }
}
@media (min-width: 1024px) {
  .evento-banner-inner { flex-wrap: nowrap; }
}

/* SOBRE */
.sobre-inner { display: grid; gap: 24px; padding-block: 48px; }
.xfade-box { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.xfade-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.xfade { animation: xfade 7s ease-in-out infinite; }
@keyframes xfade { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xfade { animation: none; opacity: 0; } html { scroll-behavior: auto; } }

/* EPISODIOS */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .kicker { margin-bottom: 6px; }
.episodes { display: grid; grid-template-columns: 1fr; gap: 24px; }
.episode { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.episode[hidden] { display: none; }
.episode-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 2px solid var(--green); }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.episode-thumb:hover img { transform: scale(1.04); }
.episode-num { position: absolute; left: 14px; bottom: 10px; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--green); }
.episode-play { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--black); display: flex; align-items: center; justify-content: center; }
.episode-date { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.episode h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.episode p.resena { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
#more-episodes[hidden] { display: none; }

/* NUMEROS */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: clamp(32px, 9.5vw, 44px); line-height: 1; color: var(--green); white-space: nowrap; }
.stat-num small { font-size: .5em; }
.stat-label { font-size: 13px; line-height: 1.5; color: var(--text-soft); max-width: 24ch; }
.stats-note { font-size: 12px; color: var(--text-muted); }

/* REELS */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.reel-item { min-width: 0; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.reels a { position: relative; flex: 0 0 200px; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.reels img { width: 100%; height: 100%; object-fit: cover; }
.reels span { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 700; color: var(--white); }
.reels .reel { display: block; width: 100%; flex: none; aspect-ratio: 9 / 16; }
.reel-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; color: var(--text-soft); }
.reel-stats li { display: inline-flex; align-items: center; gap: 6px; }
.reel-stats svg { color: var(--green); flex: none; }
.reels .reel-stats span { position: static; font-size: inherit; color: inherit; }
.reels .reel-stats .sr-only { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reels .reel img { transition: transform .4s ease; }
.reels .reel:hover img { transform: scale(1.03); }
.reels .reel::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: var(--radius); pointer-events: none; transition: border-color .2s; }
.reels .reel:hover::after { border-color: var(--green); }
.reel-play { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: var(--green); display: flex; align-items: center; justify-content: center; padding-left: 3px; }
.reels span.reel-play { left: auto; right: 12px; bottom: 12px; top: auto; padding: 0 0 0 3px; }
.reels .reel-placeholder { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line-strong); text-decoration: none; }
.reels .reel-placeholder:hover { border-color: var(--green); }
.reels .reel-placeholder span { position: static; color: var(--text-muted); text-align: center; padding: 0 16px; }

/* SUMATE */
#sumate {
  background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.7)), url(assets/img/humo-verde.jpg);
  background-size: cover; background-position: center;
}
#sumate .card { background: rgba(0,0,0,.55); }
.sumate { display: flex; flex-direction: column; gap: 24px; }
.sumate-head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.macaco { width: 120px; height: auto; }
.cards-2 { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.card h3 { margin: 0; font-family: var(--font-display); font-variation-settings: "wght" var(--display-wght); font-size: clamp(24px, 6vw, 30px); line-height: 1.05; text-transform: uppercase; }
.card p { font-size: 14px; line-height: 1.6; color: var(--text-soft); flex-grow: 1; }
.card-accent { border-color: var(--green); }
.card-accent h3 { color: var(--green); }

/* SPONSORS ACTUALES */
.sponsors .h2 { font-size: clamp(24px, 3vw, 32px); }
.sponsors-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sponsor-logo { flex: 0 0 calc(50% - 6px); min-width: 0; aspect-ratio: 3 / 2; padding: 20px 16px; display: flex; align-items: center; justify-content: center; }
.sponsor-logo a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.sponsor-logo img { width: 100%; height: 100%; object-fit: contain; opacity: .85; transition: opacity .2s; }
.sponsor-logo a:hover img { opacity: 1; }
.sponsor-texto { font-family: var(--font-display); font-variation-settings: "wght" var(--display-wght); font-size: clamp(20px, 2.4vw, 30px); color: var(--white); letter-spacing: .02em; }
.sponsor-placeholder { border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.sponsor-placeholder span { color: var(--text-muted); font-size: 12px; font-weight: 700; text-align: center; padding: 0 12px; }

/* AGENDA */
.agenda { display: grid; gap: 40px; }
.event { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.event h3 { font-size: 16px; font-weight: 700; }
.event p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.event-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text-muted); }
.event-date span { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.event-date small { font-size: 11px; font-weight: 700; }
.event-date.is-next { background: var(--green); border-color: var(--green); color: var(--black); }

/* BRASIL */
.brasil { background: var(--green); color: var(--black); }
.brasil .body { color: var(--black); font-weight: 400; }
.brasil-inner { display: flex; flex-direction: column; gap: 24px; }

/* CONTACTO */
.contacto { display: grid; gap: 32px; }
.contacto-foto { width: 100%; height: auto; border-radius: var(--radius); margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-soft); }
.form input, .form select, .form textarea {
  min-height: 48px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--white); font-family: var(--font-mono); font-size: 15px;
}
.form textarea { padding: 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-aviso { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-aviso[data-estado="ok"] { color: var(--green); }
.form-aviso[data-estado="error"] { color: #ff8a8a; }
.form select:invalid { color: var(--text-muted); }
.form select option { color: var(--white); background: var(--panel); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 40px; }
.footer-logo { height: 64px; width: auto; }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); text-align: center; }
.footer-legal p { margin: 0; }
.footer-credito { display: flex; align-items: center; gap: 8px; }
.footer-firma { color: var(--text-soft); text-decoration: none; display: inline-flex; align-items: center; }
.footer-firma:hover { color: var(--green); }
.footer-firma img { height: 15px; width: auto; }
.lang-text { border: 0; gap: 8px; }
.lang-text button { background: transparent !important; color: var(--text-muted); font-weight: 400; padding: 0 6px; }
.lang-text button[aria-pressed="true"] { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lang-text button[aria-pressed="true"] .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- TABLET ---------- */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .display { font-size: 56px; }
  .h2 { font-size: 48px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-center { align-self: center; }
  .show-mobile { display: none !important; }
  .hide-mobile { display: inline-flex !important; }
  .episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .episode { padding-bottom: 0; border-bottom: 0; }
  .episode-num { font-size: 36px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .stat-num { font-size: 56px; }
  .sponsors-grid { gap: 24px; flex-wrap: nowrap; }
  .sponsor-logo { flex: 1 1 0; }
  .reels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .cards-2, .agenda, .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .footer-legal { flex-direction: row; justify-content: space-between; }
  #more-episodes { align-self: center; }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 1024px) {
  .section-pad { padding-block: 96px; }
  .section-pad-sm { padding-block: 72px; }
  .header-inner { padding-inline: var(--gutter); }
  .logo img { height: 64px; }
  .menu-btn { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; gap: 28px;
    background: none; border: 0; padding: 0;
  }
  .nav a { border: 0; padding: 0; font-size: 13px; }
  .lang { margin-left: 8px; }

  .hero {
    background-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 45%, rgba(0,0,0,.2) 100%), url(assets/img/img_1.jpg);
    background-position: center right;
  }
  .hero-inner { min-height: 0; padding-block: 120px 112px; }
  .hero .display { font-size: 72px; max-width: 760px; line-height: .98; }
  .hero .lead { font-size: 17px; max-width: 520px; }

  .sobre-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding-block: 96px; }
  .xfade-box { height: 440px; }
  .sobre .h2 .mono-accent { display: block; }

  .h2 { font-size: 56px; }
  .episodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-num { font-size: clamp(48px, 4.6vw, 72px); }
  .stats { column-gap: 40px; }
  .stat-label { font-size: 15px; }

  .sumate { flex-direction: row; align-items: center; gap: 56px; }
  .sumate-head { flex: 1 1 0; align-items: flex-start; text-align: left; }
  .macaco { width: 160px; }
  .cards-2 { flex: 2 1 0; }
  .card { padding: 32px; }

  .brasil-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .brasil .display { font-size: 80px; line-height: .95; }
  .contacto { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .form .btn { align-self: flex-start; padding: 0 40px; }
}
