/* Sitio público DIGEMAR — estilos base */
:root {
    --navy-900: #061426;
    --navy-800: #07182E;
    --navy-700: #0B2240;
    --navy-600: #13325C;
    --gold: #E0B23C;
    --gold-soft: #F1D58A;
    --sea: #2F7FB8;
    --ink: #0E1B2C;
    --muted: #5A6878;
    --line: #DDE3EA;
    --paper: #F5F7FA;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(6, 20, 38, .10);
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
h1, h2, h3, h4 { font-family: var(--font-cond); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Pantalla de carga ---------- */
.pl {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    background: radial-gradient(ellipse at 50% 40%, var(--navy-600) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
    color: var(--white);
    transition: opacity .55s ease, visibility .55s ease;
}
.pl.is-done { opacity: 0; visibility: hidden; }
.pl__inner { text-align: center; padding: 24px; }
.pl__crest { position: relative; width: 220px; height: 220px; margin: 0 auto 26px; display: grid; place-items: center; }
.pl__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl__ring-track { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: 3; }
.pl__ring-arc {
    fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 578; stroke-dashoffset: 430;
    transform-origin: 100px 100px;
    animation: pl-spin 1.4s linear infinite, pl-dash 2.8s ease-in-out infinite;
}
.pl__shield {
    width: 160px; height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
    animation: pl-breathe 2.4s ease-in-out infinite;
}
.pl__quote {
    font-family: var(--font-cond); font-size: 1.35rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold-soft); min-height: 1.6em; margin: 0 0 6px;
    transition: opacity .22s ease, transform .22s ease;
}
.pl__quote.is-swap { opacity: 0; transform: translateY(6px); }
.pl__name { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin: 0; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-dash { 0%, 100% { stroke-dashoffset: 470; } 50% { stroke-dashoffset: 150; } }
@keyframes pl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
    .pl__ring-arc, .pl__shield { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar__row { display: flex; align-items: center; gap: 22px; min-height: 36px; flex-wrap: wrap; }
.topbar__lbl { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; margin-right: 4px; }
.topbar__item time, .topbar__item span[id] { font-variant-numeric: tabular-nums; }
.topbar__spacer { flex: 1; }
@media (max-width: 760px) { .topbar__dep { display: none; } .topbar__row { gap: 14px; justify-content: center; } }

/* ---------- Cabecera y menú ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--navy-800); color: var(--white); transition: box-shadow .2s ease; }
.hdr.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.hdr__row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-family: var(--font-cond); font-size: 1.55rem; letter-spacing: .08em; color: var(--gold); }
.brand__txt small { font-size: .78rem; color: rgba(255, 255, 255, .78); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 .98rem var(--font); color: rgba(255, 255, 255, .9);
    background: none; border: 0; cursor: pointer; text-decoration: none;
    padding: 10px 12px; border-radius: 6px;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav__item.is-active > .nav__link { color: var(--gold); }
.nav__link svg { transition: transform .2s ease; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.btn-gold.nav__link { background: var(--gold); color: var(--navy-900); padding: 9px 16px; margin-left: 8px; }
.btn-gold.nav__link:hover { background: var(--gold-soft); color: var(--navy-900); }
/* Menú de escritorio con 9 entradas: cada una en una sola línea; más compacto en pantallas medianas. */
@media (min-width: 981px) {
    .nav__link { white-space: nowrap; padding: 10px 9px; }
}
@media (min-width: 981px) and (max-width: 1240px) {
    .nav__list { gap: 0; }
    .nav__link { padding: 9px 7px; font-size: .9rem; }
    .btn-gold.nav__link { padding: 9px 12px; margin-left: 4px; }
    .brand__txt small { display: none; }
}

.nav__sub {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__sub--right { left: auto; right: 0; }
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__sub a small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.nav__sub a:hover { background: var(--paper); color: var(--navy-700); }

.hdr__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.hdr__toggle span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.hdr__toggle span:nth-child(1) { top: 15px; } .hdr__toggle span:nth-child(2) { top: 21px; } .hdr__toggle span:nth-child(3) { top: 27px; }
.hdr__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
    .hdr__toggle { display: block; }
    .brand__txt small { display: none; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - 110px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
    .nav__link { width: 100%; justify-content: space-between; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .btn-gold.nav__link { margin: 14px 0 0; justify-content: center; border-radius: 8px; }
    .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255, 255, 255, .04); display: none; min-width: 0; margin: 4px 0 8px; }
    .nav__item.is-open > .nav__sub { display: block; }
    .nav__sub a { color: rgba(255, 255, 255, .88); }
    .nav__sub a small { color: rgba(255, 255, 255, .55); }
    .nav__sub a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--white);
    background:
        linear-gradient(105deg, rgba(6, 20, 38, .96) 0%, rgba(7, 24, 46, .88) 45%, rgba(11, 34, 64, .55) 100%),
        radial-gradient(ellipse at 80% 20%, var(--sea) 0%, transparent 60%),
        var(--navy-700);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C240 90 480 10 720 40 S1200 80 1440 30 V90 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; padding: 80px 20px 130px; }
.hero__kicker { display: inline-block; font-family: var(--font-cond); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-size: .92rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .84); max-width: 58ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__crest { justify-self: center; width: min(360px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) {
    .hero__row { grid-template-columns: 1fr; text-align: center; padding: 50px 20px 110px; gap: 24px; }
    .hero__crest { order: -1; width: 180px; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
}

.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font); padding: 13px 22px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }

/* ---------- Secciones ---------- */
.sec { padding: 72px 0; }
.sec--paper { background: var(--paper); }
.sec--navy { background: var(--navy-800); color: var(--white); }
.sec__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sec__kicker { display: block; font-family: var(--font-cond); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); font-size: .88rem; margin-bottom: 8px; }
.sec--navy .sec__kicker { color: var(--gold); }
.sec__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy-800); }
.sec--navy .sec__head h2 { color: var(--white); }
.sec__head p { color: var(--muted); }
.sec--navy .sec__head p { color: rgba(255, 255, 255, .75); }
.sec__head::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* Accesos rápidos */
.quick { position: relative; z-index: 2; margin-top: -70px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qcard {
    display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
    border: 1px solid transparent; transition: transform .2s ease, border-color .2s ease;
}
.qcard:hover { transform: translateY(-4px); border-color: var(--gold); }
.qcard__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); }
.qcard h3 { font-size: 1.3rem; margin: 4px 0 0; color: var(--navy-800); }
.qcard p { font-size: .95rem; color: var(--muted); margin: 0; flex: 1; }
.qcard__go { font-weight: 700; font-size: .92rem; color: var(--sea); }
@media (max-width: 980px) { .quick__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .quick__grid { grid-template-columns: 1fr; } .quick { margin-top: -50px; } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__lbl { margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: 1rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 30px; } }

/* Dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--navy-800); }
.split__media { border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); padding: 40px; display: grid; place-items: center; min-height: 320px; }
.split__media img { width: min(280px, 80%); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 1px var(--gold); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split__media { min-height: 220px; } }

/* Departamentos */
.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dep { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.dep:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dep h3 { font-size: 1.2rem; color: var(--navy-800); }
.dep p { color: var(--muted); font-size: .95rem; }
.dep__jefe { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; font-size: .9rem; }
.dep__jefe span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.dep__jefe strong { color: var(--ink); }

/* Página interior */
.phero { background: linear-gradient(105deg, var(--navy-900), var(--navy-700)); color: var(--white); padding: 56px 0 50px; }
.phero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.phero p { color: rgba(255, 255, 255, .78); margin: 10px 0 0; max-width: 70ch; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.8rem; color: var(--navy-800); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.note { background: #FFF8E6; border: 1px solid var(--gold-soft); padding: 14px 18px; border-radius: 6px; color: #5A4A1E; font-size: .95rem; }

/* Pie */
.ftr { background: var(--navy-900); color: rgba(255, 255, 255, .75); font-size: .95rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding: 56px 20px 40px; }
.ftr__brand img { width: 96px; margin-bottom: 12px; }
.ftr__name { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.ftr__motto { font-style: italic; color: var(--gold-soft); }
.ftr__h { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ftr__links, .ftr__contact, .ftr__social { list-style: none; margin: 0; padding: 0; }
.ftr__links li, .ftr__contact li { margin-bottom: 8px; }
.ftr__contact span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ftr a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ftr a:hover { color: var(--gold); }
.ftr__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ftr__social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .85rem; }
.ftr__base { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .83rem; color: rgba(255, 255, 255, .55); text-align: center; }
.ftr__visitas { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftr__visitas svg { color: var(--gold); }
/* Instituciones afines (logos en blanco) */
.ftr__afines { border-top: 1px solid rgba(255, 255, 255, .08); padding: 34px 0; }
.ftr__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 40px; }
.ftr__logos a { display: flex; align-items: center; justify-content: center; height: 64px; opacity: .62; transition: opacity .2s ease, transform .2s ease; }
.ftr__logos a:hover, .ftr__logos a:focus-visible { opacity: 1; transform: translateY(-2px); }
.ftr__logos a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
.ftr__logo { display: flex; align-items: center; }
.ftr__logo img { display: block; height: auto; width: auto; max-height: 58px; max-width: 160px; }
@media (max-width: 560px) { .ftr__logos { gap: 20px 26px; } .ftr__logos a { height: 48px; } .ftr__logo img { max-height: 44px; max-width: 120px; } }
@media (prefers-reduced-motion: reduce) { .ftr__logos a { transition: none; } .ftr__logos a:hover { transform: none; } }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; text-align: center; } .ftr__brand img { margin: 0 auto 12px; } .ftr__social { justify-content: center; } }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Comandos y dependencias */
.cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cmd { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.cmd:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.cmd img, .cmd__logo { width: 58px; height: 58px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(6, 20, 38, .18)); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.cmd:hover .cmd__logo { transform: scale(1.1) rotate(-4deg); }
.cmd__sigla { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); font: 700 1rem var(--font-cond); letter-spacing: .05em; }
.cmd__txt { display: flex; flex-direction: column; line-height: 1.25; }
.cmd__txt strong { font-family: var(--font-cond); font-size: 1.15rem; color: var(--navy-800); letter-spacing: .04em; }
.cmd__txt small { color: var(--muted); font-size: .88rem; }
.cmd.is-soon { background: var(--paper); }
.ftr__dep { font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* Multimedia (video ligero: carga YouTube solo al hacer clic) */
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vid { margin: 0; }
.vid__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--navy-900); }
.vid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; opacity: .85; }
.vid__btn:hover img { transform: scale(1.04); opacity: 1; }
.vid__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.vid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.vid figcaption { margin-top: 10px; font-weight: 600; color: var(--white); font-size: .98rem; line-height: 1.35; }
.sec__more { text-align: center; margin-top: 34px; }
@media (max-width: 900px) { .vids { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vids { grid-template-columns: 1fr; } }

/* ---------- Acceso directo a Herramientas del Marino (junto al asistente) ---------- */
.hm-fab {
    position: fixed; right: 102px; bottom: 30px; z-index: 790;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px 9px 12px; border-radius: 999px;
    background: var(--navy-700); color: var(--white); text-decoration: none;
    border: 1.5px solid var(--gold);
    box-shadow: 0 10px 26px rgba(4, 14, 28, .32);
    transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease;
}
.hm-fab svg { flex: none; color: var(--gold); }
.hm-fab__txt { display: flex; flex-direction: column; line-height: 1.15; }
.hm-fab__txt strong { font-family: var(--font-cond); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.hm-fab__txt small { font-size: 12px; color: var(--gold-soft); }
.hm-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(4, 14, 28, .42); color: var(--white); }
.hm-fab:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
body.is-loading .hm-fab, body.tm-abierto .hm-fab { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
    .hm-fab { right: 88px; bottom: 20px; padding: 8px 14px 8px 10px; }
    .hm-fab__txt small { display: none; }
    .hm-fab__txt strong { font-size: 14px; }
}
@media (max-width: 360px) {
    .hm-fab__txt strong { font-size: 0; }
    .hm-fab__txt strong::after { content: "Herramientas"; font-size: 13px; }
}
@media print { .hm-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .hm-fab { transition: none; } }
