﻿/* Puzzle lineal en evaluaciÃ³n (v1) */
.ads-eval-puzzle-board {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ads-eval-puzzle-board .cg-wrap {
  width: 100%;
  height: 100%;
}

.ads-eval-puzzle-board cg-board {
  background-color: #EEE4D1 !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><g id="a"><g id="b"><g id="c"><g id="d"><rect width="1" height="1" id="e" fill="%23EEE4D1"/><use x="1" y="1" href="%23e"/><rect y="1" width="1" height="1" id="f" fill="%232F9E8E"/><use x="1" y="-1" href="%23f"/></g><use x="2" href="%23d"/></g><use x="4" href="%23c"/></g><use y="2" href="%23b"/></g><use y="4" href="%23a"/></svg>') !important;
}

.ads-eval-puzzle-board cg-board square.selected {
  background-color: rgba(212, 175, 55, 0.4) !important;
}

.ads-eval-puzzle-board cg-board square.last-move {
  background-color: rgba(212, 175, 55, 0.2) !important;
}

.ads-eval-puzzle-board cg-board square.move-dest {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 25%, transparent 25%);
}

.ads-eval-puzzle-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #c9d7ff;
}

.ads-eval-puzzle-status.is-error {
  color: #ffb8b8;
}

.ads-eval-puzzle-status.is-solved {
  color: #9ef0bf;
}

.ads-eval-solve-gate-dialog .ads-admin-delete-dialog__icon {
  color: #ffe08a;
  text-shadow: 0 0 14px rgba(255, 196, 85, 0.45);
}
/* Ocultar UI protegida hasta que guard.js confirme sesiÃ³n (evita filtrar el portal a visitantes). */
body[data-require-auth="true"]:not(.ads-auth-ready) {
  visibility: hidden;
}

body[data-require-auth="true"].ads-auth-ready {
  visibility: visible;
}

:root {
  --bg: #06070b;
  --bg-2: #0b0f1a;
  --panel: rgba(13, 17, 28, 0.82);
  --panel-soft: rgba(22, 27, 42, 0.82);
  --text: #eff3ff;
  --muted: #a6b0ca;
  --brand: #c70039;
  --brand-2: #ff1744;
  --accent: #4f8cff;
  --accent-2: #6a5cff;
  --ok: #3ddc97;
  --error: #ff6b6b;
  --info: #62b0ff;
  --border: rgba(130, 154, 212, 0.26);
  /* Scroll portal: coherente con neÃ³n rojo / rejilla azul */
  --ads-scroll-track: rgba(8, 10, 18, 0.94);
  --ads-scroll-track-edge: rgba(79, 140, 255, 0.14);
  --ads-scroll-thumb: linear-gradient(
    165deg,
    rgba(255, 110, 150, 0.96) 0%,
    rgba(199, 0, 57, 0.92) 48%,
    rgba(90, 12, 40, 0.98) 100%
  );
  --ads-scroll-thumb-hover: linear-gradient(
    165deg,
    #ff7a9a 0%,
    #ff1744 50%,
    #c70039 100%
  );
  --ads-scroll-glow: rgba(255, 23, 68, 0.42);
}

/* ========== Portal + vistas Caballo A4 / admin: scrollbars premium ========== */
html.ads-portal-page,
html.ads-premium-scroll {
  scrollbar-gutter: stable;
}

html.ads-portal-page,
html.ads-portal-page *,
html.ads-premium-scroll,
html.ads-premium-scroll * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 60, 100, 0.92) var(--ads-scroll-track);
}

html.ads-portal-page ::-webkit-scrollbar,
html.ads-premium-scroll ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html.ads-portal-page ::-webkit-scrollbar-corner,
html.ads-premium-scroll ::-webkit-scrollbar-corner {
  background: var(--bg);
}

html.ads-portal-page ::-webkit-scrollbar-track,
html.ads-premium-scroll ::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(14, 16, 26, 0.98), var(--ads-scroll-track));
  border-radius: 10px;
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px var(--ads-scroll-track-edge);
  margin: 4px 0;
}

html.ads-portal-page ::-webkit-scrollbar-thumb,
html.ads-premium-scroll ::-webkit-scrollbar-thumb {
  background: var(--ads-scroll-thumb);
  border-radius: 10px;
  border: 2px solid rgba(4, 5, 10, 0.9);
  box-shadow:
    0 0 14px var(--ads-scroll-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html.ads-portal-page ::-webkit-scrollbar-thumb:hover,
html.ads-premium-scroll ::-webkit-scrollbar-thumb:hover {
  background: var(--ads-scroll-thumb-hover);
  box-shadow:
    0 0 22px rgba(255, 23, 68, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html.ads-portal-page ::-webkit-scrollbar-thumb:active,
html.ads-premium-scroll ::-webkit-scrollbar-thumb:active {
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.45);
}

/* Modales / Ã¡reas con overflow: refuerzo (textarea y paneles con scroll propio) */
html.ads-portal-page .ads-caballo-modal__body,
html.ads-premium-scroll .ads-caballo-modal__body,
html.ads-portal-page .caballo-gap-modal__panel,
html.ads-premium-scroll .caballo-gap-modal__panel,
html.ads-portal-page .caballo-gap-modal__ta,
html.ads-premium-scroll .caballo-gap-modal__ta,
html.ads-portal-page .ads-admin-delete-dialog__inner,
html.ads-premium-scroll .ads-admin-delete-dialog__inner,
html.ads-portal-page .ads-calendar-modal__dialog,
html.ads-premium-scroll .ads-calendar-modal__dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 60, 100, 0.92) var(--ads-scroll-track);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(79, 140, 255, 0.28), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(199, 0, 57, 0.34), transparent 40%),
    linear-gradient(145deg, var(--bg), var(--bg-2));
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(95, 122, 194, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 122, 194, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 90%);
}

body::after {
  background: radial-gradient(circle at center, transparent 30%, rgba(2, 3, 7, 0.72) 90%);
}

.ads-shell {
  min-height: 100vh;
  padding: 36px 18px;
  display: grid;
  place-items: center;
}

/* Contenido alineado arriba (mÃ³dulos largos: no centrar verticalmente toda la pÃ¡gina) */
.ads-shell.ads-shell--align-top {
  place-items: start;
  align-content: start;
  justify-items: center;
}

.ads-card {
  width: min(100%, 520px);
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ads-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(79, 140, 255, 0.55), rgba(255, 23, 68, 0.35), transparent 55%);
  opacity: 0.4;
  z-index: -1;
}

.ads-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ads-pill {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9d8ff;
  background: rgba(79, 140, 255, 0.16);
  border: 1px solid rgba(124, 164, 255, 0.5);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.ads-pill--red {
  color: #ffd2dc;
  background: rgba(199, 0, 57, 0.16);
  border-color: rgba(255, 84, 126, 0.58);
}

.ads-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.ads-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}

.ads-subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.ads-form {
  display: grid;
  gap: 14px;
}

.ads-field {
  display: grid;
  gap: 8px;
}

.ads-label {
  font-size: 0.93rem;
  color: #d7def5;
}

.ads-input {
  width: 100%;
  border: 1px solid rgba(144, 169, 230, 0.35);
  background: rgba(5, 10, 18, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ads-input::placeholder {
  color: #8f9ac0;
}

.ads-input:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.9);
  background: rgba(6, 12, 22, 0.92);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.2);
}

.ads-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 26px rgba(199, 0, 57, 0.38);
}

.ads-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 15px 32px rgba(199, 0, 57, 0.5);
}

.ads-button:active {
  transform: translateY(0);
}

.ads-row {
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ads-row-left {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.ads-link {
  color: #89adff;
  text-decoration: none;
  font-size: 0.93rem;
}

.ads-link:hover {
  text-decoration: underline;
}

.ads-link--subtle {
  opacity: 0.72;
  font-size: 0.82rem;
}

.ads-link--subtle:hover {
  opacity: 1;
}

.ads-admin-access-link {
  margin: 0;
  text-align: left;
}

.ads-admin-access-link__text {
  font-size: 0.8rem;
  color: rgba(169, 184, 223, 0.82);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.ads-admin-access-link__text:hover {
  color: rgba(214, 225, 251, 0.96);
  text-decoration: underline;
}

/* Login shield: clases neutras para evitar bloqueadores que ocultan selectores tipo ads-* */
.sil-shell {
  min-height: 100vh;
  padding: 36px 18px;
  display: grid;
  place-items: center;
}

.sil-card {
  width: min(100%, 520px);
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sil-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(79, 140, 255, 0.55), rgba(255, 23, 68, 0.35), transparent 55%);
  opacity: 0.4;
  z-index: -1;
}

.sil-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sil-pill {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9d8ff;
  background: rgba(79, 140, 255, 0.16);
  border: 1px solid rgba(124, 164, 255, 0.5);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.sil-pill--red {
  color: #ffd2dc;
  background: rgba(199, 0, 57, 0.16);
  border-color: rgba(255, 84, 126, 0.58);
}

.sil-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.sil-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}

.sil-subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.sil-form,
.sil-field {
  display: grid;
}

.sil-form {
  gap: 14px;
}

.sil-field {
  gap: 8px;
}

.sil-label {
  font-size: 0.93rem;
  color: #d7def5;
}

.sil-input {
  width: 100%;
  border: 1px solid rgba(144, 169, 230, 0.35);
  background: rgba(5, 10, 18, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sil-input::placeholder {
  color: #8f9ac0;
}

.sil-input:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.9);
  background: rgba(6, 12, 22, 0.92);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.2);
}

.sil-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 26px rgba(199, 0, 57, 0.38);
}

.sil-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 15px 32px rgba(199, 0, 57, 0.5);
}

.sil-button:active {
  transform: translateY(0);
}

.sil-row {
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.sil-row-left {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.sil-link {
  color: #89adff;
  text-decoration: none;
  font-size: 0.93rem;
}

.sil-link:hover {
  text-decoration: underline;
}

.sil-admin-access-link {
  margin: 0;
  text-align: left;
}

.sil-admin-access-link__text {
  font-size: 0.8rem;
  color: rgba(169, 184, 223, 0.82);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.sil-admin-access-link__text:hover {
  color: rgba(214, 225, 251, 0.96);
  text-decoration: underline;
}

.sil-message {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.93rem;
  font-weight: 500;
}

.sil-message.is-success {
  color: var(--ok);
}

.sil-message.is-error {
  color: var(--error);
}

.sil-message.is-info {
  color: var(--info);
}

.sil-auth-flash-login {
  margin-bottom: 14px;
  white-space: pre-line;
}

.ads-message {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.93rem;
  font-weight: 500;
}

.ads-message.is-success {
  color: var(--ok);
}

.ads-message.is-error {
  color: var(--error);
}

.ads-message.is-info {
  color: var(--info);
}

.ads-topbar {
  max-width: 980px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ads-chip {
  padding: 8px 12px;
  background: #151b2a;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ads-layout {
  max-width: 980px;
  margin: 0 auto;
}

.ads-panel {
  background: linear-gradient(160deg, var(--panel), var(--panel-soft));
  border: 1px solid rgba(255, 66, 116, 0.9);
  border-radius: 18px;
  padding: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 72, 118, 0.6) inset,
    0 0 24px rgba(255, 23, 68, 0.42),
    0 0 46px rgba(255, 23, 68, 0.24),
    0 20px 46px rgba(0, 0, 0, 0.33);
}

.ads-panel h1,
.ads-panel h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .ads-shell,
  .sil-shell {
    padding: 22px 14px;
  }

  .ads-card,
  .sil-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .ads-logo,
  .sil-logo {
    width: 72px;
    height: 72px;
  }

  .ads-row,
  .sil-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Portal dashboard premium */
.ads-layout-portal {
  width: min(1160px, 100%);
  position: relative;
  z-index: 2;
}

.ads-topbar-portal {
  flex-wrap: wrap;
}

.ads-auth-flash {
  width: 100%;
  max-width: min(1160px, 100%);
  margin: 0 auto 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 120, 0.55);
  background: rgba(120, 40, 30, 0.35);
  color: #ffe8e4;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ads-auth-flash-login {
  margin-bottom: 14px;
  white-space: pre-line;
}

.ads-portal-account-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.ads-portal-account-line__action {
  font-size: 0.88rem;
  font-weight: 600;
}

.ads-field-note {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c8d4f0;
}

.ads-field-note .ads-label {
  display: block;
  margin-bottom: 4px;
}

.ads-current-email-value {
  color: #eef3ff;
  word-break: break-all;
}

.ads-payment-status {
  margin: 0 auto 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(130, 154, 212, 0.34);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 23, 68, 0.16), transparent 40%),
    radial-gradient(circle at 84% 82%, rgba(79, 140, 255, 0.16), transparent 46%),
    linear-gradient(140deg, rgba(9, 13, 24, 0.9), rgba(15, 20, 34, 0.92));
  box-shadow:
    0 0 0 1px rgba(120, 166, 255, 0.15) inset,
    0 12px 26px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(79, 140, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.ads-payment-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(79, 140, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(79, 140, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}

.ads-payment-status__badge,
.ads-payment-status__copy {
  position: relative;
  z-index: 1;
}

.ads-payment-status__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 42px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  border: 1px solid rgba(149, 190, 255, 0.45);
  background: rgba(79, 140, 255, 0.18);
  color: #dbe9ff;
}

.ads-payment-status__title {
  margin: 0 0 4px;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.ads-payment-status__message {
  margin: 0;
  color: #d1dcfb;
  line-height: 1.5;
  font-size: 0.9rem;
}

.ads-payment-status--ok {
  border-color: rgba(61, 220, 151, 0.44);
  box-shadow:
    0 0 0 1px rgba(61, 220, 151, 0.16) inset,
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(61, 220, 151, 0.2);
}

.ads-payment-status--ok .ads-payment-status__badge {
  border-color: rgba(61, 220, 151, 0.52);
  background: rgba(61, 220, 151, 0.2);
  color: #d8ffea;
}

.ads-payment-status--upcoming {
  border-color: rgba(255, 211, 74, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 211, 74, 0.14) inset,
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(255, 211, 74, 0.18);
}

.ads-payment-status--upcoming .ads-payment-status__badge {
  border-color: rgba(255, 211, 74, 0.56);
  background: rgba(255, 211, 74, 0.2);
  color: #fff1c7;
}

.ads-payment-status--debt {
  border-color: rgba(255, 123, 157, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 123, 157, 0.18) inset,
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(255, 23, 68, 0.24);
}

.ads-payment-status--debt .ads-payment-status__badge {
  border-color: rgba(255, 123, 157, 0.7);
  background: rgba(199, 0, 57, 0.3);
  color: #ffe3ec;
}

.ads-payment-status--blocked {
  border-color: rgba(255, 107, 107, 0.74);
  box-shadow:
    0 0 0 1px rgba(255, 107, 107, 0.24) inset,
    0 12px 26px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(255, 23, 68, 0.3);
}

.ads-payment-status--blocked .ads-payment-status__badge {
  border-color: rgba(255, 107, 107, 0.78);
  background: rgba(255, 107, 107, 0.3);
  color: #ffe7e7;
}

.ads-payment-status--muted {
  border-color: rgba(130, 154, 212, 0.34);
}

/* SesiÃ³n administrador en portal (sin fila de facturaciÃ³n de alumno) */
.ads-payment-status--admin {
  border-color: rgba(120, 160, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(120, 160, 255, 0.12) inset,
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 28px rgba(79, 140, 255, 0.12);
}

.ads-payment-status--admin .ads-payment-status__badge {
  border-color: rgba(140, 180, 255, 0.52);
  background: rgba(79, 140, 255, 0.24);
  color: #e8f0ff;
}

.ads-payment-status--in-side.ads-payment-status--admin .ads-payment-status__title {
  color: #dce8ff;
}

/*
  MÃ³dulos enlazados desde portal.html: patrÃ³n unificado de retorno
  - main: class="ads-shell ads-shell--align-top"
  - header: ads-topbar ads-topbar-portal ads-topbar--with-back
  - primer hijo: a.ads-topbar-back â†’ /portal.html (texto: Â«â† Volver al portalÂ»)
  - segundo bloque: .ads-topbar__cluster (chips + Cerrar sesiÃ³n)
*/

.ads-topbar--with-back {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}

.ads-topbar__cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.ads-topbar-back {
  font-weight: 700;
  flex-shrink: 0;
}

.ads-layout-repaso .ads-topbar--with-back {
  max-width: min(1160px, 100%);
}

.ads-layout-portal .ads-topbar--with-back {
  max-width: min(1160px, 100%);
}

.ads-calendar-layout .ads-topbar--with-back {
  max-width: min(1240px, 100%);
}

.ads-hero-panel {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}

.ads-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 23, 68, 0.25), transparent 46%),
    radial-gradient(circle at 78% 70%, rgba(79, 140, 255, 0.18), transparent 44%);
  pointer-events: none;
}

.ads-portal-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.ads-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 4px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd4df;
  opacity: 0.94;
}

