/* Retablo · Moxen, adaptado a BKT Scholarship Universe (29-oct-2026).
   Sección «Qué hay adentro» en mosaico: una luz azul sigue al cursor por los
   bordes de todas las celdas y cada celda anima una función real de la
   plataforma. Licencia Moxen: uso en proyectos de clientes, no se redistribuye. */
.rt-seccion {
  --rt-texto: #0A1130; --rt-suave: #5C687F; --rt-tenue: #EEF2FB; --rt-azul: #0059FF; --rt-azul-cl: #E8EFFF;
  --rt-celda: linear-gradient(180deg, #ffffff, #FAFBFF); --rt-borde: #E3E9F7;
  --rt-luz: rgba(0, 89, 255, .55); --rt-luz-dentro: rgba(0, 89, 255, .05);
  --rt-curva: cubic-bezier(.22, 1, .36, 1); --rt-rebote: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--rt-texto);
}
.rt-seccion *, .rt-seccion *::before, .rt-seccion *::after { box-sizing: border-box; }
.rt-rejilla { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; grid-template-rows: minmax(262px, auto) minmax(262px, auto); gap: 14px; }
.rt-a { grid-column: 1 / 3; grid-row: 1 / 3; }

/* la celda: su borde se enciende donde está el cursor (aunque esté en la de al lado) */
.rt-celda {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-radius: 22px; outline: none;
  background: var(--rt-celda); box-shadow: inset 0 0 0 1px var(--rt-borde), 0 18px 40px -32px rgba(10, 30, 90, .35); overflow: hidden; isolation: isolate;
}
.rt-celda::before, .rt-celda::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.rt-celda::before {
  padding: 1.5px; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), var(--rt-luz), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.rt-celda::after { z-index: -1; background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), var(--rt-luz-dentro), transparent 70%); }
.rt-celda:focus-visible { box-shadow: inset 0 0 0 2px var(--rt-azul); }
.rt-texto h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; }
.rt-texto p { margin: 6px 0 0; color: var(--rt-suave); font-size: .92rem; line-height: 1.45; }
.rt-visual { position: relative; flex: 1; display: grid; place-items: center; min-height: 120px; }

