/* Herramientas del Marino (prefijo hm-) */
.hm-i { flex: none; }

/* ---------- Encabezado ---------- */
.hm-hero { padding: 80px 0 70px; }
.hm-hero__kicker { display: inline-block; font: 600 .82rem var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 6px 14px; border: 1px solid rgba(224, 178, 60, .45); border-radius: 999px; margin: 14px 0 14px; }
.hm-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--white); }
.hm-hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 620px; }

/* ---------- Navegación fija de secciones ---------- */
.hm-nav { position: sticky; top: 76px; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(6, 20, 38, .06); }
.hm-nav__list { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hm-nav__list::-webkit-scrollbar { display: none; }
.hm-nav__list li { flex: none; scroll-snap-align: start; }
.hm-nav__list a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 600 .92rem var(--font); color: var(--navy-700); text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.hm-nav__list a .hm-i { color: var(--sea); }
.hm-nav__list a:hover { background: var(--paper); }
.hm-nav__list a.is-active { background: var(--navy-800); color: var(--white); }
.hm-nav__list a.is-active .hm-i { color: var(--gold); }
.hm-sec, .hm-live { scroll-margin-top: 140px; }
@media (max-width: 980px) { .hm-nav { top: 76px; } }

/* ---------- Mar en vivo ---------- */
.hm-live { background: radial-gradient(ellipse at 80% 0%, var(--navy-600) 0%, var(--navy-800) 55%, var(--navy-900) 100%); }
.hm-live__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 18px; }
.hm-live__h { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--white); margin: 0; }
.hm-puertos { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; min-width: 0; }
.hm-puertos__grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.hm-puertos__costa { width: 100%; font: 600 .72rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hm-chip { position: relative; cursor: pointer; }
.hm-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hm-chip > span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .92rem; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.hm-chip:hover > span { border-color: rgba(255, 255, 255, .6); }
.hm-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.hm-chip input:focus-visible + span { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

.hm-estado { margin: 0 0 18px; color: rgba(255, 255, 255, .7); font-size: .92rem; min-height: 1.5em; }
.hm-estado.is-error { color: #FFD6A0; }

.hm-live__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 20px; min-width: 0; transition: opacity .3s ease; }
.hm-live__grid[aria-busy="true"] .hm-card { opacity: .55; }
.hm-card--marea { grid-column: 1 / -1; }
.hm-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--gold); }
.hm-card__head h3 { margin: 0; font-size: 1.3rem; color: var(--white); letter-spacing: .04em; }
.hm-card__sub { margin-left: auto; font-size: .9rem; color: rgba(255, 255, 255, .65); text-align: right; }
.hm-lbl { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sec:not(.sec--navy) .hm-lbl { color: var(--muted); }
.hm-big { display: block; font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--font-cond); color: var(--white); font-variant-numeric: tabular-nums; }
.hm-big small { font-size: .55em; font-weight: 600; color: rgba(255, 255, 255, .7); }
.hm-big--sm { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.hm-proxima { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.hm-proxima > div { min-width: 0; }
.hm-curva { position: relative; width: 100%; }
.hm-curva svg { display: block; width: 100%; height: auto; }
.hm-skel { height: 210px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: hm-skel 1.4s linear infinite; }
@keyframes hm-skel { to { background-position: -200% 0; } }
.hm-tide-area { fill: url(#hmTideGrad); }
.hm-tide-line { fill: none; stroke: #7FC4F0; stroke-width: 2.2; }
.hm-tide-grid { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.hm-tide-day { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 4; }
.hm-tide-txt { fill: rgba(255, 255, 255, .6); font: 500 11px var(--font); }
.hm-tide-day-txt { fill: rgba(255, 255, 255, .85); font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.hm-tide-ext { font: 700 11px var(--font); fill: var(--white); }
.hm-tide-now { stroke: var(--gold); stroke-width: 2; }
.hm-tide-now-txt { fill: var(--gold); font: 700 11px var(--font); letter-spacing: .06em; }
.hm-mareas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.hm-mareas h4 { margin: 0 0 6px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-family: var(--font); }
.hm-mareas__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-mareas__lista li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); font-variant-numeric: tabular-nums; font-size: .95rem; }
.hm-mareas__lista li.is-next { background: rgba(224, 178, 60, .2); box-shadow: inset 0 0 0 1px rgba(224, 178, 60, .55); }
.hm-mareas__lista li.is-past { opacity: .5; }
.hm-mareas__lista b { font-weight: 700; color: var(--white); }
.hm-tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.hm-tri--up { border-bottom: 9px solid #7FC4F0; }
.hm-tri--down { border-top: 9px solid #C9D6E3; }

.hm-dato { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.hm-rosa { width: 64px; height: 64px; flex: none; color: var(--gold); }
.hm-rosa svg { width: 100%; height: 100%; }
.hm-rosa text { fill: rgba(255, 255, 255, .6); font: 700 9px var(--font); }
.hm-flecha { transform-origin: 32px 32px; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.hm-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-dl dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hm-dl dd { margin: 0; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.hm-beaufort-tag { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(224, 178, 60, .16); color: var(--gold-soft); font-weight: 600; font-size: .9rem; text-decoration: none; }
.hm-beaufort-tag:hover { background: rgba(224, 178, 60, .28); }
.hm-mini { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.sec--navy .hm-mini { color: rgba(255, 255, 255, .65); }
.hm-aviso { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 18px; border-radius: 10px; background: rgba(224, 178, 60, .12); border: 1px solid rgba(224, 178, 60, .4); color: rgba(255, 255, 255, .88); font-size: .93rem; }
.hm-aviso .hm-i { color: var(--gold); margin-top: 2px; }

/* ---------- Tarjetas de herramientas ---------- */
.hm-tool { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.hm-tool__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--sea); }
.hm-tool__head h3 { margin: 0; font-size: 1.35rem; color: var(--navy-800); }
.hm-sl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hm-sol svg { width: 100%; max-width: 360px; display: block; margin: 0 auto 8px; }
.hm-sl__dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-sl__dl dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hm-sl__dl dd { margin: 0; font: 700 1.5rem/1.2 var(--font-cond); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.hm-luna { display: flex; align-items: center; gap: 20px; }
.hm-luna__svg { width: 120px; height: 120px; flex: none; filter: drop-shadow(0 6px 14px rgba(6, 20, 38, .25)); }
.hm-luna__fase { display: block; font: 700 1.7rem/1.15 var(--font-cond); color: var(--navy-800); margin-bottom: 4px; }
.hm-marea-tipo { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--paper); color: var(--navy-700); font-weight: 600; font-size: .9rem; }

.hm-tools3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.hm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hm-field--row { flex-direction: row; gap: 8px; }
.hm-field input, .hm-field select, .hm-deletreo input, .hm-buscar input { font: 600 1.05rem var(--font); color: var(--ink); background: var(--white); border: 1px solid #C5CFDA; border-radius: 8px; padding: 10px 12px; min-width: 0; width: 100%; }
.hm-field--row input { flex: 1 1 50%; }
.hm-field--row select { flex: 1 1 50%; }
.hm-field input:focus, .hm-field select:focus, .hm-deletreo input:focus, .hm-buscar input:focus { outline: 3px solid rgba(47, 127, 184, .35); border-color: var(--sea); }
.hm-res { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hm-res li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--paper); font-variant-numeric: tabular-nums; }
.hm-res b { font: 700 1.25rem/1.2 var(--font-cond); color: var(--navy-800); }
.hm-res span { color: var(--muted); }
.hm-seg { display: flex; padding: 4px; gap: 4px; background: var(--paper); border-radius: 10px; margin-bottom: 14px; }
.hm-seg label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.hm-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hm-seg span { display: block; padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: .9rem; color: var(--navy-700); }
.hm-seg input:checked + span { background: var(--navy-800); color: var(--white); }
.hm-seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.hm-eta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-eta input:disabled { background: var(--paper); color: var(--navy-800); border-style: dashed; }
.hm-eta__out { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--navy-800); color: var(--white); font-weight: 600; }
.hm-eta__out b { color: var(--gold); font: 700 1.25rem var(--font-cond); }

/* ---------- Beaufort ---------- */
.hm-tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.hm-bf { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hm-bf th, .hm-bf td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hm-bf thead th { background: var(--navy-800); color: var(--white); font: 600 .8rem var(--font); letter-spacing: .1em; text-transform: uppercase; }
.hm-bf tbody th { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.hm-bf td:nth-child(3), .hm-bf td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-bf tbody tr:last-child > * { border-bottom: 0; }
.hm-bf__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 1.05rem var(--font-cond); color: var(--white); background: hsl(calc(205 - var(--bf) * 17) 62% calc(46% - var(--bf) * .6%)); }
.hm-bf tr.is-now { background: #FFF6DD; }
.hm-bf tr.is-now th::after { content: "Ahora"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }

/* ---------- Balizamiento ---------- */
.hm-canal { margin: 0 0 34px; }
.hm-canal svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.hm-canal__t { font: 700 12px var(--font); letter-spacing: .18em; fill: #4C6A49; }
.hm-canal__l { font: 600 13px var(--font); fill: var(--navy-700); }
.hm-canal figcaption { text-align: center; color: var(--muted); margin-top: 10px; }
.hm-subh { font-size: 1.45rem; color: var(--navy-800); margin: 30px 0 12px; }
.hm-subp { color: var(--muted); margin: -4px 0 14px; max-width: 70ch; }
.hm-boyas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hm-boyacard { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.hm-boya { flex: none; width: 70px; height: auto; }
.hm-boyacard h4 { margin: 0 0 4px; font-size: 1.2rem; color: var(--navy-800); }
.hm-boyacard p { margin: 0 0 8px; font-size: .93rem; }
.hm-boyacard dl { margin: 0; font-size: .86rem; color: var(--muted); }
.hm-boyacard dl div { margin-top: 4px; }
.hm-boyacard dt { display: inline; font-weight: 700; color: var(--navy-700); }
.hm-boyacard dt::after { content: ": "; }
.hm-boyacard dd { display: inline; margin: 0; }

/* ---------- Banderas ---------- */
.hm-deletreo { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.hm-deletreo label { display: block; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.hm-deletreo input { max-width: 360px; text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.hm-deletreo__out { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; min-height: 10px; }
.hm-deletreo__out figure { margin: 0; text-align: center; font: 700 .85rem var(--font); color: var(--navy-700); }
.hm-deletreo__out .hm-flag { width: 54px; height: auto; display: block; margin-bottom: 4px; box-shadow: 0 2px 6px rgba(6, 20, 38, .18); }
.hm-deletreo__out .hm-espacio { width: 18px; }
.hm-flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hm-flagcard { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; }
.hm-flagcard .hm-flag { flex: none; width: 66px; height: auto; box-shadow: 0 2px 6px rgba(6, 20, 38, .15); }
.hm-flagcard strong { display: block; font: 700 1.2rem/1.1 var(--font-cond); color: var(--navy-800); }
.hm-flagcard strong span { font-weight: 600; color: var(--sea); font-size: .95rem; letter-spacing: .04em; }
.hm-flagcard p { margin: 2px 0 0; font-size: .9rem; line-height: 1.4; }
.hm-flagcard[data-letra="O"], .hm-flagcard[data-letra="V"], .hm-flagcard[data-letra="W"] { background: #FFF6F6; border-color: #F1C9CE; }

/* ---------- Luces ---------- */
.hm-luces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-luzcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; min-width: 0; }
.hm-luz { display: block; width: 100%; height: auto; }
.hm-luzcard__b { padding: 16px 18px 18px; }
.hm-luzcard h3 { font-size: 1.25rem; color: var(--white); margin: 0 0 6px; }
.hm-luzcard p { font-size: .93rem; color: rgba(255, 255, 255, .82); margin: 0 0 8px; }
.hm-luzcard__nota { color: var(--gold-soft) !important; font-size: .88rem !important; margin: 0 !important; }
.hm-leyenda { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: 22px 0 0; color: rgba(255, 255, 255, .75); font-size: .92rem; }
.hm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.hm-dot--w { background: #FFFFFF; } .hm-dot--g { background: #2BE38A; } .hm-dot--r { background: #FF4D5E; }

/* ---------- VHF ---------- */
.hm-canales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.hm-canalcard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.hm-canalcard.is-main { background: var(--navy-800); border-color: var(--navy-800); color: rgba(255, 255, 255, .85); }
.hm-canalcard__n { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--paper); font: 700 2rem/1 var(--font-cond); color: var(--navy-800); }
.hm-canalcard__n small { display: block; font: 600 .6rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hm-canalcard.is-main .hm-canalcard__n { background: var(--gold); color: var(--navy-900); }
.hm-canalcard.is-main .hm-canalcard__n small { color: var(--navy-700); }
.hm-canalcard h3 { font-size: 1.1rem; margin: 0 0 2px; color: var(--navy-800); }
.hm-canalcard.is-main h3 { color: var(--white); }
.hm-canalcard__f { font-size: .82rem; color: var(--sea); font-weight: 600; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.hm-canalcard.is-main .hm-canalcard__f { color: var(--gold-soft); }
.hm-canalcard p { font-size: .9rem; margin: 0; }
.hm-proc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.hm-proc__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.hm-proc__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-family: var(--font); color: var(--navy-700); }
.hm-proc__tab strong { font: 700 1.25rem/1.1 var(--font-cond); letter-spacing: .06em; }
.hm-proc__tab span { font-size: .8rem; color: var(--muted); }
.hm-proc__tab[aria-selected="true"] { color: var(--white); border-color: transparent; }
.hm-proc__tab[aria-selected="true"] span { color: rgba(255, 255, 255, .85); }
.hm-proc__tab--mayday[aria-selected="true"] { background: #B3122B; }
.hm-proc__tab--pan[aria-selected="true"] { background: #B45A0A; }
.hm-proc__tab--securite[aria-selected="true"] { background: var(--navy-700); }
.hm-proc__cuando { margin: 0 0 14px; }
.hm-proc__pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 8px; }
.hm-proc__pasos li { counter-increment: paso; display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--paper); border-radius: 8px; }
.hm-proc__pasos li::before { content: counter(paso); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: var(--white); font: 700 .85rem var(--font); }
.hm-proc__lsd { padding-top: 14px; border-top: 1px dashed var(--line); margin-top: 18px; }

/* ---------- Alfabeto fonético ---------- */
.hm-fon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hm-fon li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; min-width: 0; flex-wrap: wrap; }
.hm-fon__l { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--navy-800); color: var(--gold); font: 700 1.2rem var(--font-cond); }
.hm-fon strong { color: var(--navy-800); }
.hm-fon small { width: 100%; padding-left: 44px; margin-top: -8px; color: var(--muted); font-size: .8rem; }

/* ---------- Glosario ---------- */
.hm-buscar { position: relative; max-width: 560px; margin: 0 auto 24px; }
.hm-buscar .hm-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hm-buscar input { padding: 13px 14px 13px 44px; border-radius: 999px; }
.hm-glos { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hm-glos__item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.hm-glos__item[hidden] { display: none; }
.hm-glos dt { font: 700 1.15rem var(--font-cond); color: var(--navy-800); letter-spacing: .02em; }
.hm-glos dd { margin: 2px 0 0; font-size: .93rem; }
.hm-glos mark { background: #FFE9A8; color: inherit; border-radius: 2px; }
.hm-glos__vacio { text-align: center; color: var(--muted); }

/* ---------- Antes de zarpar ---------- */
.hm-check { max-width: 880px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.hm-check__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 16px; }
.hm-check__prog { flex: 1 1 200px; height: 10px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.hm-check__prog span { display: block; height: 100%; width: 100%; background: var(--sea); border-radius: 999px; transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .3s ease, background-color .3s ease; }
.hm-check.is-done .hm-check__prog span { background: #0A8F4E; }
.hm-check__top p { margin: 0; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.hm-btn-link { background: none; border: 0; padding: 4px 0; font: 600 .9rem var(--font); color: var(--sea); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hm-check__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-check__list label { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.hm-check__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hm-check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #AAB6C3; color: transparent; margin-top: 1px; transition: background .15s ease, border-color .15s ease; }
.hm-check__list input:checked + .hm-check__box { background: #0A8F4E; border-color: #0A8F4E; color: var(--white); }
.hm-check__list input:focus-visible + .hm-check__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.hm-check__list label:has(input:checked) { background: #F0F9F4; border-color: #BFE3CE; }
.hm-check__list strong { display: block; color: var(--navy-800); }
.hm-check__list small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* ---------- Adaptación ---------- */
@media (max-width: 1020px) {
    .hm-canales { grid-template-columns: 1fr 1fr; }
    .hm-tools3 { grid-template-columns: 1fr 1fr; }
    .hm-tools3 > :last-child { grid-column: 1 / -1; }
    .hm-luces { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .hm-live__grid { grid-template-columns: 1fr 1fr; }
    .hm-sl { grid-template-columns: 1fr; }
    .hm-proxima { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .hm-hero { padding: 60px 0 50px; }
    .hm-live__grid, .hm-tools3, .hm-luces, .hm-canales, .hm-check__list, .hm-mareas { grid-template-columns: 1fr; }
    .hm-tools3 > :last-child { grid-column: auto; }
    .hm-card, .hm-tool, .hm-proc, .hm-check { padding: 16px; }
    .hm-card__sub { display: none; }
    .hm-boyas, .hm-flags, .hm-glos { grid-template-columns: 1fr; }
    .hm-luna { flex-direction: column; text-align: center; }
    .hm-proc__tab strong { font-size: 1.05rem; }
    .hm-bf { font-size: .88rem; }
    .hm-bf th, .hm-bf td { padding: 9px 10px; }
    .hm-sec, .hm-live { scroll-margin-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-skel { animation: none; }
    .hm-flecha, .hm-check__prog span, .hm-card { transition: none; }
}

/* ---------- Aprende lo marítimo ---------- */
.hm-soltab td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-soltab td:nth-child(4), .hm-soltab td:nth-child(5) { font-weight: 700; color: var(--navy-800); }
.hm-ap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hm-fc__ayuda { margin: -6px 0 14px; }
.hm-fc__card { display: block; width: 100%; height: 280px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; font: inherit; color: inherit; text-align: center; border-radius: 16px; }
.hm-fc__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hm-fc__card.is-flip .hm-fc__inner { transform: rotateY(180deg); }
.hm-fc__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hm-fc__front { background: radial-gradient(ellipse at 50% 0%, var(--navy-600), var(--navy-800) 70%); color: var(--white); }
.hm-fc__back { background: var(--white); border: 2px solid var(--gold); transform: rotateY(180deg); }
.hm-fc__flag .hm-flag { width: 150px; height: auto; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.hm-fc__letra { font: 700 2.6rem/1 var(--font-cond); color: var(--gold); }
.hm-fc.is-oculta .hm-fc__letra { visibility: hidden; }
.hm-fc__hint { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hm-fc__pal { font: 700 2.4rem/1 var(--font-cond); color: var(--navy-800); }
.hm-fc__pron { font-weight: 600; color: var(--sea); }
.hm-fc__sig { font-size: 1rem; line-height: 1.45; max-width: 34ch; color: var(--ink); }
.hm-fc__card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.hm-fc__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 14px; }
.hm-fc__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy-800); cursor: pointer; }
.hm-fc__btn:hover { background: var(--paper); }
.hm-fc__pos { font-weight: 700; color: var(--navy-800); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-fc__opc { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.hm-fc__opc input { width: 18px; height: 18px; accent-color: var(--navy-800); }

.hm-quiz { display: flex; flex-direction: column; }
.hm-quiz__marcador { margin-left: auto; font: 700 1.1rem var(--font-cond); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.hm-quiz__prog { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; margin-bottom: 16px; }
.hm-quiz__prog span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .3s ease; }
.hm-quiz__preg { display: flex; align-items: center; gap: 16px; min-height: 92px; margin-bottom: 14px; }
.hm-quiz__visual { flex: none; display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 10px; border-radius: 12px; background: var(--navy-800); color: var(--gold); font: 700 2.6rem/1 var(--font-cond); }
.hm-quiz__visual .hm-flag { width: 84px; height: auto; }
.hm-quiz__visual.is-flag { background: var(--paper); }
.hm-quiz__preg p { margin: 0; font-weight: 600; font-size: 1.08rem; color: var(--navy-800); }
.hm-quiz__ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-quiz__op { padding: 13px 12px; border-radius: 10px; border: 1px solid #C5CFDA; background: var(--white); font: 600 1.02rem var(--font); color: var(--navy-800); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.hm-quiz__op:hover:not(:disabled) { border-color: var(--sea); background: #F1F7FC; }
.hm-quiz__op:disabled { cursor: default; }
.hm-quiz__op.is-ok { background: #E3F5EA; border-color: #0A8F4E; color: #075C33; }
.hm-quiz__op.is-mal { background: #FDE8EA; border-color: #C8102E; color: #8A0C20; }
.hm-quiz__fb { margin: 12px 0 0; min-height: 1.6em; font-weight: 600; }
.hm-quiz__fb.is-ok { color: #0A7A43; }
.hm-quiz__fb.is-mal { color: #A50E26; }
.hm-quiz__sig { margin-top: 10px; align-self: flex-start; }
.hm-quiz__fin { text-align: center; padding: 20px 0; }
.hm-quiz__fin strong { display: block; font: 700 3rem/1 var(--font-cond); color: var(--navy-800); margin-bottom: 8px; }

.hm-reglas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-regla { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.hm-regla__svg { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 12px; }
.hm-r-ruta { fill: none; stroke: #0B2240; stroke-width: 2; stroke-dasharray: 5 5; }
.hm-r-ruta--b { stroke: #2F7FB8; }
.hm-r-t { font: 700 10px var(--font); fill: var(--navy-700); }
.hm-regla h4, .hm-prioridad h4 { margin: 0 0 4px; font-size: 1.2rem; color: var(--navy-800); }
.hm-regla p { margin: 0 0 6px; font-size: .93rem; }
.hm-regla__sit { color: var(--muted); }
.hm-prioridad { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.hm-prioridad p { margin: 0 0 8px; }
.hm-prioridad ol { margin: 0 0 6px; padding-left: 1.3em; display: grid; gap: 2px; font-weight: 600; color: var(--navy-700); }

.hm-socorro { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-soc { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.hm-soc__v { display: grid; place-items: center; height: 54px; color: var(--navy-700); }
.hm-soc__num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--gold); color: var(--navy-900); font: 700 1.8rem var(--font-cond); }
.hm-soc__nc { display: flex; flex-direction: column; gap: 2px; }
.hm-soc__nc .hm-flag { width: 40px; height: auto; }
.hm-soc strong { display: block; color: var(--navy-800); font-size: 1.05rem; }
.hm-soc p { margin: 2px 0 0; font-size: .9rem; line-height: 1.45; }
.hm-morse { font-weight: 700; letter-spacing: .08em; white-space: nowrap; }

@media (max-width: 1020px) { .hm-socorro { grid-template-columns: 1fr 1fr; } .hm-reglas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .hm-ap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .hm-reglas { grid-template-columns: 1fr; }
    .hm-socorro { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hm-soc { padding: 12px; }
    .hm-quiz__ops { grid-template-columns: 1fr; }
    .hm-fc__card { height: 300px; }
}
@media (max-width: 380px) { .hm-socorro { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .hm-fc__inner { transition: none; }
    .hm-quiz__prog span { transition: none; }
}