.ads-portal-title--brand {
  margin: 0 auto;
  font-size: clamp(1.85rem, 4.2vw, 3.05rem);
  letter-spacing: 0.015em;
  line-height: 1.06;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(108deg, #ffffff 0%, #ffd2df 28%, #8fc0ff 58%, #ff6f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 73, 125, 0.28);
}

.ads-hero-system-title {
  position: relative;
  z-index: 1;
  margin: 20px auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 760px);
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(139, 187, 255, 0.38);
  background: linear-gradient(135deg, rgba(10, 18, 34, 0.72), rgba(31, 12, 28, 0.58));
  color: #dce9ff;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.35vw, 0.96rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 118, 158, 0.16),
    0 0 20px rgba(79, 140, 255, 0.18);
}

.ads-hero-system-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7bb6ff, #ff4f86);
  box-shadow: 0 0 12px rgba(139, 187, 255, 0.65);
}

.ads-hero-panel .ads-rail {
  width: min(100%, 760px);
  margin-inline: auto;
  margin-bottom: 20px;
  justify-content: space-between;
  gap: 12px;
}

.ads-hero-panel .ads-pill {
  min-width: 182px;
}

.ads-hero-panel .ads-hero-kicker,
.ads-hero-panel .ads-subtitle {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-width: none;
  margin-inline: auto;
  color: #d7e0fc;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.ads-hero-zoom-inline {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 99, 142, 0.38);
  border-radius: 999px;
  background: rgba(8, 12, 21, 0.62);
  backdrop-filter: blur(4px);
}

.ads-hero-inline-actions {
  display: flex;
  width: min(100%, 760px);
  margin-inline: auto;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ads-hero-inline-actions .ads-hero-zoom-inline {
  margin-top: 0;
}

.ads-hero-zoom-inline__label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c4d2;
}

.ads-hero-zoom-inline__link {
  text-decoration: none;
  color: #ffe9ef;
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.76), rgba(255, 23, 68, 0.7));
  border: 1px solid rgba(255, 127, 159, 0.65);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ads-hero-zoom-inline__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.35);
}

/* Hero Variante B: composiciÃ³n HUD agresiva (desktop-first) */
.ads-hero-panel--with-image {
  padding: clamp(26px, 3vw, 36px);
  border-radius: 20px;
  border-color: rgba(255, 92, 140, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 98, 145, 0.42) inset,
    0 0 34px rgba(255, 24, 75, 0.34),
    0 20px 48px rgba(0, 0, 0, 0.42);
}

.ads-hero-panel--with-image::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 23, 68, 0.26), transparent 38%),
    radial-gradient(circle at 88% 24%, rgba(95, 168, 255, 0.23), transparent 45%),
    linear-gradient(90deg, rgba(255, 23, 68, 0.06) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(95, 168, 255, 0.05) 0 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
}

.ads-portal-title--brand {
  font-size: clamp(2rem, 4.7vw, 3.5rem);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 24px rgba(255, 77, 127, 0.34),
    0 6px 20px rgba(0, 0, 0, 0.45);
}

.ads-hero-system-title {
  width: min(100%, 820px);
  min-height: 52px;
  margin: 18px auto 22px;
  border-radius: 12px;
  font-size: clamp(0.84rem, 1.25vw, 1.05rem);
  letter-spacing: 0.08em;
  border-color: rgba(146, 198, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(7, 14, 28, 0.86), rgba(36, 10, 32, 0.66)),
    linear-gradient(90deg, rgba(95, 168, 255, 0.15), rgba(255, 80, 128, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(255, 118, 158, 0.2),
    0 0 0 1px rgba(104, 177, 255, 0.17),
    0 0 24px rgba(79, 140, 255, 0.22);
}

.ads-hero-system-title::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.08));
  opacity: 0.35;
}

.ads-hero-panel .ads-hero-rail {
  width: min(100%, 820px);
  margin-bottom: 22px;
  gap: 14px;
}

.ads-hero-panel .ads-hero-rail .ads-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.77rem;
  letter-spacing: 0.11em;
  background: rgba(79, 140, 255, 0.14);
  border-color: rgba(123, 173, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(128, 178, 255, 0.08),
    0 0 14px rgba(79, 140, 255, 0.12);
}

.ads-hero-panel .ads-hero-rail .ads-pill--red {
  background: rgba(199, 0, 57, 0.2);
  border-color: rgba(255, 102, 143, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 130, 168, 0.12),
    0 0 16px rgba(255, 23, 68, 0.22);
}

.ads-hero-panel .ads-hero-kicker {
  width: min(100%, 820px);
  margin: 0 auto 8px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #ffe2ea;
  opacity: 0.95;
}

.ads-hero-panel .ads-subtitle {
  width: min(100%, 820px);
  margin: 0 auto 18px;
  font-size: clamp(1.02rem, 1.55vw, 1.26rem);
  line-height: 1.45;
  color: #dfe8ff;
}

.ads-hero-inline-actions {
  width: min(100%, 820px);
  gap: 14px;
}

.ads-hero-zoom-inline {
  padding: 8px 12px;
  border-color: rgba(255, 112, 150, 0.5);
  background: linear-gradient(135deg, rgba(8, 12, 21, 0.75), rgba(22, 10, 24, 0.58));
}

.ads-hero-zoom-inline__label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.ads-hero-zoom-inline__link {
  padding: 8px 14px;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(199, 0, 57, 0.34);
}

.ads-hero-zoom-inline__link:hover {
  box-shadow:
    0 0 20px rgba(255, 23, 68, 0.4),
    0 14px 26px rgba(199, 0, 57, 0.3);
}

.ads-hero-panel--with-image {
  background:
    linear-gradient(100deg, rgba(6, 9, 18, 0.88) 0%, rgba(10, 15, 26, 0.8) 42%, rgba(10, 15, 26, 0.75) 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 23, 68, 0.22), transparent 42%),
    url("../../imagesportal/portada.png") center 14%/cover no-repeat;
  border-color: rgba(130, 154, 212, 0.4);
}

.ads-hero-panel--with-image::before {
  background:
    linear-gradient(135deg, rgba(255, 23, 68, 0.2), transparent 40%),
    linear-gradient(315deg, rgba(79, 140, 255, 0.15), transparent 52%);
}

.ads-news-panel {
  margin-bottom: 16px;
}

.ads-live-schedule-panel {
  margin-bottom: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.ads-live-schedule-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 170, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 140, 170, 0.55) inset,
    0 0 30px rgba(255, 23, 68, 0.38),
    0 18px 38px rgba(0, 0, 0, 0.36);
  filter: saturate(1.1);
}

.ads-live-row {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.ads-live-row .ads-live-schedule-panel {
  grid-column: span 8;
}

.ads-live-side-placeholder {
  grid-column: span 4;
  
  background:
    linear-gradient(150deg, rgba(10, 14, 24, 0.72), rgba(14, 20, 34, 0.78)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 90, 130, 0.06) 0 10px,
      rgba(86, 150, 255, 0.05) 10px 20px
    );
  border-style: solid;
  border-color: rgba(255, 109, 146, 0.56);
  position: relative;
  overflow: hidden;
}

.ads-live-side-placeholder.ads-payment-side {
  overflow: visible;
}

/* Mismo respiro que .ads-panel (Horario de Clases en Vivo): 28px */
.ads-payment-side {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 28px;
  box-sizing: border-box;
}

.ads-payment-side__head {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.ads-payment-side__head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.ads-payment-side__rule {
  border: none;
  border-top: 1px solid rgba(149, 190, 255, 0.28);
  margin: 16px 0 20px;
}

.ads-payment-side__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Panel lateral: sin segunda tarjeta; solo el cuadro general del aside */
.ads-payment-status.ads-payment-status--in-side {
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.ads-payment-status.ads-payment-status--in-side::before {
  content: none;
  display: none;
}

/* Pastilla tipo botÃ³n centrada en el panel (sin segunda tarjeta alrededor) */
.ads-payment-status--in-side .ads-payment-status__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto 12px;
  min-width: min(100%, 200px);
  width: auto;
  max-width: 100%;
  height: 42px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  /* borde/fondo por defecto y por estado: heredan de .ads-payment-status__* y variantes --ok, --debt, etc. */
}

.ads-payment-status--in-side .ads-payment-status__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.ads-payment-status--in-side .ads-payment-status__message {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cad6fb;
}

.ads-payment-status--in-side.ads-payment-status--ok .ads-payment-status__title {
  color: #e8fff2;
}

.ads-payment-status--in-side.ads-payment-status--upcoming .ads-payment-status__title {
  color: #fff8e6;
}

.ads-payment-status--in-side.ads-payment-status--debt .ads-payment-status__title,
.ads-payment-status--in-side.ads-payment-status--blocked .ads-payment-status__title {
  color: #ffe8ec;
}

.ads-zoom-priority {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(109, 184, 255, 0.24), transparent 42%),
    radial-gradient(circle at 16% 84%, rgba(255, 23, 68, 0.24), transparent 40%),
    linear-gradient(130deg, rgba(20, 9, 26, 0.96), rgba(14, 20, 36, 0.95));
}

.ads-zoom-priority::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 38%);
  pointer-events: none;
}

.ads-zoom-priority__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ads-zoom-live-dot {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffdbe5;
  border: 1px solid rgba(255, 114, 149, 0.65);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 23, 68, 0.16);
}

.ads-zoom-priority h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  position: relative;
  z-index: 1;
}

.ads-zoom-priority p {
  margin: 0 0 14px;
  color: #d7dff8;
  max-width: 64ch;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.ads-zoom-priority__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 132, 164, 0.75);
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.82), rgba(255, 23, 68, 0.76));
  box-shadow:
    0 0 22px rgba(255, 23, 68, 0.32),
    0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ads-zoom-priority__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 0 32px rgba(255, 23, 68, 0.5),
    0 16px 30px rgba(0, 0, 0, 0.4);
}

.ads-zoom-priority__cta-main {
  font-weight: 700;
  font-size: 1.02rem;
}

