/* Identidad del club: azul institucional, granate y superficies de lectura. */
html { scroll-padding-top: 112px; }
::selection { background: var(--info-bg); color: var(--text); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--surface); color: var(--text); border: 2px solid var(--focus); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.subtitle { text-transform: none; letter-spacing: 0; }
.header { border-radius: 0 0 14px 14px; border-bottom-color: var(--garnet); }
.header-content { min-height: 86px; gap: 20px; }
.shield-icon { width: 46px; }
.public-link { color: #fff; font-size: 13px; text-underline-offset: 4px; white-space: nowrap; }
.gsearch input, .gsearch-results { border-radius: 8px; }
.tab-content { padding-top: 24px; }
.tab-btn.active { background: var(--info-bg); }
.subnav:empty { display: none; }
.hero { border-radius: 14px; padding: 30px; border-left: 5px solid var(--garnet); }
.hero h2 { font-size: clamp(36px, 5vw, 48px); }
.hero p { max-width: 75ch; margin-top: 8px; line-height: 1.6; }
.admin-section, .panel { border: 1px solid var(--line); border-radius: 10px; }
.kpi, .stat-card, .player-card, .club-card, .agenda-day, .conex-fila { border-radius: 10px; }
.kpi { padding: 22px 18px; box-shadow: none; }
.kpi-value { font-size: 52px; }
.kpi-label { font-size: 14px; }
.player-card:hover { transform: none; border-color: var(--primary); }
.btn { border-radius: 8px; min-height: 44px; }
.btn-icon { width: 44px; }
.btn-small { min-height: 36px; }
.seg { border-radius: 8px; padding: 3px; }
.seg-btn { min-height: 38px; border-radius: 6px; }
input[type=search] { min-height: 44px; font: 15px var(--font-body); }
.filters, .search-box { gap: 10px; }
.disc-table th { background: var(--surface-2); }
.disc-table td { padding-top: 12px; padding-bottom: 12px; }
.disc-table tbody tr:hover td { background: var(--surface-2); }
.disc-table .fila-nuestra td { background: var(--info-bg); }
.modal-content { border-radius: 14px; border-top: 4px solid var(--garnet); }
.close { display: grid; place-items: center; width: 44px; height: 44px; top: 8px; right: 8px; border: 0; background: var(--surface-2); border-radius: 8px; font: 28px var(--font-body); color: var(--text); cursor: pointer; }
textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Portada: identidad primero, el próximo encuentro como protagonista. */
.pub-top { padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-top-in { max-width: 1200px; min-height: 80px; padding: 12px 0; gap: 20px; border: 0; border-radius: 0; box-shadow: none; }
.pub-brand b { font-size: 26px; }
.pub-brand small { text-transform: none; letter-spacing: .02em; font-size: 12px; margin-top: 5px; }
.pub-brand { margin-right: auto; }
.pub-nav a { border-radius: 6px; }
.pub-access { font-size: 13px; font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.pub-main { max-width: 1200px; padding: 0 24px 56px; }
.pub-intro { padding: 40px 0 28px; }
.pub-intro h2 { font-size: clamp(42px, 6vw, 72px); color: var(--text); }
.pub-intro p { color: var(--text-soft); max-width: 62ch; margin-top: 10px; font-size: 15px; }
.pub-hero { border-radius: 16px; background: var(--navy); box-shadow: none; border-bottom: 6px solid var(--garnet); margin-bottom: 40px; }
.pub-hero::before { inset: 0 6% 0 auto; width: 13%; background: var(--garnet); transform: skew(-15deg); opacity: .28; }
.pub-hero::after, .pub-hero-in::before, .pub-hero-in::after { display: none; }
.pub-hero-in { padding: 30px 24px 32px; }
.pub-eyebrow { background: transparent; border: 0; padding: 0; text-transform: none; font-size: 14px; letter-spacing: 0; margin-bottom: 20px; color: #d3e2ef; }
.pub-hero h1 { font-size: clamp(36px, 5vw, 60px); gap: 10px 22px; }
.hero-when { margin-top: 16px; font-size: 20px; }
.hero-sub { font-size: 14px; }
.hero-cuenta { margin-top: 20px; gap: 8px; }
.cuenta-caja { min-width: 56px; padding: 8px; border-radius: 6px; }
.cuenta-caja b { font-size: 26px; }
.cuenta-caja small { font-size: 11px; text-transform: none; letter-spacing: 0; }
.pub-sec h2, .pub-col-main .pub-sec h2 { font-size: 32px; }
.pub-col-news > h2 { font-size: 40px; }
.news-card { box-shadow: none; }
.news-card:hover { transform: none; box-shadow: none; border-color: var(--primary); }
.news-card:hover .news-img img { transform: none; }
.pub-col-news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (min-width: 1000px) { .pub-col-news .news-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); } }
.news-card .news-img { display: block; aspect-ratio: 3 / 2; background: #00325a; }
.news-card .news-img img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transform: none; }
.news-poster .news-img img { object-fit: contain; }
.pub-col-news .news-card { min-width: 0; }
.pub-col-news .news-txt { flex: 1; padding: 20px 22px; }
.pub-col-news .news-card:not(.news-first) .news-txt strong { font-size: 30px; }
.pub-col-news .news-txt span { font-size: 14px; line-height: 1.65; }
@media (max-width: 639px) { .pub-col-news .news-grid { grid-template-columns: 1fr; } }
.news-txt small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-soft); }
.news-txt strong { line-height: 1.12; }
.pub-card { box-shadow: none; overflow-x: auto; }
.pub-col-main .pub-card { padding: 8px 12px; }
.pub-col-main .tabla-pos { font-size: 13px; }
.pub-col-main .tabla-pos th, .pub-col-main .tabla-pos td { padding: 10px 5px; }
.pub-col-main .tabla-leyenda { font-size: 12px; line-height: 1.6; }
.pub-col-main .match { padding: 14px; gap: 8px; }
.pub-col-main .match-teams { font-size: 18px; }
.pub-col-main .match-when small { font-size: 12px; }
.match-pages { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.match-pages > span { font-size: 12px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.match-pages .btn { padding: 7px 10px; }
.noticia-acciones { gap: 6px; }
.noticia-acciones .btn-cta { min-height: 32px; padding: 6px 10px; gap: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.2; border-radius: 4px; border: 0; background: var(--surface-2); box-shadow: none; }
.noticia-acciones .btn-cta:hover { background: var(--info-bg); }
.noticia-acciones .btn-cta svg { width: 15px; height: 15px; }
.noticia-modal .news-hero-img { height: auto; max-height: 540px; object-fit: contain; background: var(--surface-2); }
.noticia-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; padding: 12px 40px 24px; }
.noticia-galeria img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.noticia-galeria figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--text-soft); }
.noticia-compra { padding: 8px 40px 24px; }
.noticia-compra .btn { background: #0e7042; color: #fff; }
.noticia-compra svg { width: 18px; height: 18px; flex: none; }
.noticia-compra .icon-whatsapp, .noticia-acciones .icon-whatsapp { fill: currentColor; stroke: none; stroke-width: 0; }
.noticia-acciones #compartirBtn .icon-whatsapp path:first-child { fill: currentColor; stroke: none; stroke-width: 0; }
.noticia-compra p { color: var(--text-soft); font-size: 12px; margin-top: 10px; }
.noticia-talles { margin: 8px 40px 24px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
.noticia-talles summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.noticia-talles p { margin: 14px 0; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.noticia-talles table { border-collapse: collapse; min-width: 100%; margin: 12px 0; font-size: 13px; }
.noticia-talles caption { text-align: left; font-weight: 600; padding: 8px 0; }
.noticia-talles td, .noticia-talles th { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.noticia-talles th:first-child { text-align: left; }
.noticia-consulta { padding: 0 40px 24px; }
@media (max-width: 640px) { .noticia-talles { margin: 8px 18px 20px; padding: 12px; } .noticia-consulta { padding: 0 18px 20px; } }
@media (max-width: 640px) { .noticia-compra { padding: 8px 18px 20px; } }
@media (max-width: 640px) { .noticia-galeria { padding: 12px 18px 20px; } }
.pub-col-main .seg-btn { font-size: 13px; }
.pub .liga-toggle { position: relative; display: inline-flex; align-items: center; align-self: center; gap: 8px; min-height: 40px; margin-left: auto; cursor: pointer; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.liga-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.liga-toggle-track { width: 32px; height: 19px; flex: none; border: 1px solid var(--text-faint); border-radius: 20px; background: var(--surface-2); padding: 2px; }
.liga-toggle-track::after { content: ''; display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--text-soft); transition: transform .15s; }
.liga-toggle input:checked + .liga-toggle-track { background: var(--primary); border-color: var(--primary); }
.liga-toggle input:checked + .liga-toggle-track::after { transform: translateX(13px); background: var(--primary-text); }
.liga-toggle input:focus-visible + .liga-toggle-track { outline: 2px solid var(--focus); outline-offset: 4px; }
.pub-col-main .csel-btn { min-height: 44px; font-size: 14px; }
.csel-btn, .btn-sync { border-radius: 8px; }
.csel-oculto { min-width: 0 !important; max-width: 1px !important; }
.pub-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 20px; }
.pub-foot p { line-height: 1.7; }
.club-historia { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.club-fotos { margin-top: 44px; }
.agenda-side { min-width: 0; display: grid; gap: 24px; }
.pub-col-main .pub-sec.club-fotos { margin: 0; padding: 0; border: 0; background: transparent; }
.agenda-side .fotos-intro { margin: 8px 0 16px; font-size: 13px; }
.agenda-side .club-fotos-grid { gap: 14px; }
.agenda-side .club-fotos-grid:has(> figure:only-child) { grid-template-columns: 1fr; }
.agenda-side .club-fotos-grid:has(> figure:only-child) figure > img { aspect-ratio: 16 / 9; }
.agenda-side .club-fotos-grid figure > img { aspect-ratio: 1 / 1; }
.agenda-side .club-fotos-grid figcaption { padding: 12px; }
.agenda-side .club-fotos-grid h3 { font-size: 23px; }
.fotos-intro { color: var(--text-soft); margin: 12px 0 24px; }
.club-fotos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.club-fotos-grid figure { overflow: hidden; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.club-fotos-grid figure > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 40%; }
.club-fotos-grid .foto-indumentaria > img { object-fit: contain; background: #dedede; }
.club-fotos-grid figcaption { padding: 18px; }
.club-fotos-grid h3 { font-size: 25px; margin-bottom: 8px; }
.club-fotos-grid figcaption a, .club-fotos-grid figcaption p { font-size: 12px; color: var(--text-soft); line-height: 1.6; text-underline-offset: 3px; }
@media (max-width: 759px) { .club-fotos-grid { grid-template-columns: 1fr; } .club-fotos-grid figure > img { max-height: 460px; } }
.historia-contenido { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; margin-top: 24px; align-items: start; }
.historia-sede { min-width: 0; margin: 0; }
.historia-sede h3 { margin-bottom: 16px; }
.historia-sede img { display: block; width: 100%; height: auto; border-radius: 4px; }
.historia-sede figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--text-soft); }
.sede-archivo { margin-top: 18px; font-size: 13px; }
.sede-archivo summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.sede-obras { display: inline-block; margin-top: 18px; font-size: 13px; text-underline-offset: 4px; }
.sede-archivo img { margin-top: 16px; }
.pub .socio-solicitud { width: 100%; margin-top: 8px; }
.socio-solicitud summary { cursor: pointer; display: list-item; width: fit-content; background: #fff; color: #00325a; border-radius: 4px; padding: 12px 16px; font-size: 13px; font-weight: 600; }
.socio-solicitud form { display: grid; gap: 14px; margin-top: 20px; }
.socio-solicitud label { display: grid; gap: 6px; color: #fff; font-size: 13px; }
.socio-solicitud :is(input, select) { width: 100%; min-height: 44px; border: 1px solid #ffffff70; border-radius: 4px; padding: 10px; background: #fff; color: #0f1b2a; font: 14px var(--font-body); }
#elclub .socio-solicitud p { font-size: 12px; color: #d3dfeb; }
.historia-relato { min-width: 0; }
.historia-relato aside { margin-top: 24px; }
.historia-contenido p { max-width: 70ch; color: var(--text-soft); line-height: 1.75; margin: 12px 0; }
.historia-contenido h3 { font-size: 28px; }
.historia-contenido .historia-fecha { color: var(--accent); font-weight: 600; margin-top: 0; }
.historia-contenido aside { padding: 0 0 0 24px; border-left: 1px solid var(--line); background: transparent; }
.historia-contenido aside a { display: block; margin-top: 14px; text-underline-offset: 4px; }
.club-socio { border-top: 4px solid var(--accent); scroll-margin-top: 140px; }
.autoridades-lista { width: 100%; }
.autoridades-lista > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.autoridades-lista dt { color: var(--text-soft); font-size: 12px; }
.autoridades-lista dd { font-size: 15px; font-weight: 600; margin-top: 4px; }
.club-autoridades { grid-column: 1 / -1; }
/* El club: una invitación principal y datos de consulta compactos. */
#elclub .club-cards { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
#elclub .club-card { padding: 26px; border-radius: 8px; box-shadow: none; min-width: 0; gap: 14px; }
#elclub .club-card:hover { transform: none; }
#elclub .club-socio { grid-row: span 2; position: relative; overflow: hidden; background: #00325a; color: #fff; border: 0; padding: 36px; justify-content: center; align-items: flex-start; }
#elclub .club-socio::after { content: ''; position: absolute; bottom: -25px; right: -15px; width: 150px; height: 170px; background: url('/logo.svg?v=aprobado-2') center / contain no-repeat; opacity: .08; pointer-events: none; }
#elclub .club-socio h3 { color: #fff; font-size: 42px; max-width: 12ch; }
#elclub .club-socio p { color: #d3dfeb; font-size: 15px; line-height: 1.75; max-width: 43ch; }
#elclub .club-socio .btn, #elclub .club-socio .btn-cta { position: relative; margin-top: 12px; background: #fff; color: #00325a; border: 0; padding: 11px 18px; border-radius: 6px; font-size: 13px; }
#contactoClub, #elclub .club-documentos { grid-column: 2; }
#elclub .club-lista { gap: 14px; }
#elclub .club-lista a { overflow-wrap: anywhere; text-decoration: none; }
#elclub .club-lista a:hover { text-decoration: underline; }
#elclub .club-autoridades { padding: 24px 0 0; gap: 20px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#elclub .autoridades-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#elclub .autoridades-lista > div { padding: 0 20px 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
#elclub .autoridades-lista > div:last-child { border-right: 0; }
#elclub .autoridades-lista dt { font-size: 13px; margin-bottom: 8px; }
#elclub .autoridades-lista dd { font-size: 17px; }
#elclub .club-equipo { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 16px; padding: 28px 0 0; gap: 12px; background: transparent; }
#elclub .club-equipo h3 { font: 600 16px/1.4 var(--font-body); text-transform: none; letter-spacing: 0; }
#elclub .club-equipo p { font-size: 13px; margin: 0; }
.equipo-nombres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.equipo-nombres { width: 100%; }
.equipo-nombres li { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 759px) {
  #elclub .club-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #elclub .club-card { padding: 22px; }
  #elclub .club-socio { grid-row: auto; padding: 28px; }
  #contactoClub, #elclub .club-documentos { grid-column: auto; }
  #elclub .autoridades-lista { grid-template-columns: 1fr; gap: 16px; }
  #elclub .autoridades-lista > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
  #elclub .autoridades-lista > div:last-child { border-bottom: 0; padding-bottom: 0; }
  #elclub .club-equipo { margin-top: 12px; padding: 24px 0 0; }
  .equipo-nombres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 380px) { .equipo-nombres { grid-template-columns: 1fr; } }

/* Lectura y navegación pública en pantallas pequeñas. */
.pub .clima { white-space: normal; flex-wrap: wrap; line-height: 1.6; }
.pub .clima-lado h3 small { display: block; font-size: 10px; font-weight: 400; }
.pub :is(a, button, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
html[data-theme="dark"] .pub-main :is(.nos, .historia-contenido a, .club-contacto a) { color: #85bcf1; }
@media (max-width: 480px) {
  .pub .pub-col-main .clima-lado { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .pub .clima-lado h3 { flex-basis: auto; display: flex; justify-content: space-between; gap: 8px; }
  .pub .clima-lado .clima-dias { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pub .clima-lado .clima-dia { min-width: 0; padding: 5px 2px; }
  .pub .clima-lado .clima-dia b { font-size: 10px; }
  .pub .news-txt { padding: 18px; }
}
@media (max-width: 759px) { .historia-contenido { grid-template-columns: 1fr; gap: 20px; } }

/* Acceso: etiquetas persistentes y una salida clara hacia el sitio. */
.login-wrap { background: var(--navy); position: relative; padding: 40px 20px; }
.login-wrap::before { content: ''; position: absolute; inset: 0 auto 0 12%; width: 15%; background: var(--garnet); transform: skew(-14deg); opacity: .65; pointer-events: none; }
.login-card { position: relative; border-radius: 16px; padding: 36px; max-width: 420px; gap: 10px; }
.login-card .subtitle { display: block; }
.login-card label { font-size: 13px; font-weight: 600; margin-top: 4px; }
.login-card .login-intro { text-align: center; color: var(--text-soft); font-size: 14px; margin: 4px 0 12px; }
.login-back { text-align: center; margin-top: 12px; font-size: 14px; text-underline-offset: 4px; }
.login-error:empty { display: none; }
.login-error { padding: 10px; border-radius: 6px; background: var(--danger-bg); }
@media (min-width: 960px) {
  .tabs { justify-content: flex-start; margin: 0; padding: 8px 0; gap: 6px; box-shadow: none; }
  .tab-btn { border-radius: 8px; padding: 13px 20px; }
  .tab-btn.active { border-bottom-color: transparent; background: var(--navy); color: #fff; }
}
@media (min-width: 1000px) {
  .pub-cols { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .pub-col-news .news-first { flex-direction: column; }
  .pub-col-news .news-first .news-img { aspect-ratio: 16 / 9; flex: auto; min-height: 0; }
  .pub-col-news .news-first .news-txt { padding: 24px; }
}
@media (max-width: 759px) {
  .header-content { gap: 12px; }
  .header-user { margin-left: auto; }
  .header .public-link { display: none; }
  .logo h1 { font-size: 24px; }
  .shield-icon { width: 34px; }
  .hero { padding: 24px 20px; }
  .search-box > input, .search-box > select { flex: 1 1 100%; }
  .pub-top { padding: 0 16px; }
  .pub-top-in { flex-wrap: wrap; gap: 10px; min-height: 70px; }
  .pub-brand b { font-size: 23px; }
  .pub-nav { display: flex; order: 5; width: 100%; border-top: 1px solid var(--line); padding-top: 6px; }
  .pub-nav a { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; white-space: nowrap; }
  .pub-top .pub-redes { display: none; }
  .pub-access { font-size: 12px; }
  .pub-main { padding: 0 16px 36px; }
  .pub-intro { padding: 28px 0 24px; }
  .pub-intro p { font-size: 14px; }
  .pub-hero-in { padding: 26px 14px; }
  .pub-hero h1 .eq { font-size: .78em; }
  .pub-hero h1 .escudo { width: 40px !important; height: 44px !important; }
  .pub-col-main .match-teams { font-size: 18px; }
  .login-card { padding: 30px 24px; }
}

/* Portada editorial: noticias protagonistas y agenda deportiva diferenciada. */
.pub-top { background: #00325a; border-bottom: 3px solid #b8112f; }
.pub-top-in { background: transparent; min-height: 88px; }
.pub-brand, .pub-nav a, .pub-access { color: #fff; }
.pub-brand img { width: 44px; height: 58px; object-fit: contain; filter: none; }
.pub-brand b { font-size: 28px; }
.pub-brand small { color: #c8d6e5; }
.pub-nav a { font-size: 14px; }
.pub-nav a:hover { background: #ffffff18; color: #fff; }
.pub-top .red { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #fff; box-shadow: none; }
.pub-top .red:hover { background: #ffffff14; transform: none; }
.pub-top .pub-redes { gap: 4px; align-items: center; padding-right: 12px; border-right: 1px solid #ffffff30; }
.redes-menu { position: relative; color: #fff; }
.redes-menu summary { display: flex; align-items: center; gap: 4px; list-style: none; padding: 8px; border-radius: 6px; cursor: pointer; }
.redes-menu summary::-webkit-details-marker { display: none; }
.redes-menu summary:hover, .redes-menu[open] summary { background: #ffffff14; }
.redes-menu svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.redes-menu .redes-chevron { width: 12px; height: 12px; }
.redes-menu[open] .redes-chevron { transform: rotate(180deg); }
.redes-panel { position: absolute; top: calc(100% + 12px); right: 0; min-width: 260px; padding: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); }
.redes-panel p { color: var(--text-soft); font-size: 12px; margin: 2px 10px 8px; }
.redes-panel a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 5px; text-decoration: none; color: var(--text); font-size: 13px; white-space: nowrap; }
.redes-panel a:hover { background: var(--surface-2); }
.pub-access { padding: 9px 12px; border: 1px solid #ffffff60; border-radius: 4px; text-decoration: none; }
.pub-access:hover { background: #fff; color: #00325a; }
.pub-intro { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; }
.pub-intro p { margin: 0; font-weight: 600; font-size: 14px; color: var(--text); }
.pub-intro > span { color: var(--text-soft); font-size: 12px; }
.pub-feature { margin-bottom: 0; }
.pub-feature[hidden] { display: none; }
.feature-story { display: block; position: relative; isolation: isolate; width: 100%; min-height: 460px; overflow: hidden; border: 0; border-radius: 4px 4px 0 0; padding: 0; background: #00325a; color: #fff; cursor: pointer; text-align: left; font: inherit; }
.feature-art { position: absolute; inset: 0; z-index: -2; display: flex; justify-content: flex-end; align-items: center; padding-right: 12%; background: repeating-linear-gradient(90deg, #00325a 0 19%, #93152e 19% 34%, #00325a 34% 48%); }
.feature-crest { width: 210px; height: 250px; object-fit: contain; opacity: .62; transform: rotate(-8deg); }
.feature-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-story::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #001d36f2 0%, #001d36c9 40%, #001d3620 100%); }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 48px; max-width: 74%; gap: 18px; }
.feature-copy > small { background: #b8112f; color: #fff; border-radius: 3px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.feature-copy > strong { font: 800 clamp(42px, 5.3vw, 70px)/.98 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.feature-summary { max-width: 52ch; font-size: 15px; line-height: 1.7; color: #e3eaf2; }
.feature-read { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 2px solid #e24b62; font-size: 13px; font-weight: 600; }
.feature-read svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
.feature-story:hover .feature-read svg { transform: translateX(4px); }
.feature-story:focus-visible { outline-offset: 4px; }
.pub-hero { border-radius: 0 0 4px 4px; border-bottom: 0; border-top: 3px solid #b8112f; background: var(--surface); color: var(--text); margin-bottom: 44px; }
.pub-hero::before { display: none; }
.pub-hero-in { padding: 20px 28px; text-align: left; }
.pub-hero-in .pub-eyebrow { margin-bottom: 10px; }
#proximoBody { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.next-overview { min-width: 0; }
.pub-hero .next-overview h1 { justify-content: flex-start; font-size: clamp(28px, 3vw, 38px); }
.next-overview .hero-sub { max-width: 76ch; line-height: 1.6; }
.next-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 24px; }
.next-actions .hero-cuenta, .next-actions .hero-cta { margin: 0; }
.next-recent { margin-top: 10px; font-size: 12px; color: var(--text-soft); }
.next-recent summary { cursor: pointer; width: fit-content; }
.next-recent .hero-forma { justify-content: flex-start; font-size: 10px; margin-top: 10px; }
.next-recent .hero-ultimo { margin-top: 10px; }
@media (max-width: 759px) {
  #proximoBody { grid-template-columns: 1fr; gap: 16px; }
  .next-actions { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .historia-contenido aside { padding: 0; border-left: 0; }
}
.pub-eyebrow { color: var(--text-soft); margin-bottom: 8px; font-size: 12px; }
.pub-hero h1 { font-size: clamp(27px, 3.3vw, 40px); color: var(--text); }
.pub-hero .nos { color: var(--text); }
.pub-hero h1 .escudo { width: 34px !important; height: 36px !important; filter: none; }
.hero-when { font-size: 16px; margin-top: 8px; }
.hero-sub { color: var(--text-soft); opacity: 1; font-size: 12px; }
.hero-cta { margin-top: 12px; }
.hero-cta .btn-cta { background: var(--surface-2); color: var(--text); border-color: var(--line); border-radius: 4px; }
.hero-cta .btn-cta:hover { background: var(--info-bg); }
.hero-cuenta { margin-top: 12px; }
.cuenta-caja { background: var(--surface-2); border-color: var(--line); min-width: 44px; padding: 4px 8px; }
.cuenta-caja b { font-size: 22px; }
.hero-ultimo { background: var(--surface-2); border-color: var(--line); margin-top: 12px; font-size: 12px; }
.hero-forma { color: var(--text-soft); }
.pub-sec > h2, .pub-sec-head > h2 { position: relative; padding-left: 14px; }
.pub-sec > h2::before, .pub-sec-head > h2::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 0; width: 4px; background: var(--accent); }
.news-card { border-radius: 4px; }
.news-art { display: grid; place-items: center; min-height: 180px; background: repeating-linear-gradient(110deg, #00325a 0 25%, #93152e 25% 42%, #00325a 42% 65%); }
.news-art img { width: 76px; height: 90px; object-fit: contain; }
.pub-col-news .news-first .news-txt { padding: 24px; }
.pub-col-news .news-first .news-txt strong { font-size: 36px; }
.pub-col-main .pub-sec { padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; }
.pub-col-main .match { background: var(--surface-2); }
.pub-col-main .clima-lado { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0 0 4px; }
.pub-col-main .clima-lado[hidden] { display: none; }
.clima-lado h3 { flex: 0 0 76px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 11px; line-height: 1.4; }
.clima-lado .clima-dias { flex: 1; min-width: 0; gap: 6px; }
.clima-lado .clima-dia { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 2px; padding: 5px 4px; border-radius: 5px; }
.clima-dia b, .clima-dia .ll { grid-column: 1 / -1; }
.clima-dia .ic-clima { width: 16px; height: 16px; }
.clima-dia .t { font-size: 13px; }
.clima-dia small { display: none; }
.clima-dia .ll { font-size: 10px; margin-top: 0; padding: 0 4px; }
@media (max-width: 480px) { .pub-col-main .clima-lado { gap: 8px; padding: 8px; } .clima-lado h3 { flex-basis: 58px; font-size: 10px; } .clima-lado .clima-dias { gap: 2px; } }
.pub-foot { border-top: 4px solid #b8112f; background: #00325a; color: #d3dfeb; }
.pub-foot a, .pub-foot .red { color: #fff; }
.pub-foot .red { background: #ffffff0c; border-color: #ffffff30; }
.pub-foot { padding: 36px 24px 20px; text-align: left; }
.pub-foot-in { max-width: 1152px; margin: auto; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; }
.foot-identity { display: flex; align-items: flex-start; gap: 14px; }
.foot-identity > img { flex: none; object-fit: contain; }
.foot-identity b { color: #fff; font: 800 28px/1.1 var(--font-display); text-transform: uppercase; }
.foot-identity p { margin: 5px 0 6px; font-size: 13px; }
.foot-identity small { color: #b7c9dc; font-size: 12px; }
.foot-social h2, .foot-links h2 { font: 600 13px/1.4 var(--font-body); color: #b7c9dc; text-transform: none; letter-spacing: 0; margin: 0 0 14px; }
.pub-foot .pub-redes { display: grid; justify-content: start; gap: 12px; }
.pub-foot .red { border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 24px; height: auto; width: fit-content; background: transparent; font-size: 13px; font-weight: 500; }
.pub-foot .red:hover { transform: none; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.pub-foot .red svg { width: 17px; height: 17px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-links h2 { margin-bottom: 2px; }
.foot-links a { font-size: 13px; text-decoration: none; text-underline-offset: 4px; }
.foot-links a:hover { text-decoration: underline; }
.pub-foot .foot-bottom { max-width: 1152px; margin: 28px auto 0; border-top: 1px solid #ffffff25; padding-top: 16px; font-size: 12px; color: #b7c9dc; }
@media (max-width: 759px) {
  .pub-foot { padding: 28px 20px 18px; }
  .pub-foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 16px; }
  .foot-identity { grid-column: 1 / -1; }
  .pub-foot .red { font-size: 12px; }
  .pub-foot .red span { overflow-wrap: anywhere; }
  .foot-links a { font-size: 12px; }
}
@media (min-width: 1000px) {
  .pub-cols { display: block; }
  .pub-col-news { margin-bottom: 36px; }
  .pub-col-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .pub-col-main .pub-sec { margin-bottom: 0; }
}
@media (max-width: 759px) {
  .pub-top-in { min-height: 72px; }
  .pub-brand img { width: 36px; height: 40px; }
  .pub-brand b { font-size: 23px; }
  .pub-nav { border-color: #ffffff30; }
  .pub-nav a { font-size: 13px; }
  .pub-intro { padding: 16px 0; }
  .pub-intro p { font-size: 12px; }
  .pub-intro > span { display: none; }
  .feature-story { min-height: 400px; }
  .feature-copy { max-width: 100%; padding: 32px 24px; gap: 16px; }
  .feature-copy > strong { font-size: clamp(40px, 10vw, 56px); max-width: 15ch; }
  .feature-summary { font-size: 14px; }
  .feature-art { padding-right: 8%; }
  .feature-crest { width: 150px; opacity: .3; }
  .feature-story::after { background: linear-gradient(90deg, #001d36ed, #001d3680); }
  .pub-hero h1 { gap: 6px 12px; }
  .pub-hero h1 .eq { font-size: .9em; }
  .pub-hero-in { padding: 20px 12px; }
  .pub-col-main .pub-sec { padding: 16px; }
}
