:root{color-scheme:light;--azul:#0751a6;--oscuro:#07376f;--verde:#15803d;--fondo:#f4f7fb;--tinta:#11243e;--muted:#52647c;--borde:#dce5f0}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--fondo);color:var(--tinta);line-height:1.55}a{color:var(--azul)}a:focus-visible,button:focus-visible{outline:3px solid #efa900;outline-offset:3px}.skip{position:absolute;left:-999px;top:8px;z-index:9;background:white;padding:10px}.skip:focus{left:8px}.wrap{width:min(1220px,calc(100% - 40px));margin-inline:auto}.topbar{background:#fff;border-bottom:1px solid var(--borde)}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--oscuro)}.brand img{width:54px;height:54px;object-fit:contain}.brand small{display:block;font-weight:800;font-size:11px;letter-spacing:.07em;color:#15803d}.brand strong{display:block;line-height:1.2;font-size:19px}.topbar nav{display:flex;gap:20px;font-weight:700}.topbar nav a{text-decoration:none}.crumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;padding:22px 0;color:var(--muted)}.crumb span:last-child{max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-picture{height:clamp(200px,30vw,360px);border-radius:22px;overflow:hidden;margin-bottom:24px;background:#dceaf6}.hero-picture img{width:100%;height:100%;object-fit:cover}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,345px);gap:24px;align-items:start;margin-bottom:46px}.main-card,.side-card{background:white;border:1px solid var(--borde);border-radius:22px;box-shadow:0 12px 34px rgba(7,55,111,.05)}.main-card{padding:34px}.main-card h1{font-size:clamp(28px,3.6vw,44px);line-height:1.15;letter-spacing:-.03em;margin:12px 0 10px}.type{display:inline-flex;background:#eaf7ee;color:#137333;font-size:13px;font-weight:800;border-radius:30px;padding:7px 13px}.category{color:#0751a6;font-weight:700;margin:0 0 18px}.lead{font-size:18px;color:#435874;margin:0 0 24px}.section{border-top:1px solid var(--borde);padding-top:25px;margin-top:25px}.section h2,.side-card h2{margin:0 0 13px;font-size:21px;color:#0b2f62}.section p{color:#334b65;margin:8px 0}.long-copy{overflow-wrap:anywhere;white-space:normal}.chips{display:flex;flex-wrap:wrap;gap:8px}.chips span{padding:7px 12px;border-radius:30px;background:#edf4fb;color:#183d6b;font-size:14px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.sidebar{display:grid;gap:16px}.side-card{padding:24px}.actions{display:grid;gap:10px}.btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px;border-radius:12px;padding:11px 15px;background:var(--azul);color:#fff;border:1px solid var(--azul);font:inherit;font-size:15px;font-weight:800;text-decoration:none;cursor:pointer;transition:filter .15s ease}.btn:hover{filter:brightness(.94)}.btn.green{background:#15803d;border-color:#15803d}.btn.outline{color:#0751a6;background:#f0f6ff;border-color:#cbdff8}.muted{color:var(--muted);font-size:14px}.note{font-size:13px;color:#64748b;line-height:1.55;margin:8px 4px}.side-card #share-message{margin-bottom:0}footer{background:#092e62;color:white;padding:24px 0;font-size:14px}footer a{color:white}
@media(max-width:850px){.layout{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.note{grid-column:1/-1}.hero-picture{border-radius:16px}}
@media(max-width:620px){.wrap{width:min(100% - 28px,1220px)}.topbar-inner{min-height:77px}.brand strong{font-size:15px}.brand small{font-size:9px}.brand img{width:42px;height:42px}.topbar nav{gap:12px;font-size:13px}.main-card{padding:22px}.sidebar{grid-template-columns:1fr}.note{grid-column:auto}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.crumb{padding:14px 0}}

/* A3-2B-R5-P1 INICIO: evitar ampliar portadas de baja resolucion. */
body .hero-picture {
  height: clamp(185px, 23vw, 295px);
  min-height: 0;
  max-height: 295px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #e9f3fc;
}
body .hero-picture > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* A3-2B-R5-P1 FIN */


/* A3-2B-R5-P2 INICIO: portada compacta sin recortar imagen ni alterar galeria. */
body .hero-picture {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  padding: 15px 18px;
}
body .hero-picture > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}
@media (max-width: 620px) {
  body .hero-picture { padding: 12px; }
  body .hero-picture > img { max-height: 160px; }
}
/* A3-2B-R5-P2 FIN */
