/* ============================================================
   CLÁSICA 2026 — Participante
   Design system portado de SEP-GROUP, con la paleta
   institucional de la Clásica (pino / latón / papel / oxblood).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta institucional Clásica */
  --primary:        #14231c;   /* pino */
  --primary-2:      #10201a;
  --primary-3:      #0b1712;
  --primary-light:  #1e3327;
  --primary-soft:   rgba(20, 35, 28, 0.08);

  --accent:         #b08d3f;   /* latón */
  --accent-2:       #98772f;
  --accent-light:   #d8bd7f;
  --accent-soft:    rgba(176, 141, 63, 0.16);

  /* Semánticos */
  --ok:    #2f6b3f;
  --error: #7c2b2b;   /* oxblood */
  --warn:  #b0781f;
  --info:  #2c5a4a;

  /* Neutros — papel institucional */
  --bg-base:   #f6f2e7;   /* papel */
  --bg-soft:   #ece6d4;
  --bg-card:   #fffdf8;
  --text-main: #20302a;   /* tinta */
  --text-soft: #4d5a4f;
  --text-muted:#8a8266;

  --border:        rgba(20, 35, 28, 0.12);
  --border-strong: rgba(20, 35, 28, 0.22);
  --linea:         #e4dfce;
  --scrim:         rgba(11, 23, 18, 0.55);

  --sh-sm: 0 1px 3px rgba(11, 23, 18, 0.10);
  --sh-md: 0 4px 16px rgba(11, 23, 18, 0.12);
  --sh-lg: 0 12px 32px rgba(11, 23, 18, 0.18);
  --sh-xl: 0 24px 48px rgba(11, 23, 18, 0.22);

  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --container-max: 720px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset / base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: var(--font-body); color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(20,35,28,0.10), transparent 42%),
    var(--bg-base);
}
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 0.85rem; }
.center { text-align: center; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; }

.shell { max-width: var(--container-max); margin: 0 auto; padding: 0 14px calc(24px + var(--safe-bottom)); }

/* ── Vistas ─────────────────────────────────────────────── */
.view { display: none; animation: viewIn 0.34s cubic-bezier(0.32, 1, 0.56, 1); }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Loader iOS (12 barritas) ───────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--scrim); backdrop-filter: blur(3px);
  transition: opacity .2s;
}
.loader.hidden { opacity: 0; pointer-events: none; display: flex !important; }
.loader__icon { width: 64px; height: 64px; border-radius: 18px; object-fit: contain; background: var(--bg-card); padding: 8px; box-shadow: var(--sh-lg); }
.spinner { position: relative; width: 56px; height: 56px; }
.spinner i {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 14px; margin: -7px 0 0 -2px;
  background: var(--accent); border-radius: 2px; opacity: .15; animation: spinFade 1s linear infinite;
}
.spinner i:nth-child(1){transform:rotate(0deg) translateY(-18px);animation-delay:-.92s}
.spinner i:nth-child(2){transform:rotate(30deg) translateY(-18px);animation-delay:-.83s}
.spinner i:nth-child(3){transform:rotate(60deg) translateY(-18px);animation-delay:-.75s}
.spinner i:nth-child(4){transform:rotate(90deg) translateY(-18px);animation-delay:-.67s}
.spinner i:nth-child(5){transform:rotate(120deg) translateY(-18px);animation-delay:-.58s}
.spinner i:nth-child(6){transform:rotate(150deg) translateY(-18px);animation-delay:-.50s}
.spinner i:nth-child(7){transform:rotate(180deg) translateY(-18px);animation-delay:-.42s}
.spinner i:nth-child(8){transform:rotate(210deg) translateY(-18px);animation-delay:-.33s}
.spinner i:nth-child(9){transform:rotate(240deg) translateY(-18px);animation-delay:-.25s}
.spinner i:nth-child(10){transform:rotate(270deg) translateY(-18px);animation-delay:-.17s}
.spinner i:nth-child(11){transform:rotate(300deg) translateY(-18px);animation-delay:-.08s}
.spinner i:nth-child(12){transform:rotate(330deg) translateY(-18px);animation-delay:0s}
@keyframes spinFade { 0% { opacity: 1; } 100% { opacity: .15; } }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 0.95rem; font-family: var(--font-body); letter-spacing: .2px;
  border: 1.5px solid transparent;
  transition: transform .1s, box-shadow .18s, background .18s, color .18s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--bg-card); box-shadow: 0 4px 14px rgba(20,35,28,.32);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(20,35,28,.42); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--primary); box-shadow: 0 4px 14px rgba(176,141,63,.34);
}
.btn-ghost { background: var(--bg-card); color: var(--text-soft); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--primary); border-color: var(--primary); }
.btn-danger { background: var(--error); color: #fff; }

/* ── Login ──────────────────────────────────────────────── */
.login-wrap { min-height: auto; display: flex; align-items: center; justify-content: center; padding: 6vh 20px 0; }
.login-card {
  background: var(--bg-card); border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  padding: 32px 28px; width: 100%; max-width: 430px; text-align: center;
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.login-logo {
  width: 104px; height: 104px; border-radius: 50%; margin: 4px auto 12px;
  object-fit: contain; padding: 14px; background: var(--primary);
  box-shadow: var(--sh-md); border: 3px solid var(--bg-card);
}
.login-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; margin: 8px 0 2px; }
.login-sub { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }

.login-tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 4px; border-radius: var(--r-pill); margin: 20px 0 16px; }
.login-tab { flex: 1; padding: 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.85rem; color: var(--text-soft); background: transparent; transition: all .18s; }
.login-tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(20,35,28,.22); }

