/* =============================================================
   DPRZ LEGAL · Del aula al Juzgado
   1. Tokens
   ============================================================= */
:root {
  --navy-950: #07131f;
  --navy-900: #0a1a2b;
  --navy-800: #0f2236;
  --navy-700: #15314d;
  --navy:     #1e3f5f;
  --navy-400: #3d6589;
  --gold:     #c9a45c;
  --gold-soft:#e6cd94;
  --cream:    #f4efe6;
  --silver:   #c4c8d0;
  --white:    #ffffff;
  --ink-mute: rgba(255,255,255,.72);
  --line:     rgba(255,255,255,.12);
  --glass:    rgba(21,49,77,.42);
  --wa:       #25d366;

  /* "29LT Bukra" se usa si está instalada/subida; si no, Archivo Expanded (gratis, muy parecida). */
  --wide:  "29LT Bukra", "Syne", "Archivo", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --max: 1240px;
  --shadow-title: 0 6px 28px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.35);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--navy-900);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); isolation: isolate; }

/* Fondo azul marino difuminado (manchas de luz desenfocadas) */
.blur-navy { background: var(--navy-900); overflow: hidden; }
.blur-navy::before, .blur-navy::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .75; pointer-events: none;
}
.blur-navy::before { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; background: var(--navy); top: -18%; left: -12%; animation: drift 18s ease-in-out infinite alternate; }
.blur-navy::after  { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; background: var(--navy-400); bottom: -20%; right: -10%; opacity: .45; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blur-navy.gold-glow::after { background: #6b5630; opacity: .35; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--serif); font-size: clamp(.8rem, 1.1vw, .92rem);
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold); flex-wrap: wrap;
  font-weight: 600;
}
.eyebrow::before, .eyebrow.lines::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow.center { justify-content: center; }

.title-wide {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--white);
  text-shadow: var(--shadow-title);
}
.h-xl { font-size: clamp(1.9rem, 8.2vw, 6rem); line-height: .98; }
.h-lg { font-size: clamp(1.55rem, 5.6vw, 3.6rem); }
.h-md { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.gold-italic { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-soft); text-transform: none; letter-spacing: 0; font-stretch: 100%; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-mute); max-width: 60ch; }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bg: var(--gold); --fg: var(--navy-900);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(201,164,92,.7);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s;
  overflow: hidden; white-space: nowrap;
}
.btn::after { /* brillo que cruza */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transition: transform .9s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(201,164,92,.85); }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-wa { --bg: var(--wa); --fg: #062b14; box-shadow: 0 10px 30px -10px rgba(37,211,102,.6); }
.btn-ghost { --bg: rgba(255,255,255,.06); --fg: var(--white); border: 1px solid rgba(255,255,255,.28); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { --bg: rgba(255,255,255,.12); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.gold-frame { border: 1px solid rgba(201,164,92,.55); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(201,164,92,.14); color: var(--gold-soft); border: 1px solid rgba(201,164,92,.35);
}
.chip.done { background: rgba(255,255,255,.07); color: var(--silver); border-color: var(--line); }
.chip.open { background: rgba(37,211,102,.14); color: #7ff0ab; border-color: rgba(37,211,102,.4); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
  padding-block: 1.1rem;
}
.nav.is-solid { background: rgba(10,26,43,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo img { height: clamp(34px, 4vw, 44px); width: auto; }
.nav-links { display: none; gap: 2rem; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; color: var(--ink-mute); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: .75rem 1.2rem; font-size: .78rem; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; position: relative; transition: transform .4s var(--ease-out), opacity .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; gap: 1.6rem; text-align: center;
  background: rgba(7,19,31,.94); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu a { font-family: var(--wide); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: 1.5rem; }
.nav.is-open + .mobile-menu { opacity: 1; visibility: visible; }

/* --- Hero --- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 7.5rem; padding-bottom: 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; opacity: .55; filter: saturate(.8); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 20% 30%, rgba(30,63,95,.55), transparent 70%),
  linear-gradient(180deg, rgba(10,26,43,.55) 0%, rgba(10,26,43,.85) 60%, var(--navy-900) 100%); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .gold-italic { font-size: .62em; display: block; margin-top: .25em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.86); max-width: 52ch; }
.hero-sub strong { color: var(--white); }
.hero-proof { display: flex; align-items: center; gap: 1rem; font-size: .88rem; color: var(--ink-mute); }
.hero-proof .avatars { display: flex; }
.hero-proof .avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy-900); margin-left: -10px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--navy-900); }
.hero-proof .avatars span:first-child { margin-left: 0; }
.hero-proof b { color: var(--gold-soft); }

/* Marco del video de bienvenida */
.video-card { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; }
.video-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.video-card:hover img { transform: scale(1.07); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,43,.05) 30%, rgba(10,26,43,.85)); }
.video-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%;
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(201,164,92,.92); color: var(--navy-900); box-shadow: 0 0 0 0 rgba(201,164,92,.6);
  animation: ring 2.4s ease-out infinite;
}
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-caption { position: absolute; z-index: 2; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.video-caption p { font-size: .85rem; color: var(--ink-mute); }
.video-caption strong { display: block; color: var(--white); font-size: 1rem; }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; display: grid; justify-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-mute); }
.scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: drop 2s ease-in-out infinite; transform-origin: top; }

/* --- Marquee --- */
.marquee { border-block: 1px solid var(--line); background: var(--navy-950); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--wide); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: clamp(.9rem, 1.4vw, 1.1rem); color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--gold); font-size: .8em; }