.ads-zoom-priority__cta-sub {
  font-size: 0.78rem;
  opacity: 0.9;
}

.ads-news-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ads-news-head-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ads-status-dot {
  font-size: 0.74rem;
  color: #d9ffe5;
  background: rgba(61, 220, 151, 0.16);
  border: 1px solid rgba(61, 220, 151, 0.38);
  border-radius: 999px;
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ads-news-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.ads-news-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ads-country-switch {
  margin-top: 12px;
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255, 86, 130, 0.38);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.6);
  overflow: hidden;
}

.ads-country-switch__glider {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.84), rgba(255, 23, 68, 0.76));
  box-shadow:
    0 0 18px rgba(255, 23, 68, 0.32),
    inset 0 0 0 1px rgba(255, 135, 166, 0.7);
  opacity: 0;
  transform: translate(0, 0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.ads-country-switch__btn {
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #cfdaff;
  font-size: 0.84rem;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ads-country-switch__btn:hover {
  border-color: rgba(126, 184, 255, 0.45);
  color: #e7f0ff;
}

.ads-country-switch__btn.is-active {
  color: #fff;
  border-color: rgba(255, 112, 149, 0.12);
  background: transparent;
  box-shadow: none;
}

.ads-country-schedule {
  margin-top: 12px;
}

.ads-country-schedule__placeholder {
  padding: 14px 14px 12px;
  border: 1px dashed rgba(123, 153, 224, 0.42);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.35);
  color: #d1dcfb;
}

.ads-country-schedule__panel {
  padding: 14px 14px 12px;
  border: 1px solid rgba(123, 153, 224, 0.3);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.55);
}

.ads-country-schedule__panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.ads-country-schedule__panel ul {
  margin: 0;
  padding-left: 17px;
  color: #d7e1ff;
  line-height: 1.65;
}

.ads-portal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.ads-module-card {
  grid-column: span 4;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx, 20%) var(--my, 18%), rgba(90, 166, 255, 0.2), transparent 38%),
    radial-gradient(circle at 84% 86%, rgba(255, 23, 68, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(8, 11, 20, 0.94), rgba(14, 20, 34, 0.96));
  border: 1px solid rgba(255, 70, 120, 0.86);
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 170px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
  box-shadow:
    0 0 0 1px rgba(255, 72, 118, 0.55) inset,
    0 0 24px rgba(255, 23, 68, 0.36),
    0 0 52px rgba(255, 23, 68, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.24);
  animation: moduleReveal 0.55s ease both;
  transform-style: preserve-3d;
  will-change: transform;
}

.ads-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0%, transparent 36%),
    repeating-linear-gradient(
      180deg,
      rgba(101, 124, 187, 0.04) 0 1px,
      rgba(0, 0, 0, 0) 1px 3px
    );
  opacity: 0.5;
  transition: opacity 0.24s ease;
}

.ads-module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(140deg, rgba(255, 23, 68, 0.6), rgba(79, 140, 255, 0.4)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.72;
  transition: opacity 0.24s ease;
  pointer-events: none;
  animation: borderPulse 3.4s ease-in-out infinite;
}

.ads-module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 170, 1);
  box-shadow:
    0 0 0 1px rgba(255, 140, 170, 0.75) inset,
    0 0 36px rgba(255, 23, 68, 0.55),
    0 0 72px rgba(255, 23, 68, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.36);
  filter: saturate(1.16);
}

.ads-module-card:hover::before,
.ads-module-card:hover::after {
  opacity: 1;
}

.ads-module-card:nth-child(1) {
  animation-delay: 0.02s;
}

.ads-module-card:nth-child(2) {
  animation-delay: 0.08s;
}

.ads-module-card:nth-child(3) {
  animation-delay: 0.14s;
}

.ads-module-card:nth-child(4) {
  animation-delay: 0.2s;
}

.ads-module-card:nth-child(5) {
  animation-delay: 0.26s;
}

.ads-module-card:nth-child(6) {
  animation-delay: 0.32s;
}

.ads-module-card h3 {
  margin: 26px 0 8px;
  font-size: 1.14rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.44);
}

.ads-module-card p {
  margin: 0;
  color: #d0daf4;
  line-height: 1.55;
  font-size: 0.94rem;
  max-width: 38ch;
}

.ads-module-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ffe8ef;
  background: rgba(199, 0, 57, 0.5);
  border: 1px solid rgba(255, 124, 154, 0.7);
  border-radius: 999px;
  padding: 4px 8px;
}

.ads-module-card--wide {
  grid-column: span 8;
}

.ads-module-card--calendar {
  background:
    radial-gradient(circle at var(--mx, 20%) var(--my, 20%), rgba(255, 71, 111, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(9, 11, 20, 0.95), rgba(19, 20, 36, 0.96));
}

.ads-module-card--repaso {
  background:
    radial-gradient(circle at var(--mx, 78%) var(--my, 18%), rgba(98, 176, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(7, 13, 24, 0.95), rgba(11, 20, 34, 0.96));
}

.ads-module-card--caballo {
  background:
    radial-gradient(circle at var(--mx, 22%) var(--my, 76%), rgba(255, 68, 116, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(17, 8, 17, 0.95), rgba(29, 10, 23, 0.96));
}

.ads-module-card--eval {
  background:
    radial-gradient(circle at var(--mx, 84%) var(--my, 72%), rgba(93, 166, 255, 0.24), transparent 39%),
    linear-gradient(145deg, rgba(8, 13, 24, 0.95), rgba(12, 20, 34, 0.96));
}

.ads-module-card--bases {
  background:
    radial-gradient(circle at var(--mx, 18%) var(--my, 78%), rgba(255, 70, 117, 0.22), transparent 39%),
    linear-gradient(145deg, rgba(9, 12, 23, 0.95), rgba(14, 20, 34, 0.96));
}

.ads-module-card--favorites {
  background:
    radial-gradient(circle at var(--mx, 72%) var(--my, 24%), rgba(255, 203, 92, 0.18), transparent 38%),
    radial-gradient(circle at var(--mx, 18%) var(--my, 82%), rgba(255, 89, 133, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(12, 12, 24, 0.96), rgba(18, 19, 34, 0.98));
}

.ads-module-card--admin {
  background:
    radial-gradient(circle at var(--mx, 76%) var(--my, 20%), rgba(80, 222, 255, 0.2), transparent 40%),
    radial-gradient(circle at var(--mx, 20%) var(--my, 82%), rgba(160, 120, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(8, 15, 28, 0.95), rgba(10, 20, 36, 0.98));
}

.ads-favorites-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ads-favorites-cta {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 700;
}

.ads-favorites-list__empty {
  color: #cfd8f3;
  opacity: 0.82;
  font-size: 0.9rem;
}

.ads-favorites-item__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 255, 0.24);
  text-decoration: none;
  color: #e8eefc;
  background: linear-gradient(130deg, rgba(79, 140, 255, 0.08), rgba(255, 23, 68, 0.06));
}

.ads-favorites-item__link:hover {
  border-color: rgba(163, 203, 255, 0.46);
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.2);
}

.ads-favorites-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.ads-favorites-item__badge--video {
  background: rgba(79, 140, 255, 0.2);
  border-color: rgba(79, 140, 255, 0.42);
}

.ads-favorites-item__badge--pgn {
  background: rgba(255, 80, 120, 0.2);
  border-color: rgba(255, 80, 120, 0.42);
}

.ads-favorites-item__title {
  font-size: 0.84rem;
  line-height: 1.25;
}

.ads-favorites-item__date {
  color: #b9c9ee;
  font-size: 0.74rem;
}

.ads-favorites-page {
  max-width: min(1040px, 100%);
}

.ads-favorites-filter {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(120, 170, 255, 0.32);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 23, 68, 0.06);
}

.ads-favorites-filter__btn {
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #cfdaff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.ads-favorites-filter__btn:hover {
  border-color: rgba(126, 184, 255, 0.45);
  color: #e7f0ff;
}

.ads-favorites-filter__btn.is-active {
  color: #fff;
  border-color: rgba(255, 112, 149, 0.35);
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.45), rgba(79, 140, 255, 0.28));
  box-shadow:
    0 0 16px rgba(255, 23, 68, 0.22),
    inset 0 0 0 1px rgba(255, 135, 166, 0.25);
}

@media (max-width: 480px) {
  .ads-favorites-filter {
    width: 100%;
    justify-content: stretch;
  }

  .ads-favorites-filter__btn {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.8rem;
  }
}

.ads-favorites-page-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ads-favorites-row {
  border: 1px solid rgba(120, 170, 255, 0.26);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(130deg, rgba(79, 140, 255, 0.08), rgba(255, 23, 68, 0.07));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.ads-favorites-row__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ads-favorites-row__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.ads-favorites-row__meta {
  margin: 0;
  color: #b9c9ee;
  font-size: 0.82rem;
}

.ads-favorites-row__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 8px;
}

.ads-favorites-remove {
  border-color: rgba(255, 89, 133, 0.58) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 106, 149, 0.24),
    0 0 14px rgba(255, 23, 68, 0.18);
}

.ads-favorites-remove:hover:not(:disabled) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 134, 169, 0.38),
    0 0 20px rgba(255, 23, 68, 0.24);
}

.ads-module-card--zoom {
  background:
    radial-gradient(circle at var(--mx, 82%) var(--my, 20%), rgba(106, 180, 255, 0.24), transparent 38%),
    linear-gradient(130deg, rgba(199, 0, 57, 0.48), rgba(255, 23, 68, 0.27), rgba(17, 24, 42, 0.92));
  border-color: rgba(255, 124, 154, 0.55);
}

.ads-portal-footer-link {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Enlace â€œVolver al portalâ€ arriba del contenido del mÃ³dulo */
.ads-back-to-portal {
  margin: 0 0 16px;
  padding-bottom: 2px;
  font-size: 0.94rem;
}

.ads-back-to-portal .ads-link {
  font-weight: 700;
  letter-spacing: 0.01em;
}

@keyframes moduleReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.35; }
}

#ads-portal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#ads-portal-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#ads-portal-bg .ads-bg-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#ads-portal-bg .ads-bg-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  opacity: 0.11;
  color: rgba(126, 188, 255, 0.75);
  filter: drop-shadow(0 0 12px rgba(79, 140, 255, 0.35));
  will-change: transform;
}

#ads-portal-bg .ads-bg-piece--pawn {
  width: 22px;
  height: 22px;
  opacity: 0.13;
  color: rgba(255, 72, 123, 0.8);
}

#ads-portal-bg .ads-bg-piece--rook {
  color: rgba(255, 113, 149, 0.8);
}

#ads-portal-bg .ads-bg-piece svg {
  width: 100%;
  height: 100%;
  display: block;
}

#ads-portal-bg .ads-bg-piece svg path,
#ads-portal-bg .ads-bg-piece svg rect,
#ads-portal-bg .ads-bg-piece svg circle,
#ads-portal-bg .ads-bg-piece svg g {
  fill: currentColor;
}

@media (max-width: 980px) {
  .ads-live-row .ads-live-schedule-panel,
  .ads-live-side-placeholder {
    grid-column: span 12;
  }

  .ads-module-card,
  .ads-module-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .ads-rail {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ads-pill {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  .ads-topbar-portal {
    align-items: stretch;
  }

  .ads-payment-status:not(.ads-payment-status--in-side) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .ads-payment-status:not(.ads-payment-status--in-side) .ads-payment-status__badge {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .ads-topbar-portal .ads-chip,
  .ads-topbar-portal .ads-button {
    width: 100%;
    text-align: center;
  }

  .ads-news-head-right {
    width: 100%;
    justify-content: space-between;
  }

  .ads-zoom-priority__cta {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .ads-module-card,
  .ads-module-card--wide {
    grid-column: span 12;
    min-height: 128px;
  }

  .ads-module-card h3 {
    margin-top: 20px;
  }

  .ads-hero-zoom-inline {
    width: 100%;
    justify-content: space-between;
  }

  .ads-portal-title--brand {
    font-size: clamp(1.1rem, 6.6vw, 1.55rem);
    letter-spacing: 0.005em;
  }

  .ads-hero-panel--with-image {
    padding: 22px 16px;
  }

  .ads-hero-inline-actions {
    flex-direction: column;
  }

  .ads-hero-system-title {
    width: auto;
    margin: 12px 0 12px;
    white-space: nowrap;
    font-size: clamp(0.6rem, 2.9vw, 0.76rem);
    letter-spacing: 0.035em;
    padding: 7px 10px;
    min-height: 0;
  }

  .ads-hero-panel .ads-pill {
    min-width: 0;
  }

  .ads-hero-panel .ads-hero-rail {
    width: 100%;
    margin-bottom: 14px;
  }

  .ads-hero-panel .ads-hero-rail .ads-pill {
    flex: initial;
    width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .ads-hero-panel .ads-hero-kicker,
  .ads-hero-panel .ads-subtitle {
    width: 100%;
    text-align: left;
  }

  .ads-hero-panel .ads-subtitle {
    margin-bottom: 14px;
    font-size: 1rem;
  }

  .ads-hero-inline-actions {
    width: 100%;
  }

  .ads-hero-panel--with-image {
    background-position: center 14%;
  }
}

/* Calendario de clases */
.ads-calendar-layout {
  width: min(1240px, 100%);
}

.ads-calendar-hero {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.ads-calendar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 23, 68, 0.18), transparent 38%),
    radial-gradient(circle at 82% 75%, rgba(95, 168, 255, 0.15), transparent 42%);
  pointer-events: none;
}

.ads-calendar-hero-link {
  margin: 0;
  position: relative;
  z-index: 1;
}

.ads-calendar-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.ads-calendar-panel {
  grid-column: span 12;
}

.ads-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.2);
}

.ads-button-ghost {
  background: rgba(10, 15, 27, 0.72);
  border: 1px solid rgba(255, 123, 157, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 123, 157, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.24);
}

.ads-button-ghost:hover:not(:disabled) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 123, 157, 0.44),
    0 0 18px rgba(255, 23, 68, 0.3);
}

