/* Oceanica Terra — estilo compartido de las páginas internas (/articulos/, /buques/, /academia/ y 404).
   Mismos colores, tipografías y componentes que index.html. Sin librerías ni cookies. */
:root {
  --paper: #F3F9FC; --surface: #FFFFFF; --ink: #0A2540; --muted: #4A6075; --rule: #D3E2EB;
  --accent: #D9480F; --accent-ink: #0B6E8F; --on-accent: #FFFFFF;
  --good: #1F6F4A; --good-bg: #DCEFE4; --wait: #6B5A12; --wait-bg: #F3ECCB;
  --sea-2: #B5E1F0; --sea-3: #6FC0DE; --sea-line: #BFE3F0; --glow: rgba(111, 192, 222, .28);
  --deep: #0B3A57; --deep-fg: #FFFFFF; --deep-soft: #C3DDEA;
  --shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 10px 28px -14px rgba(10, 37, 64, .22);
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 45% at 8% 18%, var(--glow), transparent 62%),
    radial-gradient(ellipse 60% 45% at 95% 55%, var(--glow), transparent 62%);
  background-attachment: fixed;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
a { color: var(--accent-ink); }
.label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.chip.on { color: var(--good); background: var(--good-bg); }
.chip.soon { color: var(--wait); background: var(--wait-bg); }

/* Cabecera */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; }
nav.links { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; font-family: var(--font-display); font-size: .98rem; }
nav.links a { color: var(--ink); text-decoration: none; }
nav.links a:hover { color: var(--accent-ink); }
.social { display: inline-flex; gap: .35rem; align-items: center; }
.social a { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: .74rem; line-height: 1; }
.social a:hover, .social a:focus-visible { color: var(--accent-ink); border-color: currentColor; }
.social svg { width: 18px; height: 18px; flex: none; }
header.top .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header.top .social a { padding: .3rem; }
.social.foot a { color: var(--deep-soft); border-color: currentColor; font-size: .8rem; padding: .35rem .7rem; }
.social.foot a:hover, .social.foot a:focus-visible { color: #fff; }
.social.foot svg { width: 20px; height: 20px; }
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }

/* Botones */
.btn { box-shadow: 0 6px 16px -10px rgba(10, 37, 64, .45); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; padding: .78rem 1.25rem; border-radius: 6px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Miga de pan */
.crumbs { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); margin: 1.6rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Página de lectura (artículo, guía, lección) */
.page { padding-block: 1.2rem 3rem; }
.doc { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2.6rem); max-width: 50rem; margin: 1rem auto 0; }
.doc-head { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.doc-head .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--accent-ink); letter-spacing: .04em; }
.doc-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; }
.doc-lede { font-size: 1.15rem; color: var(--ink); }
.byline { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.doc h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); font-weight: 700; margin: 2.2rem 0 .7rem; }
.doc h3 { font-size: 1.18rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc li { margin-bottom: .35rem; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); }
.doc th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc figure { margin: 1.4rem 0; }
.doc figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.note { background: var(--paper); border-left: 4px solid var(--accent-ink); border-radius: 6px; padding: .9rem 1.1rem; margin: 0 0 1.2rem; }
.note.warn { border-left-color: var(--accent); }
.sources { border-top: 1px solid var(--rule); margin-top: 2.4rem; padding-top: 1.2rem; font-size: .95rem; }
.sources h2 { margin-top: 0; font-size: 1.2rem; }
.sources li { margin-bottom: .5rem; }
.disclaimer { font-size: .9rem; color: var(--muted); margin-top: 1.6rem; }

