/* Public pages: the masthead and the colophon (round 1, system leg), the night hero, "Así funciona" and the blocks
   other public pages share. The landing's own rules live in css/landing.css (round 1). Tokens from style.css only. */

/* Masthead: brand, the section links (a <details> menu below 75rem, no script: the Spanish links and the button fit
   one line each only from there), the actions */
.site-header { position: relative; z-index: 30; background: var(--papel); border-top: 3px solid var(--tinta); border-bottom: 1px solid var(--regla); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.mast-row > .brand { margin-right: auto; min-height: 44px; }
.mast-nav { display: none; }
.nav { display: flex; align-items: center; gap: .25rem 1.25rem; font-size: .9375rem; }
.nav a:not(.btn), .mast-nav a, .mast-sheet a { color: var(--grafito); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .mast-nav a:hover, .mast-sheet a:hover { color: var(--tinta); text-decoration: underline; }
.mast-nav a, .mast-actions a { white-space: nowrap; }
.mast-actions { order: 2; flex-basis: 100%; }
.mast-actions .theme-form { margin-left: auto; }
.mast-menu { order: 1; }
.mast-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--regla-2); border-radius: var(--rad-btn); font-weight: 600; font-size: .9375rem; color: var(--titulo); cursor: pointer; }
.mast-menu > summary::-webkit-details-marker { display: none; }
.mast-menu[open] > summary { background: var(--celeste); border-color: var(--tinta); }
.mast-sheet { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: .25rem 1.25rem 1rem; background: var(--papel); border-bottom: 1px solid var(--regla); box-shadow: var(--shadow-2); }
.mast-sheet a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--regla); }

/* Colophon: the night band that closes every public page */
.site-footer { margin-top: var(--s7); padding: var(--s7) 0 var(--s6); font-size: .9375rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand p { margin: .75rem 0 0; max-width: 24rem; font: 400 1rem/1.5 var(--serif); color: var(--on-noche-2); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; align-content: start; }
.footer-links a { display: flex; align-items: center; min-height: 44px; }
.lang-switch { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-content: start; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; }
.lang-switch a[aria-current] { font-weight: 700; }
@media (min-width: 48rem) {
  .mast-row { min-height: 4.25rem; }
  .mast-actions { order: 1; flex-basis: auto; }
  .mast-menu { order: 2; }
  .footer-grid { grid-template-columns: 2fr 3fr 1fr; column-gap: var(--s7); }
}
@media (min-width: 75rem) {
  .mast-row { flex-wrap: nowrap; gap: 1.75rem; }
  .mast-row > .brand { margin-right: 0; }
  .mast-nav { display: flex; gap: 1.5rem; margin-right: auto; font-size: .9375rem; }
  .mast-menu { display: none; }
  .mast-actions .theme-form { margin-left: 0; }
}


/* Hero: the night band of /examen-gratis and /profesores (the landing's paper hero is in css/landing.css) */
.hero { position: relative; overflow: hidden; background: var(--noche); color: var(--on-noche); padding-bottom: 4.5rem; }
.hero .eyebrow { color: var(--on-noche-2); }
.hero h1 { color: var(--on-noche); max-width: 18ch; }
.hero .lead, .hero .note { color: var(--on-noche-2); }
.hero a:not(.btn) { color: var(--on-noche); }
.hero .btn-ghost { border-color: var(--on-noche-2); color: var(--on-noche); }
.hero .btn-ghost:hover { background: var(--night-2); border-color: var(--on-noche); color: var(--on-noche); }
.hero .empty { background: var(--night-2); border-color: var(--on-noche-2); color: var(--on-noche-2); }
/* A paper card inside the night band keeps paper colours («En cifras» on /profesores) */
.hero .hero-card { color: var(--grafito); }
.hero .hero-card .note { color: var(--gris); }
.hero .hero-card a:not(.btn) { color: var(--tinta-2); }
[data-theme="dark"] .hero { border-bottom: 1px solid var(--regla); }
@media (prefers-color-scheme: dark) { [data-theme="system"] .hero { border-bottom: 1px solid var(--regla); } }
.hero-copy { min-width: 0; }
.hero-trace { position: absolute; left: 0; right: 0; bottom: .75rem; width: 100%; height: 3.25rem; pointer-events: none; }
.hero-trace path { fill: none; stroke: var(--on-noche-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .55; animation: trace-in 2.2s var(--ease) both; }
@keyframes trace-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Así funciona */
.how-grid { display: grid; gap: 2rem; align-items: center; }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.step { counter-increment: step; position: relative; padding: .85rem 0 .85rem 3.25rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .95rem; font: 600 .8rem/1.4 var(--sans); letter-spacing: .06em; color: var(--tinta); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); }
.video-slot { margin: 0; }
.video-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--night-2); overflow: hidden; box-shadow: var(--shadow-2); }
.video-slot figcaption { margin-top: .6rem; font-size: var(--t-caption); line-height: 1.45; color: var(--gris); }

/* Feature cards (/profesores) and the closing call of the public pages */
.features .card h3 { display: flex; align-items: baseline; gap: .5rem; }
.final-cta h2 { margin-top: 0; }
.final-cta .wrap { display: grid; justify-items: center; gap: .25rem; }
.final-cta form { margin: 0; }

@media (min-width: 48rem) {
  .hero { padding-bottom: 6rem; }
  .hero-trace { height: 4rem; bottom: 1rem; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .how-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}
@media (max-width: 30rem) {
  .hero { padding-bottom: 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero .actions .btn { width: 100%; }
  .step { padding-left: 2.6rem; }
}
.price-saving { color: var(--teal-strong); font-weight: 600; font-size: .92rem; margin: 0 0 .5rem; }
/* /t/<slug>: the teacher whose link brought the visitor, in the hero (teacher-persona run, 3 Nov 2026) */
.hero-host { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-weight: 500; }
.hero-host-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-host-photo.tutor-initials { display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
/* The named medical review (_medical_review.html) */
.review-credit li { margin-bottom: .35rem; }