.ads-fav-btn {
  min-width: 46px;
  padding-inline: 10px;
  color: #d6e6ff;
  border-color: rgba(120, 176, 255, 0.46);
}

.ads-fav-btn.is-active {
  color: #ffd7a3;
  border-color: rgba(255, 194, 79, 0.62);
  background: linear-gradient(135deg, rgba(255, 194, 79, 0.24), rgba(255, 130, 48, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 120, 0.26),
    0 0 16px rgba(255, 194, 79, 0.2);
}

.ads-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ads-calendar-toolbar__title-wrap {
  text-align: center;
}

.ads-calendar-toolbar__title-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  gap: 4px;
  justify-items: center;
}

.ads-calendar-toolbar__title-btn:hover .ads-calendar-toolbar__title {
  color: #ffd9e6;
}

.ads-calendar-toolbar__caption {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #afbddf;
}

.ads-calendar-toolbar__title {
  margin: 4px 0 0;
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
}

.ads-calendar-toolbar__title-hint {
  font-size: 0.75rem;
  color: #adb9d8;
}

.ads-calendar-picker {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 102, 140, 0.35);
  border-radius: 12px;
  background: rgba(9, 14, 25, 0.74);
  padding: 10px;
}

.ads-calendar-picker .ads-button {
  background: linear-gradient(135deg, #00b7ff, #34e5ff);
  border: 1px solid rgba(129, 239, 255, 0.72);
  color: #03121a;
  box-shadow:
    0 12px 24px rgba(0, 183, 255, 0.34),
    0 0 18px rgba(52, 229, 255, 0.3);
}

.ads-calendar-picker .ads-button:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow:
    0 14px 28px rgba(0, 183, 255, 0.42),
    0 0 22px rgba(52, 229, 255, 0.4);
}

.ads-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.ads-calendar-weekdays span {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #bdc8e8;
  border: 1px solid rgba(126, 167, 255, 0.24);
  border-radius: 10px;
  padding: 6px 4px;
  background: rgba(10, 15, 27, 0.45);
}

.ads-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ads-calendar-mobile-legend {
  display: none;
}

.ads-calendar-cell {
  border: 1px solid rgba(129, 158, 227, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 10%, rgba(108, 179, 255, 0.14), transparent 38%),
    linear-gradient(150deg, rgba(10, 15, 28, 0.9), rgba(14, 20, 34, 0.9));
  color: #ecf2ff;
  min-height: 96px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}

.ads-calendar-cell:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 140, 170, 0.8);
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.24);
}

.ads-calendar-cell.is-available {
  border-color: rgba(38, 208, 124, 0.78);
  background:
    radial-gradient(circle at 12% 12%, rgba(38, 208, 124, 0.24), transparent 42%),
    linear-gradient(150deg, rgba(8, 24, 20, 0.95), rgba(10, 23, 31, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(111, 255, 184, 0.1),
    0 0 18px rgba(38, 208, 124, 0.12);
}

.ads-calendar-cell.is-available:hover:not(:disabled) {
  border-color: rgba(111, 255, 184, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(111, 255, 184, 0.18),
    0 0 22px rgba(38, 208, 124, 0.28);
}

.ads-calendar-cell.is-holiday {
  border-color: rgba(255, 106, 144, 0.72);
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 72, 121, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(24, 9, 16, 0.92), rgba(30, 10, 19, 0.92));
}

.ads-calendar-cell.is-selected {
  border-color: rgba(255, 154, 182, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 154, 182, 0.58) inset,
    0 0 26px rgba(255, 23, 68, 0.42);
}

.ads-calendar-cell.is-empty {
  cursor: default;
  opacity: 0.34;
}

.ads-calendar-cell__empty {
  font-size: 0.9rem;
}

.ads-calendar-cell__day {
  font-size: 1rem;
  font-weight: 700;
}

.ads-calendar-cell__tag {
  align-self: stretch;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  border: 1px solid rgba(136, 171, 243, 0.32);
  color: #d4dffb;
  padding: 4px 8px;
  background: rgba(8, 12, 22, 0.6);
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.2;
}

.ads-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(130, 175, 255, 0.4);
}

.ads-status-light.is-available {
  background: #26d07c;
  box-shadow: 0 0 10px rgba(38, 208, 124, 0.6);
}

.ads-status-light.is-holiday {
  background: #ff4f71;
  box-shadow: 0 0 10px rgba(255, 79, 113, 0.62);
}

.ads-status-light.is-pgn {
  background: #ffd34a;
  box-shadow: 0 0 10px rgba(255, 211, 74, 0.62);
}

.ads-status-light.is-empty {
  background: #74819a;
  box-shadow: 0 0 8px rgba(116, 129, 154, 0.46);
}

.ads-status-text {
  display: inline;
}

.ads-calendar-cell__tag.is-available {
  border-color: rgba(111, 255, 184, 0.72);
  color: #d9ffe8;
  background: linear-gradient(135deg, rgba(20, 185, 112, 0.32), rgba(28, 132, 183, 0.18));
  box-shadow: inset 0 0 0 1px rgba(111, 255, 184, 0.12);
}

.ads-calendar-cell__tag.is-empty {
  border-color: rgba(123, 136, 160, 0.36);
  color: #aeb8cd;
  background: rgba(8, 12, 22, 0.42);
}

.ads-calendar-cell__tag.is-holiday {
  border-color: rgba(255, 118, 154, 0.72);
  color: #ffd4e0;
  background: rgba(199, 0, 57, 0.2);
}

.ads-calendar-cell__tag.is-pgn {
  border-color: rgba(255, 211, 74, 0.65);
  color: rgba(255, 235, 184, 0.95);
  background: rgba(255, 211, 74, 0.16);
}

.ads-calendar-status {
  margin-top: 10px;
}

.ads-calendar-modal[hidden] {
  display: none;
}

.ads-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ads-calendar-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 9, 0.72);
  backdrop-filter: blur(4px);
}

.ads-calendar-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 12px));
  max-height: min(86vh, 760px);
  overflow: auto;
}

.ads-calendar-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 123, 157, 0.62);
  border-radius: 8px;
  background: rgba(199, 0, 57, 0.2);
  color: #ffd9e5;
  font-size: 1.2rem;
  cursor: pointer;
}

.ads-calendar-modal__day {
  margin: 0;
  color: #b6c4e4;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ads-calendar-modal__title {
  margin: 6px 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}

.ads-calendar-modal__badge {
  display: inline-flex;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d5def8;
  border: 1px solid rgba(125, 158, 231, 0.35);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(10, 14, 23, 0.62);
}

.ads-calendar-modal__badge.is-holiday {
  color: #ffd9e3;
  border-color: rgba(255, 118, 154, 0.7);
  background: rgba(199, 0, 57, 0.24);
}

.ads-calendar-modal__badge.is-available {
  color: #d9ffe8;
  border-color: rgba(111, 255, 184, 0.72);
  background: linear-gradient(135deg, rgba(20, 185, 112, 0.28), rgba(28, 132, 183, 0.16));
}

.ads-calendar-modal__description {
  margin: 10px 0 0;
  color: #cad7fa;
}

.ads-calendar-modal__player-wrap {
  margin-top: 12px;
  border: 1px solid rgba(125, 158, 231, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: #05080f;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ads-calendar-modal__player {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.ads-calendar-modal__playlist {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.ads-calendar-playlist-item {
  border: 1px solid rgba(125, 158, 231, 0.33);
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.68);
  color: #e7edff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.ads-calendar-playlist-item:hover {
  border-color: rgba(255, 130, 164, 0.66);
}

.ads-calendar-playlist-item.is-active {
  border-color: rgba(255, 130, 164, 0.9);
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.26);
}

@media (max-width: 980px) {
  .ads-calendar-picker {
    grid-template-columns: 1fr 1fr;
  }

  .ads-calendar-picker .ads-button {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .ads-calendar-toolbar {
    flex-wrap: wrap;
  }

  .ads-calendar-toolbar .ads-button {
    width: 100%;
  }

  .ads-calendar-picker {
    grid-template-columns: 1fr;
  }

  .ads-calendar-picker .ads-button {
    grid-column: span 1;
  }

  .ads-calendar-weekdays span {
    font-size: 0;
    padding: 5px 2px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
  }

  .ads-calendar-weekdays span:nth-child(1)::after { content: "L"; }
  .ads-calendar-weekdays span:nth-child(2)::after { content: "M"; }
  .ads-calendar-weekdays span:nth-child(3)::after { content: "X"; }
  .ads-calendar-weekdays span:nth-child(4)::after { content: "J"; }
  .ads-calendar-weekdays span:nth-child(5)::after { content: "V"; }

  .ads-calendar-weekdays span::after {
    font-size: 0.7rem;
    color: #d3dcf8;
    font-weight: 700;
  }

  .ads-calendar-mobile-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(114, 151, 229, 0.35);
    background: rgba(8, 12, 22, 0.48);
  }

  .ads-calendar-mobile-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d8e3ff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .ads-calendar-grid {
    gap: 8px;
  }

  .ads-calendar-cell {
    min-height: 84px;
    padding: 7px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
  }

  .ads-calendar-cell__day {
    display: inline-flex;
    position: absolute;
    left: 0;
    top: 7px;
    z-index: 1;
    width: 100%;
    justify-content: center;
    line-height: 1;
    text-align: center;
  }

  .ads-calendar-cell__tag {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    width: auto;
    max-width: none;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    margin: 0;
    gap: 0;
  }

  /* Cuando hay VIDEO y PGN, separamos los dos puntos para que no se solapen */
  .ads-calendar-cell.has-video-and-pgn .ads-calendar-cell__tag.is-available {
    left: calc(50% - 14px);
  }

  .ads-calendar-cell.has-video-and-pgn .ads-calendar-cell__tag.is-pgn {
    left: calc(50% + 14px);
  }

  /* Cuando hay FERIADO y PGN (sin video), separamos rojo y amarillo */
  .ads-calendar-cell.has-holiday-and-pgn .ads-calendar-cell__tag.is-holiday {
    left: calc(50% - 14px);
  }

  .ads-calendar-cell.has-holiday-and-pgn .ads-calendar-cell__tag.is-pgn {
    left: calc(50% + 14px);
  }

  .ads-status-text {
    display: none;
  }

  .ads-status-light {
    width: 11px;
    height: 11px;
    display: block;
  }

  .ads-calendar-modal .ads-calendar-modal__dialog {
    width: calc(100vw - 12px) !important;
    max-height: 92vh !important;
    padding: 16px 12px 12px !important;
  }

  .ads-calendar-modal .ads-calendar-modal__close {
    top: 8px;
    right: 8px;
  }

  .ads-calendar-modal .ads-calendar-modal__day,
  .ads-calendar-modal .ads-calendar-modal__title,
  .ads-calendar-modal .ads-calendar-modal__badge,
  .ads-calendar-modal .ads-calendar-modal__description {
    padding-right: 42px;
  }

  .ads-calendar-modal .ads-calendar-modal__player-wrap { aspect-ratio: 4 / 3 !important; padding-bottom: 0 !important; height: auto !important;
    border-radius: 8px;
  }


}

/* ========== Repaso por temas ========== */
.ads-layout-repaso {
  width: min(1100px, 100%);
}

.ads-repaso-panel {
  position: relative;
  overflow: hidden;
}

.ads-repaso-hero {
  position: relative;
  margin: -6px -8px 22px;
  padding: 22px 20px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 123, 157, 0.38);
  background:
    linear-gradient(135deg, rgba(199, 0, 57, 0.14) 0%, rgba(79, 140, 255, 0.1) 50%, rgba(13, 17, 28, 0.5) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 72, 118, 0.12) inset,
    0 22px 50px rgba(255, 23, 68, 0.12);
}

.ads-repaso-hero__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 23, 68, 0.18), transparent 55%);
  pointer-events: none;
}

.ads-repaso-title {
  position: relative;
  margin: 12px 0 10px;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(255, 23, 68, 0.2);
}

.ads-repaso-lead {
  position: relative;
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ads-repaso-lead strong {
  color: #ffd0dc;
  font-weight: 600;
}

.ads-repaso-search {
  margin-bottom: 20px;
}

.ads-repaso-search__input {
  border-color: rgba(255, 123, 157, 0.35);
}

.ads-repaso-search__input:focus {
  border-color: rgba(255, 23, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 23, 68, 0.12);
}

.ads-repaso-chips-wrap {
  margin-bottom: 18px;
}

.ads-repaso-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 14px;
}

.ads-repaso-stat {
  font-size: 0.8rem;
  color: #b6c3e6;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(124, 164, 255, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
}

.ads-repaso-stat strong {
  color: #f2f6ff;
}

.ads-repaso-chips-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9aa8cc;
}

.ads-repaso-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
}