/* Pie */
.shore { position: relative; height: clamp(50px, 7vw, 90px); overflow: hidden; margin-top: 2rem; }
.shore svg { position: absolute; bottom: -1px; left: 0; width: 200%; max-width: none; height: 100%; }
.shore .s1 path { fill: var(--sea-3); opacity: .45; }
.shore .s2 path { fill: var(--deep); }
@media (prefers-reduced-motion: no-preference) {
  .shore .s1 { animation: drift 30s linear infinite reverse; }
  .shore .s2 { animation: drift 22s linear infinite; }
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
footer { background: var(--deep); padding-block: 1.5rem 2.8rem; font-size: .92rem; color: var(--deep-soft); }
footer .wrap { display: grid; gap: 1.2rem; }
footer a { color: var(--deep-fg); }
footer p { margin: 0; }

@media (max-width: 640px) {
  header.top .wrap { padding-block: .55rem; }
  nav.links { font-size: .92rem; gap: .3rem .8rem; }
  .doc { border-radius: 10px; }
}

/* Herramientas (/herramientas/): conversores y calculadoras ligeras, sin librerías */
.doc.wide { max-width: 60rem; }
.tools-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 1.2rem 0 1.6rem; }
.tool-card { display: grid; gap: .45rem; align-content: start; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); }
a.tool-card:hover, a.tool-card:focus-visible { border-color: var(--accent-ink); box-shadow: var(--shadow); }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
.tool-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.tool-card .go { font-family: var(--font-display); font-weight: 600; color: var(--accent-ink); }
.conv { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; margin: 0 0 1.2rem; }
.conv h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.conv > p { margin: 0 0 .8rem; font-size: .95rem; color: var(--muted); }
.conv-fields { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.conv label { display: grid; gap: .25rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.conv input { width: 100%; min-width: 0; font: 600 1.15rem/1.2 var(--font-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .7rem; }
.conv input:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: transparent; }
.conv input[aria-invalid="true"] { border-color: var(--accent); }
.conv .err { min-height: 1.2em; margin: .4rem 0 0; font-size: .85rem; color: var(--accent); }
.conv .reset { margin-top: .4rem; font: 500 .8rem var(--font-mono); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .7rem; color: var(--muted); cursor: pointer; }
.conv .reset:hover { color: var(--accent-ink); border-color: currentColor; }

/* ===== Diseño B «Apple + mar» (31/10/2026) ===== */
/* Diseño B «Apple + mar»: bandas blancas y gris perla alternas, titulares grandes centrados,
   tarjetas sin bordes con esquinas amplias, ilustraciones marítimas propias y menú que se despliega al pasar el mouse. */
:root {
  --paper: #F4F7FA;
  --surface: #FFFFFF;
  --ink: #0B1D2E;
  --muted: #5A6B7B;
  --rule: #E1E7EC;
  --accent: #0A72B5;
  --accent-ink: #0A69A6;
  --sun: #E2622A;
  --sea-1: #E7F4FB;
  --sea-2: #C2E5F4;
  --sea-3: #8ACDE6;
  --hero-top: #FFFFFF;
  --hero-bottom: #F1F8FC;
  --deep: #F4F7FA;
  --deep-fg: #0B1D2E;
  --deep-soft: #5A6B7B;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11, 29, 46, .04), 0 12px 32px -18px rgba(11, 29, 46, .18);
  --lift: 0 2px 4px rgba(11, 29, 46, .05), 0 22px 44px -22px rgba(11, 29, 46, .28);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bar-h: 52px;
}
body { background: var(--surface); background-image: none; font-size: 1.0625rem; line-height: 1.58; letter-spacing: -.011em; font-feature-settings: "cv11", "ss01"; }
body::before { background: rgba(255,255,255,.86); }
.bg-sea { display: none; }
h1, h2, h3, h4 { letter-spacing: -.022em; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.032em; line-height: 1.06; }
h3 { font-weight: 650; }
.label { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; color: var(--accent-ink); }
.chip { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: .76rem; font-weight: 600; padding: .22rem .65rem; }
:focus-visible { outline-color: var(--accent); }
section[id], main[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }

/* ---- Barra superior con menú desplegable ---- */
header.top { top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(11,29,46,.07); }
header.top .wrap.gn-bar { height: var(--bar-h); padding-block: 0; flex-wrap: nowrap; gap: 1rem; }
.brand span { font-weight: 700; font-size: .92rem; letter-spacing: .16em; }
.brand svg { width: 24px; height: 24px; }
nav.gn-menu { font-family: var(--font-display); font-size: .84rem; }
.gn-list { list-style: none; margin: 0; padding: 0; display: flex; }
.gn-item { display: flex; align-items: center; }
nav.links a.gn-top { color: color-mix(in srgb, var(--ink) 82%, transparent); text-decoration: none; display: flex; align-items: center; }
nav.links a.gn-top:hover { color: var(--ink); }
.gn-exp { display: none; }
.gn-tools { display: flex; align-items: center; gap: .5rem; }
.langs { border-color: var(--rule); }
.langs button { font-family: var(--font-display); font-weight: 600; font-size: .72rem; }
header.top .social a { border: 0; padding: .3rem; color: var(--muted); }
header.top .social a:hover { color: var(--accent-ink); }
.gn-flyout { background: rgba(255,255,255,.97); }
header.top .wrap.gn-fly-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 1rem 3.5rem; padding-block: 2.2rem 2.8rem; align-items: start; }
.gn-col { display: grid; gap: .55rem; align-content: start; }
.gn-k { font-size: .76rem; font-weight: 500; color: var(--muted); margin-bottom: .2rem; }
.gn-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
nav.links .gn-col a { color: var(--ink); text-decoration: none; }
nav.links .gn-col a:hover { color: var(--accent-ink); }
.gn-big a { font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.gn-small a { font-size: .9rem; font-weight: 500; }
.gn-mail { font-size: .9rem; color: var(--muted); user-select: all; }
.gn-pic { margin: 0; width: 230px; display: grid; gap: .55rem; }
.gn-pic .tile { aspect-ratio: 16 / 11; max-width: 100%; border-radius: 16px; background: linear-gradient(180deg, var(--sea-1), #D7EDF7); display: grid; place-items: center; color: var(--accent-ink); position: relative; overflow: hidden; }
.gn-pic .tile::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14px; height: 36px; border-radius: 50% 50% 0 0; background: var(--sea-2); opacity: .7; }
.gn-pic .tile .ico { width: 64px; height: 64px; position: relative; z-index: 1; }
.gn-pic .tile .pcover { width: 92px; min-height: 120px; padding: .6rem .55rem; position: relative; z-index: 1; transform: rotate(-4deg); box-shadow: inset 4px 0 0 rgba(0,0,0,.25), 0 14px 22px -12px rgba(5,20,40,.5); }
.gn-pic .tile .pcover b { font-size: .78rem; margin-top: .5rem; color: #fff; }
.gn-pic figcaption { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.gn-curtain { position: fixed; inset: 0; z-index: 40; background: rgba(236, 243, 248, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.gn-burger { display: none; }

@media (hover: hover) and (min-width: 1100px) {
  nav.gn-menu { flex: 1; display: flex; align-items: stretch; justify-content: space-between; align-self: stretch; gap: 1rem; }
  .gn-list { margin-inline: auto; align-items: stretch; }
  nav.links a.gn-top { padding: 0 .85rem; height: 100%; }
  .gn-flyout { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--rule); box-shadow: 0 40px 50px -40px rgba(11,29,46,.35); visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .22s ease, transform .3s ease, visibility 0s linear .3s; }
  .gn-item:hover > .gn-flyout, .gn-item:focus-within > .gn-flyout { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .25s ease .1s, transform .35s ease .1s, visibility 0s linear .1s; }
  .gn-item:hover > a.gn-top, .gn-item:focus-within > a.gn-top { color: var(--ink); }
  header.top:has(.gn-item:hover, .gn-item:focus-within) + .gn-curtain { opacity: 1; visibility: visible; transition: opacity .3s ease .1s, visibility 0s linear .1s; }
  header.top.gn-hush .gn-flyout { visibility: hidden !important; opacity: 0 !important; }
  header.top.gn-hush + .gn-curtain { opacity: 0 !important; visibility: hidden !important; }
}
@media (prefers-reduced-motion: reduce) { .gn-flyout, .gn-curtain { transition: none !important; transform: none !important; } }

@media not all and (hover: hover) and (min-width: 1100px) {
  header.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
  header.top .wrap.gn-bar { justify-content: space-between; }
  .gn-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .gn-burger i { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
  .gn-burger span { display: grid; gap: 6px; }
  header.top.open .gn-burger i:first-child { transform: translateY(3.8px) rotate(45deg); }
  header.top.open .gn-burger i:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  nav.gn-menu { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); background: var(--surface); overflow-y: auto; overscroll-behavior: contain; padding: .6rem max(20px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  header.top.open nav.gn-menu { display: block; }
  .gn-list { flex-direction: column; }
  .gn-item { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
  nav.links a.gn-top { flex: 1; font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; padding: .7rem 0; color: var(--ink); }
  .gn-exp { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 50%; }
  .gn-exp svg { width: 16px; height: 16px; transition: transform .25s ease; }
  .gn-item.open .gn-exp svg { transform: rotate(180deg); }
  .gn-flyout { display: none; flex-basis: 100%; }
  .gn-item.open .gn-flyout { display: block; }
  header.top .gn-flyout > .wrap { padding-left: 0; padding-right: 0; }
  header.top .wrap.gn-fly-in { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-block: .2rem 1.3rem; }
  .gn-big a { font-size: 1.12rem; }
  .gn-pic { display: none; }
  .gn-tools { flex-wrap: wrap; gap: 1rem; padding-top: 1.4rem; }
  header.top .social span { position: static; width: auto; height: auto; clip: auto; }
  header.top .social a { border: 1px solid var(--rule); padding: .4rem .8rem; border-radius: 999px; font-family: var(--font-display); font-size: .85rem; gap: .4rem; }
  body.gn-lock { overflow: hidden; }
}

/* ---- Botones tipo píldora ---- */
.btn { border-radius: 980px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; padding: .78rem 1.45rem; box-shadow: none; border-width: 1.5px; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { filter: none; background: #08609A; }
.btn-ghost { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Pie claro */
.shore { background: var(--surface); }
.shore .s1 path { fill: var(--sea-2); opacity: .5; }
.shore .s2 path { fill: var(--paper); }
footer { background: var(--paper); color: var(--muted); }
.legal details summary { color: var(--ink); }
.social.foot a { color: var(--muted); border-color: var(--rule); background: var(--surface); }
.social.foot a:hover, .social.foot a:focus-visible { color: var(--accent-ink); border-color: currentColor; }


/* Páginas internas (diseño B) */
body { background: var(--paper); }
.crumbs { font-family: var(--font-display); letter-spacing: 0; font-size: .85rem; font-weight: 500; }
.crumbs li + li::before { color: #B9C6D1; }
.page { padding-block: .6rem 4rem; }
.doc { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 5vw, 3.2rem); max-width: 48rem; margin-top: 1.2rem; }
.doc-head { gap: .7rem; margin-bottom: 2rem; }
.doc-head .meta, .byline { font-family: var(--font-display); letter-spacing: 0; font-weight: 600; }
.byline { font-weight: 500; }
.doc-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.doc-lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.doc h2 { letter-spacing: -.028em; }
.doc th { font-family: var(--font-display); letter-spacing: .02em; font-weight: 600; }
.doc .table-wrap { border-radius: 14px; }
.note { border-left: 0; border-radius: 16px; background: var(--sea-1); }
.note.warn { background: #FDEEE6; }
.sources { border-top-color: var(--rule); }
.tool-card, .conv { border: 0; border-radius: 18px; background: var(--paper); }
a.tool-card:hover, a.tool-card:focus-visible { box-shadow: var(--lift); }
.tool-card .go { font-family: var(--font-display); }
.conv label { font-family: var(--font-display); letter-spacing: 0; font-weight: 500; font-size: .8rem; }
.conv input { font-family: var(--font-display); font-variant-numeric: tabular-nums; border-radius: 12px; }
.conv .reset { font-family: var(--font-display); }
.shore { margin-top: 0; background: var(--paper); }
.shore .s2 path { fill: #EAF0F4; }
footer { background: #EAF0F4; }
footer a { color: var(--accent-ink); }
/* Portadita del producto en el menú */
:root { --cover-bg: #0B2545; --cover-line: rgba(140, 175, 210, .22); --cover-fg: #FFFFFF; --cover-soft: #BFD0E0; }
.pcover { background: repeating-conic-gradient(from 0deg at 74% 72%, var(--cover-line) 0deg .45deg, transparent .45deg 11.25deg), var(--cover-bg); color: var(--cover-fg); border-radius: 3px 8px 8px 3px; display: flex; flex-direction: column; justify-content: space-between; }
.pcover span { font-family: var(--font-display); letter-spacing: .16em; font-size: .56rem; color: var(--cover-soft); font-weight: 600; }
.pcover b { font-family: var(--font-display); line-height: 1.15; display: block; }

/* Escalas Beaufort y Douglas (herramienta, 1/11/2026) — Diseño B */
.wx-hero { margin: 0 0 1.4rem; }
.wx-hero svg { display: block; width: 100%; height: auto; }
.conv select { width: 100%; min-width: 0; font: 500 1rem/1.2 "Inter", system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: .62rem .7rem; }
.conv select:focus { outline: 2px solid #0A72B5; outline-offset: 1px; border-color: transparent; }
.wx-out { background: var(--surface); border-radius: 16px; padding: .9rem 1rem; margin-top: .2rem; }
.wx-out:empty { display: none; }
.wx-big { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.wx-big b { font-size: 1.6rem; font-weight: 800; color: #0A72B5; letter-spacing: -.01em; }
.wx-big span { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wx-bar { height: 8px; border-radius: 999px; background: #E3ECF3; overflow: hidden; margin: 0 0 .6rem; }
.wx-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0A72B5, #E2622A); transition: width .25s ease; }
.wx-det { margin: 0; font-size: .95rem; color: var(--muted); }

/* Calculadora de ETA (herramienta, 2/11/2026) — Diseño B */
.eta-tramos { display: grid; gap: .7rem; }
.eta-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.eta-fila .eta-del { margin: 0 0 .55rem; }
.eta-add { margin: .7rem 0 .2rem; color: #0A72B5; border-color: #0A72B5; }
.eta-gap { margin-top: .8rem; }
.eta-help { margin: .45rem 0 0; font-size: .85rem; color: var(--muted); }
.eta-dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .35rem .9rem; margin: 0 0 .6rem; font-size: .95rem; }
.eta-dl dt { color: var(--muted); margin: 0; }
.eta-dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.eta-sub { margin: .6rem 0 .3rem; font-size: .9rem; color: var(--muted); }
.eta-av { margin: 0; padding-left: 1.1rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.eta-av li { margin: .15rem 0; }
@media (max-width: 520px) {
  .eta-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eta-fila .eta-del { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .eta-dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .eta-dl dd { margin-bottom: .45rem; }
}
