:root {
  font: 17px/1.65 "Inter", system-ui, sans-serif;
  --paper: #fff;
  --line: #d9dfeb;
  --muted: #5c677a;
  --background: #f7f8fc;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1160px, 92vw); margin: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--accent);
  border-radius: 10px; font-size: .84rem; font-weight: 750;
  background: var(--accent); color: white; text-decoration: none; cursor: pointer;
}
.secondary { background: var(--paper); color: var(--accent); border-color: var(--line); }
header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.2rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; max-width: 360px; font-weight: 850; line-height: 1.2; font-size: 1.15rem; text-decoration: none; }
.brand img { flex-shrink: 0; }
nav { display: flex; gap: .45rem; flex-wrap: wrap; }
nav a { display: flex; align-items: center; min-height: 44px; padding: .5rem .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font-size: .77rem; font-weight: 700; text-decoration: none; }
nav a[aria-current="page"] { background: var(--accent); color: white; border-color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.3rem, 5.8vw, 4.6rem); margin: .3em 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
p { max-width: 75ch; }
.eyebrow { font-size: .66rem; letter-spacing: .13em; font-weight: 850; }
.small, figcaption { color: var(--muted); font-size: .76rem; }
figure { margin: 0; }
.scene { background-image: url("assets/escenas.png"); background-repeat: no-repeat; background-size: 300% 100%; background-position: 0% center; width: 100%; aspect-ratio: 1; border-radius: 20px; }
.scene-1 { background-position: 50% center; }
.scene-2 { background-position: 100% center; }
figcaption { padding-top: .65rem; }
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; padding: 3.5rem 0; }
.home-hero p { max-width: 46ch; }
.home-hero .button { margin-top: .7rem; }
.route-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1rem 0 2.5rem; }
.route-cards a { padding: 1.6rem; border: 1px solid var(--line); background: var(--paper); text-decoration: none; border-radius: 16px; }
.route-cards h2 { font-size: 1.45rem; margin-top: 0; }
.route-cards p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.gallery .scene { aspect-ratio: 1.45; }
.closing { padding: 2.3rem; background: var(--soft); border-radius: 20px; margin: 3rem 0; }
.page-heading { padding: 3.2rem 0 2rem; max-width: 850px; }
.page-heading h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.lesson-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.basics article { border-top: 2px solid var(--accent); padding: 1.2rem 0; }
.basics h2 { margin: .3rem 0; font-size: 1.65rem; }
.basics p { color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; }
.steps { padding-left: 1.7rem; margin-top: 0; }
.steps li { padding: .3rem 0 1.3rem .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.steps h2 { font-size: 1.55rem; margin-top: 0; }
.steps p { margin-bottom: 0; color: var(--muted); }
.guide-layout aside { align-self: start; }
.page-actions { margin: 2rem 0 3.5rem; }
.exercise-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem; margin-bottom: 2.5rem; align-items: start; }
.exercise-form, .exercise-result, .scenario { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; min-width: 0; }
.exercise-form label { display: block; font-size: .87rem; font-weight: 700; margin-bottom: 1rem; }
input:not([type="checkbox"]), textarea, select { display: block; width: 100%; max-width: 100%; padding: .65rem; margin-top: .35rem; border: 1px solid #a9b3c3; border-radius: 8px; background: #fff; color: #24354c; }
input[type="color"] { height: 50px; padding: .3rem; }
textarea { resize: vertical; }
textarea[readonly] { background: #f6f7fa; font-size: .87rem; }
.exercise-result h2 { margin-top: 0; font-size: 1.6rem; }
.exercise-result > button { margin-top: 1rem; }
iframe { width: 100%; min-height: 260px; border: 1px solid var(--line); background: white; border-radius: 8px; margin-bottom: 1rem; }
#scenarioOptions { display: grid; gap: .65rem; }
#scenarioOptions button { justify-content: flex-start; text-align: left; background: var(--paper); color: var(--accent); border-color: var(--line); }
.feedback { min-height: 3rem; font-size: .9rem; }
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.checklist { padding: 1.7rem; background: var(--soft); border-radius: 20px; }
.checklist h2 { margin-top: 0; }
.checklist label { display: flex; align-items: baseline; gap: .7rem; margin: .9rem 0; }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
#checkStatus { font-weight: 750; margin-bottom: 0; }
details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
details p { font-size: .88rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 1.3rem 0 3rem; }
.responsible { font-size: .8rem; overflow-wrap: anywhere; padding-bottom: 1rem; }
.responsible p { margin: .3rem 0; }
.footer-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.footer-row strong { margin-right: auto; }
.sources { font-size: .78rem; margin-top: 1rem; }
.sources ul { padding-left: 1.2rem; }
.sources li { margin: .5rem 0; }
dialog { width: min(700px,94vw); max-height: 86vh; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 1.6rem; }
dialog::backdrop { background: #1c304599; }
dialog p { font-size: .87rem; overflow-wrap: anywhere; }
dialog h2 { font-size: 1.8rem; }
dialog h3 { margin-top: 1.5rem; }
.close { float: right; }
.preference { display: flex; gap: .6rem; align-items: center; padding: 1rem 0; }
.cookie-banner { position: fixed; z-index: 20; bottom: 1rem; left: 50%; transform: translateX(-50%); width: min(1120px,94vw); max-height: 48vh; overflow: auto; background: var(--paper); padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px #233b4d30; display: flex; gap: 1.2rem; align-items: center; }
.cookie-banner p { font-size: .77rem; color: var(--muted); margin: .3rem 0 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 440px; flex-shrink: 0; }
.poster { background: #dff3ef; color: #1c2b35; border-radius: 12px; padding: 2rem; min-height: 350px; display: flex; flex-direction: column; justify-content: space-between; }
.poster span { font-size: .65rem; font-weight: 850; letter-spacing: .13em; }
.poster h3 { font-size: 2.4rem; margin: 1rem 0; overflow-wrap: anywhere; }
.poster p { font-size: 1rem; }
.poster strong { font-size: .85rem; }
:focus-visible { outline: 3px solid #af6613; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -100px; left: 1rem; background: white; padding: 1rem; z-index: 30; }
.skip:focus { top: 0; }
@media (max-width: 850px) {
  .header-inner { display: block; }
  nav { margin-top: 1rem; }
  .cookie-banner { display: block; }
  .cookie-actions { margin-top: .8rem; max-width: none; }
  .home-hero { gap: 1.5rem; }
}
@media (max-width: 650px) {
  .home-hero, .route-cards, .gallery, .lesson-columns, .guide-layout, .exercise-layout, .review-layout { grid-template-columns: 1fr; }
  .home-hero { padding: 2rem 0; }
  nav a { padding: .5rem .6rem; font-size: .73rem; }
  .home-hero .scene { aspect-ratio: 1.3; }
  .page-heading { padding-top: 2rem; }
}

:root { --ink: #51408a; --accent: #51408a; --soft: #eeeafa; }
/* Shared details: local images, accessible controls and responsible-person cards. */
.owner-photo {
  float: left;
  width: 90px;
  height: 110px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  margin: 0 1rem 1rem 0;
}
.responsible { display: flow-root; }
dialog .owner-photo { width: 72px; height: 88px; }
dialog h3 { clear: both; }
figure { min-width: 0; }
.gallery .scene, .home-hero .scene { aspect-ratio: 1; }
.intro { font-size: 1.12rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1rem; }
legend { padding: 0 .4rem; font-weight: 800; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem .5rem; text-align: left; }
caption { text-align: left; font-size: .76rem; padding: .5rem; }
.route-cards span { font-size: .65rem; font-weight: 850; letter-spacing: .08em; }
/* Correo con Sentido: airy stationery, split cover and a message note. */
.mail { --background: #fbfaf5; --line: #cfdee3; }
.mail h1 { letter-spacing: -.065em; font-size: clamp(3.2rem, 6vw, 5.6rem); }
.mail .home-hero { padding-block: 4.5rem; }
.mail .scene { border-radius: 48% 48% 12% 12%; }
.mail-stack { position: relative; padding-bottom: 2rem; }
.note { background: #ffdcaa; color: #413c2c; padding: 1.2rem 1.5rem; border-radius: 8px; position: relative; margin: -2rem 1rem 0; transform: rotate(-3deg); box-shadow: 0 8px 25px #503d1815; }
.note strong { font-size: .7rem; letter-spacing: .12em; }
.note p { margin: .3rem 0; font-size: .85rem; }
.mail .route-cards a { border: 0; border-radius: 0; border-top: 3px solid #18516f; background: transparent; padding-inline: .5rem; }
.mail .gallery { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.mail .gallery figure:last-child .scene { border-radius: 20px; }
.mail .exercise-result { border-top: 12px solid #ffca88; background: #fffdf8; }
/* Nos Vemos en Pantalla: a centered invitation and a meeting-stage composition. */
.meet { --background: #f7f4ff; --line: #d5cee5; }
.meet-intro { max-width: 900px; text-align: center; margin: 4rem auto 2.6rem; }
.meet-intro p { margin-inline: auto; max-width: 58ch; }
.meet h1 { font-size: clamp(3rem, 5.8vw, 5rem); }
.meet-stage { display: grid; grid-template-columns: 1.2fr 1fr; background: #25243f; color: #f6f4ff; padding: 1.5rem; gap: 2rem; border-radius: 28px; align-items: center; }
.meet-stage aside { padding: 1rem; }
.meet-stage .scene { border-radius: 15px; }
.meet-stage figcaption { color: #d8d3ed; }
.meet .route-cards { margin-top: 3rem; gap: 1.5rem; }
.meet .route-cards a { border-radius: 26px; box-shadow: 0 9px 0 #e3ddf3; }
.meet .gallery { gap: 2.5rem; padding: 1rem; }
.meet .gallery figure:last-child { margin-top: 3rem; }
.meet .guide-layout { grid-template-columns: 1fr; }
.meet .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; list-style-position: inside; padding: 0; }
.meet .steps li { background: #fff; border-radius: 18px; padding: 1.5rem; }
.meet .guide-layout aside { max-width: 32rem; margin: auto; }
.meet .exercise-result { background: #e3f2e9; }
/* Celda por Celda: spreadsheet grid, compact dashboard and a lesson sidebar. */
.sheet { --background: #f4f5e9; --line: #ced7c3; background-image: linear-gradient(#17593e06 1px, transparent 1px), linear-gradient(90deg,#17593e06 1px, transparent 1px); background-size: 36px 36px; }
.sheet-workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem; }
.sheet h1 { font-family: Georgia, serif; font-weight: 500; }
.sample-grid { background: #fffef3; border: 2px solid #17593e; border-radius: 0 26px 0 26px; padding: 1.7rem; box-shadow: 10px 10px 0 #e4ce75; }
.sample-grid code { display: block; margin-top: 1rem; padding: .7rem; background: #e6f1df; font-size: 1.2rem; }
.sheet-lessons { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; padding-block: 2rem; align-items: start; }
.sheet .route-cards { grid-template-columns: 1fr; gap: .6rem; }
.sheet .route-cards a { padding: 1rem 1.3rem; border-radius: 0; border-left: 6px solid #17593e; }
.sheet .route-cards h2 { font-size: 1.2rem; margin: .4rem 0; }
.sheet .route-cards p { margin: 0; }
.sheet .gallery { background: #e6ecd8; padding: 1.5rem; gap: 1.5rem; }
.sheet .scene { border-radius: 4px; }
.sheet .exercise-result { position: sticky; top: 1rem; border-radius: 0; border-top: 6px solid #17593e; }
/* Historias en Vertical: dark editorial canvas, oversized typography and sequence markers. */
.video { --background: #172324; --paper: #223133; --ink: #f0f3e9; --muted: #becdc9; --line: #4c6160; --accent: #b2e173; }
.video-title { padding: 4rem 0 2rem; max-width: 1000px; }
.video-title h1 { font-size: clamp(3.4rem, 7.8vw, 7rem); text-transform: uppercase; line-height: .98; letter-spacing: -.065em; }
.record-label { color: #ffa895; font-size: .8rem; letter-spacing: .12em; }
.video button, .video .button { color: #162422; border-radius: 3px; }
.video .secondary { color: #b2e173; }
.video nav a[aria-current='page'] { color: #162422; }
.video-stage { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2rem; }
.video-stage aside { padding: 2rem; border-left: 1px solid var(--line); }
.video-stage aside>span { color: #ffa895; font-family: monospace; }
.video-stage h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.video .scene { border-radius: 0; }
.video .gallery { gap: 3rem; margin-top: 3rem; grid-template-columns: .8fr 1.2fr; align-items: end; }
.video .gallery figure:last-child { padding-bottom: 3rem; }
.video .route-cards { gap: 0; border: 1px solid var(--line); }
.video .route-cards a { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.video .route-cards h2 { color: #f0f3e9; }
.video .closing { border-radius: 0; border-left: 6px solid #ffa895; }
.video .exercise-result { border-radius: 0; border-top: 6px solid #ffa895; }
.video .owner-photo { border-radius: 3px; }
.video :focus-visible { outline-color: #ffad94; }
@media (max-width: 850px) {
  .sheet-workspace { gap: 1.5rem; }
  .video-title { padding-top: 2rem; }
}
@media (max-width: 650px) {
  .mail .gallery, .meet-stage, .meet .steps, .sheet-workspace, .sheet-lessons, .video-stage, .video .gallery { grid-template-columns: 1fr; }
  .meet .gallery figure:last-child, .video .gallery figure:last-child { margin-top: 0; padding-bottom: 0; }
  .mail .home-hero, .sheet-workspace { padding-block: 2rem; }
  .mail .gallery { gap: 1.5rem; }
  .meet-intro { margin-top: 2rem; }
  .meet-stage { padding: 1rem; gap: .5rem; }
  .video-stage aside { padding: 1rem 0; border-left: 0; }
  .sheet .exercise-result { position: static; }
  .sample-grid { margin-right: 10px; padding: 1.1rem; }
  .sheet .gallery { padding: 1rem; }
}