.ads-repaso-chip {
  appearance: none;
  border: 1px solid rgba(124, 164, 255, 0.35);
  background: rgba(79, 140, 255, 0.08);
  color: #c9d8ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.ads-repaso-chip__count {
  min-width: 1.55rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-align: center;
  color: #ffdce7;
  background: rgba(199, 0, 57, 0.24);
  border: 1px solid rgba(255, 123, 157, 0.35);
}

.ads-repaso-chip:hover {
  border-color: rgba(255, 123, 157, 0.45);
  background: rgba(199, 0, 57, 0.1);
  color: #ffe8ee;
}

.ads-repaso-chip.is-active {
  border-color: rgba(255, 23, 68, 0.65);
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.35), rgba(79, 140, 255, 0.2));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.25);
}

.ads-repaso-chip.is-active .ads-repaso-chip__count {
  color: #fff;
  background: rgba(255, 23, 68, 0.38);
  border-color: rgba(255, 143, 175, 0.55);
}

.ads-message--repaso.ads-message--error {
  color: var(--error);
}

.ads-repaso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  min-height: 120px;
  margin-bottom: 22px;
}

.ads-repaso-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  border: 1px dashed rgba(130, 154, 212, 0.28);
  border-radius: 16px;
  background: rgba(6, 10, 18, 0.35);
}

.ads-repaso-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: linear-gradient(165deg, rgba(16, 20, 34, 0.92), rgba(8, 11, 20, 0.88));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: adsRepasoCardIn 0.42s ease both;
}

.ads-repaso-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 123, 157, 0.4);
  box-shadow:
    0 22px 48px rgba(255, 23, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ads-repaso-card--skeleton {
  pointer-events: none;
  border-style: dashed;
  border-color: rgba(130, 154, 212, 0.3);
  background: linear-gradient(165deg, rgba(17, 21, 36, 0.88), rgba(8, 11, 20, 0.84));
}

.ads-repaso-skel {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(113, 132, 183, 0.16) 0%, rgba(166, 183, 227, 0.28) 50%, rgba(113, 132, 183, 0.16) 100%);
  background-size: 240% 100%;
  animation: adsRepasoShimmer 1.25s linear infinite;
}

.ads-repaso-skel--meta {
  width: 54%;
  height: 14px;
  margin-bottom: 14px;
}

.ads-repaso-skel--title {
  width: 100%;
  height: 15px;
  margin-bottom: 10px;
}

.ads-repaso-skel--title.short {
  width: 72%;
  margin-bottom: 16px;
}

.ads-repaso-skel--btn {
  width: 42%;
  height: 34px;
  border-radius: 11px;
}

.ads-repaso-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ads-repaso-card__date {
  font-size: 0.8rem;
  color: #8fa3d4;
  font-variant-numeric: tabular-nums;
}

.ads-repaso-card__topic {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 8px;
  max-width: 58%;
  text-align: right;
  line-height: 1.25;
}

.ads-repaso-card__topic--none {
  color: #8893b0;
  border: 1px solid rgba(130, 154, 212, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.ads-repaso-card__topic--jp {
  color: #ffeeb8;
  border-color: rgba(255, 214, 92, 0.62);
  background: rgba(122, 88, 8, 0.22);
}
.ads-repaso-card__topic--ft {
  color: #c8ffd4;
  border-color: rgba(61, 220, 151, 0.42);
  background: rgba(24, 102, 64, 0.16);
}
.ads-repaso-card__topic--fp {
  color: #ffd1f1;
  border-color: rgba(255, 92, 214, 0.62);
  background: rgba(104, 18, 78, 0.22);
}
.ads-repaso-card__topic--ca {
  color: #ffd9ba;
  border-color: rgba(255, 140, 60, 0.62);
  background: rgba(120, 52, 8, 0.22);
}
.ads-repaso-card__topic--ap {
  color: #ffd0d4;
  border-color: rgba(255, 72, 86, 0.64);
  background: rgba(138, 10, 22, 0.24);
}
.ads-repaso-card__topic--gc {
  color: #d7dcff;
  border-color: rgba(132, 150, 255, 0.64);
  background: rgba(28, 38, 108, 0.24);
}
.ads-repaso-card__topic--td {
  color: #ffd0d4;
  border-color: rgba(255, 72, 86, 0.64);
  background: rgba(138, 10, 22, 0.24);
}
.ads-repaso-card__topic--es {
  color: #f3f6ff;
  border-color: rgba(214, 222, 242, 0.58);
  background: rgba(164, 177, 212, 0.18);
}

.ads-repaso-card__title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
  color: #f0f4ff;
}

.ads-repaso-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.ads-repaso-btn-play {
  flex: 0 0 auto;
  min-width: 152px;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
}

.ads-repaso-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ads-repaso-pagination__info {
  font-size: 0.88rem;
  color: var(--muted);
  min-width: 200px;
  text-align: center;
}

.ads-repaso-modal__player-wrap {
  position: relative;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 460px);
}

.ads-repaso-modal__player-wrap::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 52px;
  height: 36px;
  border-radius: 10px;
  background: rgba(5, 8, 15, 0.14);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  z-index: 2;
}

.ads-repaso-calendar-modal .ads-calendar-modal__dialog {
  width: min(920px, calc(100vw - 22px));
  max-height: 92vh;
  padding: 24px 18px 18px;
}

.ads-repaso-calendar-modal .ads-calendar-modal__close {
  top: 12px;
  right: 12px;
  z-index: 4;
}

.ads-repaso-calendar-modal .ads-calendar-modal__day,
.ads-repaso-calendar-modal .ads-calendar-modal__title,
.ads-repaso-calendar-modal .ads-calendar-modal__badge,
.ads-repaso-calendar-modal .ads-calendar-modal__description {
  padding-right: 42px;
}

.ads-repaso-calendar-modal .ads-calendar-modal__description {
  margin-top: 8px;
  margin-bottom: 0;
}

.ads-repaso-calendar-modal .ads-calendar-modal__toprow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0 0 4px;
}

.ads-repaso-calendar-modal .ads-calendar-modal__pgn-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ads-repaso-calendar-modal .ads-calendar-modal__pgn-actions[hidden] {
  display: none !important;
}

@keyframes adsRepasoCardIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes adsRepasoShimmer {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@media (max-width: 640px) {
  .ads-layout-repaso .ads-topbar--with-back {
    align-items: flex-start;
    gap: 10px;
  }

  .ads-layout-repaso .ads-topbar-back {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ads-layout-repaso .ads-topbar__cluster {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .ads-layout-repaso .ads-topbar__cluster .ads-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ads-repaso-stats {
    gap: 8px;
  }

  .ads-repaso-stat {
    font-size: 0.75rem;
    padding: 5px 9px;
  }

  .ads-repaso-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .ads-repaso-chip {
    flex-shrink: 0;
  }

  .ads-repaso-grid {
    grid-template-columns: 1fr;
  }

  .ads-repaso-pagination {
    align-items: stretch;
    gap: 10px;
  }

  .ads-repaso-pagination .ads-button {
    width: 100%;
  }

  .ads-repaso-pagination__info {
    width: 100%;
    min-width: 0;
    order: -1;
  }
}

@media (max-width: 820px) {
  .ads-layout-repaso {
    width: 100%;
    max-width: 100%;
  }

  .ads-layout-repaso .ads-topbar--with-back {
    align-items: flex-start;
    gap: 10px;
  }

  .ads-layout-repaso .ads-topbar-back {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ads-layout-repaso .ads-topbar__cluster {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .ads-layout-repaso .ads-topbar__cluster .ads-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ads-layout-repaso .ads-topbar__cluster .ads-button {
    width: 100%;
  }

  .ads-repaso-hero {
    margin: 0 0 16px;
    padding: 16px 14px 18px;
  }

  .ads-repaso-search__row {
    width: 100%;
  }

  .ads-repaso-search__row .ads-button {
    width: 100%;
  }
}

/* --- Caballo de Silicio (mÃ³dulo alumnos) --- */
.ads-caballo-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.ads-caballo-hero__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 23, 68, 0.22), transparent 42%),
    radial-gradient(circle at 78% 20%, rgba(79, 140, 255, 0.2), transparent 44%),
    radial-gradient(circle at 50% 90%, rgba(199, 0, 57, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ads-caballo-hero .ads-rail,
.ads-caballo-hero__title,
.ads-caballo-hero__lead,
.ads-caballo-hero .ads-portal-footer-link {
  position: relative;
  z-index: 1;
}

.ads-caballo-hero__title {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ads-caballo-hero__title-accent {
  background: linear-gradient(108deg, #ffffff 0%, #ffd2df 22%, #8fc0ff 55%, #ff6f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(255, 73, 125, 0.22);
}

.ads-caballo-hero__lead {
  margin: 0 0 14px;
  max-width: 62ch;
  color: #d7e0fc;
  line-height: 1.65;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.ads-caballo-galeria {
  margin-bottom: 18px;
}

.ads-caballo-galeria__head {
  margin-bottom: 16px;
}

.ads-caballo-galeria__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.02em;
}

.ads-caballo-galeria__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 72ch;
}

/* GalerÃ­a: overlay hasta que carguen portadas (Drive / red lenta) */
.ads-caballo-grid-shell {
  position: relative;
  min-height: 220px;
}

.ads-caballo-grid-shell--loading .ads-caballo-revistas-grid {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ads-caballo-grid-shell:not(.ads-caballo-grid-shell--loading) .ads-caballo-revistas-grid {
  opacity: 1;
}

.ads-caballo-grid-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(8, 12, 24, 0.92), rgba(12, 18, 36, 0.88));
  border: 1px solid rgba(126, 166, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* Mientras el grid va creciendo con placeholders, un overlay absolute se estira y el
   centrado vertical queda "abajo del todo". Fijamos al viewport solo en estado loading. */
.ads-caballo-grid-shell--loading .ads-caballo-grid-loading {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 200;
  border-radius: 0;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px));
}

.ads-caballo-grid-shell:not(.ads-caballo-grid-shell--loading) .ads-caballo-grid-loading {
  display: none;
}

.ads-caballo-grid-loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(216, 226, 255, 0.22);
  border-top-color: #7ea6ff;
  animation: adsCaballoGridSpin 0.85s linear infinite;
  box-shadow: 0 0 22px rgba(126, 166, 255, 0.35);
}

.ads-caballo-grid-loading__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #d8e4ff;
  text-align: center;
  max-width: 22rem;
  line-height: 1.45;
}

@keyframes adsCaballoGridSpin {
  to {
    transform: rotate(360deg);
  }
}

.ads-caballo-revistas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ads-caballo-revista {
  position: relative;
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(130, 154, 212, 0.35);
  background: linear-gradient(155deg, rgba(14, 18, 32, 0.95), rgba(8, 11, 20, 0.9));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ads-caballo-revista::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 23, 68, 0.08), transparent 40%, rgba(79, 140, 255, 0.1));
  opacity: 0.85;
  pointer-events: none;
}

.ads-caballo-revista:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 123, 157, 0.55);
  box-shadow:
    0 22px 50px rgba(255, 23, 68, 0.14),
    0 0 0 1px rgba(255, 98, 145, 0.18) inset;
}

.ads-caballo-revista__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.ads-caballo-revista__badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffe8ef;
  border: 1px solid rgba(255, 124, 154, 0.55);
  background: rgba(199, 0, 57, 0.22);
}

.ads-caballo-revista__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.ads-caballo-revista__cover-wrap {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.ads-caballo-revista__cover {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.28s ease;
}

.ads-caballo-revista__cover-wrap:hover .ads-caballo-revista__cover {
  transform: scale(1.04);
}

.ads-caballo-revista__cover-wrap--article {
  aspect-ratio: 210 / 297;
  margin-bottom: 10px;
  cursor: pointer;
}

.ads-caballo-revista__cover-wrap--article .ads-caballo-revista__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ads-caballo-revista__cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d7e4ff;
  background:
    radial-gradient(circle at 22% 20%, rgba(79, 140, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 82%, rgba(199, 0, 57, 0.28), transparent 42%),
    linear-gradient(155deg, rgba(10, 18, 33, 0.95), rgba(17, 27, 50, 0.94));
}

.ads-caballo-revista__actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ads-caballo-btn-temas {
  min-height: 42px;
}

.ads-caballo-btn-leer {
  text-align: center;
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.35), rgba(199, 0, 57, 0.55));
  border: 1px solid rgba(163, 203, 255, 0.45);
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.2);
}

.ads-caballo-btn-leer:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(255, 23, 68, 0.22);
}

.ads-caballo-revista__actions--dual-read {
  gap: 8px;
}

.ads-caballo-revista__actions--dual-read .ads-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.ads-caballo-btn-read-web,
.ads-caballo-btn-read-a4 {
  white-space: nowrap;
}

.ads-caballo-pagination {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.ads-caballo-pagination__info {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.ads-caballo-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ads-caballo-page-nav {
  min-width: 120px;
}

.ads-caballo-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ads-caballo-page-num {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(130, 154, 212, 0.35);
  background: rgba(8, 12, 22, 0.55);
  color: #dfe8ff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ads-caballo-page-num:hover:not(:disabled) {
  border-color: rgba(255, 123, 157, 0.45);
}

.ads-caballo-page-num.is-active {
  border-color: rgba(255, 123, 157, 0.65);
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.35), rgba(79, 140, 255, 0.22));
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.22);
}

.ads-caballo-page-dots {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}

/* Modales portada / Ã­ndice */
.ads-caballo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ads-caballo-modal[hidden] {
  display: none !important;
}

.ads-caballo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}

