/* =====================================================================
   Juventud Crecer — juventud.comunidadcrecer.com.py
   Sistema: cobalto (fondo de póster) · sol (resalte) · coral (adolescentes)
   Tipografía: Bricolage Grotesque (titulares) + Instrument Sans (texto)
   ===================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cobalt: #1F3AF0;
  --cobalt-deep: #14259E;
  --ink: #0C1140;
  --paper: #F4F5FB;
  --white: #FFFFFF;
  --sol: #FFC83D;
  --sol-hover: #FFD666;
  --coral: #FF6A4D;
  --mist: #C7D0FF;
  --muted: rgba(12, 17, 64, .68);
  --line: rgba(12, 17, 64, .12);

  --font-display: 'Bricolage Grotesque', 'Arial Black', Impact, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.hero :focus-visible, .band :focus-visible, .footer :focus-visible,
.nav:not(.nav--solid):not(.nav--open) :focus-visible { outline-color: var(--sol); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--sol); color: var(--ink); padding: 10px 14px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sol { background: var(--sol); color: var(--ink); }
.btn--sol:hover { background: var(--sol-hover); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: var(--white); }
.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--cobalt:hover { background: var(--cobalt-deep); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--cobalt-deep); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt);
}
.eyebrow--light { color: var(--sol); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }
.nav--solid {
  background: rgba(244, 245, 251, .92); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand em { font-style: normal; font-weight: 500; opacity: .8; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .92; }
.nav__menu a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__cta { padding: 11px 18px; font-size: 15px; }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 2px solid currentColor; color: inherit;
    border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer;
  }
  .nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 20px 40px rgba(12, 17, 64, .15);
  }
  .nav--open { background: var(--paper); color: var(--ink); }
  .nav--open .nav__menu { display: flex; }
  .nav__menu a:not(.btn) { padding: 12px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--cobalt); color: var(--white);
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 88px)) 0 clamp(64px, 9vw, 112px);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -25%; right: -15%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%);
}
.hero__bg {
  position: absolute; z-index: -1; right: -1vw; bottom: -.14em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 24vw, 340px); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .13);
  user-select: none; pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(54px, 9.4vw, 128px); line-height: .92; letter-spacing: -.035em;
  margin: 22px 0 26px; font-variation-settings: "opsz" 96;
}
.hero__title .line { display: block; }
.hero__title .line--sol { color: var(--sol); }
.hero__lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 32em; color: var(--mist); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--mist); }

/* Cuenta regresiva (elemento firma) */
.countdown-wrap { transform: rotate(-1.5deg); }
.countdown {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 60px -20px rgba(6, 10, 50, .6);
}
.countdown__tag {
  position: absolute; top: -14px; right: 22px;
  background: var(--sol); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 8px;
}
.countdown__eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cobalt); }
.countdown.is-today .countdown__eyebrow::after { content: " · ¡Es hoy!"; color: var(--coral); }
.countdown__when { margin-top: 6px; font-weight: 600; font-size: 16px; }
.countdown__when::first-letter { text-transform: uppercase; }
.countdown__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line);
}
.countdown__grid b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.countdown__grid span {
  display: block; margin-top: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.countdown__now {
  margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); font-weight: 600;
}
.countdown__now::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); margin-right: 10px; vertical-align: 1px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 920px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .countdown-wrap { transform: none; margin-top: 28px; }
}
@media (max-width: 820px) { .hero__bg { display: none; } }

/* Secuencia de entrada del hero */
.hero .eyebrow, .hero__title .line, .hero__lead, .hero__actions, .hero__note, .countdown {
  animation: rise .8s var(--ease-out) both;
}
.hero .eyebrow { animation-delay: .05s; }
.hero__title .line:nth-child(1) { animation-delay: .12s; }
.hero__title .line:nth-child(2) { animation-delay: .2s; }
.hero__title .line:nth-child(3) { animation-delay: .28s; }
.hero__lead { animation-delay: .38s; }
.hero__actions { animation-delay: .46s; }
.hero__note { animation-delay: .5s; }
.countdown { animation-delay: .55s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cinta ---------- */
.ticker {
  background: var(--sol); color: var(--ink); overflow: hidden;
  padding: 14px 0; border-block: 3px solid var(--ink);
}
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker__track span {
  position: relative; white-space: nowrap; padding: 0 26px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
}
.ticker__track span::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ink); transform: translateY(-50%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 68px); line-height: .96; letter-spacing: -.03em;
  margin-top: 14px; font-variation-settings: "opsz" 96;
}
.section__lead { margin-top: 18px; font-size: 18px; max-width: 36em; color: var(--muted); }