.login-pane { display: none; }
.login-pane.active { display: block; animation: viewIn .28s ease; }

/* PIN pad */
.pin-hint { font-size: .8rem; color: var(--text-muted); margin: 2px 0 8px; font-weight: 600; }
.pin-pad { display: flex; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--border-strong); transition: all .15s; }
.pin-dot.filled { background: var(--accent); border-color: var(--accent-2); transform: scale(1.12); }
.pin-keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px auto 0; max-width: 280px; }
.pin-key {
  aspect-ratio: 1.5; border-radius: var(--r-md); background: var(--bg-card);
  border: 1.5px solid var(--border); font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 700; color: var(--primary); transition: all .12s;
  display: inline-flex; align-items: center; justify-content: center;
}
.pin-key:hover { background: var(--primary-soft); }
.pin-key:active { background: var(--primary); color: #fff; transform: scale(.94); }
.pin-key.action { font-size: 1.4rem; background: transparent; border-color: transparent; color: var(--text-muted); }

/* ── Formularios ────────────────────────────────────────── */
label { display: block; text-align: left; margin: 8px 2px 6px; font-weight: 700; font-size: .82rem; color: var(--text-soft); letter-spacing: .02em; }
input, textarea, select {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: var(--font-body);
  border-radius: var(--r-md); border: 1.5px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-main); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=file] { padding: 10px; font-size: .9rem; }