.ads-caballo-modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 123, 157, 0.45);
  background: linear-gradient(160deg, rgba(12, 16, 28, 0.96), rgba(8, 11, 20, 0.94));
  box-shadow:
    0 0 0 1px rgba(79, 140, 255, 0.12) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ads-caballo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(130, 154, 212, 0.22);
}

.ads-caballo-modal__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #eef3ff;
}

.ads-caballo-modal__close {
  border: 1px solid rgba(255, 123, 157, 0.45);
  background: rgba(199, 0, 57, 0.18);
  color: #ffeef3;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ads-caballo-modal__close:hover {
  filter: brightness(1.08);
}

.ads-caballo-modal__body {
  padding: 12px;
  overflow: auto;
}

.ads-caballo-modal__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- Admin alumnos (fase 1 / punto 1) --- */
.ads-admin-layout {
  width: min(1180px, 100%);
}

.ads-admin-layout--wide {
  width: min(1680px, 100%);
}

.ads-subtitle--wide {
  max-width: none;
}

.ads-admin-hint--wide {
  max-width: none;
}

.ads-admin-members-toolbar.ads-admin-members-toolbar--wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.ads-admin-search--grow {
  flex: 1 1 320px;
  min-width: 220px;
}

.ads-admin-search--grow .ads-admin-search__input {
  max-width: none;
  width: 100%;
}

.ads-admin-table-wrap--admissions {
  margin-top: 4px;
}

.ads-admin-table--admissions {
  min-width: 1080px;
}

.ads-admin-cell-name {
  font-weight: 600;
  max-width: 260px;
  word-break: break-word;
}

.ads-admin-cell-contact {
  min-width: 200px;
  max-width: 320px;
}

.ads-admin-email-line {
  display: block;
  word-break: break-all;
  line-height: 1.35;
}

.ads-admin-phone-line {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.88;
}

.ads-admin-cell-segment {
  min-width: 220px;
  vertical-align: top;
}

.ads-admin-seg-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.35;
}

.ads-input.ads-input--segment {
  width: 100%;
  max-width: 280px;
  min-width: 0;
}

.ads-admin-actions--stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 340px;
}

a.ads-admin-mini-btn.ads-admin-mini-btn--wa {
  text-decoration: none;
}

.ads-admin-mini-btn--disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.ads-admin-panel {
  margin-bottom: 14px;
}

.ads-admin-panel h2 {
  margin: 0 0 12px;
}

.ads-admin-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.ads-admin-hint--tight {
  margin: 10px 0 0;
  font-size: 0.82rem;
  max-width: 70ch;
}

.ads-admin-form {
  gap: 12px;
}

.ads-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ads-field--checkbox {
  display: flex;
  align-items: center;
}

.ads-label--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ads-label--checkbox input {
  width: 18px;
  height: 18px;
}

.ads-textarea {
  resize: vertical;
}

.ads-admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(130, 154, 212, 0.26);
  border-radius: 12px;
}

.ads-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: rgba(8, 12, 22, 0.38);
}

.ads-admin-table th,
.ads-admin-table td {
  border-bottom: 1px solid rgba(130, 154, 212, 0.2);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.88rem;
}

.ads-admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cedaf9;
}

.ads-admin-mini-btn {
  border: 1px solid rgba(122, 178, 255, 0.45);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(199, 0, 57, 0.14));
  color: #e9efff;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ads-admin-mini-btn:hover {
  border-color: rgba(255, 132, 164, 0.62);
}

.ads-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ads-admin-mini-btn--danger {
  border-color: rgba(255, 107, 107, 0.55);
  background: linear-gradient(135deg, rgba(120, 20, 40, 0.45), rgba(199, 0, 57, 0.25));
}

.ads-admin-mini-btn--danger:hover {
  border-color: rgba(255, 140, 140, 0.75);
}

.ads-admin-mini-btn--paid {
  border-color: rgba(72, 199, 142, 0.65);
  background: linear-gradient(135deg, rgba(20, 90, 60, 0.55), rgba(46, 160, 110, 0.35));
  color: #e8fff4;
}

.ads-admin-mini-btn--paid:hover {
  border-color: rgba(120, 230, 180, 0.85);
}

.ads-admin-mini-btn--paid:focus-visible {
  outline: 2px solid rgba(140, 235, 190, 0.95);
  outline-offset: 2px;
}

.ads-admin-mini-btn--paid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Modal confirmar eliminaciÃ³n de alumno (admin.html) */
.ads-admin-delete-dialog {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(460px, calc(100vw - 24px));
  width: 100%;
  background: transparent;
  color: var(--text);
}

.ads-admin-delete-dialog::backdrop {
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(6px);
}

.ads-admin-delete-dialog__inner {
  position: relative;
  padding: clamp(18px, 4.5vw, 26px);
  border-radius: 16px;
  border: 1px solid rgba(130, 154, 212, 0.28);
  background: linear-gradient(
    155deg,
    rgba(16, 20, 34, 0.97) 0%,
    rgba(8, 11, 20, 0.98) 55%,
    rgba(14, 8, 16, 0.96) 100%
  );
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(199, 0, 57, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ads-admin-delete-dialog__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffb4c0;
  background: linear-gradient(145deg, rgba(199, 0, 57, 0.45), rgba(90, 12, 40, 0.5));
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.ads-admin-delete-dialog__title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f2f6ff;
}

.ads-admin-delete-dialog__text {
  margin: 0 0 14px;
  font-size: clamp(0.84rem, 2.4vw, 0.92rem);
  line-height: 1.55;
  color: var(--muted);
}

.ads-admin-delete-dialog__text strong {
  color: #e2e9ff;
  font-weight: 600;
}

.ads-admin-delete-dialog__email-wrap {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 9, 18, 0.72);
  border: 1px solid rgba(79, 140, 255, 0.22);
}

.ads-admin-delete-dialog__email-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa8cc;
  margin-bottom: 6px;
}

.ads-admin-delete-dialog__email {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.ads-admin-delete-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ads-admin-delete-dialog__btn-cancel {
  flex: 1 1 auto;
  min-width: min(140px, 100%);
}

.ads-admin-delete-dialog__btn-confirm {
  flex: 1 1 auto;
  min-width: min(200px, 100%);
  border-color: rgba(255, 107, 107, 0.55);
  background: linear-gradient(135deg, rgba(160, 24, 52, 0.85), rgba(199, 0, 57, 0.75));
  color: #fff;
}

.ads-admin-delete-dialog__btn-confirm:hover:not(:disabled) {
  border-color: rgba(255, 160, 160, 0.75);
  filter: brightness(1.06);
}

.ads-admin-delete-dialog__btn-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ads-admin-delete-dialog[data-busy="true"] .ads-admin-delete-dialog__btn-cancel {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 420px) {
  .ads-admin-delete-dialog__actions {
    flex-direction: column-reverse;
  }

  .ads-admin-delete-dialog__btn-cancel,
  .ads-admin-delete-dialog__btn-confirm {
    width: 100%;
    min-width: 0;
  }
}

.ads-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ads-admin-members-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.ads-admin-shortcuts {
  margin: 10px 0 4px;
}

.ads-admin-search {
  display: block;
  width: 100%;
}

.ads-admin-search__input {
  width: 100%;
  max-width: 420px;
}

.ads-admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ads-admin-chip {
  border: 1px solid rgba(130, 154, 212, 0.35);
  border-radius: 999px;
  background: rgba(12, 16, 28, 0.55);
  color: #d6def7;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.ads-admin-chip:hover {
  border-color: rgba(79, 140, 255, 0.55);
  color: #f0f4ff;
}

.ads-admin-chip.is-active {
  border-color: rgba(255, 23, 68, 0.55);
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.35), rgba(79, 140, 255, 0.2));
  color: #fff;
}

/* --- Admin contenido: pestaÃ±as videos / PGN --- */
.ads-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ads-admin-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(22, 27, 42, 0.65);
  color: #dbe4ff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.ads-admin-tab:hover {
  border-color: rgba(79, 140, 255, 0.45);
  color: #fff;
}

.ads-admin-tab.is-active {
  border-color: rgba(255, 23, 68, 0.5);
  background: linear-gradient(135deg, rgba(199, 0, 57, 0.35), rgba(79, 140, 255, 0.2));
  color: #fff;
}

.ads-admin-tab-panel {
  display: block;
}

.ads-admin-content-toolbar--pgn {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.ads-admin-pgn-table th:nth-child(4),
.ads-admin-pgn-table td:nth-child(4) {
  text-align: center;
}

.ads-admin-actions--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

/* --- Admin contenido (repaso) --- */
.ads-admin-content-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.ads-admin-content-search-field {
  margin: 0;
}

.ads-admin-content-table {
  min-width: 0;
  table-layout: fixed;
}

.ads-admin-content-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 6px;
  border-bottom: 1px solid rgba(130, 154, 212, 0.2);
}

.ads-admin-content-page-info {
  font-size: 0.84rem;
  color: #c4d1f1;
  text-align: center;
  flex: 1;
}

.ads-admin-content-title-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ads-admin-content-title-input {
  min-width: 0;
  width: 100%;
}

.ads-admin-content-file {
  color: var(--muted);
  font-size: 0.74rem;
  word-break: break-word;
}

.ads-admin-content-override {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ads-admin-content-override .ads-input {
  min-width: 0;
}

.ads-admin-content-muted {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.ads-admin-segment {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: normal;
  background: rgba(98, 112, 160, 0.25);
  color: #dce4ff;
}

.ads-admin-segment--compact {
  min-width: 36px;
  text-align: center;
}

.ads-admin-content-table th,
.ads-admin-content-table td {
  vertical-align: top;
  word-break: break-word;
}

.ads-admin-content-table th:nth-child(3),
.ads-admin-content-table td:nth-child(3) {
  text-align: center;
}

.ads-admin-segment--ok,
.ads-admin-segment--admin_ok {
  background: rgba(61, 220, 151, 0.18);
  color: #9cf5cf;
}

.ads-admin-segment--upcoming {
  background: rgba(98, 176, 255, 0.22);
  color: #a8d4ff;
}

.ads-admin-segment--debt {
  background: rgba(255, 183, 77, 0.2);
  color: #ffd49a;
}

.ads-admin-segment--payment_blocked,
.ads-admin-segment--admin_blocked {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb4b4;
}

.ads-admin-segment--no_control,
.ads-admin-segment--incomplete {
  background: rgba(166, 176, 202, 0.18);
  color: #c5cde6;
}

/* --- Admin tests (evaluaciÃ³n) --- */
.ads-admin-tests-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.ads-admin-tests-searchbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.ads-admin-tests-results-wrap {
  border: 1px solid rgba(130, 154, 212, 0.22);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.35);
  padding: 10px;
  margin-bottom: 10px;
}

.ads-admin-tests-results {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 44px;
}

.ads-admin-tests-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  border-radius: 10px;
  background: rgba(16, 22, 36, 0.55);
  margin-bottom: 8px;
}

.ads-admin-tests-result__row {
  display: grid;
  gap: 3px;
}

.ads-admin-tests-result__cat {
  color: #c4d1f1;
  font-weight: 700;
  font-size: 0.76rem;
}

.ads-admin-tests-result__name {
  color: #eff3ff;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

.ads-admin-tests-current-label {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(130, 154, 212, 0.26);
  border-radius: 10px;
  background: rgba(16, 22, 36, 0.52);
  color: #e6edff;
  font-weight: 700;
}

.ads-admin-tests-toolbar__actions {
  justify-content: flex-end;
  gap: 8px;
}

.ads-admin-tests-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-admin-destination-group-wrap {
  border: 1px solid rgba(130, 154, 212, 0.26);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(16, 22, 36, 0.45);
}

.ads-admin-destination-group {
  display: grid;
  gap: 8px;
}

.ads-admin-destination-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce6ff;
  font-size: 0.92rem;
}

.ads-admin-destination-option input[type="checkbox"] {
  accent-color: #7ea6ff;
}

.ads-field--full {
  grid-column: 1 / -1;
}

.ads-admin-tests-target {
  border: 1px dashed rgba(130, 154, 212, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  color: #d8e2ff;
  background: rgba(16, 22, 36, 0.6);
  font-size: 0.87rem;
  word-break: break-all;
}

.ads-admin-tests-problems {
  display: grid;
  gap: 14px;
  padding-bottom: 90px; /* espacio para el botÃ³n sticky */
}

.ads-admin-problem-stickybar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 0 0;
}

.ads-admin-problem-stickybar button {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ads-admin-tests-problem {
  border: 1px solid rgba(130, 154, 212, 0.26);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 12, 22, 0.55);
}

.ads-admin-tests-problem__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ads-admin-tests-problem__actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ads-admin-tests-textarea {
  min-height: 88px;
  resize: vertical;
}

.ads-admin-tests-upload-row {
  margin-top: 6px;
  gap: 10px;
  align-items: center;
}

.ads-admin-tests-fen-hint {
  margin: 0 0 8px;
}

.ads-admin-tests-fen-flip {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #d8e4ff;
}

.ads-admin-tests-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(130, 154, 212, 0.35);
  border-radius: 10px;
  background: rgba(16, 22, 36, 0.7);
  color: #dce6ff;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.ads-admin-tests-file-input {
  color: #dce6ff;
  font-size: 0.82rem;
}

.ads-admin-tests-file-input::file-selector-button {
  appearance: none;
  border: 1px solid rgba(130, 154, 212, 0.4);
  border-radius: 8px;
  background: rgba(32, 45, 76, 0.8);
  color: #eff3ff;
  padding: 6px 10px;
  margin-right: 8px;
  font-weight: 600;
  cursor: pointer;
}

