: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: #793b5d; --accent: #793b5d; --soft: #f4e5ef; }
.chat .home-hero .scene { border-radius: 100px 100px 20px 20px; }
.chat .route-cards a:nth-child(2) { background: #e6e9ff; }
.chat .closing { background: #ffedce; }
.images { --background: #fff8f4; --line: #e5d4df; --muted: #795f70; }
.images .home-hero { display: flex; flex-direction: column; text-align: center; max-width: 980px; margin: auto; gap: 2rem; }
.images .home-hero > div { width: 100%; }
.images .home-hero p { margin-left: auto; margin-right: auto; max-width: 65ch; }
.images h1, .images h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 400; }
.images .home-hero > figure { width: 100%; }
.images .home-hero .scene { aspect-ratio: 2.8; background-size: 300% auto; border-radius: 120px 120px 12px 12px; }
.images .route-cards a { border-radius: 0; border: 0; border-top: 3px solid var(--accent); background: transparent; }
.images .button, .images button { border-radius: 28px; }
.images .exercise-form { background: #f4e5ef; }
.images .gallery figure:last-child { padding-top: 2rem; }
.web { --background: #f3faf9; --line: #c8e0df; --muted: #537078; }
.web .home-hero { background: #def3ef; padding: 3rem; border-radius: 24px; margin: 2rem 0; }
.web .home-hero h1 { font-family: "Lexend", system-ui, sans-serif; }
.web .scene { border-radius: 9px; }
.web .route-cards a { border-left: 5px solid var(--accent); }
.web .steps { background: white; padding: 1.5rem 1.5rem 1.5rem 3rem; border: 1px solid var(--line); border-radius: 18px; }
.security { --background: #fffaf3; --line: #e2d8c8; --muted: #647083; }
.security .home-hero { background: #233759; color: #fffaf3; padding: 3rem; border-radius: 24px; margin: 2rem 0; }
.security .home-hero .button { background: #ffcf98; color: #233759; border-color: #ffcf98; }
.security .home-hero figcaption { color: #dce2ed; }
.security .home-hero .scene { border-radius: 50% 50% 12px 12px; }
.security .route-cards a { background: #ffecd7; }
.security .lesson-columns { grid-template-columns: 1fr 1fr; }
.security .steps li::marker { font-weight: 850; }
.canva { --background: #fffaf6; --line: #e4d8e2; --muted: #735e74; }
.canva .home-hero { direction: rtl; }
.canva .home-hero > * { direction: ltr; }
.canva .home-hero .scene { border-radius: 15px 100px 15px 15px; }
.canva .route-cards a { background: #dff3ef; border-radius: 22px; }
.canva .route-cards a:nth-child(2) { background: #f7e3f0; }
.canva .gallery { gap: 2rem; }
.canva .gallery figure:first-child { padding-top: 2rem; }
.canva .exercise-result { background: #f7e3f0; }
@media (max-width: 850px) {
  .web .home-hero, .security .home-hero { padding: 1.5rem; }
}
@media (max-width: 650px) {
  .security .lesson-columns { grid-template-columns: 1fr; }
  .images .home-hero .scene { aspect-ratio: 1.4; background-size: 300% 100%; }
  .images .gallery figure:last-child, .canva .gallery figure:first-child { padding-top: 0; }
}
