/* Aula Contigo — «Cómo se navega». Builds on tokens.css and landing.css (nav, sec-head, buttons, footer).
   Real demo screenshots sit in a phone frame; each band tilts its phone a little, on purpose. */

/* Phone frame: outer radius = inner radius + padding (30 + 8) */
.phone { margin: 0; width: min(100%, 300px); padding: 8px; border-radius: var(--r-device); background: var(--ink); box-shadow: var(--shadow-3); }
.phone img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* Icon list shared by the bands (pastel circles: client identity, see tokens.css) */
.nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.nlist li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.nlist .icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--sage-soft); stroke-width: 1.5; }
.nlist p { color: var(--ink-mut); line-height: 1.55; }
.nlist b { color: var(--ink); }

/* Hero */
.nhero { position: relative; overflow: hidden; display: grid; gap: 40px; padding: 56px var(--gx) 72px; background: linear-gradient(in oklch, var(--aqua-soft), var(--cream) 80%); }
.nhero h1 { margin: 12px 0 16px; max-width: 16ch; font-size: var(--t-h1); font-weight: 900; letter-spacing: -0.034em; line-height: 1.02; }
.nhero__lead { max-width: 58ch; color: var(--ink-mut); font-size: var(--t-lead); }
.nhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nfacts { list-style: none; margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.nfacts li { display: grid; gap: 2px; align-content: start; }
.nfacts b { font-family: var(--script); font-weight: 400; font-size: var(--t-script-3); line-height: .9; color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.nfacts li:nth-child(2) b { color: var(--leaf-dark); }
.nfacts li:nth-child(3) b { color: var(--lilac-ink); }
.nfacts span { font-size: var(--t-small); line-height: 1.35; color: var(--ink-2); letter-spacing: .006em; }
.nhero__phone { position: relative; justify-self: center; width: min(78%, 290px); transform: rotate(2.5deg); }
.nhero__phone::before { content: ""; position: absolute; z-index: -1; inset: 12% -26% 6% -22%; border-radius: 48% 52% 44% 56% / 58% 50% 50% 42%; background: radial-gradient(circle at 30% 30%, var(--mustard-soft), var(--sage-soft)); transform: rotate(-2.5deg); }
.nhero__phone { isolation: isolate; }
@media (min-width: 900px) {
  .nhero { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; padding: 80px var(--gx) 96px; }
  .nhero__copy { padding-left: clamp(0px, calc((100vw - 900px) * .12), 72px); }
  .nhero__phone { width: min(100%, 300px); }
}

/* La primera vez */
.nfirst { padding: 88px var(--gx) 80px; max-width: 1180px; margin: 0 auto; }
.nfirst__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.nfirst__grid .nlist { grid-column: 1 / -1; }
.nshot { margin: 0; display: grid; gap: 16px; align-content: start; }
.nshot .phone { padding: 8px; border-radius: var(--r-lg); }
.nshot .phone img { border-radius: var(--r-lg); }
.nshot figcaption { font-size: var(--t-small); line-height: 1.5; color: var(--ink-mut); }
.nshot figcaption b { color: var(--ink); }
@media (min-width: 980px) {
  .nfirst__grid { grid-template-columns: minmax(0, 260px) minmax(0, 260px) 1fr; gap: 40px; align-items: start; }
  .nfirst__grid .nlist { grid-column: auto; padding-top: 24px; }
  .nshot .phone { padding: 8px; border-radius: var(--r-device); }
  .nshot .phone img { border-radius: var(--r-lg); }
  .nshot--low { margin-top: 56px; }
}

/* Si no hay un adulto al lado */
.nalone { padding: 96px var(--gx) 88px; background: var(--paper); border-block: 1px solid var(--line); }
.nalone__inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 48px; }
.nalone__phone { justify-self: center; width: min(78%, 290px); transform: rotate(-2deg); }
.nalone__copy h2 { margin: 8px 0 12px; max-width: 18ch; font-size: var(--t-h2); font-weight: 900; letter-spacing: -0.026em; line-height: 1.08; }
.nalone__lead { max-width: 60ch; color: var(--ink-mut); font-size: var(--t-lead); margin-bottom: 32px; }
.nlist--rows .icon { background: var(--mustard-soft); }
.nalone__note { margin-top: 24px; padding: 12px 16px 13px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); color: var(--ink-mut); font-size: var(--t-small); max-width: 60ch; }
@media (min-width: 900px) {
  .nalone__inner { grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: center; }
  .nalone__phone { width: min(100%, 300px); justify-self: end; }
}