/* --- Contadores con video --- */
.stats { padding-block: clamp(5rem, 11vw, 8.5rem); overflow: hidden; }
.stats-video { position: absolute; inset: 0; z-index: -2; }
.stats-video video, .stats-video img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(.7); transform: scale(1.06); }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,43,.88), rgba(21,49,77,.62) 50%, rgba(10,26,43,.9)); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { padding: clamp(1.4rem, 3vw, 2.2rem) 1.2rem; text-align: center; display: grid; gap: .4rem; }
.stat-num { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1; color: var(--white); text-shadow: var(--shadow-title); font-variant-numeric: tabular-nums; }
.stat-num .plus { color: var(--gold); }
.stat-label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.stats-foot { text-align: center; margin-top: 2.4rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--gold-soft); }

/* --- Pilares --- */
.pillars { display: grid; gap: 1.2rem; }
.pillar { padding: 2rem 1.7rem; display: grid; gap: 1rem; align-content: start; transition: transform .6s var(--ease-out), border-color .4s; }
.pillar:hover { transform: translateY(-8px); border-color: rgba(201,164,92,.55); }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(201,164,92,.14); color: var(--gold); border: 1px solid rgba(201,164,92,.3); }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-num { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: .8rem; color: var(--gold); letter-spacing: .2em; }
.pillar p { color: var(--ink-mute); font-size: .96rem; }