/* ---------- Encuentros (tickets) ---------- */
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ticket {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.ticket__head { padding: 26px 28px 24px; color: var(--white); background: var(--cobalt); }
.ticket--teens .ticket__head { background: var(--coral); color: var(--ink); }
.ticket__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.ticket__day {
  display: block; margin-top: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1;
}
.ticket__time {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 7vw, 84px); line-height: .95; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.ticket__body {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 28px 28px; border-top: 2px dashed var(--line);
}
.ticket__body::before, .ticket__body::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.ticket__body::before { left: -12px; }
.ticket__body::after { right: -12px; }
.ticket__place { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ticket__place svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.ticket--teens .ticket__place svg { color: var(--coral); }
.ticket__text { color: var(--muted); }
.ticket__next { font-size: 14px; color: var(--muted); }
.ticket__next b { color: var(--ink); }
.ticket__actions { margin-top: auto; padding-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.tickets__note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.tickets__note a { color: var(--cobalt); font-weight: 600; }
@media (max-width: 820px) { .tickets { grid-template-columns: 1fr; } }

/* ---------- Qué pasa (secuencia) ---------- */
.rail {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.rail__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.rail__quote {
  margin-top: 28px; padding: 22px 24px;
  border-left: 4px solid var(--sol); background: var(--white); border-radius: 0 14px 14px 0;
  font-size: 17px; font-style: italic;
}
.rail__quote cite {
  display: block; margin-top: 8px; font-style: normal; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--cobalt);
}
.steps { list-style: none; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line);
}
.step { position: relative; padding: 0 0 38px 52px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--cobalt);
}
.step:last-child::before { background: var(--sol); border-color: var(--ink); }
.step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.1;
}
.step p { margin-top: 8px; color: var(--muted); max-width: 40em; }
@media (max-width: 920px) {
  .rail { grid-template-columns: 1fr; }
  .rail__aside { position: static; }
}

/* ---------- Banda: por qué venir ---------- */
.band { background: var(--cobalt); color: var(--white); }
.band__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6.6vw, 96px); line-height: .94; letter-spacing: -.035em;
  margin-top: 16px; max-width: 11em; font-variation-settings: "opsz" 96;
}
.band__title em { font-style: normal; color: var(--sol); }
.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .28);
}
.pillar__k {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sol); font-weight: 700; margin-bottom: 8px;
}
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.pillar p { margin-top: 10px; color: var(--mist); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.015em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%230C1140' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sol); }
.faq details p { padding: 0 0 26px; max-width: 42em; color: var(--muted); }
.faq details p a { color: var(--cobalt); font-weight: 600; }

/* ---------- Dónde ---------- */
.where {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.schedule { list-style: none; padding: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.schedule li {
  display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.schedule b {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.schedule li.is-youth b { color: var(--cobalt); }
.schedule span { display: block; font-weight: 600; }
.schedule small { display: block; color: var(--muted); font-size: 14px; }
.where__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.map {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: #DFE4F5; border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 920px) { .where { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.cta-final {
  background: var(--sol); color: var(--ink);
  padding-block: clamp(72px, 10vw, 128px); border-top: 3px solid var(--ink);
}
.cta-final__inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end;
}
.cta-final__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(60px, 12.5vw, 168px); line-height: .88; letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
.cta-final__text { font-size: 19px; max-width: 26em; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 820px) { .cta-final__inner { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--mist); padding: 52px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--white); }
.footer__about { margin-top: 16px; max-width: 30em; }
.footer__col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sol); }
.footer__col a, .footer__col span { display: block; text-decoration: none; padding: 4px 0; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--white); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Página 404 ---------- */
.page-404 { min-height: 100svh; display: flex; align-items: center; background: var(--cobalt); color: var(--white); }
.page-404 .container { padding-block: 64px; }

/* ---------- Revelado al scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal--2 { transition-delay: .1s; }
.reveal--3 { transition-delay: .2s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ticker__track [data-clone] { display: none; }
  .countdown-wrap { transform: none; }
}