/* A: filtros por estatus — los chips se eligen solos y las filas que no aplican se pliegan */
.rt-a { padding: 26px; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-chip {
  font: 700 12.5px/1 "Inter", sans-serif; padding: 9px 13px; border-radius: 100px; border: 1.5px solid var(--rt-borde); background: #fff; color: var(--rt-suave);
  transition: background-color .35s var(--rt-curva), color .35s, border-color .35s, transform .45s var(--rt-rebote);
}
.rt-chip.is-on { background: var(--rt-azul); border-color: var(--rt-azul); color: #fff; transform: scale(1.05); }
.rt-filas { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; align-content: start; }
.rt-fila {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--rt-borde); transition: opacity .45s var(--rt-curva), transform .5s var(--rt-curva), filter .45s;
}
.rt-fila i { width: 34px; height: 34px; border-radius: 10px; background: var(--rt-azul-cl); }
.rt-fila b { display: grid; gap: 6px; }
.rt-fila b::before, .rt-fila b::after { content: ""; height: 8px; border-radius: 4px; background: #E6EBF6; }
.rt-fila b::before { width: 72%; background: #D5DDF0; }
.rt-fila b::after { width: 44%; }
/* 7-nov (Luis): las filas no van en blanco: el boletín "como viene", con letras borrosas.
   Texto genérico y desenfocado (aria-hidden): no se lee ni es una beca real. */
.rt-fila b.rt-borroso { gap: 3px; min-width: 0; }
.rt-fila b.rt-borroso::before, .rt-fila b.rt-borroso::after { content: none; }
.rt-borroso span, .rt-borroso small { display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; filter: blur(3.2px); user-select: none; }
.rt-borroso span { font: 700 12.5px/1.3 "Inter", sans-serif; color: #0F1B3D; }
.rt-borroso small { font: 500 11px/1.3 "Inter", sans-serif; color: #5C6B8A; }
.rt-fila em { font: 800 11px/1 "Inter", sans-serif; font-style: normal; color: #12945B; background: #E7F6EE; border-radius: 100px; padding: 6px 9px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--rt-rebote); }
.rt-fila.is-si em { opacity: 1; transform: none; }
.rt-fila.is-no { opacity: .28; transform: scale(.97); filter: grayscale(1); }
.rt-a .rt-texto { margin-top: 16px; }

/* B: el candado se cierra con un rebote y suelta dos ondas */
.rt-candado { width: 86px; height: 86px; overflow: visible; fill: none; stroke: var(--rt-azul); stroke-width: 3; stroke-linecap: round; }
.rt-cuerpo { fill: var(--rt-azul-cl); }
.rt-ojo { stroke-width: 2.4; }
.rt-arco { transform-box: view-box; transform-origin: 42px 30px; transform: translateY(-5px) rotate(28deg); transition: transform .55s var(--rt-rebote); }
.rt-b.is-activa .rt-arco { transform: none; transition-delay: .05s; }
.rt-onda { stroke-width: 1.5; opacity: 0; transform-box: view-box; transform-origin: 32px 38px; }
.rt-b.is-activa .rt-onda { animation: rt-onda 1.2s .35s var(--rt-curva) both; }
.rt-b.is-activa .rt-onda-2 { animation-delay: .55s; }
@keyframes rt-onda { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.9); } }

/* C: el velocímetro de la urgencia — la aguja sube y los días bajan */
.rt-reloj { width: 140px; overflow: visible; fill: none; stroke-linecap: round; }
.rt-pista { stroke: var(--rt-tenue); stroke-width: 9; }
.rt-valor { stroke: var(--rt-azul); stroke-width: 9; stroke-dasharray: 100 100; stroke-dashoffset: 70; transition: stroke-dashoffset 1.1s var(--rt-curva), stroke .4s; }
.rt-c.is-activa .rt-valor { stroke: #E5483A; }
.rt-aguja { stroke: var(--rt-texto); stroke-width: 3; fill: var(--rt-texto); transform-box: view-box; transform-origin: 60px 62px; transform: rotate(-36deg); transition: transform 1.1s var(--rt-rebote); }
.rt-cifra { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; justify-items: center; line-height: 1; }
.rt-cifra b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rt-cifra small { font-size: .7rem; font-weight: 700; color: var(--rt-suave); margin-top: 3px; white-space: nowrap; }
.rt-c .rt-visual { padding-bottom: 40px; }

/* D: Mis becas — los estados se encienden en cascada */
.rt-reglas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-reglas li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--rt-tenue); font-size: .84rem; font-weight: 600; }
.rt-interruptor { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: #DCE3F2; transition: background-color .35s var(--rt-curva); }
.rt-interruptor::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10,30,90,.25); transition: transform .45s var(--rt-rebote); }
.rt-d.is-activa .rt-interruptor { background: var(--rt-azul); }
.rt-d.is-activa .rt-interruptor::after { transform: translateX(14px); }
.rt-d.is-activa li:nth-child(2) .rt-interruptor, .rt-d.is-activa li:nth-child(2) .rt-interruptor::after { transition-delay: .14s; }
.rt-d.is-activa li:nth-child(3) .rt-interruptor, .rt-d.is-activa li:nth-child(3) .rt-interruptor::after { transition-delay: .28s; }

/* E: un ensayo en el centro y las becas girando alrededor */
.rt-orbita { width: 100%; max-width: 168px; max-height: 120px; overflow: visible; margin: 6px 0 14px; }
.rt-centro { fill: var(--rt-azul); }
.rt-centro-marca { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rt-rayo { stroke: #DCE3F2; stroke-width: 1.2; }
.rt-pulso { stroke: var(--rt-azul); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 60; fill: none; }
.rt-satelite circle { fill: #fff; stroke: var(--rt-borde); stroke-width: 1.2; }
.rt-satelite path { fill: none; stroke: var(--rt-azul); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.rt-ademas { margin: 16px 0 0; text-align: center; font-size: .92rem; color: var(--rt-suave); line-height: 1.6; }
.rt-ademas b { color: var(--rt-texto); }

/* entrada: las celdas suben escalonadas cuando la sección aparece */
.rt-rejilla .rt-celda { opacity: 0; }
.rt-seccion.is-vista .rt-celda { animation: rt-entra .9s calc(var(--n) * 90ms + .05s) var(--rt-curva) both; }
@keyframes rt-entra { from { opacity: 0; translate: 0 26px; scale: .98; } to { opacity: 1; translate: none; scale: none; } }

@media (max-width: 900px) {
  .rt-rejilla { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
  .rt-a { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .rt-rejilla { grid-template-columns: 1fr; }
  .rt-celda { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-rejilla .rt-celda { opacity: 1; }
  .rt-seccion.is-vista .rt-celda { animation: none; }
  .rt-arco, .rt-valor, .rt-aguja, .rt-interruptor, .rt-interruptor::after, .rt-fila, .rt-chip { transition: none; }
  .rt-b.is-activa .rt-onda { animation: none; }
}