.input-wrap { position: relative; }
.eye-btn { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); background: transparent; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-muted); }
.eye-btn:hover { color: var(--primary); }
.eye-btn svg { width: 22px; height: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fld { display: flex; flex-direction: column; }
.fld label { margin: 0 2px 6px; }
.fld-full { grid-column: 1 / -1; }
.nota-menor { grid-column: 1 / -1; background: var(--bg-soft); border: 1px solid var(--accent-light); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 10px 12px; font-size: .82rem; color: var(--text-main); line-height: 1.45; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* checkbox custom (consentimiento) */
.check-line {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 13px 14px; margin: 10px 0; cursor: pointer; transition: border-color .15s, background .15s;
}
.check-line:hover { border-color: var(--accent-2); }
.check-line.on { border-color: var(--accent-2); background: var(--accent-soft); }
.check-line input { display: none; }
.check-box {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px;
  border: 2px solid var(--border-strong); background: var(--bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: all .15s;
}
.check-line.on .check-box { background: var(--accent); border-color: var(--accent-2); color: var(--primary); }
.check-box svg { width: 15px; height: 15px; }
.check-txt { font-size: .9rem; color: var(--text-soft); line-height: 1.4; font-weight: 500; }

/* ── App header con botón Atrás ─────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; margin-bottom: 6px;
  background: rgba(246,242,231,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-header__back {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); transition: background .15s, color .15s;
}
.app-header__back:hover { background: var(--primary); color: #fff; }
.app-header__back svg { width: 22px; height: 22px; }
.app-header__banner { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; }
.app-header__banner img { max-height: 40px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.app-header__title { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.02rem,4vw,1.2rem); color: var(--primary); margin: 0; }

/* ── Tarjetas ───────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--linea); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-sm);
}
.card h2, .card h3 { color: var(--primary); font-family: var(--font-display); }
.card h2 { font-size: 1.2rem; margin: 0 0 4px; }
.card h3 { font-size: 1.02rem; margin: 0 0 12px; }
.section-label { font-family: var(--font-display); font-weight: 800; color: var(--primary); margin: 6px 2px 8px; font-size: 1.05rem; }

/* ── Inicio: welcome bar ────────────────────────────────── */
.welcome-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 18px 20px; margin: 12px 0 16px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.welcome-bar::after {
  content: ''; position: absolute; top: -42%; right: -10%; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .22; pointer-events: none;
}
.welcome-bar__avatar {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--accent); background: rgba(255,255,255,.16); flex-shrink: 0; z-index: 1;
}
.welcome-bar__info { flex: 1; min-width: 0; z-index: 1; }
.welcome-bar__hello { font-size: .78rem; font-weight: 600; opacity: .82; }
.welcome-bar__name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welcome-bar__rol { display: inline-block; background: var(--accent); color: var(--primary); padding: 2px 11px; border-radius: var(--r-pill); font-size: .66rem; font-weight: 800; letter-spacing: .6px; margin-top: 5px; text-transform: uppercase; }
.welcome-bar__logout { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; transition: background .15s; }
.welcome-bar__logout:hover { background: rgba(124,43,43,.55); }
.welcome-bar__logout svg { width: 20px; height: 20px; }

/* ── Countdown ──────────────────────────────────────────── */
.countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; text-align: center; }
.countdown .box { background: var(--primary); color: #fff; border-radius: var(--r-md); padding: 14px 4px; }
.countdown .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.countdown .l { font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-light); margin-top: 4px; }

/* ── Grid de datos ──────────────────────────────────────── */
.datos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.datos-grid .item { background: var(--bg-soft); border: 1px solid var(--linea); border-radius: var(--r-md); padding: 11px 12px; }
.datos-grid .item .k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.datos-grid .item .v { font-size: 1.05rem; font-weight: 700; color: var(--primary); font-family: var(--font-display); }

.cat-hero { display: flex; align-items: center; gap: 12px; }
.cat-hero img { height: 52px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.card-head h3 { margin: 0; }
.cat-icono { height: 50px; width: 50px; object-fit: contain; border-radius: var(--r-md); flex: none; background: var(--bg-soft); border: 1px solid var(--linea); padding: 4px; }
.cat-hero .v { font-weight: 700; color: var(--primary); }

.badge { display: inline-block; margin-top: 4px; background: var(--accent); color: var(--primary); padding: 4px 14px; border-radius: var(--r-pill); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }

.acciones { display: grid; gap: 10px; }

.date-btn {
  width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong); background: var(--bg-card); color: var(--text-main);
  font-family: var(--font-body); font-size: 1rem; display: flex; align-items: center; gap: 10px;
}
.date-btn:hover { border-color: var(--accent-2); }
.date-btn svg { width: 20px; height: 20px; color: var(--accent-2); }
.date-live { margin-top: 6px; font-size: .82rem; color: var(--text-soft); font-weight: 600; }

/* ── Resumen ────────────────────────────────────────────── */
.resumen div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--linea); }
.resumen .k { color: var(--accent-2); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.resumen .v { font-weight: 700; text-align: right; color: var(--primary); }

/* ── Comunicados ────────────────────────────────────────── */
#comunicadosList .com { border: 1px solid var(--linea); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; background: var(--bg-card); }
#comunicadosList .com.dest { border-color: var(--accent); background: var(--accent-soft); }
#comunicadosList .com h4 { color: var(--primary); margin: 0 0 4px; font-family: var(--font-display); }
#comunicadosList .com .fecha { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
#comunicadosList .com img { max-width: 100%; border-radius: 8px; margin-top: 8px; }

.brand-banner { display: flex; justify-content: center; align-items: center; padding: 10px 16px 0; }
.brand-banner img { max-width: 100%; max-height: 64px; width: auto; object-fit: contain; }
.foot { text-align: center; padding: 14px; font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }

/* ── Instalación PWA ────────────────────────────────────── */
.install-steps { text-align: left; margin: 14px 0; }
.install-steps li { margin: 8px 0; color: var(--text-soft); font-weight: 500; }

/* ── Modales propios (flujo de registro) ────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 9000; background: var(--scrim); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: viewIn .2s ease; }
.modal-overlay.hidden { display: none; }
.modal-card { background: var(--bg-card); border-radius: var(--r-xl); box-shadow: var(--sh-xl); width: min(640px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); position: relative; }
.modal-head::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); }
.modal-head h2 { font-family: var(--font-display); font-size: 1.12rem; color: var(--primary); margin: 0; }
.modal-body { padding: 20px 22px; overflow-y: auto; text-align: left; }
.modal-body :is(p,li) { line-height: 1.5; }
.modal-doc { font-size: .92rem; color: var(--text-soft); text-align: justify; text-justify: inter-word; }
@keyframes shakeX { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.check-line.shake { animation: shakeX .4s; border-color: var(--accent); }
.modal-doc h1, .modal-doc h2, .modal-doc h3 { color: var(--primary); font-family: var(--font-display); }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.modal-foot .btn { min-width: 120px; }
@media (max-width: 480px) { .modal-foot { flex-direction: column-reverse; } .modal-foot .btn { width: 100%; } }

/* ── Selector fecha iOS (nacimiento) ────────────────────── */
.iosp-overlay { position:fixed; inset:0; z-index:9500; background:var(--scrim); backdrop-filter:blur(6px);
  display:flex; align-items:flex-end; justify-content:center; animation:viewIn .2s ease; }
.iosp-overlay.hidden { display:none; }
.iosp-card { background:linear-gradient(180deg,var(--bg-card),var(--bg-soft)); width:100%; max-width:480px;
  border-radius:24px 24px 0 0; box-shadow:var(--sh-xl); padding-bottom:calc(16px + var(--safe-bottom)); overflow:hidden; }
@media(min-width:520px){ .iosp-overlay{ align-items:center; } .iosp-card{ border-radius:24px; } }
.iosp-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--border); }
.iosp-title { font-family:var(--font-display); font-weight:800; font-size:1rem; color:var(--primary); }
.iosp-btn { font-weight:700; font-size:.95rem; color:var(--text-soft); padding:6px 10px; background:transparent; }
.iosp-btn.ok { color:var(--primary); background:var(--accent); border-radius:var(--r-pill); padding:8px 18px; }
.iosp-live { text-align:center; padding:10px 12px 2px; font-family:var(--font-display); font-weight:700; color:var(--primary); font-size:1rem; }
.iosp-wheels { position:relative; display:flex; height:220px; padding:0 10px; }
.iosp-highlight { position:absolute; left:10px; right:10px; top:50%; transform:translateY(-50%);
  height:42px; background:var(--primary-soft); border-radius:12px; pointer-events:none; z-index:0; }
