/* @RAFA092 · Buscador y fichas de convocatorias */
.cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--papel); border-bottom: 1px solid var(--linea); }
.cifras li { padding: 22px 12px; text-align: center; border-left: 1px solid var(--linea); }
.cifras li:first-child { border-left: 0; }
.cifras b { display: block; font: 800 40px/1 var(--display); color: var(--marino); }
.cifras span { font-size: 14.5px; color: var(--texto-2); }

.buscador { padding: 36px 0 56px; }
.filtros { display: grid; gap: 14px; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; padding: 18px; }
@media (min-width: 720px) { .filtros { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 22px; } }
.resultado { margin-top: 22px; font-weight: 700; color: var(--texto-2); }
.lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .lista { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lista { grid-template-columns: repeat(3, 1fr); } }
.conv[hidden] { display: none; }
.conv a { display: grid; gap: 8px; height: 100%; text-decoration: none; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; padding: 18px 18px 16px; transition: border-color .15s, box-shadow .15s; }
.conv a:hover { border-color: var(--marino); box-shadow: 0 6px 20px rgba(11,26,48,.08); }
.conv-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prov { font-size: 14px; font-weight: 600; color: var(--texto-2); }
.conv-nom { font: 800 27px/1.05 var(--display); color: var(--marino); }
.conv-plazas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; color: var(--texto-2); font-size: 15.5px; }
.conv-plazas b { font: 800 22px/1 var(--display); color: var(--marino); }
.chip { font-size: 13px; font-weight: 600; background: var(--hielo); border: 1px solid var(--linea); border-radius: 999px; padding: 2px 9px; color: var(--texto); }
.conv-clave { font-size: 15px; font-weight: 600; color: var(--texto); border-top: 1px solid var(--linea); padding-top: 10px; margin-top: 2px; }

.estado { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.estado.abierto { background: #DCFCE7; color: #00652A; }
.estado.bases { background: #E0ECFA; color: #14294A; }
.estado.examen { background: #FEF3C7; color: #8A5A00; }
.estado.cerrado { background: #EEF1F5; color: #46556B; }

.vacio { margin-top: 18px; color: var(--texto-2); }
.aviso { margin-top: 30px; background: var(--papel); border: 1px solid var(--linea); border-left: 4px solid var(--marino); border-radius: 12px; padding: 18px 20px; max-width: 52em; }
.aviso b { display: block; font: 700 19px/1.2 var(--display); color: var(--marino); margin-bottom: 6px; }
.aviso p + p { margin-top: 8px; }
.aviso .act { font-size: 14px; color: var(--texto-2); }

.bloque-sec { padding: 44px 0 56px; }
.bloque-sec h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.bloque-sec h2.sep { margin-top: 40px; }
.bloque-sec .intro { margin-top: 12px; font-size: 17.5px; color: var(--texto-2); max-width: 42em; }
.ficha { margin-top: 18px; width: 100%; border-collapse: collapse; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.ficha th, .ficha td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); font-size: 16px; }
.ficha th { width: 34%; background: var(--marino); color: #fff; font: 700 16.5px/1.3 var(--display); letter-spacing: .01em; border-bottom-color: rgba(255,255,255,.12); }
.ficha tr:last-child th, .ficha tr:last-child td { border-bottom: 0; }
.ficha small { color: var(--texto-2); font-size: 14px; }
.ficha b { font-weight: 700; }
.nota-aprox { color: var(--texto-2); font-size: 14px; }
@media (max-width: 560px) {
  .ficha tr { display: block; border-bottom: 1px solid var(--linea); }
  .ficha th, .ficha td { display: block; width: auto; border: 0; }
  .ficha th { padding: 9px 14px; }
  .ficha td { padding: 10px 14px 12px; }
}
.boletines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.boletines li { background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; }
.boletines a, .boletines li:not(:has(a)) { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; text-decoration: none; }
.boletines a { color: var(--marino); }
.boletines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.boletines .f { font-weight: 500; color: var(--texto-2); white-space: nowrap; }
.relacionadas { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.relacionadas .btn { padding: 11px 16px; font-size: 15.5px; }
.volver { margin-top: 30px; font-weight: 600; }
.volver a { color: var(--verde); }

/* Avisos por correo */
.avisos { padding: 0 0 56px; }
.av-caja { display: grid; gap: 22px; background: var(--marino); color: #fff; border-radius: 18px; padding: 26px 22px; }
@media (min-width: 900px) { .av-caja { grid-template-columns: 1fr 1.25fr; gap: 40px; padding: 36px; align-items: start; } }
.av-caja h2 { font-size: clamp(28px, 4.6vw, 38px); font-weight: 800; }
.av-txt p { margin-top: 10px; color: rgba(255,255,255,.78); }
.av-caja form { display: grid; gap: 14px; }
.av-caja .et { color: #fff; }
.av-caja .campo input { border-color: transparent; }
.av-provs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.av-provs legend { margin-bottom: 8px; font-weight: 600; font-size: 15.5px; }
.av-prov { cursor: pointer; }
.av-prov input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-prov span { display: inline-block; font-size: 15px; font-weight: 600; padding: 8px 13px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.av-prov input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; }
.av-prov input:focus-visible + span { outline: 3px solid var(--verde-claro); outline-offset: 2px; }
.av-caja .check { color: rgba(255,255,255,.85); margin-top: 0; }
.av-caja .check a { color: #fff; }
.av-caja .btn { justify-self: start; }
.av-msg { grid-column: 1 / -1; font-weight: 600; border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,.08); }
.av-msg.ok { background: rgba(74,222,128,.16); color: #BBF7D0; }
.av-msg.error { background: rgba(201,42,42,.22); color: #FECACA; }

/* Últimas novedades (volcado del parte de Telegram) */
.novedades-sec { padding: 40px 0 0; }
.novedades-sec h2 { font-size: clamp(28px, 4.6vw, 38px); font-weight: 800; }
.novedades { list-style: none; margin: 16px 0 0; padding: 0; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.novedades li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--linea); font-size: 16px; line-height: 1.45; }
.novedades li:last-child { border-bottom: 0; }
.novedades .f { font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.novedades a { color: var(--marino); }
.novedades a.bol { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.tg { margin-top: 12px; font-size: 15px; color: var(--texto-2); }
.tg a { color: var(--verde); font-weight: 700; }
@media (max-width: 520px) { .novedades li { grid-template-columns: 1fr; gap: 2px; } }
