:root {
  color-scheme: light;
  --night: #081c32; --ink: #102b3d; --muted: #456273; --teal: #005761;
  --aqua: #90f2e1; --paper: #f6f9f8; --white: #fff; --line: #d8e5e8;
  --focus: #b64912; --heading: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-family: 'Segoe UI', Inter, Arial, sans-serif;
  font-size: 16px; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 10; padding: .8rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--heading); line-height: 1.09; letter-spacing: -.035em; }
p { line-height: 1.55; }
main { min-width: 0; }
#app { min-height: 100svh; display: flex; flex-direction: column; }
.cintillo { background: white; width: 100%; line-height: 0; border-bottom: 2px solid #e66b2c; }
.cintillo img { display: block; width: 100%; height: auto; }
.topbar, .footer { background: var(--night); color: white; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1.15rem, 3.6vw, 4rem); min-height: 63px; }
.brand { color: white; font-family: var(--heading); font-size: 1.19rem; font-weight: 700; text-decoration: none; }
.footer { margin-top: auto; padding: 1rem clamp(1.15rem, 3.6vw, 4rem); color: #e0edf2; }
.footer p { font-size: .875rem; }
.primary, .secondary, .outline, .quiet { min-height: 44px; line-height: 1.17; border-radius: .45rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: .66rem .95rem; font-weight: 700; cursor: pointer; text-align: center; }
.primary { background: var(--teal); color: white; border: 1px solid var(--teal); }
.primary:hover { background: #00444d; }
.secondary { background: white; color: var(--teal); border: 1px solid #9cb8bd; }
.secondary:hover { background: #eff8f7; }
.outline { color: #fff; background: transparent; border: 1px solid #beccd7; }
.outline:hover { background: #1c3650; }
.quiet { color: var(--teal); background: transparent; border: 1px solid transparent; }
.quiet:hover { background: #e6f3f2; }
button:disabled { cursor: default; opacity: .58; }
.hero { flex: 1; min-height: 650px; min-height: min(650px, 73svh); background: linear-gradient(90deg,#03172be8 0%,#06273ca8 43%,#00384926 76%),url('/assets/los-roques.webp') center 57% / cover; display: grid; align-items: center; padding: clamp(2.2rem, 7vw, 7rem) clamp(1.15rem, 3.6vw, 4rem); }
.hero-grid { width: 100%; max-width: 1530px; margin: auto; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(18rem, .88fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.hero h1 { color: white; font-size: clamp(2.7rem, 5.65vw, 6rem); max-width: 15ch; font-weight: 800; }
.hero h1 span { color: var(--aqua); display: block; }
.hero .subtitle { color: #f2f8fc; margin-top: 1.15rem; font-size: clamp(1.03rem, 1.9vw, 1.65rem); font-weight: 500; max-width: 34ch; }
.card,.panel { background: white; border: 1px solid var(--line); border-radius: .85rem; }
.card { padding: clamp(1.3rem, 3vw, 2.55rem); }
.join-card { box-shadow: 0 12px 50px #05223724; }
.card h2,.panel h2 { font-size: clamp(1.48rem, 2.7vw, 2.4rem); }
.card .helper { margin: .75rem 0 1.1rem; color: var(--muted); }
.field { display: grid; gap: .35rem; font-weight: 700; }
.field + .field { margin-top: .8rem; }
input,textarea,select { width: 100%; min-height: 46px; border: 1px solid #8ea8b4; border-radius: .4rem; background: #fff; padding: .65rem .75rem; color: #122d41; }
textarea { min-height: 7rem; resize: vertical; }
input::placeholder { color: #617583; }
.join-card button.primary { margin-top: .95rem; width: 100%; }
.code-input { text-transform: uppercase; letter-spacing: .12ch; }
.code-input::placeholder { text-transform: none; letter-spacing: 0; }
.message { color: #9b301c; min-height: 1.3em; margin-top: .6rem; font-size: .94rem; }
.message.ok { color: var(--teal); }
.message:empty { margin-top: 0; min-height: 0; }
.center { width: min(95%, 37rem); margin: clamp(2rem, 7vw, 6rem) auto; }
.wrap { width: min(100% - 2.4rem, 1220px); margin: 0 auto; padding: 2rem 0 3rem; }
.section-header { background: var(--night); color: white; padding: 2rem clamp(1.2rem, 3.6vw, 4rem); }
.section-header h1 { font-size: clamp(1.9rem, 4vw, 3.35rem); }
.section-header p { margin-top: .5rem; color: #cfeced; }
.panel { padding: clamp(1rem, 2.2vw, 1.65rem); }
.panel + .panel { margin-top: 1rem; }
.grid { display: grid; gap: 1.3rem; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); align-items: start; }
.stack > * + * { margin-top: 1.1rem; }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.space { justify-content: space-between; }
.muted,.panel p.muted { color: var(--muted); }
.tag { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; color: var(--teal); }
.share-grid { min-width: 0; display: grid; gap: .9rem; grid-template-columns: minmax(0,1fr) 132px; align-items: center; }
.share-grid a.join-link { display: block; font-size: .9rem; overflow-wrap: anywhere; margin-bottom: .7rem; }
.big-code { color: var(--night); font-family: var(--heading); letter-spacing: .13em; font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 900; }
.qr { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--line); border-radius: .35rem; }
.tabs { margin: 1rem 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; background: white; }
.tabs li + li { border-top: 1px solid var(--line); }
.tabs button { text-align: left; width: 100%; display: flex; align-items: center; gap: .55rem; padding: .65rem .85rem; min-height: 45px; color: var(--ink); border: 0; background: transparent; cursor: pointer; }
.tabs button[aria-current="step"] { background: #d6f5ef; font-weight: 750; box-shadow: inset 4px 0 #008474; }
.tabs button:disabled { cursor: default; opacity: .66; }
.tabs .mark { color: var(--teal); font-variant-numeric: tabular-nums; font-weight: 700; }
.lesson h2 { font-size: clamp(1.7rem, 3.5vw, 2.9rem); margin: .32rem 0 .75rem; }
.lesson > p { font-size: 1.075rem; }
.points { display: grid; gap: .15rem; margin: 1rem 0; }
.points > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.points dt { font-weight: 750; margin-bottom: .25rem; }
.points dd { margin: 0; line-height: 1.52; }
.activity { padding: .9rem 1rem; background: #e4f5f3; border-left: 3px solid #188778; border-radius: 0 .35rem .35rem 0; }
.teacher-note { padding: .9rem 1rem; background: #fbf3e2; border-radius: .4rem; }
.teacher-note strong { display: block; margin-bottom: .3rem; }
.people { display: grid; gap: .4rem; }
.person { border-top: 1px solid var(--line); padding: .65rem 0; }
.person details summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.person details p { margin: .4rem 0 .5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.form-block h3 { font-size: 1.4rem; }
.form-block p { margin: .5rem 0 .8rem; }
.form-block .primary { margin-top: .75rem; }
.resources { padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; font-size: .9rem; }
.projector { background: var(--night); color: #effaf9; flex: 1; display: flex; flex-direction: column; min-height: 100svh; }
.projector-top { background: #102a42; padding: .75rem 1.25rem; display: flex; gap: .55rem; justify-content: space-between; align-items: center; }
.screen { width: min(100% - 3rem, 1350px); margin: auto; padding: 2.1rem 0; }
.screen .tag { color: var(--aqua); }
.screen h1 { font-size: clamp(2.35rem, 5.6vw, 5.6rem); margin: .3rem 0 .8rem; }
.screen .lead { font-size: clamp(1.13rem, 2vw, 1.75rem); color: #d5eeef; }
.screen ul { padding-left: 1.5rem; display: grid; gap: .55rem; font-size: clamp(1.05rem, 1.9vw, 1.6rem); line-height: 1.4; }
.screen .prompt { margin-top: 1.2rem; padding: .8rem 1.05rem; border-left: 4px solid var(--aqua); background: #103449; font-size: clamp(1.05rem, 1.85vw, 1.6rem); }
.live { background: #d5f5ef; padding: .63rem .8rem; border-radius: .35rem; }
.fade { color: #d3e8ef; }
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .hero { min-height: auto; background-position: center center; }
  .hero h1 { max-width: 19ch; }
  .hero .subtitle { margin-top: .65rem; }
  .join-card { width: min(100%, 30rem); }
  .grid aside { order: 0; }
}
@media (max-width: 440px) {
  .hero { padding: 2.1rem 1.05rem 1.5rem; }
  .topbar { padding: .55rem .9rem; }
  .brand { font-size: 1rem; }
  .topbar .outline { padding: .55rem .65rem; min-height: 39px; font-size: .9rem; }
  .share-grid { grid-template-columns: minmax(0,1fr) 93px; }
  .projector-top { flex-wrap: wrap; }
  .wrap { width: calc(100% - 1.6rem); }
}
