/* Páginas públicas: sala de prensa, avisos, eventos, registro, preferencias, encuestas, privacidad */
:root { --azul: #123a73; --azul-2: #1f5bb5; --oro: #c9a227; --fondo: #f5f6f9; --texto: #1d2433; --suave: #5f6b80; --borde: #e2e7ef; --ok: #1a8a4a; --mal: #c62f2f; }
* { box-sizing: border-box; } html, body { margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; background: var(--fondo); color: var(--texto); font-size: 16px; line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--azul-2); } img { max-width: 100%; }
.pub-cab { background: var(--azul); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem); flex-wrap: wrap; }
.pub-marca { display: flex; gap: .7rem; align-items: center; color: #fff; text-decoration: none; } .pub-marca b { display: block; font-size: 1rem; } .pub-marca small { opacity: .8; font-size: .8rem; }
.pub-logo { width: 42px; height: 42px; border-radius: 10px; background: var(--oro); color: var(--azul); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.pub-cab nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; } .pub-cab nav a { color: #dbe5f6; text-decoration: none; font-weight: 600; font-size: .92rem; display: inline-block; padding: .45rem .2rem; } .pub-cab nav a:hover { color: #fff; }
.pub-main { flex: 1; width: min(1120px, 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 2.2rem); }
.pub-pie { background: #0d2a54; color: #aebbd2; display: flex; gap: 1.2rem; flex-wrap: wrap; padding: 1.1rem clamp(1rem, 4vw, 3rem); font-size: .85rem; align-items: center; } .pub-pie a { color: #dbe5f6; display: inline-block; padding: .4rem 0; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 .6rem; } h2 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; } h3 { margin: .2rem 0 .4rem; }
.pub-tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: clamp(1rem, 3vw, 1.8rem); box-shadow: 0 1px 3px rgba(16,30,60,.06); }
.pub-tarjeta + .pub-tarjeta { margin-top: 1rem; }
.pub-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.pub-item { background: #fff; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.pub-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,30,60,.1); } .pub-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #dfe6f2; }
.pub-item .c { padding: .9rem 1rem 1.1rem; } .pub-item small, .pub-meta { color: var(--suave); font-size: .82rem; }
.pub-btn { display: inline-block; background: var(--azul-2); color: #fff; border: 0; border-radius: 9px; padding: .7rem 1.2rem; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; }
.pub-btn:hover { background: var(--azul); } .pub-btn.sec { background: #fff; color: var(--azul-2); border: 1px solid var(--azul-2); } .pub-btn.mal { background: var(--mal); }
label { display: block; font-weight: 600; font-size: .9rem; margin: .8rem 0 .25rem; } input, select, textarea { font: inherit; width: 100%; padding: .65rem .75rem; border: 1px solid #cfd7e3; border-radius: 9px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid #cfe0fb; border-color: var(--azul-2); }
.pub-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; } .pub-check input { width: auto; margin-top: .15rem; flex: none; }
input[type=checkbox], input[type=radio] { width: 1.5rem; height: 1.5rem; accent-color: var(--azul-2); cursor: pointer; }
.pub-chip { display: inline-block; padding: .15rem .6rem; border-radius: 99px; background: #e8f0fc; color: var(--azul-2); font-size: .78rem; font-weight: 700; }
.pub-chip.ok { background: #e5f6ec; color: #13652f; } .pub-chip.mal { background: #fde8e8; color: #a42222; } .pub-chip.warn { background: #fff3dc; color: #8a5a00; }
.pub-aviso { padding: .8rem 1rem; border-radius: 10px; background: #e8f0fc; border-left: 4px solid var(--azul-2); margin: 1rem 0; }
.pub-aviso.ok { background: #e5f6ec; border-color: var(--ok); } .pub-aviso.mal { background: #fde8e8; border-color: var(--mal); } .pub-aviso.warn { background: #fff3dc; border-color: #b26a00; }
.pub-articulo { font-size: 1.05rem; } .pub-articulo p { margin: 0 0 1rem; } .pub-articulo img { border-radius: 10px; }
.pub-fila { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; } .pub-muted { color: var(--suave); }
.error { color: var(--mal); font-size: .9rem; margin-top: .5rem; }
/* Accesibilidad: foco visible con teclado, salto al contenido, textos solo para lectores de pantalla, movimiento reducido */
a:focus-visible, button:focus-visible, .pub-btn:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 4px; }
.pub-saltar { position: absolute; left: -9999px; top: .5rem; background: #fff; color: var(--azul); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10; }
.pub-saltar:focus { left: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pub-item h2 { font-size: 1.1rem; margin: .2rem 0 .4rem; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .pub-item, .pub-item:hover { transition: none; transform: none; } }
@media print { .pub-cab, .pub-pie, .no-print { display: none !important; } body { background: #fff; } .pub-main { padding: 0; } }
