/* anisakis.com — hoja de estilos única, sin fuentes ni recursos externos */
:root {
  --azul: #263e8b;
  --azul-osc: #1b2c63;
  --celeste: #2f8fd0;
  --celeste-txt: #1d6aa3;  /* celeste para texto: contraste AA sobre blanco y --fondo */
  --texto: #2b2f38;
  --gris: #5d6470;
  --linea: #dfe4ee;
  --fondo: #f4f7fb;
  --radio: 10px;
  --sombra: 0 2px 14px rgba(20, 35, 80, .08);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; }
a { color: var(--azul); text-underline-offset: 2px; }
a:hover { color: var(--celeste); }
h1, h2, h3, h4 { color: var(--azul); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: .4em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; hyphens: auto; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--celeste); background: var(--fondo); }
figure { margin: 1.6em 0; text-align: center; }
figure img { border-radius: var(--radio); }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* cabecera */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linea); backdrop-filter: blur(6px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand img { display: block; width: 92px; height: auto; }
.top nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; color: var(--azul); }
.top nav a:hover { background: var(--fondo); }
.top nav a[aria-current="page"] { background: var(--azul); color: #fff; }
.top .lang { display: flex; gap: 2px; border: 1px solid var(--linea); border-radius: 999px; padding: 2px; }
.top .lang a { padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.top .lang a[aria-current="true"] { background: var(--azul); color: #fff; }
.card .only-es { display: inline-block; margin: 4px 0 2px; padding: 2px 9px; border-radius: 999px; background: var(--fondo); color: var(--azul); font-size: .78rem; font-weight: 600; }

/* portada */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); }
.hero picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .90)); }
.hero-in { position: relative; z-index: 1; }
.hero-logo { width: min(300px, 62vw); height: auto; }
.hero h1 { text-transform: uppercase; letter-spacing: .01em; margin: .5em 0 .4em; }
.lead { max-width: 820px; margin: 0 auto 1.4em; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--azul); }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--azul); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--azul); margin: 4px; }
.btn:hover { background: var(--azul-osc); border-color: var(--azul-osc); color: #fff; }
.btn-o { background: transparent; color: var(--azul); }
.btn-o:hover { background: var(--azul); color: #fff; }
.band { background: var(--fondo); padding: clamp(36px, 6vw, 64px) 0; }
.band h2 { text-align: center; margin-top: 0; text-transform: uppercase; }
.band-dark { background: var(--azul); color: #fff; }
.band-dark h2, .band-dark a { color: #fff; }
.temas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.temas-intro { position: sticky; top: 100px; }
.temas-intro h2 { text-align: left; margin: .2em 0 .6em; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.temas-intro p { color: var(--gris); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 700; color: var(--celeste-txt) !important; margin: 0; }
.topics { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linea); }
.topics li { margin: 0; border-bottom: 1px solid var(--linea); }
.topics a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 12px; padding: 16px 10px; text-decoration: none; color: var(--texto); border-radius: 8px; }
.topics .num { font-size: 1.5rem; font-weight: 700; color: var(--celeste); opacity: .55; font-variant-numeric: tabular-nums; }
.topics .arr { color: var(--azul); opacity: 0; transform: translateX(-6px); }
.topics a:hover { background: #fff; color: var(--azul); }
.topics a:hover .num { opacity: 1; }
.topics a:hover .arr { opacity: 1; transform: none; }
#noticias { padding: clamp(36px, 6vw, 64px) 0; }
#noticias h2 { text-align: center; text-transform: uppercase; margin-top: 0; }

/* tarjetas de noticias */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 24px 0; }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); text-decoration: none; color: var(--texto); border: 1px solid var(--linea); }
.card a:hover { border-color: var(--celeste); }
.card img, .card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--fondo); }
.card-b { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: .85rem; color: var(--gris); }
.card h3 { margin: .3em 0 .5em; font-size: 1.12rem; }
.card p { font-size: .95rem; color: var(--gris); flex: 1; }
.more { font-weight: 600; color: var(--azul); }