.iosp-col { flex:1; overflow-y:scroll; scroll-snap-type:y mandatory; text-align:center;
  -ms-overflow-style:none; scrollbar-width:none; position:relative; z-index:1;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);
          mask-image:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent); }
.iosp-col::-webkit-scrollbar { display:none; }
.iosp-item { height:42px; line-height:42px; scroll-snap-align:center; font-size:1.06rem; font-weight:600;
  color:var(--text-muted); transition:color .12s, transform .12s; cursor:pointer; }
.iosp-item.sel { color:var(--primary); font-weight:800; transform:scale(1.08); }
.iosp-pad { height:89px; } /* (220-42)/2 ≈ 89 para centrar extremos */
.iosp-collabel { display:flex; padding:6px 10px 0; }
.iosp-collabel span { flex:1; text-align:center; font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color:var(--accent-2); font-weight:700; }
.iosp-nav { display:flex; padding:2px 10px; gap:0; }
.iosp-arrow { flex:1; background:transparent; border:none; cursor:pointer; font-size:1rem; line-height:1;
  padding:8px 0; color:var(--primary); border-radius:8px; transition:background .12s, opacity .12s; opacity:.7; }
.iosp-arrow:hover { background:var(--primary-soft); opacity:1; }
.iosp-arrow:active { transform:translateY(1px); }

/* ── SweetAlert2 tematizado ─────────────────────────────── */
.swal2-popup { border-radius: var(--r-xl) !important; font-family: var(--font-body) !important; }
.swal2-title { font-family: var(--font-display) !important; color: var(--primary) !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; border-radius: var(--r-md) !important; }
.swal2-styled.swal2-cancel { background: var(--error) !important; border-radius: var(--r-md) !important; }

/* ===== Comunicados: badge de no leídos, cuerpo y compartir ===== */
.com-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  background: #c0392b; color: #fff; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 800; line-height: 1; vertical-align: middle;
}
.com-badge.hidden { display: none; }

#comunicadosList .com .com-cuerpo { color: var(--text-main); line-height: 1.5; margin-bottom: 10px; }

#comunicadosList .btn-compartir {
  display: inline-flex; align-items: center; gap: 8px; width: auto;
  padding: 8px 14px; margin-top: 4px; font-size: .85rem;
}
#comunicadosList .btn-compartir svg { width: 18px; height: 18px; }

.share-menu { display: grid; gap: 10px; margin-top: 6px; }
.share-menu .btn-block { width: 100%; }