.ads-admin-tests-file-input::file-selector-button:hover {
  border-color: rgba(79, 140, 255, 0.6);
  background: rgba(46, 66, 112, 0.9);
}

/* Admin evaluaciÃ³n: spinner estÃ©tico para "Tiempo sugerido" */
#eval-new-test-duration,
#eval-test-duration {
  font-variant-numeric: tabular-nums;
  padding-right: 44px;
}

.ads-admin-tests-grid input[data-problem-field="points"],
.ads-admin-tests-grid input[data-problem-field="maxErrorsAllowed"] {
  font-variant-numeric: tabular-nums;
  padding-right: 44px;
}

#eval-new-test-duration::-webkit-outer-spin-button,
#eval-new-test-duration::-webkit-inner-spin-button,
#eval-test-duration::-webkit-outer-spin-button,
#eval-test-duration::-webkit-inner-spin-button,
.ads-admin-tests-grid input[data-problem-field="points"]::-webkit-outer-spin-button,
.ads-admin-tests-grid input[data-problem-field="points"]::-webkit-inner-spin-button,
.ads-admin-tests-grid input[data-problem-field="maxErrorsAllowed"]::-webkit-outer-spin-button,
.ads-admin-tests-grid input[data-problem-field="maxErrorsAllowed"]::-webkit-inner-spin-button {
  -webkit-appearance: auto;
  appearance: auto;
  opacity: 1;
  width: 24px;
  margin: 0;
  border-left: 1px solid rgba(130, 154, 212, 0.34);
  background:
    linear-gradient(180deg, rgba(40, 57, 92, 0.85), rgba(22, 32, 56, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: invert(0.92) grayscale(1) contrast(1.2) brightness(1.25);
  cursor: pointer;
}

#eval-new-test-duration:focus::-webkit-outer-spin-button,
#eval-new-test-duration:focus::-webkit-inner-spin-button,
#eval-test-duration:focus::-webkit-outer-spin-button,
#eval-test-duration:focus::-webkit-inner-spin-button,
.ads-admin-tests-grid input[data-problem-field="points"]:focus::-webkit-outer-spin-button,
.ads-admin-tests-grid input[data-problem-field="points"]:focus::-webkit-inner-spin-button,
.ads-admin-tests-grid input[data-problem-field="maxErrorsAllowed"]:focus::-webkit-outer-spin-button,
.ads-admin-tests-grid input[data-problem-field="maxErrorsAllowed"]:focus::-webkit-inner-spin-button {
  border-left-color: rgba(79, 140, 255, 0.6);
  background:
    linear-gradient(180deg, rgba(58, 83, 134, 0.9), rgba(29, 42, 74, 0.95));
  filter: invert(1) grayscale(1) contrast(1.35) brightness(1.35);
}

.ads-admin-tests-preview {
  margin-top: 10px;
}

.ads-admin-tests-preview img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(130, 154, 212, 0.3);
  background: #0c111d;
}

.ads-eval-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: min(520px, calc(100vw - 24px));
  border: 1px solid rgba(130, 154, 212, 0.35);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #eff3ff;
  background: rgba(10, 14, 24, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ads-eval-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ads-eval-toast.is-success {
  border-color: rgba(61, 220, 151, 0.45);
}

.ads-eval-toast.is-error {
  border-color: rgba(255, 107, 107, 0.6);
}

.ads-eval-toast.is-info {
  border-color: rgba(98, 176, 255, 0.55);
}

.ads-field-error-pulse {
  border-color: rgba(255, 107, 107, 0.92) !important;
  box-shadow:
    0 0 0 2px rgba(255, 107, 107, 0.25),
    0 0 18px rgba(255, 107, 107, 0.26);
  animation: adsFieldErrorPulse 0.7s ease 0s 2;
}

@keyframes adsFieldErrorPulse {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  60% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .ads-caballo-revistas-grid {
    grid-template-columns: 1fr;
  }

  .ads-caballo-revista__actions:not(.ads-caballo-revista__actions--dual-read) {
    grid-template-columns: minmax(0, 240px);
    justify-content: center;
  }

  .ads-caballo-revista__actions:not(.ads-caballo-revista__actions--dual-read) .ads-caballo-btn-leer {
    width: 100%;
  }

  .ads-caballo-page-nav {
    width: 100%;
    min-width: 0;
  }

  .ads-caballo-pagination__controls {
    flex-direction: column;
  }

  .ads-admin-grid {
    grid-template-columns: 1fr;
  }

  .ads-admin-content-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ads-admin-content-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ads-admin-content-page-info {
    order: -1;
    width: 100%;
  }

  .ads-admin-tests-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ads-admin-tests-searchbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ads-admin-tests-toolbar__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ads-admin-tests-grid {
    grid-template-columns: 1fr;
  }

  .ads-eval-toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* --- EvaluaciÃ³n y anÃ¡lisis (hub por categorÃ­as, tests, PDF) --- */
.ads-eval-app {
  padding: 18px 18px 28px;
}

.ads-eval-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f4ff;
}

.ads-eval-lead {
  margin: 0;
  max-width: 62ch;
  color: #b8c4e8;
  line-height: 1.55;
  font-size: 0.95rem;
}

.ads-eval-hub-head {
  margin-bottom: 22px;
}

/* BÃºsqueda global y por categorÃ­a (EvaluaciÃ³n alumno) */
.ads-eval-global-search,
.ads-eval-category-search {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.ads-eval-search-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aaee0;
}

.ads-eval-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ads-eval-search-input {
  width: 100%;
  max-width: min(100%, 520px);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.ads-eval-search-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #7a88b8;
  max-width: 62ch;
  line-height: 1.45;
}

.ads-eval-global-results {
  margin-top: 14px;
  padding-top: 4px;
}

.ads-eval-global-results__hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #9aaee0;
}

.ads-eval-global-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
}

.ads-eval-global-result-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(130, 154, 212, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #eef3ff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.ads-eval-global-result-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.ads-eval-global-result__cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.9;
}

.ads-eval-global-result__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f6ff;
}

.ads-eval-global-result__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
}

.ads-eval-global-result__meta {
  font-size: 0.8rem;
  color: #9aaee0;
}

.ads-eval-search-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(130, 154, 212, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: #b8c4e8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ads-eval-theme--jp.ads-eval-category-search {
  border-color: rgba(255, 214, 92, 0.52);
  background: rgba(122, 88, 8, 0.22);
}
.ads-eval-theme--ft.ads-eval-category-search {
  border-color: rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.06);
}
.ads-eval-theme--fp.ads-eval-category-search {
  border-color: rgba(255, 92, 214, 0.48);
  background: rgba(104, 18, 78, 0.22);
}
.ads-eval-theme--ca.ads-eval-category-search {
  border-color: rgba(255, 140, 60, 0.45);
  background: rgba(120, 52, 8, 0.2);
}
.ads-eval-theme--ap.ads-eval-category-search {
  border-color: rgba(255, 72, 86, 0.5);
  background: rgba(138, 10, 22, 0.22);
}
.ads-eval-theme--td.ads-eval-category-search {
  border-color: rgba(128, 136, 154, 0.46);
  background: rgba(36, 40, 50, 0.28);
}
.ads-eval-theme--gc.ads-eval-category-search {
  border-color: rgba(132, 150, 255, 0.48);
  background: rgba(28, 38, 108, 0.24);
}

.ads-eval-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.ads-eval-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(130, 154, 212, 0.28);
  background: linear-gradient(155deg, rgba(14, 18, 32, 0.95), rgba(8, 11, 22, 0.92));
  color: #eef3ff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.ads-eval-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ads-eval-category-card__label {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ads-eval-category-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Temas alineados a .ads-repaso-card__topic--* */
.ads-eval-theme--jp .ads-eval-category-card,
.ads-eval-theme--jp.ads-eval-category-card {
  border-color: rgba(255, 214, 92, 0.66);
  background: linear-gradient(155deg, rgba(138, 96, 8, 0.6), rgba(24, 18, 8, 0.94));
}
.ads-eval-theme--ft .ads-eval-category-card,
.ads-eval-theme--ft.ads-eval-category-card {
  border-color: rgba(61, 220, 151, 0.35);
  background: linear-gradient(155deg, rgba(10, 50, 35, 0.4), rgba(8, 11, 22, 0.92));
}
.ads-eval-theme--fp .ads-eval-category-card,
.ads-eval-theme--fp.ads-eval-category-card {
  border-color: rgba(255, 92, 214, 0.64);
  background: linear-gradient(155deg, rgba(110, 18, 92, 0.64), rgba(24, 8, 30, 0.95));
}
.ads-eval-theme--ca .ads-eval-category-card,
.ads-eval-theme--ca.ads-eval-category-card {
  border-color: rgba(255, 140, 60, 0.58);
  background: linear-gradient(155deg, rgba(102, 44, 8, 0.55), rgba(20, 10, 8, 0.94));
}
.ads-eval-theme--ap .ads-eval-category-card,
.ads-eval-theme--ap.ads-eval-category-card {
  border-color: rgba(255, 72, 86, 0.64);
  background: linear-gradient(155deg, rgba(142, 8, 20, 0.66), rgba(22, 8, 12, 0.95));
}
.ads-eval-theme--td .ads-eval-category-card,
.ads-eval-theme--td.ads-eval-category-card {
  border-color: rgba(128, 136, 154, 0.58);
  background: linear-gradient(155deg, rgba(56, 61, 76, 0.72), rgba(16, 18, 24, 0.96));
}
.ads-eval-theme--gc .ads-eval-category-card,
.ads-eval-theme--gc.ads-eval-category-card {
  border-color: rgba(132, 150, 255, 0.68);
  background: linear-gradient(155deg, rgba(22, 36, 124, 0.7), rgba(8, 12, 40, 0.95));
}

.ads-eval-tests-head,
.ads-eval-run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.ads-eval-theme--jp.ads-eval-tests-head,
.ads-eval-theme--jp.ads-eval-run-head {
  border-color: rgba(255, 214, 92, 0.56);
  background: rgba(122, 88, 8, 0.22);
}
.ads-eval-theme--ft.ads-eval-tests-head,
.ads-eval-theme--ft.ads-eval-run-head {
  border-color: rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.06);
}
.ads-eval-theme--fp.ads-eval-tests-head,
.ads-eval-theme--fp.ads-eval-run-head {
  border-color: rgba(255, 92, 214, 0.48);
  background: rgba(104, 18, 78, 0.22);
}
.ads-eval-theme--ca.ads-eval-tests-head,
.ads-eval-theme--ca.ads-eval-run-head {
  border-color: rgba(255, 140, 60, 0.45);
  background: rgba(120, 52, 8, 0.2);
}
.ads-eval-theme--ap.ads-eval-tests-head,
.ads-eval-theme--ap.ads-eval-run-head {
  border-color: rgba(255, 72, 86, 0.52);
  background: rgba(138, 10, 22, 0.22);
}
.ads-eval-theme--td.ads-eval-tests-head,
.ads-eval-theme--td.ads-eval-run-head {
  border-color: rgba(128, 136, 154, 0.46);
  background: rgba(36, 40, 50, 0.28);
}
.ads-eval-theme--gc.ads-eval-tests-head,
.ads-eval-theme--gc.ads-eval-run-head {
  border-color: rgba(132, 150, 255, 0.54);
  background: rgba(28, 38, 108, 0.24);
}

.ads-eval-subtitle {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #f3f6ff;
}

.ads-eval-muted {
  margin: 0;
  font-size: 0.88rem;
  color: #9aaee0;
}

.ads-eval-test-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.ads-eval-test-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(130, 154, 212, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #eef3ff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ads-eval-test-row:hover {
  border-color: rgba(255, 123, 157, 0.45);
  background: rgba(199, 0, 57, 0.08);
}

.ads-eval-test-row__name {
  font-weight: 700;
  font-size: 1rem;
}

.ads-eval-test-row__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
}

.ads-eval-test-row--completed {
  border-color: rgba(98, 176, 255, 0.42);
  background: rgba(98, 176, 255, 0.07);
}

.ads-eval-test-done-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(126, 166, 255, 0.55);
  color: #d4e4ff;
  background: rgba(40, 60, 110, 0.45);
  flex-shrink: 0;
}

.ads-eval-test-done-badge__score {
  font-weight: 700;
  opacity: 0.92;
}

.ads-eval-last-completion {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(98, 176, 255, 0.35);
  background: rgba(40, 70, 120, 0.22);
}

.ads-eval-last-completion__status {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #a8c8ff;
}

.ads-eval-last-completion__line {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #e8eeff;
}

.ads-eval-last-completion__hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #8fa4d4;
}

.ads-eval-test-row__meta {
  font-size: 0.82rem;
  color: #9aaee0;
}

@media (max-width: 820px) {
  .ads-eval-test-list {
    grid-template-columns: 1fr;
  }
}

.ads-eval-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-left: auto;
}

.ads-eval-time-mode {
  flex: 1 1 340px;
  max-width: 560px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 154, 212, 0.26);
  background: rgba(0, 0, 0, 0.18);
}

.ads-eval-time-mode__title {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #b8c4e8;
}

.ads-eval-time-mode__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ads-eval-time-mode__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(130, 154, 212, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: #eef3ff;
  padding: 10px 11px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.ads-eval-time-mode__option:hover {
  transform: translateY(-1px);
}

.ads-eval-time-mode__option.is-active {
  border-color: rgba(255, 123, 157, 0.55);
  background: rgba(199, 0, 57, 0.13);
}

.ads-eval-time-mode__option-title {
  font-size: 0.9rem;
  font-weight: 800;
}

.ads-eval-time-mode__option-desc {
  font-size: 0.77rem;
  color: #9aaee0;
}

.ads-eval-timer__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3d4;
}

