@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght,SOFT,WONK@9..144,500,0,0;9..144,600,0,0;9..144,700,0,0&display=swap');

:root {
  --ink: #292447;
  --muted: #615d75;
  --indigo: #4f46a5;
  --purple: #7563c6;
  --emerald: #087e68;
  --emerald-pale: #e6f4ed;
  --paper: #f7f5fc;
  --surface: #fffcf8;
  --line: #ded9eb;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.68 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--emerald); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--emerald); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { max-width: 1180px; min-height: 76px; margin: auto; padding: 0 clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: inline-grid; place-items: center; background: var(--indigo); color: var(--surface); border-radius: 9px 9px 9px 2px; font: 700 1.05rem/1 var(--font-display); }
.header-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1.4rem; font-size: .86rem; font-weight: 700; }
.header-links a { text-decoration: none; }
.header-links .home-link { padding: .5rem .82rem; border: 1px solid var(--line); border-radius: 100px; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.eyebrow { margin: 0 0 1.1rem; color: var(--emerald); font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.13; letter-spacing: -.035em; }
h1 { max-width: 860px; margin: 0; font-size: clamp(3.2rem, 7.4vw, 6.7rem); }
h2 { margin: 0 0 1.2rem; font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { margin: 0 0 .55rem; font-size: 1.38rem; }
p { margin: 0 0 1.2rem; }
.intro-hero, .article-hero { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6rem); }
.intro-hero::before, .article-hero::before { content: ''; position: absolute; z-index: -1; width: 42vw; min-width: 300px; aspect-ratio: 1; right: -14vw; top: -13vw; border-radius: 50%; background: #e9e4fa; }
.lead { max-width: 680px; margin: 1.65rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.65; }
.hero-rule { width: 63px; height: 4px; margin: 2.1rem 0 0; border-radius: 2px; background: var(--emerald); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.15rem; padding-bottom: 6rem; }
.guide-card { min-height: 370px; padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.guide-card:first-child { background: #ebe7fa; }
.card-number { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid #bcb0ea; border-radius: 50%; color: var(--indigo); font-size: .8rem; font-weight: 700; }
.guide-card h2 { max-width: 420px; margin: 1.5rem 0 .8rem; }
.guide-card p { max-width: 410px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; color: var(--indigo); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link::after { content: '→'; font-size: 1.2rem; line-height: 1; }
.card-meta, .article-meta { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.guide-card .card-meta { margin-top: 1.8rem; }
.index-note { margin: -2rem 0 5rem; padding: 2rem 2.3rem; border-left: 4px solid var(--emerald); background: var(--emerald-pale); }
.index-note h2 { margin-bottom: .5rem; font-size: 1.5rem; }
.index-note p { max-width: 790px; margin: 0; color: #315c51; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2.1rem; font-size: .83rem; font-weight: 700; }
.breadcrumb span { color: #918aa8; }
.article-hero { padding-bottom: 3.9rem; }
.article-hero h1 { max-width: 850px; font-size: clamp(3.1rem, 6.8vw, 6.1rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 2rem; }
.article-meta span + span::before { content: '·'; margin-right: 1.2rem; color: var(--purple); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(2.5rem, 6vw, 6rem); padding-bottom: 6rem; align-items: start; }
.article-body { min-width: 0; }
.article-body section { padding: 2.8rem 0 3rem; border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.article-body section:first-child { border-top: 4px solid var(--indigo); }
.article-body p, .article-body li { max-width: 680px; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0 0 1.4rem; }
.article-body li { padding-left: .25rem; margin-bottom: .6rem; }
.article-body strong { font-weight: 700; }
.article-body em[lang="es"], .article-body span[lang="es"] { font-style: italic; color: #443b91; }
.table-wrap { overflow-x: auto; margin: 1.6rem 0 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 540px; }
th { padding: .8rem 1rem; background: #ebe7f7; color: var(--ink); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
td { padding: .95rem 1rem; vertical-align: top; border-top: 1px solid var(--line); font-size: .95rem; }
td:first-child { font-weight: 700; color: var(--indigo); white-space: nowrap; }
td:nth-child(2) { white-space: nowrap; }
.small-note { color: var(--muted); font-size: .88rem; }
.dialogue { margin: 1.6rem 0; padding: 1.45rem 1.65rem; border-left: 4px solid var(--emerald); border-radius: 0 12px 12px 0; background: var(--emerald-pale); }
.dialogue p { margin: 0 0 1.05rem; }
.dialogue p:last-child { margin-bottom: 0; }
.dialogue .translation { display: block; margin-top: .1rem; color: #41625b; font-size: .9rem; }
.callout { margin: 1.6rem 0; padding: 1.45rem 1.65rem; border: 1px solid #c8bfeb; border-radius: 12px; background: #eeeafa; }
.callout p:last-child { margin-bottom: 0; }
.exercise-list { counter-reset: item; list-style: decimal; }
.exercise-list li { margin-bottom: 1rem; }
details { margin: 1.3rem 0; padding: 1rem 1.25rem; border: 1px solid #a9d6c5; border-radius: 10px; background: var(--emerald-pale); }
summary { color: #096a58; font-weight: 700; cursor: pointer; }
details ol { margin: 1rem 0 0 !important; }
.lesson-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: .35rem; padding: .85rem 1.15rem; border-radius: 8px; background: var(--indigo); color: #faf8ff; text-decoration: none; font-weight: 700; }
.lesson-link:hover { color: #faf8ff; background: #3d357f; }
.lesson-link::after { content: '→'; font-size: 1.2rem; line-height: 1; }
.article-aside { position: sticky; top: 2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.article-aside p { margin-bottom: .7rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-aside nav { display: grid; gap: .7rem; }
.article-aside a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.article-aside .aside-divider { margin: .6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.next-guide { margin-top: .5rem; padding: 2rem; border-radius: 15px; background: #eae5f7; }
.next-guide p { margin: 0 0 .3rem; color: var(--emerald); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.next-guide h2 { margin-bottom: .6rem; font-size: 1.9rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1180px; margin: auto; padding: 2.3rem clamp(1.25rem, 4vw, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: .85rem; font-weight: 700; }
@media (max-width: 760px) {
  .header-inner { min-height: 70px; }
  .header-links { gap: .65rem; }
  .header-links .hide-mobile { display: none; }
  .intro-grid, .article-layout { grid-template-columns: 1fr; }
  .intro-grid { padding-bottom: 4rem; }
  .guide-card { min-height: 310px; }
  .article-aside { position: static; order: -1; }
  .article-aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside .aside-divider { margin: 0; padding: 0; border: 0; }
  .article-body section { padding: 2.3rem 0; }
  .index-note { margin-top: -1rem; }
}
@media (max-width: 480px) {
  .header-links .guides-link { display: none; }
  .article-aside nav { grid-template-columns: 1fr; }
  .article-meta span + span::before { display: none; }
  .article-meta { display: grid; gap: .15rem; }
  .dialogue, .callout { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }