/* traducciones.cl. Headings: DM Serif Display (SIL OFL 1.1, fonts/OFL.txt), served from this site. */
@font-face {
  font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/dm-serif-display-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/dm-serif-display-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/dm-serif-display-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/dm-serif-display-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f4ec; --surface: #fffdf8; --tint: #e8efe6; --ink: #15241d; --muted: #52605a; --line: #dcd5c4;
  --green: #1d6a4b; --green-deep: #123f2d; --gold: #e0a22a; --gold-ink: #2b1d03; --on-green: #fbf8f0;
  --band: #123f2d; --band-ink: #f3efe4; --band-muted: #b9cbbf;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1714; --surface: #15201b; --tint: #13211a; --ink: #ebe7dc; --muted: #a6b3ab; --line: #26352d;
    --green: #5dbb8f; --green-deep: #2e7a59; --gold: #f0b941; --gold-ink: #241802; --on-green: #0d1712;
    --band: #173a2b; --band-ink: #f1ede2; --band-muted: #b2c6b9;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.65 var(--sans); }
a { color: var(--green); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
       backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font: italic 400 1.55rem/1 var(--serif); color: var(--green); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--green); }
.top nav .lang { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 760px) { .top nav a:not(.lang) { display: none; } }

/* hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow { margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 6.6vw, 4.2rem); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--green); }
.lede { margin: 0 0 30px; max-width: 56ch; color: var(--muted); font-size: 1.14rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.button {
  display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--green); color: var(--on-green);
  font-weight: 650; text-decoration: none; box-shadow: 0 6px 18px -10px var(--green);
}
.button:hover { background: var(--green-deep); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 22px 0 0; list-style: none;
         border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.facts strong { color: var(--ink); font-weight: 650; }

/* the tower of words: a nod to the old site's Babel picture */
.babel { display: flex; flex-direction: column; align-items: center; gap: 7px; width: min(100%, 440px); margin-inline: auto; }
.babel::before { content: ""; width: 4px; height: 30px; border-radius: 2px; background: var(--gold); }
.tier { display: block; padding: 9px 0; text-align: center; border-radius: 12px 12px 5px 5px; color: var(--on-green);
        background: var(--green); font: 400 clamp(1.05rem, 2.6vw, 1.4rem)/1.25 var(--serif); white-space: nowrap; }
.t1 { width: 30%; } .t2 { width: 38%; } .t3 { width: 46%; } .t4 { width: 54%; } .t5 { width: 62%; }
.t6 { width: 70%; } .t7 { width: 78%; } .t8 { width: 86%; } .t9 { width: 94%; } .t10 { width: 100%; }
.t2, .t5, .t8 { background: var(--green-deep); color: #f3efe4; }
.t3, .t7 { background: var(--gold); color: var(--gold-ink); }
.ground { width: 100%; height: 2px; margin-top: 3px; background: var(--line); }
@media (max-width: 899px) {
  .babel { width: min(100%, 300px); gap: 5px; }
  .babel::before { height: 22px; }
  .tier { padding: 5px 0; font-size: 1rem; border-radius: 9px 9px 4px 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tier { animation: rise 0.55s cubic-bezier(.2, .7, .2, 1) both; }
  .t10 { animation-delay: 0s; } .t9 { animation-delay: .05s; } .t8 { animation-delay: .1s; } .t7 { animation-delay: .15s; }
  .t6 { animation-delay: .2s; } .t5 { animation-delay: .25s; } .t4 { animation-delay: .3s; } .t3 { animation-delay: .35s; }
  .t2 { animation-delay: .4s; } .t1 { animation-delay: .45s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* sections */
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.12; }
.section-head p { margin: 0; color: var(--muted); }

.languages { background: var(--tint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 1.02rem; }
.chips small { color: var(--muted); font-size: 0.85em; margin-left: 4px; }
.chips .star { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 600; }
.chips .star small { color: inherit; opacity: 0.8; }
.chips .more { background: transparent; border-style: dashed; color: var(--muted); }

.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.cards li { padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
        background: var(--tint); color: var(--green); }
.icon svg { width: 24px; height: 24px; }
.cards li:nth-child(4n+2) .icon, .cards li:nth-child(4n+3) .icon { color: #a8700a; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
@media (prefers-color-scheme: dark) { .cards li:nth-child(4n+2) .icon, .cards li:nth-child(4n+3) .icon { color: var(--gold); } }
.cards h3 { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.2; }
.cards p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.how { border-top: 1px solid var(--line); }
.how-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.steps { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 400 1.35rem/1 var(--serif);
}
.steps h3 { margin: 0 0 4px; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--muted); }
.notes { margin: 0; padding: 26px; border-radius: 16px; background: var(--tint); }
.notes dt { font-weight: 700; margin-top: 16px; }
.notes dt:first-child { margin-top: 0; }
.notes dd { margin: 4px 0 0; color: var(--muted); font-size: 0.98rem; }

.cta-band { background: var(--band); color: var(--band-ink); text-align: center; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.cta-band h2 em { color: var(--gold); }
.cta-band p { margin: 0 auto 28px; max-width: 60ch; color: var(--band-muted); }
.cta-band .button { background: var(--gold); color: var(--gold-ink); box-shadow: none; font-size: 1.08rem; padding: 14px 28px; overflow-wrap: anywhere; }
.cta-band .button:hover { background: #f2bc4f; color: var(--gold-ink); }

footer { padding: 30px 0 40px; color: var(--muted); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.foot .brand { font-size: 1.25rem; }

/* 410 page */
.gone { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; text-align: center; }
.gone .brand { display: inline-block; margin-bottom: 26px; font-size: 2rem; }
.gone h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.gone p { margin: 0 0 6px; color: var(--muted); }