/* --- Comunidad WhatsApp --- */
.community-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.community-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.community-visual .circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(201,164,92,.55); box-shadow: 0 0 0 14px rgba(201,164,92,.06), 0 40px 80px -30px rgba(0,0,0,.7); }
.community-visual .circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.community-visual .badge { position: absolute; right: -4%; bottom: 6%; padding: 1rem 1.2rem; display: grid; gap: .1rem; text-align: left; }
.community-visual .badge b { font-family: var(--wide); font-stretch: 125%; font-size: 1.6rem; line-height: 1; }
.community-visual .badge small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-block: 2rem; }
.group { padding: 1rem 1.1rem; display: grid; gap: .2rem; border-radius: 16px; transition: transform .5s var(--ease-out), border-color .3s; }
.group:hover { transform: translateY(-4px); }
.group .g-name { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.group .g-num { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; }
.group .g-num small { font-family: var(--sans); font-weight: 500; font-size: .72rem; color: var(--ink-mute); margin-left: .2rem; letter-spacing: 0; }
.group .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: .4rem; }
.group .bar i { display: block; height: 100%; width: var(--fill, 100%); background: linear-gradient(90deg, var(--navy-400), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .2s; }
.is-in .group .bar i, .group.is-in .bar i { transform: scaleX(1); }
.group.is-open { border-color: rgba(37,211,102,.5); background: linear-gradient(160deg, rgba(37,211,102,.14), rgba(255,255,255,.02)); }
.group.is-open .bar i { background: linear-gradient(90deg, #1c9a50, var(--wa)); }
.full-tag { color: var(--gold-soft); font-size: .62rem; }
.join-box { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 1.3rem; }
.join-box .qr { width: 118px; height: 118px; border-radius: 14px; background: #fff; padding: 8px; flex: none; }
.join-box .qr img { width: 100%; height: 100%; }
.join-box p { font-size: .9rem; color: var(--ink-mute); max-width: 30ch; }
.join-box p strong { color: var(--white); display: block; font-size: 1rem; }

/* --- Clases en vivo --- */
.live-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.live-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.live-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.live-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(10,26,43,.75)); }
.live-photo .live-tag { position: absolute; z-index: 2; top: 1.1rem; left: 1.1rem; background: #d6303a; color: #fff; border: 0; }
.checks { list-style: none; padding: 0; display: grid; gap: 1rem; margin-block: 1.8rem 2.2rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; color: var(--ink-mute); }
.checks li b { color: var(--white); }
.checks svg { width: 22px; height: 22px; color: var(--gold); margin-top: .15rem; }

/* --- Talleres --- */
.workshops { display: grid; gap: 1.4rem; }
.workshop { display: grid; overflow: hidden; padding: 0; transition: transform .6s var(--ease-out), border-color .4s; }
.workshop:hover { transform: translateY(-8px); border-color: rgba(201,164,92,.5); }
.workshop-media { aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: var(--navy-800); }
.workshop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.workshop:hover .workshop-media img { transform: scale(1.06); }
.workshop-media .chip { position: absolute; top: 1rem; left: 1rem; backdrop-filter: blur(8px); background: rgba(10,26,43,.7); }
.workshop-body { padding: 1.5rem 1.5rem 1.7rem; display: grid; gap: .8rem; align-content: start; }
.workshop-body h3 { font-family: var(--wide); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: 1.02rem; line-height: 1.25; }
.workshop-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--ink-mute); }
.workshop-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.workshop-meta svg { width: 15px; height: 15px; color: var(--gold); }
.workshop-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--gold-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.link-arrow svg { width: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg, .workshop:hover .link-arrow svg { transform: translateX(5px); }
.workshop.next { place-content: center; text-align: center; padding: 2.4rem 1.6rem; gap: 1.2rem; border-style: dashed; border-color: rgba(201,164,92,.45); min-height: 340px; }
.workshop.next .pillar-icon { margin-inline: auto; }
.workshop.next p { color: var(--ink-mute); font-size: .95rem; }

/* --- Sobre mí --- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-photo { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.about-photo .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.about-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid rgba(201,164,92,.55); border-radius: var(--radius); z-index: -1; }
.about-photo .seal { position: absolute; left: -1.6rem; bottom: 2rem; width: 120px; height: 120px; border-radius: 50%; padding: 14px; display: grid; place-items: center; }
.about-photo .seal img { width: 100%; }
.about-copy { display: grid; gap: 1.4rem; }
.creds { display: grid; gap: .8rem; margin-top: .4rem; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; }
.cred svg { width: 24px; height: 24px; color: var(--gold); }
.cred b { display: block; font-size: .95rem; }
.cred span { font-size: .85rem; color: var(--ink-mute); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold-soft); }

/* --- Docentes --- */
.teachers { display: grid; gap: 1.2rem; }
.teacher { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem; }
.teacher .avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(201,164,92,.55); display: grid; place-items: center; background: var(--navy-700); font-family: var(--wide); font-stretch: 125%; font-weight: 800; color: var(--gold-soft); font-size: 1.3rem; }
.teacher .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.teacher h3 { font-size: 1.05rem; }
.teacher p { font-size: .86rem; color: var(--ink-mute); }
.teacher .role { color: var(--gold-soft); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* --- CTA final --- */
.final-cta { text-align: center; }
.final-cta .inner { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 4vw, 4rem); display: grid; justify-items: center; gap: 1.6rem; position: relative; overflow: hidden; }
.final-cta .inner .escudo-bg { position: absolute; width: 360px; opacity: .06; right: -60px; bottom: -80px; z-index: -1; }
.final-cta .btn-row { justify-content: center; }

/* --- Footer --- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: .9rem; color: var(--ink-mute); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-logo img { height: 46px; width: auto; }
.footer h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer a:hover { color: var(--white); }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.socials a:hover { background: rgba(201,164,92,.14); border-color: rgba(201,164,92,.45); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring-wa 2.2s ease-out infinite; }

/* --- Página de workshop --- */
.ws-hero { padding-top: 8.5rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.ws-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.ws-hero .flyer { border-radius: var(--radius); overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.ws-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-block: .6rem; }
.ws-fact { padding: 1rem 1.1rem; border-radius: 16px; display: grid; gap: .15rem; }
.ws-fact small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.ws-fact b { font-size: 1rem; }
.notice { display: flex; gap: .9rem; align-items: start; padding: 1rem 1.2rem; border-radius: 16px; font-size: .9rem; color: var(--ink-mute); border: 1px solid rgba(201,164,92,.4); background: rgba(201,164,92,.08); }
.notice svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: .1rem; }
.notice b { color: var(--white); }
.includes { display: grid; gap: 1rem; }
.include { padding: 1.6rem; display: grid; gap: .8rem; }
.include p { font-size: .92rem; color: var(--ink-mute); }
.syllabus { display: grid; gap: 1rem; counter-reset: s; }
.syl { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; padding: 1.5rem 1.6rem; }
.syl::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.syl h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.syl p { font-size: .92rem; color: var(--ink-mute); }
.steps { display: grid; gap: 1rem; counter-reset: st; }
.step { padding: 1.6rem; display: grid; gap: .6rem; text-align: center; justify-items: center; }
.step::before { counter-increment: st; content: counter(st); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; }
.step p { color: var(--ink-mute); font-size: .9rem; }
.faq { display: grid; gap: .8rem; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 16px; padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .4s var(--ease-out); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--ink-mute); font-size: .95rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; transform: rotate(180deg); }

/* =============================================================
   7. Effects — animación al bajar
   ============================================================= */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
/* Sin JS: todo visible */
html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }

/* Títulos que suben línea a línea */
.split .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.split.is-in .line > span { transform: none; }
html:not(.js) .split .line > span { transform: none; }

@keyframes drift { to { transform: translate(8%, 10%) scale(1.12); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(201,164,92,.55); } 100% { box-shadow: 0 0 0 26px rgba(201,164,92,0); } }
@keyframes ring-wa { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .groups { grid-template-columns: repeat(4, 1fr); }
  .ws-facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .workshops { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .includes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .community-grid { grid-template-columns: .9fr 1.1fr; }
  .live-grid { grid-template-columns: 1.05fr .95fr; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .workshops { grid-template-columns: repeat(4, 1fr); }
  .ws-hero-grid { grid-template-columns: 1.2fr .8fr; }
  .includes { grid-template-columns: repeat(4, 1fr); }
  .syllabus { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .blur-navy::before, .blur-navy::after { animation: none; }
  .stats-video video { display: none; }
}

/* Teléfonos muy estrechos */
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; padding: .95rem 1.25rem; }
  .btn-row > .btn { width: 100%; }
  .eyebrow { letter-spacing: .24em; }
  .ws-facts { grid-template-columns: 1fr 1fr; }
  .ws-fact b { font-size: .92rem; }
}
.community-grid > *, .live-grid > *, .about-grid > *, .hero-grid > *, .ws-hero-grid > * { min-width: 0; }
.groups, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 540px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .stat-num { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .stat-label { font-size: .66rem; letter-spacing: .1em; }
  .group .g-name { flex-wrap: wrap; }
  .group .chip { padding: .25rem .5rem; font-size: .6rem; }
}

/* =============================================================
   10. Cambios ronda 2
   ============================================================= */
/* Portada: frase bajo DPRZ LEGAL */
.hero-tagline { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.3; color: var(--white); text-shadow: 0 4px 18px rgba(0,0,0,.45); margin-top: -.6rem; }
.hero-tagline span { display: block; font-style: italic; color: var(--gold-soft); }

/* Botón Skool (enlace pendiente) */
.btn-skool { --bg: #ffffff; --fg: var(--navy-900); box-shadow: 0 10px 30px -12px rgba(255,255,255,.45); }
.btn-skool .soon { font-size: .58rem; letter-spacing: .12em; padding: .2rem .45rem; border-radius: 999px; background: var(--navy-900); color: var(--gold-soft); }
.btn-skool[aria-disabled="true"] { cursor: default; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Comunidad: foto rectangular */
.community-visual { width: min(100%, 560px); }
.community-visual .photo { aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; border: 1px solid rgba(201,164,92,.55); box-shadow: 0 0 0 10px rgba(201,164,92,.06), 0 40px 80px -30px rgba(0,0,0,.7); }
.community-visual .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.community-visual .badge { right: 4%; bottom: -8%; }

/* Tarjetas de grupos: nombre arriba, estado debajo, sin solaparse */
.group { min-width: 0; padding: 1rem; }
.group .g-name { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .35rem; flex-wrap: nowrap; white-space: nowrap; }
.group .g-num { font-size: clamp(1.05rem, 1.5vw, 1.3rem); display: flex; flex-direction: column; line-height: 1.1; }
.group .g-num small { margin-left: 0; margin-top: .2rem; }
.open-tag { display: inline-flex; align-items: center; gap: .35rem; color: #7ff0ab; font-size: .62rem; letter-spacing: .14em; }
.open-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@media (min-width: 960px) and (max-width: 1199px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .community-grid { grid-template-columns: 1fr 1fr; } }
/* Portada: imagen del logo sin textos encima */
.video-card.is-logo { aspect-ratio: auto; display: flex; flex-direction: column; }
.video-card.is-logo img { aspect-ratio: 16 / 9; height: auto; transform: none; }
.video-card.is-logo:hover img { transform: scale(1.03); }
.video-card.is-logo::after { display: none; }
.video-card.is-logo .video-play { top: 1rem; left: auto; right: 1rem; translate: none; width: 58px; height: 58px; }
.video-card.is-logo .video-play svg { width: 22px; height: 22px; }
.video-card.is-logo .video-caption { position: static; padding: 1rem 1.4rem 1.2rem; align-items: center; background: rgba(7,19,31,.6); }
/* Evita que la página se desplace hacia los lados */
html { overflow-x: clip; }
.stats { position: relative; isolation: isolate; }
/* Números del contador dentro de su tarjeta */
@media (min-width: 720px) { .stat-num { font-size: clamp(1.8rem, 3.4vw, 3.4rem); } }
/* "Baja" solo cuando la portada ocupa dos columnas */
@media (max-width: 959px) { .scroll-hint { display: none; } }
.video-card.is-logo .video-play { animation: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
/* Talleres: 3 tarjetas por fila mientras llegan las nuevas imágenes */
@media (min-width: 960px) { .workshops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Talleres: 4 tarjetas (próximo + realizados) */
@media (min-width: 960px) { .workshops { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 959px) { .workshops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.workshop.is-next { border-color: rgba(201,164,92,.7); box-shadow: 0 0 0 1px rgba(201,164,92,.35), 0 30px 60px -30px rgba(0,0,0,.6); }
/* Docentes: tarjeta "+10" */
.teacher .avatar-num { display: grid; place-items: center; font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 1.4rem; color: var(--navy-900); background: linear-gradient(140deg, var(--gold-soft), var(--gold)); }
/* Clases en vivo: dos imágenes lado a lado */
.live-media { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.live-media .live-photo { aspect-ratio: auto; height: 100%; }
.live-media .live-photo img { height: 100%; }
.live-media .live-proof { aspect-ratio: 3 / 5; height: auto; }
.live-media .live-proof img { object-position: top; }
.live-media .live-proof::after { background: linear-gradient(180deg, transparent 60%, rgba(10,26,43,.6)); }
/* Botones largos: que bajen de línea en pantallas medianas */
.btn { max-width: 100%; }
.btn-skool { white-space: normal; text-align: center; }
@media (max-width: 600px) { .btn-row > .btn { width: 100%; } }

/* Subtítulo blanco bajo "Una comunidad que no para" */
.section-subtitle { font-size: clamp(1.05rem, 2.6vw, 1.9rem); color: var(--white); letter-spacing: .04em; margin-top: -.35rem; text-shadow: 0 4px 22px rgba(0,0,0,.5); }

/* Portada centrada, con el video debajo */
.hero-grid { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
.hero-copy { justify-items: center; max-width: 900px; }
.hero-sub { margin-inline: auto; }
.hero .btn-row { justify-content: center; }
.hero-proof { justify-content: center; }
.hero .video-card { width: 100%; max-width: 860px; }
.hero .scroll-hint { display: none; }

/* =========================================================
   11. Portada nueva y animaciones más dinámicas (ronda 4)
   ========================================================= */

/* Fuente del título: 29LT Bukra Wide.
   Si está instalada en el equipo se usa sola. Para que la vean todos los visitantes,
   guardar el archivo en assets/fonts/29LT-Bukra-Wide-Bold.woff2 y descomentar la línea url(). */
@font-face {
  font-family: "29LT Bukra";
  src: local("29LT Bukra Wide Bold"), local("29LTBukra-WideBold"), local("29LT Bukra Bold Wide")
       /* , url("assets/fonts/29LT-Bukra-Wide-Bold.woff2") format("woff2") */;
  font-weight: 700 900; font-display: swap;
}

:root {
  --ease-strong: cubic-bezier(0.23, 1, 0.32, 1);     /* salida rápida y suave */
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);     /* movimiento en pantalla */
}

/* --- Orden de la portada --- */
.hero-copy { min-height: calc(100svh - 12rem); align-content: center; gap: 1.4rem; }
.hero-title { font-size: clamp(2.6rem, 11vw, 8.2rem); line-height: .95; letter-spacing: .01em; text-shadow: 0 10px 50px rgba(0,0,0,.55); }
.hero-tagline { margin-top: 0; font-size: clamp(1.15rem, 2.2vw, 1.7rem); }
.hero-after { display: grid; gap: 1.4rem; justify-items: center; text-align: center; max-width: 900px; margin-top: clamp(.5rem, 2vw, 1.5rem); }
.hero-motto { font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.15; }

/* "+7.000" como contador de suscriptores */
.hero-proof { gap: .9rem; padding: .55rem 1.1rem .55rem .6rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-proof .avatars span { width: 38px; height: 38px; }
.hero-proof p { color: rgba(255,255,255,.85); }

/* --- Título letra por letra --- */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.96); filter: blur(10px);
  transition: opacity .7s var(--ease-strong), transform .9s var(--ease-strong), filter .7s var(--ease-strong);
  transition-delay: calc(.1s + var(--i) * 45ms); }
.hero-title.is-in .ch { opacity: 1; transform: none; filter: none; }

/* --- Círculos que aparecen uno tras otro --- */
.hero-proof .avatars span { opacity: 0; transform: scale(.6); transition: opacity .45s var(--ease-strong), transform .6s var(--ease-strong); transition-delay: calc(.95s + var(--i) * 80ms); }
.hero-proof.is-in .avatars span { opacity: 1; transform: none; }

/* --- Video que se abre como cortina --- */
.reveal.reveal-clip { transform: translateY(30px) scale(.97); filter: none; clip-path: inset(10% 8% 10% 8% round var(--radius));
  transition: opacity .8s var(--ease-strong), transform 1.1s var(--ease-strong), clip-path 1.2s var(--ease-strong); transition-delay: var(--d, 0s); }
.reveal.reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; }

/* --- Apariciones al bajar: más rápidas y limpias --- */
.reveal { transform: translateY(26px); filter: blur(6px);
  transition: opacity .75s var(--ease-strong), transform .9s var(--ease-strong), filter .75s var(--ease-strong); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-34px); }
.reveal.from-right { transform: translateX(34px); }
.reveal.zoom { transform: scale(.95); }
.split .line > span { transition: transform 1s var(--ease-strong); transition-delay: var(--d, 0s); }

/* --- Botones y tarjetas: respuesta inmediata --- */
.btn { transition: transform .35s var(--ease-strong), box-shadow .35s var(--ease-strong), background .25s ease; }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.pillar, .workshop { transition: transform .45s var(--ease-strong), border-color .3s ease, box-shadow .45s var(--ease-strong); }
.pillar:hover, .workshop:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* En celulares no hay "pasar el ratón": evitamos que las tarjetas queden levantadas al tocar */
@media (hover: none) {
  .btn:hover, .pillar:hover, .workshop:hover, .group:hover, .socials a:hover, .wa-float:hover { transform: none; }
  .btn:hover::after { transform: translateX(-120%) skewX(-20deg); }
  .workshop:hover .workshop-media img, .video-card:hover img { transform: none; }
}

/* --- Barra dorada de progreso al bajar --- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; }

/* --- Menos movimiento para quien lo pide en su equipo --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.from-left, .reveal.from-right, .reveal.zoom, .reveal.reveal-clip { transform: none; filter: none; clip-path: none; transition: opacity .4s ease; }
  .hero-title .ch, .hero-proof .avatars span { transform: none; filter: none; transition: opacity .4s ease; transition-delay: 0s; }
  .split .line > span { transform: none; transition: none; }
  .hero-bg img, .live-photo img { transform: none !important; }
  .scroll-progress { display: none; }
}
.hero-copy { max-width: 1240px; }
@media (min-width: 760px) { .hero-title { white-space: nowrap; font-size: clamp(3rem, 9.4vw, 8.6rem); } }
/* Estado final de las apariciones (va al final para que gane siempre) */
.reveal.is-in, .reveal.from-left.is-in, .reveal.from-right.is-in, .reveal.zoom.is-in { opacity: 1; transform: none; filter: none; }
@media (max-width: 559px) {
  .hero-proof { flex-direction: column; gap: .55rem; border-radius: 20px; padding: .8rem 1.3rem; }
  .hero-proof p { font-size: .86rem; }
  .hero-copy { min-height: calc(100svh - 10rem); }
}

/* Unbounded (parecida a 29LT Bukra Wide): ya es ancha, no necesita estirarse */
.title-wide, .mobile-menu a, .marquee span, .workshop-body h3 { font-stretch: 100%; }
.title-wide { font-weight: 700; letter-spacing: -.005em; }
.hero-title { font-weight: 800; letter-spacing: -.01em; }

/* =========================================================
   12. Ronda 5
   ========================================================= */

/* --- Letra de títulos: Syne (E recta y pareja) --- */
.title-wide { font-weight: 800; letter-spacing: 0; }
.hero-title { font-weight: 800; letter-spacing: -.005em; }
@media (min-width: 760px) { .hero-title { font-size: clamp(3rem, 8vw, 7.4rem); } }

/* --- Portada: título, frase, +7.000 y video en la primera pantalla --- */
.hero { min-height: 100svh; padding-top: 6.2rem; padding-bottom: 2.5rem; align-items: start; }
.hero-grid { gap: clamp(1rem, 2.2vh, 1.6rem); }
.hero-copy { min-height: 0; gap: .9rem; }
.hero-tagline { font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.hero-proof { padding-block: .4rem; }
.hero-proof .avatars span { width: 32px; height: 32px; font-size: .62rem; }
.hero .video-card { max-width: min(860px, max(320px, calc((100svh - 25rem) * 1.6))); }
.hero-after { margin-top: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 559px) {
  .hero { padding-top: 5.6rem; }
  .hero-copy { min-height: 0; }
  .hero-proof { flex-direction: row; border-radius: 999px; padding: .4rem .9rem .4rem .45rem; gap: .6rem; }
  .hero-proof p { font-size: .78rem; text-align: left; line-height: 1.3; }
  .hero-proof .avatars span { width: 28px; height: 28px; margin-left: -8px; }
}

/* --- Comunidad: foto del niño más pequeña --- */
.community-visual { width: min(100%, 400px); }
@media (min-width: 960px) { .community-grid { grid-template-columns: .8fr 1.2fr; } }

/* --- Título "Del aula al Juzgado" de los grupos más proporcionado --- */
#comunidad .section-head h2 { font-size: clamp(1.4rem, 3.4vw, 2.5rem); }

/* --- Grupos: casillas más pequeñas --- */
.groups { gap: .5rem; margin-block: 1.4rem; }
.group { padding: .6rem .7rem; border-radius: 12px; gap: .1rem; }
.group .g-name { font-size: .62rem; gap: .25rem; }
.group .g-num { font-size: clamp(.92rem, 1.2vw, 1.08rem); }
.group .g-num small { font-size: .64rem; }
.group .bar { height: 3px; margin-top: .3rem; }
.group .full-tag, .group .open-tag { font-size: .56rem; padding: .15rem .45rem; }
@media (min-width: 960px) and (max-width: 1199px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- Talleres: el próximo en grande, los realizados de dos en dos --- */
.workshops { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem; max-width: 980px; margin-inline: auto; }
.workshop.is-next { grid-column: 1 / -1; }
.workshop:not(.is-next) .workshop-media { aspect-ratio: 4 / 3; }
.workshop:not(.is-next) .workshop-body { padding: 1rem 1.1rem 1.1rem; gap: .5rem; }
.workshop:not(.is-next) .workshop-body h3 { font-size: .86rem; }
.workshop:not(.is-next) .workshop-meta { font-size: .74rem; }
.workshop:not(.is-next) .price { font-size: 1.15rem; }
.workshop:not(.is-next) .workshop-foot { padding-top: .7rem; margin-top: .2rem; }
.workshop:not(.is-next) .link-arrow { font-size: .7rem; }
@media (min-width: 720px) {
  .workshop.is-next { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .workshop.is-next .workshop-media { aspect-ratio: auto; min-height: 100%; }
  .workshop.is-next .workshop-body { padding: 2.2rem; align-content: center; gap: 1.1rem; }
  .workshop.is-next .workshop-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
  .workshop.is-next .price { font-size: 2rem; }
}
@media (max-width: 559px) {
  .workshop:not(.is-next) .workshop-body h3 { font-size: .74rem; }
  .workshop:not(.is-next) .workshop-meta { font-size: .68rem; gap: .2rem .6rem; }
  .workshop:not(.is-next) .workshop-foot { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .workshop:not(.is-next) .workshop-media .chip { top: .5rem; left: .5rem; font-size: .55rem; padding: .2rem .45rem; }
}

/* --- Banda de Skool a mitad de página --- */
.skool-band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.skool-band-inner { display: grid; gap: 1.6rem; align-items: center; justify-items: center; text-align: center; padding: clamp(1.8rem, 4vw, 3rem); }
.skool-band-inner .lead { margin-inline: auto; margin-top: .6rem; }
.skool-band-inner .eyebrow { justify-content: center; margin-bottom: .6rem; }
@media (min-width: 860px) { .skool-band-inner { grid-template-columns: 1.4fr auto; text-align: left; justify-items: start; } .skool-band-inner .eyebrow { justify-content: flex-start; } .skool-band-inner .lead { margin-inline: 0; } }

/* --- Botón "Suscríbete y crea tu marca personal": brillo, latido y manito que hace clic --- */
.btn-cta { position: relative; overflow: visible; padding-right: 3.4rem; isolation: isolate; animation: cta-glow 2.8s var(--ease-strong) infinite; }
.btn-cta::after { animation: cta-shine 2.8s var(--ease-strong) infinite; }
.btn-cta::before {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 24px; height: 24px; margin-top: -9px; z-index: 2;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a1a2b' stroke='%23ffffff' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10l.2-1a1.5 1.5 0 0 1 2.9.6l-.1.9.3-.6a1.5 1.5 0 0 1 2.7 1.2v.4a1.4 1.4 0 0 1 2.6 1V15a7 7 0 0 1-7 7h-.6a6 6 0 0 1-4.5-2L5.4 16.4a1.6 1.6 0 0 1 2.3-2.2L9 15.4Z'/%3E%3C/svg%3E");
  animation: cta-tap 2.8s var(--ease-strong) infinite; transform-origin: 40% 20%;
}
.btn-cta:hover { animation-play-state: paused; }
.btn-cta:hover::before, .btn-cta:hover::after { animation-play-state: paused; }
@keyframes cta-glow {
  0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 14px 34px -14px rgba(0,0,0,.6); }
  62% { box-shadow: 0 0 0 0 rgba(255,255,255,.55), 0 14px 34px -14px rgba(0,0,0,.6); }
  85% { box-shadow: 0 0 0 14px rgba(255,255,255,0), 0 14px 34px -14px rgba(0,0,0,.6); }
}
@keyframes cta-tap {
  0%, 40% { transform: translate(6px, 8px) scale(1); opacity: .0; }
  50% { transform: translate(0, 0) scale(1); opacity: 1; }
  58% { transform: translate(0, 0) scale(.82); }
  66% { transform: translate(0, 0) scale(1); }
  90% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(6px, 8px) scale(1); opacity: 0; }
}
@keyframes cta-shine { 0%, 55% { transform: translateX(-120%) skewX(-20deg); } 85%, 100% { transform: translateX(120%) skewX(-20deg); } }
.btn-cta { overflow: hidden; }
@media (max-width: 600px) { .btn-cta { padding-right: 3.2rem; } }
@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-cta::before, .btn-cta::after { animation: none; }
  .btn-cta::before { opacity: 1; transform: none; }
}
.btn-skool.btn-cta::after { background: linear-gradient(90deg, transparent, rgba(201,164,92,.45), transparent); }
@media (min-width: 760px) { .hero-title { font-size: clamp(2.8rem, 6.4vw, 6.2rem); } }
.hero { padding-top: 7rem; }
.workshops { max-width: 900px; }
/* Tarjetas de "Qué es": la letra Syne es más ancha, que nunca se salgan */
.pillars > *, .pillar { min-width: 0; }
.pillar h3 { font-size: clamp(1.05rem, 1.9vw, 1.5rem); overflow-wrap: anywhere; }
.includes > *, .include { min-width: 0; }
.include h3 { overflow-wrap: anywhere; font-size: clamp(.95rem, 1.6vw, 1.2rem); }

/* =========================================================
   13. Destello de luz entre secciones
   ========================================================= */
.stats, .skool-band, .footer { position: relative; }
.seam { position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 3; pointer-events: none; overflow: visible;
  background: linear-gradient(90deg, transparent 0%, rgba(78,134,214,.35) 18%, rgba(201,164,92,.55) 50%, rgba(78,134,214,.35) 82%, transparent 100%); }
/* brillo suave alrededor de la línea */
.seam::before { content: ""; position: absolute; left: 10%; right: 10%; top: -40px; height: 80px; opacity: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(78,134,214,.45), rgba(78,134,214,0) 70%); filter: blur(6px); }
/* punto de luz que recorre la línea */
.seam::after { content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 3px; opacity: 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(140,190,255,.9) 40%, #fff 50%, rgba(232,206,150,.95) 60%, transparent);
  box-shadow: 0 0 18px 4px rgba(90,150,240,.55); transform: translateX(-110%); }
.seam.is-lit::before { animation: seam-bloom 1.6s var(--ease-strong) both; }
.seam.is-lit::after { animation: seam-sweep 1.5s var(--ease-inout) both; }
@keyframes seam-sweep { 0% { transform: translateX(-110%); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(310%); opacity: 0; } }
@keyframes seam-bloom { 0% { opacity: 0; transform: scaleX(.6); } 35% { opacity: .9; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.05); } }
@media (prefers-reduced-motion: reduce) { .seam::before, .seam::after { animation: none !important; } }
/* destello un poco más visible */
.seam { height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(78,134,214,.45) 15%, rgba(201,164,92,.7) 50%, rgba(78,134,214,.45) 85%, transparent 100%); }
.seam::before { top: -70px; height: 140px; left: 0; right: 0; background: radial-gradient(45% 50% at var(--bx, 50%) 50%, rgba(78,134,214,.6), rgba(78,134,214,0) 70%); filter: blur(8px); }
.seam::after { height: 2px; top: -.5px; width: 30%;
  box-shadow: 0 0 14px 3px rgba(120,175,255,.85), 0 0 46px 12px rgba(60,120,220,.45); }
.seam.is-lit::after { animation: seam-sweep 1.9s cubic-bezier(.45, 0, .2, 1) both; }
.seam.is-lit::before { animation: seam-bloom 1.9s var(--ease-strong) both; }

/* ===== 14. Descripción del próximo taller ===== */
.workshop-desc { font-size: .92rem; line-height: 1.55; color: var(--ink-mute); margin: 0; }
.workshop:not(.is-next) .workshop-desc { display: none; }
