:root {
  --azul: #0f2a4a;
  --azul-2: #1d4f8c;
  --acento: #f2a516;
  --acento-osc: #c98400;
  --texto: #14213d;
  --suave: #5b6b82;
  --linea: #e1e7ef;
  --fondo: #f5f7fb;
  --blanco: #fff;
  --verde: #12805c;
  --verde-f: #e5f5ee;
  --rojo: #b42318;
  --rojo-f: #fdecea;
  --naranja: #b54708;
  --naranja-f: #fff3e0;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(15, 42, 74, .06), 0 4px 16px rgba(15, 42, 74, .06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--azul-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
img { max-width: 100%; }
.envoltorio { width: min(1120px, 100% - 32px); margin-inline: auto; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--acento); padding: 8px 12px; z-index: 10; border-radius: 8px; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

/* Cabecera */
.cabecera { background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 5; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.marca__icono { width: 34px; height: 34px; display: block; border-radius: 8px; }
.marca__texto span { color: var(--acento); font-weight: 600; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a { color: #dbe6f5; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu__libro { background: var(--acento); color: var(--azul) !important; }
.menu__libro:hover { background: #ffc04a !important; }

/* Portada */
.portada { background: linear-gradient(160deg, var(--azul) 0%, #173e6d 70%, #1d4f8c 100%); color: #fff; padding: 48px 0 56px; }
.portada h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 800; max-width: 22ch; }
.portada__antetitulo { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--acento); margin: 0 0 10px; }
.portada__sub { color: #cfdcef; font-size: 1.1rem; max-width: 60ch; margin: 0 0 28px; }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.cifra { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); padding: 14px 16px; }
.cifra strong { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; }
.cifra span { color: #cfdcef; font-size: .88rem; }
.actualizado { color: #a9bcd8; font-size: .9rem; margin: 18px 0 0; }

/* Buscador */
.buscador { margin-top: -28px; position: relative; padding-bottom: 40px; }
.buscador__caja { position: relative; }
.buscador__caja input { width: 100%; font: inherit; font-size: 1.08rem; padding: 18px 18px 18px 52px; border-radius: var(--radio); border: 1px solid var(--linea); background: #fff; box-shadow: 0 8px 30px rgba(15, 42, 74, .18); }
.buscador__lupa { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--suave); }
.filtros { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px 18px; margin-top: 14px; box-shadow: var(--sombra); }
.filtro { border: 0; padding: 0; margin: 0; min-width: 0; }
.filtro legend, .filtro > span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--suave); margin-bottom: 6px; }
select, input[type=email], input[type=text] { font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; color: var(--texto); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .92rem; border: 1px solid var(--linea); background: var(--fondo); color: var(--texto); padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--azul-2); }
.chip[aria-pressed="true"] { background: var(--azul); color: #fff; border-color: var(--azul); }
.chips--peq .chip { font-size: .85rem; padding: 5px 10px; }
.chips--peq .chip__n { display: none; }
.enlace { background: none; border: 0; font: inherit; color: var(--azul-2); text-decoration: underline; cursor: pointer; padding: 0; }

.resultados { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ficha { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px 18px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 6px; }
.ficha__cabeza { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ficha__etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha__seguir { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--suave); padding: 2px 4px; }
.ficha__seguir.activo { color: var(--acento); }
.ficha__titulo { font-size: 1.12rem; margin: 4px 0 0; }
.ficha__lugar { color: var(--suave); margin: 0; font-size: .92rem; }
.ficha__resumen { margin: 4px 0; font-weight: 600; }
.ficha__datos { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 6px 0; font-size: .9rem; }
.ficha__datos dt { color: var(--suave); }
.ficha__datos dd { margin: 0; }
.ficha__mas { font-size: .85rem; color: var(--suave); }
.ficha__mas summary { cursor: pointer; }
.ficha__acciones { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.ficha--anuncio { background: linear-gradient(150deg, #fff8e8, #fff); border-color: #f6d48b; }
.ficha--anuncio h3 { margin: 0; }
.ficha--anuncio p { margin: 0; }
.vacio { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--linea); border-radius: var(--radio); padding: 30px; text-align: center; color: var(--suave); }

.etq { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--fondo); color: var(--texto); white-space: nowrap; }
.etq--cat { background: #e8eefb; color: var(--azul); }
.etq--bomberos { background: #fdecea; color: #9a1c13; }
.etq--guardia-civil { background: #e7f4ea; color: #1b5e34; }
.etq--fuerzas-armadas { background: #eef0e3; color: #4b5320; }
.etq--forestales { background: #e6f4ea; color: #276749; }
.etq--emergencias { background: #fff1e6; color: #a84a00; }
.etq--tipo { background: #f1f3f7; color: var(--suave); }
.etq--convocatoria, .etq--oep { background: #edf3ff; color: var(--azul-2); }
.etq--abierta { background: var(--verde-f); color: var(--verde); }
.etq--pronto { background: var(--naranja-f); color: var(--naranja); }
.etq--cerrada { background: var(--rojo-f); color: var(--rojo); }
.etq--nueva { background: var(--acento); color: var(--azul); }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--azul); color: #fff; border: 1px solid var(--azul); font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.boton:hover { background: var(--azul-2); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton--secundario { background: #fff; color: var(--azul); }
.boton--secundario:hover { background: var(--fondo); }
.boton--peq { padding: 7px 12px; font-size: .9rem; border-radius: 8px; }
.boton--telegram { background: #229ed9; border-color: #229ed9; }
.boton--telegram:hover { background: #1b87bb; }
.mas { text-align: center; margin: 20px 0 6px; }
.aviso-legal { color: var(--suave); font-size: .88rem; max-width: 80ch; margin: 22px auto 0; background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--acento); border-radius: 12px; padding: 14px 18px; }
.aviso-legal p { margin: 0 0 8px; }
.aviso-legal p:last-child { margin: 0; }

/* Libro */
.libro { background: var(--azul); color: #fff; padding: 56px 0; }
.libro__fila { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.libro__texto p { color: #cfdcef; font-size: 1.05rem; max-width: 60ch; }
.libro__texto strong { color: #fff; }
.libro__texto h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.libro__botones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.libro .boton { background: var(--acento); border-color: var(--acento); color: var(--azul); }
.libro .boton:hover { background: #ffc04a; }
.libro .boton--secundario { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.libro__portada { position: relative; width: 210px; aspect-ratio: 210 / 297; margin-inline: auto; transform: perspective(900px) rotateY(-14deg); filter: drop-shadow(18px 22px 30px rgba(0, 0, 0, .45)); }
.libro__lomo { position: absolute; inset: 0 auto 0 0; width: 12px; background: #0a1c33; border-radius: 4px 0 0 4px; }
.libro__tapa { position: absolute; inset: 0 0 0 10px; background: linear-gradient(170deg, #fff 0%, #f1f4f9 100%); color: var(--azul); border-radius: 0 6px 6px 0; padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.libro__tapa small { font-weight: 700; color: var(--acento-osc); letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.libro__tapa strong { font-size: 1.7rem; line-height: 1.05; margin-top: 18px; color: var(--azul); }
.libro__tapa span { font-weight: 600; color: var(--azul-2); }
.libro__tapa em { margin-top: auto; font-style: normal; font-size: .8rem; color: var(--suave); }

/* Avisos */
.avisos { padding: 56px 0 24px; }
.avisos__intro { color: var(--suave); max-width: 60ch; }
.avisos__rejilla { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 18px; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.tarjeta h3 { font-size: 1.1rem; }
.otros-avisos h3:not(:first-child) { margin-top: 24px; }
.otros-avisos p { color: var(--suave); }
.campo { display: block; border: 0; padding: 0; margin: 0 0 14px; }
.campo > span, .campo legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.campo small { font-weight: 400; color: var(--suave); }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--suave); margin: 4px 0 16px; }
.casilla input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--azul); flex: none; }
.form-avisos__estado { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form-avisos__estado.ok { color: var(--verde); }
.form-avisos__estado.error { color: var(--rojo); }
.pequeno { font-size: .9rem; }

/* FAQ */
.faq { padding: 32px 0 56px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--suave); margin: 10px 0 0; }

/* Pie */
.pie { background: #0b1f38; color: #a9bcd8; padding: 26px 0; font-size: .9rem; }
.pie a { color: #dbe6f5; }
.pie__fila { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie p { margin: 0; }

/* Páginas legales */
.pagina { background: #fff; max-width: 820px; margin: 32px auto; padding: 32px; border-radius: var(--radio); border: 1px solid var(--linea); }
.pagina h2 { margin-top: 1.4em; font-size: 1.2rem; }

@media (max-width: 760px) {
  .menu a:not(.menu__libro) { display: none; }
  .cifras { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cifra { padding: 10px; }
  .cifra strong { font-size: 1.4rem; }
  .cifra span { font-size: .75rem; }
  .libro__fila, .avisos__rejilla { grid-template-columns: 1fr; }
  .resultados { grid-template-columns: 1fr; }
  .buscador__caja input { font-size: 1rem; }
}

/* ===== Filtros interactivos ===== */
.filtros { padding: 0; overflow: hidden; }
.estados { display: flex; gap: 4px; padding: 6px; background: var(--fondo); border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; }
.estados::-webkit-scrollbar { display: none; }
.estado { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--suave); background: transparent; border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.estado:hover { color: var(--texto); background: rgba(255,255,255,.7); }
.estado[aria-selected="true"] { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(15,42,74,.12), 0 0 0 1px var(--linea); }
.estado__n { font-weight: 700; font-size: .8rem; min-width: 26px; padding: 2px 7px; border-radius: 999px; background: rgba(15,42,74,.07); color: inherit; font-variant-numeric: tabular-nums; transition: background .18s; }
.estado[aria-selected="true"] .estado__n { background: var(--azul); color: #fff; }
.estado__punto { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.estado__punto--todas { background: var(--azul-2); }
.estado__punto--abierta { background: var(--verde); box-shadow: 0 0 0 3px var(--verde-f); }
.estado__punto--pronto { background: #e8890c; box-shadow: 0 0 0 3px var(--naranja-f); }
.estado__punto--cerrada { background: var(--rojo); box-shadow: 0 0 0 3px var(--rojo-f); }
.estado__punto--sinplazo { background: #8a97a8; }

.filtros__bloque { padding: 16px 18px 6px; }
.filtros__titulo { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--suave); }
.filtros__ayuda { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9aa6b6; margin-left: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, color .15s, transform .1s, opacity .15s; }
.chip:active { transform: scale(.97); }
.chip__n { font-size: .75rem; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--suave); border: 1px solid var(--linea); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.chip[aria-pressed="true"]::after { content: "✓"; font-weight: 800; margin-left: 2px; }
.chip--vacio { opacity: .45; }
.chips--peq .chip__n { display: none; }

.filtros__barra { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 18px 16px; }
.boton-filtros { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--azul); background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 9px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.boton-filtros:hover { border-color: var(--azul-2); }
.boton-filtros svg { width: 18px; height: 18px; }
.boton-filtros[aria-expanded="true"] { background: var(--fondo); border-color: var(--azul-2); }
.boton-filtros__n { background: var(--acento); color: var(--azul); font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; user-select: none; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor__pista { width: 40px; height: 24px; border-radius: 999px; background: #cfd8e3; position: relative; transition: background .2s; flex: none; }
.interruptor__pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interruptor input:checked + .interruptor__pista { background: var(--acento); }
.interruptor input:checked + .interruptor__pista::after { transform: translateX(16px); }
.interruptor input:focus-visible + .interruptor__pista { outline: 3px solid var(--acento); outline-offset: 2px; }
.orden { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--suave); font-size: .9rem; }
.orden select { width: auto; padding: 8px 10px; font-weight: 600; color: var(--texto); }

.mas-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 16px 18px 18px; border-top: 1px dashed var(--linea); background: #fbfcfe; animation: desplegar .22s ease; }
.mas-filtros[hidden] { display: none; }
@keyframes desplegar { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.segmentos { display: flex; background: var(--fondo); border: 1px solid var(--linea); border-radius: 10px; padding: 3px; gap: 2px; }
.segmentos button { flex: 1; font: inherit; font-size: .9rem; font-weight: 600; color: var(--suave); background: transparent; border: 0; border-radius: 8px; padding: 7px 6px; cursor: pointer; transition: background .15s, color .15s; }
.segmentos button[aria-checked="true"] { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(15,42,74,.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6b82' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 34px !important; cursor: pointer; }

.resultados__cabecera { position: sticky; top: 60px; z-index: 3; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 18px -6px 12px; padding: 10px 6px; background: rgba(245,247,251,.92); backdrop-filter: blur(8px); color: var(--suave); }
.resultados__cabecera p { margin: 0; }
.resultados__cabecera strong { color: var(--texto); font-size: 1.1rem; }
.activos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.activo { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--azul); background: #e8eefb; border: 0; border-radius: 999px; padding: 5px 8px 5px 12px; cursor: pointer; transition: background .15s; animation: aparecer .2s ease; }
.activo:hover { background: #d6e1f7; }
.activo svg { width: 14px; height: 14px; opacity: .7; }
.activos__limpiar { font-size: .85rem; margin-left: 4px; }
@keyframes aparecer { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.resultados--entra .ficha { animation: entrar .28s ease both; }
.resultados--entra .ficha:nth-child(2) { animation-delay: .03s; } .resultados--entra .ficha:nth-child(3) { animation-delay: .06s; }
.resultados--entra .ficha:nth-child(4) { animation-delay: .09s; } .resultados--entra .ficha:nth-child(5) { animation-delay: .12s; } .resultados--entra .ficha:nth-child(6) { animation-delay: .15s; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ficha { transition: box-shadow .18s, transform .18s, border-color .18s; }
.ficha:hover { box-shadow: 0 2px 4px rgba(15,42,74,.06), 0 10px 28px rgba(15,42,74,.10); transform: translateY(-2px); border-color: #d3dceb; }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; }
.vacio__icono { font-size: 2rem; }
.vacio p { margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Libro ===== */
.libro__foto { display: block; width: 230px; margin-inline: auto; transform: perspective(900px) rotateY(-10deg); filter: drop-shadow(18px 22px 30px rgba(0,0,0,.45)); transition: transform .3s; }
.libro__foto:hover { transform: perspective(900px) rotateY(0) scale(1.02); }
.libro__foto img { width: 100%; height: auto; display: block; border-radius: 3px 8px 8px 3px; }
.ficha--anuncio { flex-direction: row; gap: 16px; align-items: flex-start; }
.anuncio__foto { flex: none; }
.anuncio__foto img { width: 92px; height: auto; display: block; border-radius: 3px 6px 6px 3px; box-shadow: 4px 6px 14px rgba(15,42,74,.25); }
.anuncio__texto { display: flex; flex-direction: column; gap: 6px; }

/* ===== Publicidad ===== */
.publi { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 0 6px; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a5a00; background: #fff1c9; border: 1px solid #f3d47a; }
.publi--oscuro { color: #ffe3a1; background: rgba(242,165,22,.14); border-color: rgba(242,165,22,.45); margin-bottom: 12px; }

/* ===== Telegram ===== */
.avisos { padding: 56px 0 24px; }
.telegram { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; background: linear-gradient(135deg, #fff 0%, #eef7fd 100%); }
.telegram__icono { width: 68px; height: 68px; border-radius: 50%; background: #229ed9; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(34,158,217,.35); }
.telegram__icono svg { width: 36px; height: 36px; margin-left: -3px; }
.telegram h2 { font-size: 1.4rem; margin-bottom: 6px; }
.telegram p { margin: 0; color: var(--suave); max-width: 60ch; }
.telegram__accion { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--suave); }

@media (max-width: 760px) {
  .estado { flex: 0 0 auto; padding: 9px 12px; font-size: .9rem; }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chips--scroll .chip { flex: none; }
  .orden { margin-left: 0; }
  .resultados__cabecera { top: 60px; }
  .telegram { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .libro__foto { width: 180px; }
}

/* ===== Plazas en ficha ===== */
.ficha__plazas { flex: none; text-align: center; line-height: 1.05; background: var(--azul); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: .72rem; font-weight: 600; min-width: 58px; }
.ficha__plazas strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--acento); }
.ficha__cal { font-size: .9rem; }

/* ===== Próximos cierres ===== */
.cierres { margin-top: 14px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 14px 14px; box-shadow: var(--sombra); }
.cierres[hidden] { display: none; }
.cierres__cabeza { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cierres__titulo { margin: 0; font-weight: 700; font-size: .95rem; }
.cierres__ics { font-size: .85rem; font-weight: 600; color: var(--azul-2); text-decoration: none; }
.cierres__ics:hover { text-decoration: underline; }
.cierres__lista { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cierre { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--fondo); border: 1px solid var(--linea); text-decoration: none; color: var(--texto); transition: border-color .15s, transform .15s; }
.cierre:hover { border-color: var(--azul-2); transform: translateY(-2px); }
.cierre__fecha { font-weight: 800; color: var(--verde); font-size: .95rem; }
.cierre--pronto .cierre__fecha { color: var(--naranja); }
.cierre__org { font-weight: 600; font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cierre__meta { font-size: .8rem; color: var(--suave); }

/* ===== Cuerpos ===== */
.cuerpos { padding: 48px 0 8px; }
.cuerpos__intro { color: var(--suave); margin-top: -4px; }
.cuerpos__rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.cuerpo { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; color: var(--texto); box-shadow: var(--sombra); transition: transform .15s, border-color .15s; }
.cuerpo:hover { transform: translateY(-2px); border-color: var(--azul-2); }
.cuerpo__icono { grid-row: 1 / span 2; font-size: 1.6rem; }
.cuerpo__nombre { font-weight: 700; }
.cuerpo__n { font-size: .82rem; color: var(--verde); font-weight: 600; }

/* ===== Página de cuerpo ===== */
.migas { font-size: .85rem; color: #a9bcd8; margin-bottom: 14px; }
.migas a { color: #dbe6f5; }
.portada--cuerpo .cifra strong { font-size: 1.5rem; }
.enlace-claro { color: var(--acento); }
.ccaa-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: #cfdcef; font-size: .9rem; }
.ccaa-chip { color: #fff; text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.ccaa-chip b { color: var(--acento); margin-left: 4px; }
.ccaa-chip:hover { background: rgba(255,255,255,.18); }
.info-cuerpo { padding: 40px 0 8px; }
.info-cuerpo__nota { color: var(--suave); font-size: .9rem; margin-top: -4px; }
.info-cuerpo__rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.info-cuerpo ul, .info-cuerpo ol { margin: 0; padding-left: 20px; color: var(--texto); }
.info-cuerpo li { margin: 6px 0; }
.psico { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #fff8e8, #fff); border-color: #f6d48b; }
.psico img { width: 90px; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 4px 6px 14px rgba(15,42,74,.25); flex: none; }
.psico h3 { margin: 0 0 6px; }
.psico p { margin: 0 0 10px; color: var(--suave); }
@media (max-width: 760px) { .psico { flex-direction: column; } .cierre { flex-basis: 170px; } }

/* ===== Tablas en texto (SEO / IA) ===== */
.tabla-envoltorio { overflow-x: auto; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); margin: 12px 0 18px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th, .tabla td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla th { background: var(--fondo); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); }
.tabla small { color: var(--suave); }
.pagina--ancha { max-width: 1120px; }
.migas--oscuro { color: var(--suave); }
.migas--oscuro a { color: var(--azul-2); }

/* ===== Compartir ===== */
.ficha__acciones { position: relative; }
.compartir-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 200px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,42,74,.18); padding: 6px; display: flex; flex-direction: column; animation: aparecer .15s ease; }
.compartir-menu__op { font: inherit; font-size: .92rem; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; color: var(--texto); text-decoration: none; cursor: pointer; }
.compartir-menu__op:hover, .compartir-menu__op:focus-visible { background: var(--fondo); outline: none; }
.aviso-flotante { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--azul); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Tema 2026 · estilo limpio inspirado en Apple
   ===================================================================== */
:root {
  --texto: #1d1d1f; --suave: #6e6e73; --tenue: #86868b; --linea: #e5e5ea; --fondo: #f5f5f7;
  --azul-ui: #0071e3; --azul-ui-osc: #0062c4; --azul-ui-f: #e8f2fd;
  --radio: 20px; --radio-s: 14px;
  --sombra: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --sombra-alta: 0 4px 10px rgba(0,0,0,.05), 0 24px 48px rgba(0,0,0,.10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
body { background: var(--fondo); color: var(--texto); }
a { color: var(--azul-ui); }
h1, h2, h3 { letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Cabecera translúcida */
.cabecera { background: rgba(251,251,253,.78); color: var(--texto); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.cabecera__fila { min-height: 54px; }
.marca { color: var(--texto); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.marca__icono { width: 30px; height: 30px; border-radius: 8px; }
.marca__texto span { color: var(--suave); font-weight: 500; }
.menu a { color: var(--texto); font-weight: 500; font-size: .88rem; opacity: .85; }
.menu a:hover { background: rgba(0,0,0,.05); color: var(--texto); opacity: 1; }
.menu__libro { background: var(--azul-ui) !important; color: #fff !important; opacity: 1 !important; }
.menu__libro:hover { background: var(--azul-ui-osc) !important; }

/* Portada clara y grande */
.portada { background: radial-gradient(1200px 500px at 50% -10%, #e9f1ff 0%, rgba(233,241,255,0) 60%), linear-gradient(#fbfbfd, var(--fondo)); color: var(--texto); padding: 72px 0 84px; text-align: center; }
.portada .envoltorio { display: flex; flex-direction: column; align-items: center; }
.portada h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; max-width: 18ch; margin-bottom: 18px;
  background: linear-gradient(180deg, #1d1d1f 30%, #3a3a3f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada__antetitulo { color: var(--azul-ui); font-size: .82rem; letter-spacing: .02em; text-transform: none; font-weight: 600; background: var(--azul-ui-f); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.portada__sub { color: var(--suave); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.45; max-width: 46ch; margin: 0 auto 40px; }
.cifras { gap: 14px; max-width: 760px; width: 100%; }
.cifra { background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.05); border-radius: var(--radio); padding: 20px 16px; box-shadow: var(--sombra); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cifra strong { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--texto); font-variant-numeric: tabular-nums; }
.cifra:first-child strong { background: linear-gradient(135deg, #0a84ff, #30b0c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifra span { color: var(--suave); font-size: .85rem; }
.actualizado { color: var(--tenue); font-size: .85rem; margin-top: 22px; }
.migas { color: var(--tenue); } .migas a { color: var(--azul-ui); }
.enlace-claro { color: var(--azul-ui); }
.ccaa-top { justify-content: center; color: var(--suave); }
.ccaa-chip { color: var(--texto); background: #fff; border: 1px solid var(--linea); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ccaa-chip b { color: var(--azul-ui); }
.ccaa-chip:hover { background: #fff; border-color: var(--azul-ui); }

/* Buscador */
.buscador { margin-top: -40px; padding-bottom: 56px; }
.buscador__caja input { border: 1px solid rgba(0,0,0,.06); border-radius: 18px; padding: 20px 22px 20px 58px; font-size: 1.1rem; box-shadow: var(--sombra-alta); transition: box-shadow .2s, border-color .2s; }
.buscador__caja input:focus { outline: none; border-color: var(--azul-ui); box-shadow: 0 0 0 4px rgba(0,113,227,.15), var(--sombra-alta); }
.buscador__lupa { left: 22px; color: var(--tenue); }

/* Panel de filtros */
.filtros { background: #fff; border: 0; border-radius: 24px; box-shadow: var(--sombra); margin-top: 18px; padding: 20px; overflow: visible; display: flex; flex-direction: column; gap: 22px; }

/* Estado: control segmentado */
.estados { background: #ececf0; border: 0; border-radius: 14px; padding: 4px; gap: 2px; display: grid; grid-template-columns: repeat(5, minmax(max-content, 1fr)); overflow-x: auto; }
.estado { border-radius: 11px; padding: 10px 12px; font-size: .92rem; font-weight: 500; color: #3a3a3c; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.estado:hover { background: rgba(255,255,255,.55); }
.estado[aria-selected="true"] { background: #fff; color: var(--texto); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.04); }
.estado__n { background: transparent; color: var(--tenue); font-weight: 500; padding: 0; min-width: 0; }
.estado[aria-selected="true"] .estado__n { background: var(--azul-ui); color: #fff; padding: 1px 8px; font-weight: 600; }
.estado__punto--todas { background: var(--azul-ui); }

/* Cuerpos: tarjetas con icono */
.filtros__bloque { padding: 0; }
.filtros__titulo { font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--texto); font-weight: 600; margin-bottom: 12px; }
.filtros__ayuda { color: var(--tenue); font-weight: 400; font-size: .85rem; }
.chips--scroll { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; flex-wrap: unset; }
.chips--scroll .chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 108px; padding: 14px 14px 12px; border-radius: 18px; border: 1px solid transparent; background: #f5f5f7; color: var(--texto); text-align: left; font-size: .9rem; transition: transform .18s, background .18s, box-shadow .18s, border-color .18s, opacity .18s; }
.chips--scroll .chip:hover { background: #fff; border-color: var(--linea); box-shadow: var(--sombra); transform: translateY(-2px); }
.chips--scroll .chip:active { transform: scale(.97); }
.chip__icono { font-size: 1.7rem; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.chip__nombre { font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.chips--scroll .chip__n { background: none; border: 0; padding: 0; font-size: .78rem; font-weight: 500; color: var(--tenue); min-width: 0; text-align: left; }
.chips--scroll .chip__n::after { content: " publicaciones"; }
.chips--scroll .chip[aria-pressed="true"] { background: var(--azul-ui-f); border-color: var(--azul-ui); color: var(--texto); box-shadow: 0 0 0 1px var(--azul-ui) inset; }
.chips--scroll .chip[aria-pressed="true"] .chip__n { color: var(--azul-ui); background: none; }
.chips--scroll .chip[aria-pressed="true"]::after { content: none; }
.chip__check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c7c7cc; background: #fff; transition: all .18s; }
.chip[aria-pressed="true"] .chip__check { background: var(--azul-ui) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--azul-ui); }
.chip--vacio { opacity: .4; }

/* Barra: más filtros + orden */
.filtros__barra { padding: 0; gap: 10px; border-top: 1px solid var(--linea); padding-top: 18px; }
.boton-filtros { border: 0; background: #f5f5f7; color: var(--texto); border-radius: 999px; padding: 10px 18px; font-weight: 500; transition: background .18s; }
.boton-filtros:hover { background: #ececf0; }
.boton-filtros[aria-expanded="true"] { background: var(--texto); color: #fff; }
.boton-filtros__n { background: var(--azul-ui); color: #fff; }
.orden { color: var(--suave); font-weight: 500; }
.orden select { border: 0; background-color: #f5f5f7; border-radius: 999px; padding: 10px 36px 10px 16px; font-weight: 500; }

/* Más filtros: campos grandes */
.mas-filtros { border: 0; background: none; padding: 0; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.filtro { background: #f5f5f7; border-radius: 16px; padding: 12px 14px 14px; }
.filtro legend { float: left; width: 100%; }
.filtro legend + * { clear: both; }
.filtro legend, .filtro > span { font-size: .75rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--tenue); margin-bottom: 6px; }
.filtro select { border: 0; background-color: #fff; border-radius: 10px; padding: 11px 36px 11px 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.filtro .segmentos { background: #e3e3e8; border: 0; border-radius: 10px; }
.segmentos button { font-weight: 500; color: #3a3a3c; }
.segmentos button[aria-checked="true"] { color: var(--texto); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
select:focus-visible, .estado:focus-visible, .chip:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }
:focus-visible { outline-color: rgba(0,113,227,.45); }

/* Cabecera de resultados y pastillas activas */
.resultados__cabecera { top: 54px; background: rgba(245,245,247,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.activo { background: #fff; color: var(--texto); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.activo:hover { background: #fff; color: var(--azul-ui); }

/* Fichas */
.resultados { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.ficha { border: 0; border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); gap: 8px; }
.ficha:hover { border: 0; box-shadow: var(--sombra-alta); transform: translateY(-3px); }
.ficha__titulo { font-size: 1.15rem; letter-spacing: -.02em; }
.ficha__lugar, .ficha__datos dt, .ficha__mas { color: var(--suave); }
.ficha__plazas { background: #1d1d1f; border-radius: 12px; }
.ficha__plazas strong { color: #fff; }
.etq { border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.etq--cat, .etq--convocatoria, .etq--oep { background: var(--azul-ui-f); color: var(--azul-ui-osc); }
.etq--nueva { background: var(--azul-ui); color: #fff; }
.boton { background: var(--azul-ui); border-color: var(--azul-ui); border-radius: 999px; font-weight: 500; padding: 11px 20px; }
.boton:hover { background: var(--azul-ui-osc); border-color: var(--azul-ui-osc); }
.boton--secundario { background: transparent; color: var(--azul-ui); border-color: transparent; }
.boton--secundario:hover { background: var(--azul-ui-f); }
.boton--peq { border-radius: 999px; padding: 7px 14px; }
.boton--telegram { background: #229ed9; border-color: #229ed9; }
.ficha .boton--secundario { background: #f5f5f7; color: var(--texto); }
.ficha .boton--secundario:hover { background: #ececf0; }
.ficha--anuncio { background: linear-gradient(150deg, #fffaf0, #fff); }
.vacio { border-radius: var(--radio); border: 0; box-shadow: var(--sombra); }

/* Bloques */
.cierres, .tarjeta, .aviso-legal, .faq details, .cuerpo, .tabla-envoltorio, .pagina { border: 0; box-shadow: var(--sombra); }
.cierres { border-radius: 24px; padding: 18px 20px; }
.cierre { background: #f5f5f7; border: 0; border-radius: 16px; }
.cierre:hover { background: #fff; box-shadow: var(--sombra); }
.aviso-legal { border-left: 0; border-radius: var(--radio); padding: 20px 24px; }
.cuerpos { padding-top: 72px; }
.cuerpos h2, .faq h2, .avisos h2 { letter-spacing: -.03em; }
.cuerpo { border-radius: 18px; padding: 18px; }
.cuerpo:hover { border: 0; box-shadow: var(--sombra-alta); }
.cuerpo__n { color: var(--azul-ui); }
.libro { background: #000; padding: 88px 0; }
.libro__texto p { color: #a1a1a6; }
.libro__texto h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; }
.libro .boton { background: #fff; border-color: #fff; color: #000; }
.libro .boton:hover { background: #e8e8ed; }
.libro .boton--secundario { color: #2997ff; border-color: transparent; background: transparent; }
.telegram { background: #fff; border-radius: 28px; padding: 36px; }
.faq details { border-radius: 16px; padding: 18px 22px; }
.faq summary { font-weight: 600; }
.pie { background: var(--fondo); color: var(--suave); border-top: 1px solid var(--linea); font-size: .8rem; }
.pie a { color: var(--texto); }
.pagina { border-radius: 24px; padding: 40px; }
.compartir-menu { border: 0; border-radius: 14px; box-shadow: var(--sombra-alta); }
.aviso-flotante { background: rgba(29,29,31,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

@media (max-width: 980px) {
  .chips--scroll { grid-template-columns: repeat(10, 148px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chips--scroll .chip { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .menu a:not(.menu__libro) { display: none; }
  .portada { padding: 48px 0 72px; }
  .cifra { padding: 14px 8px; border-radius: 16px; }
  .cifra span { font-size: .72rem; }
  .filtros { padding: 16px; border-radius: 20px; }
  .estados { grid-template-columns: repeat(5, max-content); margin-inline: -4px; }
  .chips--scroll { margin-inline: -16px; padding-inline: 16px; }
  .chips--scroll .chip { min-height: 100px; }
  .estado { padding: 9px 12px; }
  .resultados { grid-template-columns: 1fr; }
}
.ficha__acciones .enlace { text-decoration: none; background: #f5f5f7; color: var(--texto); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 500; transition: background .18s; }
.ficha__acciones .enlace:hover { background: #ececf0; }
.segmentos button { white-space: nowrap; }
/* ===== Calendario de plazos ===== */
.calendario { margin-top: 18px; background: linear-gradient(135deg, #fff 0%, #f2f6ff 100%); grid-template-columns: auto 1fr; }
.calendario__icono { background: #fff; font-size: 2rem; box-shadow: var(--sombra); }
.calendario__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.boton--blanco { background: #fff; color: var(--texto); border-color: var(--linea); }
.boton--blanco:hover { background: #f5f5f7; border-color: var(--linea); }
.cierres__ics { background: var(--azul-ui-f); color: var(--azul-ui); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.cierres__ics:hover { text-decoration: none; background: #d9e9fc; }
@media (max-width: 760px) { .calendario__botones { justify-content: center; } }

/* ===== Rejilla de 3 columnas: el anuncio siempre en la central ===== */
@media (min-width: 1081px) {
  .resultados { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .resultados > .ficha--anuncio { grid-column: 2; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .resultados { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .resultados > .ficha--anuncio { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
}

/* ===== Academia recomendada ===== */
.ficha__academia { display: grid; gap: 2px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #f3f0ff, #fff); border: 1px solid #e3dcff; color: var(--texto); text-decoration: none; transition: box-shadow .18s, transform .18s; }
.ficha__academia:hover { box-shadow: var(--sombra); transform: translateY(-1px); }
.ficha__academia strong { font-size: .98rem; }
.ficha__academia span:last-child { font-size: .85rem; color: #5b3fd1; font-weight: 500; }
.ficha__academia-etq { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6e6e73; }
.academia { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #f6f3ff, #fff); }
.academia__logo { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: #fff; box-shadow: var(--sombra); }
.academia h3, .academia h2 { margin: 0 0 6px; }
.academia p { margin: 0 0 10px; color: var(--suave); }
.academia ul { margin: 0 0 14px; padding-left: 18px; color: var(--texto); }
.academia li { margin: 4px 0; }
.academia__lema { font-style: italic; }
.academias { display: grid; gap: 16px; margin: 20px 0; }
@media (max-width: 760px) { .academia { flex-direction: column; } }