/* páginas y noticias */
.page { padding: 28px 0 56px; }
.page h1 { margin-top: .3em; }
.meta { color: var(--gris); font-size: .92rem; margin-bottom: 0; }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: .95rem; }
.pager a { max-width: 48%; }
.legal-text .pendiente { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* páginas informativas con diseño propio (meta «intro») */
.page-hero { background: linear-gradient(135deg, #f4f7fb 0%, #e6eef9 100%); border-bottom: 1px solid var(--linea); padding: clamp(32px, 6vw, 60px) 0 clamp(26px, 4vw, 40px); }
.page-hero h1 { margin: 0 0 .35em; }
.page-intro { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--gris); max-width: 62ch; margin: 0; }
.page-pro { padding: 8px 0 64px; }
.page-pro > section { padding-top: clamp(28px, 5vw, 48px); scroll-margin-top: 90px; }
.page-pro > section + section { border-top: 1px solid var(--linea); margin-top: clamp(28px, 5vw, 48px); }
.page-pro h2 { margin: 0 0 .7em; }
.page-pro h2 .n { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--celeste-txt); margin-bottom: .35em; }
.page-pro p, .page-pro ul, .page-pro ol { max-width: 76ch; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; max-width: none !important; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; }
.toc a:hover { border-color: var(--celeste); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; max-width: none !important; }
.facts li { margin: 0; background: #fff; border: 1px solid var(--linea); border-top: 4px solid var(--celeste); border-radius: var(--radio); padding: 18px 20px; box-shadow: var(--sombra); }
.facts h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.facts p { margin: 0; font-size: .97rem; color: var(--gris); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.fig { margin: 1.4em 0; text-align: left; }
.fig-box { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.fig img { display: block; width: 100%; border-radius: 6px; }
.fig figcaption { font-size: .9rem; color: var(--gris); margin-top: .7em; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gallery .fig { margin: 0; }
.gallery .fig img { height: 240px; object-fit: contain; background: #10182b; }
.callout { background: var(--fondo); border-left: 4px solid var(--azul); border-radius: 0 var(--radio) var(--radio) 0; padding: 16px 20px; margin: 1.4em 0; max-width: 76ch; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--azul); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.refs { list-style: none; padding: 0; margin: 0; max-width: none !important; }
.refs li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.refs li:first-child { border-top: 1px solid var(--linea); }
.refs .t { font-weight: 600; color: var(--azul); }
.refs a.t { text-decoration: none; }
.refs a.t:hover { text-decoration: underline; }
.refs .a { display: block; font-size: .93rem; color: var(--texto); margin-top: 2px; }
.refs .s { display: block; font-size: .85rem; color: var(--gris); margin-top: 2px; }
.count { font-size: .95rem; color: var(--gris); }
.laws { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; max-width: none !important; }
.laws li { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px 20px; }
.laws .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.laws .h a { font-weight: 700; text-decoration: none; }
.laws .h a:hover { text-decoration: underline; }
.laws p { margin: .4em 0 0; font-size: .96rem; color: var(--gris); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--fondo); color: var(--azul); }
.tag-ok { background: #e3f4ea; color: #1d6b3a; }
.tag-no { background: #fbe9e7; color: #9a2f1f; }
.tag-mod { background: #fff4d6; color: #7a5a00; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* pie */
.foot { background: var(--azul-osc); color: #dfe6f7; padding: 32px 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot img { filter: brightness(0) invert(1); opacity: .9; }
.foot p { margin: .3em 0; }

@media (max-width: 700px) {
  .top { position: static; }
  .temas { grid-template-columns: 1fr; }
  .temas-intro { position: static; }
  .topics .arr { opacity: 1; transform: none; }
  .top-in { justify-content: center; padding: 8px 0; }
  .top nav ul { justify-content: center; }
  .top nav a { padding: 6px 9px; font-size: .95rem; }
  .pager a { max-width: 100%; }
  .foot-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .topics .arr, .topics a { transition: all .15s; }
  html { scroll-behavior: smooth; }
}