.ads-eval-timer__display {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 5ch;
  color: #ffe6a8;
}

.ads-eval-timer__display.is-danger {
  color: #ff9ca2;
}

.ads-eval-timer__hint {
  font-size: 0.78rem;
  color: #a4b2db;
}

.ads-eval-run-titleblock {
  margin-bottom: 18px;
}

.ads-eval-view {
  position: relative;
}

.ads-eval-global-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(160deg, rgba(6, 11, 24, 0.74), rgba(10, 18, 36, 0.72));
  backdrop-filter: blur(2px);
}

.ads-eval-global-loader[hidden] {
  display: none !important;
}

.ads-eval-global-loader__card {
  width: min(360px, 92vw);
  min-height: 128px;
  border-radius: 16px;
  border: 1px solid rgba(126, 166, 255, 0.32);
  background: linear-gradient(160deg, rgba(8, 14, 30, 0.94), rgba(11, 22, 45, 0.92));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px;
}

.ads-eval-global-loader__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(216, 226, 255, 0.24);
  border-top-color: #7ea6ff;
  box-shadow: 0 0 20px rgba(126, 166, 255, 0.3);
  animation: adsEvalRunSpin 0.85s linear infinite;
}

.ads-eval-global-loader__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #d9e5ff;
}

.ads-eval-global-loading {
  overflow: hidden;
}

.ads-eval-run-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(6, 11, 24, 0.92), rgba(10, 18, 36, 0.9));
  border: 1px solid rgba(126, 166, 255, 0.3);
}

.ads-eval-run-loading[hidden] {
  display: none !important;
}

.ads-eval-run-loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(216, 226, 255, 0.24);
  border-top-color: #7ea6ff;
  box-shadow: 0 0 20px rgba(126, 166, 255, 0.3);
  animation: adsEvalRunSpin 0.85s linear infinite;
}

.ads-eval-run-loading__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #d9e5ff;
}

.ads-eval-view.ads-eval-run-is-loading > *:not(.ads-eval-run-loading) {
  opacity: 0.18;
  pointer-events: none;
}

@keyframes adsEvalRunSpin {
  to {
    transform: rotate(360deg);
  }
}

.ads-eval-problems {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ads-eval-problem {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.14);
}

.ads-eval-theme--jp.ads-eval-problem {
  border-color: rgba(255, 214, 92, 0.58);
}
.ads-eval-theme--ft.ads-eval-problem {
  border-color: rgba(61, 220, 151, 0.22);
}
.ads-eval-theme--fp.ads-eval-problem {
  border-color: rgba(255, 92, 214, 0.52);
}
.ads-eval-theme--ca.ads-eval-problem {
  border-color: rgba(255, 140, 60, 0.44);
}
.ads-eval-theme--ap.ads-eval-problem {
  border-color: rgba(255, 72, 86, 0.56);
}
.ads-eval-theme--td.ads-eval-problem {
  border-color: rgba(128, 136, 154, 0.5);
}
.ads-eval-theme--gc.ads-eval-problem {
  border-color: rgba(132, 150, 255, 0.56);
}

/* BÃºsqueda global: acento claro por categorÃ­a */
.ads-eval-global-result-row.ads-eval-theme--ap {
  border-left: 3px solid rgba(255, 72, 86, 0.92);
}
.ads-eval-global-result-row.ads-eval-theme--jp {
  border-left: 3px solid rgba(255, 214, 92, 0.95);
}
.ads-eval-global-result-row.ads-eval-theme--ca {
  border-left: 3px solid rgba(255, 140, 60, 0.86);
}
.ads-eval-global-result-row.ads-eval-theme--ft {
  border-left: 3px solid rgba(61, 220, 151, 0.72);
}
.ads-eval-global-result-row.ads-eval-theme--fp {
  border-left: 3px solid rgba(255, 92, 214, 0.9);
}
.ads-eval-global-result-row.ads-eval-theme--td {
  border-left: 3px solid rgba(128, 136, 154, 0.92);
}
.ads-eval-global-result-row.ads-eval-theme--gc {
  border-left: 3px solid rgba(132, 150, 255, 0.94);
}

.ads-eval-problem__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ads-eval-problem__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eeff;
}

.ads-eval-problem__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f0f4ff;
}

.ads-eval-problem__img-wrap {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(130, 154, 212, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.ads-eval-problem__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
}

.ads-eval-problem__prompt {
  margin: 0 0 12px;
  color: #c5d0ef;
  line-height: 1.5;
  font-size: 0.92rem;
}

.ads-eval-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.45;
}

.ads-eval-final {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(98, 176, 255, 0.45);
  background: rgba(98, 176, 255, 0.06);
}

.ads-eval-final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.ads-eval-warning {
  margin: 0 0 12px;
  color: #c5d0ef;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ads-eval-final-breakdown {
  margin: 12px 0 14px;
}

.ads-eval-final-breakdown__main-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #eef3ff;
}

.ads-eval-final-breakdown__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.ads-eval-final-breakdown__item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 154, 212, 0.24);
  background: rgba(4, 11, 27, 0.42);
}

.ads-eval-final-breakdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ads-eval-final-breakdown__title {
  margin: 0;
  font-size: 0.95rem;
  color: #f0f4ff;
}

.ads-eval-final-breakdown__status {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d4e1ff;
  border: 1px solid rgba(130, 154, 212, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
}

.ads-eval-final-breakdown__board {
  width: min(100%, 320px);
  margin: 0 auto 8px;
}

.ads-eval-final-breakdown__hint {
  margin-bottom: 8px;
}

.ads-eval-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ads-eval-timeup-dialog .ads-admin-delete-dialog__icon {
  background: radial-gradient(circle at 30% 20%, rgba(255, 211, 74, 0.34), rgba(168, 66, 255, 0.24));
}

.ads-eval-timeup-dialog .ads-admin-delete-dialog__title {
  color: #ffe6a8;
}

.ads-eval-leave-dialog .ads-admin-delete-dialog__icon {
  background: radial-gradient(circle at 30% 20%, rgba(255, 170, 74, 0.34), rgba(255, 85, 94, 0.24));
}

.ads-eval-reset-dialog .ads-admin-delete-dialog__icon {
  background: radial-gradient(circle at 30% 20%, rgba(115, 210, 255, 0.34), rgba(118, 92, 255, 0.24));
}

.ads-eval-print-summary {
  display: none;
  margin-top: 28px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.12);
}

.ads-eval-print-summary--visible {
  display: block;
}

.ads-eval-view.is-finalized .ads-eval-run-head,
.ads-eval-view.is-finalized .ads-eval-run-titleblock,
.ads-eval-view.is-finalized .ads-eval-problems,
.ads-eval-view.is-finalized .ads-eval-actions {
  display: none !important;
}

.ads-eval-view.is-finalized .ads-eval-print-summary {
  margin-top: 0;
}

.ads-eval-print-diagram {
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.ads-eval-print-diagram img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 320px);
  object-fit: contain;
}

.ads-eval-print-diagram--puzzle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.ads-eval-print-diagram--puzzle .ads-eval-puzzle-board,
.ads-eval-print-puzzle-clone {
  width: min(100%, 360px) !important;
  aspect-ratio: 1 / 1;
  margin: 10px auto;
}

.ads-eval-print-diagram--puzzle .cg-wrap {
  width: 100%;
  height: 100%;
}

.ads-eval-print-puzzle-fallback {
  font-size: 0.88rem;
  color: #9aaee0;
}

.ads-eval-print-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(130, 154, 212, 0.25);
}

.ads-eval-print-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f0f4ff;
}

.ads-eval-print-meta {
  margin: 4px 0;
  font-size: 0.88rem;
  color: #b8c4e8;
}

.ads-eval-print-problem {
  margin-bottom: 22px;
  page-break-inside: avoid;
}

.ads-eval-print-h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #eef3ff;
}

.ads-eval-print-prompt {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #9aaee0;
  line-height: 1.45;
}

.ads-eval-print-answer__body {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(130, 154, 212, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: #e8eeff;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: normal;
}

@media (max-width: 640px) {
  .ads-eval-timer {
    width: 100%;
    margin-left: 0;
  }

  .ads-eval-time-mode {
    flex-basis: 100%;
    max-width: none;
  }

  .ads-eval-time-mode__options {
    grid-template-columns: 1fr;
  }

  .ads-eval-category-grid {
    grid-template-columns: 1fr;
  }

  .ads-eval-global-results-list {
    max-height: min(48vh, 360px);
  }

  .ads-eval-search-input {
    max-width: 100%;
  }
}

/* --- Enlace Zoom (portal alumno) --- */
.ads-zoom-link-panel {
  max-width: 640px;
}

.ads-zoom-link-states {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ads-zoom-link-meta {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #b8c4e8;
  line-height: 1.5;
}

.ads-zoom-link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.95), rgba(168, 66, 255, 0.88));
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ads-zoom-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* --- Admin usage stats --- */
.ads-admin-table--usage {
  table-layout: fixed;
  min-width: 0;
}

.ads-admin-table-wrap--usage {
  overflow-x: hidden;
}

.ads-admin-table--usage th,
.ads-admin-table--usage td {
  padding: 9px 8px;
  font-size: 0.82rem;
  vertical-align: top;
}

.ads-admin-table--usage th {
  white-space: normal;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.ads-admin-table--usage td {
  word-break: break-word;
}

.ads-admin-table--usage th:nth-child(1),
.ads-admin-table--usage td:nth-child(1) { width: 20%; }
.ads-admin-table--usage th:nth-child(2),
.ads-admin-table--usage td:nth-child(2) { width: 9%; text-align: center; }
.ads-admin-table--usage th:nth-child(3),
.ads-admin-table--usage td:nth-child(3) { width: 10%; text-align: center; }
.ads-admin-table--usage th:nth-child(4),
.ads-admin-table--usage td:nth-child(4) { width: 7%; text-align: center; }
.ads-admin-table--usage th:nth-child(5),
.ads-admin-table--usage td:nth-child(5) { width: 8%; text-align: center; }
.ads-admin-table--usage th:nth-child(6),
.ads-admin-table--usage td:nth-child(6) { width: 7%; text-align: center; }
.ads-admin-table--usage th:nth-child(7),
.ads-admin-table--usage td:nth-child(7) { width: 13%; }
.ads-admin-table--usage th:nth-child(8),
.ads-admin-table--usage td:nth-child(8) { width: 14%; }
.ads-admin-table--usage th:nth-child(9),
.ads-admin-table--usage td:nth-child(9) { width: 12%; text-align: center; }

.ads-admin-usage-detail__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ads-admin-usage-summary-top {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
}

.ads-admin-usage-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.ads-input.ads-input--compact {
  width: auto;
  min-width: 88px;
  padding: 8px 10px;
  min-height: 36px;
}

.ads-admin-usage-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ads-admin-page-nav {
  min-width: 112px;
}

.ads-admin-usage-list {
  margin: 10px 0 0;
  padding-left: 18px;
  padding-right: 8px;
  color: #d8e2ff;
  line-height: 1.5;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.ads-admin-usage-when {
  color: var(--muted);
  font-size: 0.86em;
  white-space: nowrap;
}

.ads-admin-usage-list__more-wrap {
  list-style: none;
  margin-left: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ads-admin-mini-btn--more {
  padding-inline: 12px;
}

.ads-admin-usage-list__more-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

#usage-summary-table tbody tr.is-selected {
  background: rgba(79, 140, 255, 0.12);
}

.ads-admin-usage-detail h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #f0f4ff;
}

@media (max-width: 980px) {
  .ads-admin-table-wrap--usage {
    overflow-x: auto;
  }

  .ads-admin-table--usage {
    min-width: 900px;
  }

  .ads-admin-usage-detail__grid {
    grid-template-columns: 1fr;
  }

  .ads-admin-usage-pagination {
    justify-content: center;
  }
}


 }

.ads-calendar-modal__player-wrap:fullscreen, .ads-calendar-modal__player-wrap:-webkit-full-screen { width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; }
.ads-calendar-modal__mobile-overlay { display: none; }
@media (max-width: 768px) {
  .ads-calendar-modal__mobile-overlay { display: flex; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 15, 30, 0.95); backdrop-filter: blur(8px); z-index: 100 !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #fff; border-radius: 10px; }
  .ads-calendar-modal__mobile-overlay p { margin-bottom: 20px; font-size: 14px; color: #aeb8d1; line-height: 1.4; }
  .ads-calendar-modal__mobile-overlay .ads-icon { font-size: 32px; margin-bottom: 12px; }
  .ads-calendar-modal__fullscreen-btn-center { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: bold; font-size: 15px; box-shadow: 0 4px 15px rgba(30, 60, 114, 0.5); cursor: pointer; }
  .ads-calendar-modal__player-wrap:fullscreen .ads-calendar-modal__mobile-overlay, .ads-calendar-modal__player-wrap:-webkit-full-screen .ads-calendar-modal__mobile-overlay { display: none !important; }
}

@media (min-width: 1024px) {
  .ads-calendar-modal__player-wrap::after, .ads-calendar-modal__player-wrap.ads-repaso-modal__player-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 65px;
    height: 55px;
    z-index: 5;
    pointer-events: auto;
    background: transparent;
  }
}