/* Cada rol, lo suyo */
.nroles { padding: 88px var(--gx); max-width: 1180px; margin: 0 auto; }
.nroles__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }
@media (min-width: 1100px) { .nroles__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } } /* five roles, one row */
.nrole { display: grid; gap: 8px; align-content: start; padding: 20px 16px 20px; border-radius: var(--r-bubble); background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-1); }
.nrole__face { display: block; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: var(--rc); }
.nrole__face svg { width: 100%; height: 100%; transform: translateY(8px); }
.nrole__face .person--img { width: 100%; height: 100%; object-fit: cover; }
.nrole h3 { font-size: var(--t-lead); }
.nrole p { color: var(--ink-mut); font-size: var(--t-small); line-height: 1.5; }
.nrole .nrole__sees { color: var(--leaf-dark); font-weight: 700; font-size: var(--t-small); }
.nrole a { margin-top: 8px; font-weight: 800; color: var(--coral-ink); text-decoration: none; }
.nrole a::after { content: "\00a0→"; } /* the arrow never wraps alone */
.nrole a:hover { text-decoration: underline; }

/* Currículo Vivo (dark band, like «Hacia dónde va» on the home page) */
.ncurr { padding: 96px var(--gx); background: var(--ink); color: var(--cream); }
.ncurr__inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 48px; }
.ncurr .overline { color: var(--mustard); }
.ncurr h2 { margin: 8px 0 24px; max-width: 20ch; font-size: var(--t-h2); font-weight: 900; letter-spacing: -0.026em; line-height: 1.08; }
.ncurr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: c; max-width: 60ch; }
.ncurr__list li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: rgb(248 243 230 / .8); line-height: 1.55; }
.ncurr__list li::before { content: counter(c); font-family: var(--script); font-size: var(--t-script-2); line-height: 1; color: var(--mustard); }
.ncurr__list b { color: var(--cream); }
.ncurr__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ncurr__phone { justify-self: center; width: min(78%, 290px); transform: rotate(1.5deg); background: var(--ink-deep); }
@media (min-width: 900px) {
  .ncurr__inner { grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
  .ncurr__phone { width: min(100%, 300px); justify-self: start; }
}

/* Ejercicios */
.nex { padding: 88px var(--gx) 72px; max-width: 1180px; margin: 0 auto; }
.nex__list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 8px; border-radius: var(--r-lg); background: var(--cream-2); }
.nex__item { display: grid; grid-template-columns: 40px 1fr; gap: 8px 16px; align-items: start; padding: 16px 16px 20px; border-radius: var(--r-lg); background: var(--paper); }
.nex__n { font-family: var(--script); font-size: var(--t-script-3); line-height: .9; color: var(--coral); text-align: center; font-variant-numeric: tabular-nums; }
.nex__txt small { display: block; font-size: var(--t-micro); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--coral-ink); margin-bottom: 4px; }
.nex__txt h3 { font-size: var(--t-lead); margin-bottom: 8px; max-width: 40ch; }
.nex__txt p { color: var(--ink-mut); font-size: var(--t-small); line-height: 1.5; max-width: 62ch; }
.nex__txt b { color: var(--ink); }
.nex__item .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
@media (min-width: 760px) {
  .nex__item { grid-template-columns: 48px 1fr auto; align-items: center; padding: 16px 24px 20px; }
  .nex__item .btn { grid-column: auto; margin-top: 0; }
}

/* Piloto */
.npilot { padding: 8px var(--gx) 120px; }
.npilot__inner { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 24px 24px; border-radius: var(--r-lg); background: var(--coral-soft); }
.npilot__ic { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--paper); color: var(--coral-ink); stroke-width: 1.5; }
.npilot h2 { font-size: var(--t-h3); letter-spacing: -0.016em; margin: 4px 0 8px; color: var(--ink); }
.npilot p { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 480px) { .npilot__inner { grid-template-columns: 1fr; } }
