/*
 * Ajustes locales de interfaz.
 *
 * Este archivo mantiene mejoras de presentación separadas del motor del juego:
 * 1. La orientación y el modo de pantalla completa en dispositivos móviles.
 * 2. La transparencia sobre el contenido asistido por IA.
 * 3. El formulario de comentarios del menú principal.
 * 4. La presentación de la actividad «Secuencia terapéutica».
 *
 * Al estar aisladas aquí, son fáciles de estudiar, modificar o retirar.
 */

/* ---------- Orientación y pantalla completa en móviles ---------- */

.gc-orientation-overlay,
.gc-orientation-overlay * {
  box-sizing: border-box;
}

.gc-orientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  color: #effbff;
  background:
    radial-gradient(circle at 50% 14%, rgba(74, 218, 221, 0.25), transparent 36%),
    linear-gradient(160deg, #0d3448, #041725 76%);
}

.gc-orientation-overlay[hidden] {
  display: none !important;
}

.gc-orientation-card {
  width: min(390px, 100%);
  border: 1px solid rgba(104, 226, 231, 0.48);
  border-radius: 24px;
  padding: clamp(24px, 8vw, 38px) clamp(20px, 7vw, 32px);
  text-align: center;
  background: rgba(7, 31, 47, 0.92);
  box-shadow: 0 28px 80px rgba(0, 7, 16, 0.56);
}

.gc-orientation-visual {
  position: relative;
  width: 112px;
  height: 88px;
  margin: 0 auto 22px;
}

.gc-orientation-phone {
  position: absolute;
  top: 2px;
  left: 30px;
  width: 48px;
  height: 78px;
  border: 4px solid #72e1e4;
  border-radius: 11px;
  transform: rotate(-8deg);
  box-shadow: 0 0 24px rgba(91, 219, 223, 0.24);
}

.gc-orientation-phone::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #72e1e4;
}

.gc-orientation-arrow {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: #78e0bd;
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-24deg);
}

.gc-orientation-kicker {
  margin: 0 0 8px;
  color: #78e0bd;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gc-orientation-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 8vw, 2.25rem);
  line-height: 1.08;
}

.gc-orientation-copy {
  margin: 14px 0 22px;
  color: #c8dfe8;
  font-size: 0.98rem;
  line-height: 1.5;
}

.gc-orientation-actions {
  display: grid;
  gap: 10px;
}

.gc-orientation-button {
  min-height: 50px;
  border: 1px solid rgba(107, 226, 230, 0.55);
  border-radius: 13px;
  padding: 11px 16px;
  color: #eefcff;
  background: rgba(16, 62, 79, 0.92);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.gc-orientation-button--primary {
  border-color: #65dce0;
  color: #06202c;
  background: #65dce0;
  box-shadow: 0 8px 24px rgba(40, 184, 190, 0.24);
}

.gc-orientation-button:hover,
.gc-orientation-button:focus-visible {
  outline: 3px solid rgba(126, 237, 241, 0.42);
  outline-offset: 2px;
}

.gc-orientation-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #9fc1cc;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ---------- Transparencia sobre contenido asistido por IA ---------- */

.gc-ai-overlay,
.gc-ai-overlay *,
.gc-ai-banner,
.gc-ai-banner * {
  box-sizing: border-box;
}

.gc-ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 13, 24, 0.82);
  backdrop-filter: blur(9px);
}

.gc-ai-overlay[hidden],
.gc-ai-banner[hidden] {
  display: none !important;
}

.gc-ai-dialog {
  position: relative;
  width: min(850px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(77, 218, 224, 0.5);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  color: #effaff;
  background:
    radial-gradient(circle at 88% 8%, rgba(39, 190, 194, 0.18), transparent 32%),
    linear-gradient(145deg, #102f43, #071c2c 72%);
  box-shadow: 0 30px 90px rgba(0, 5, 15, 0.65);
}

.gc-ai-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #4edce1, #2aa5b4, #78d8a3);
}

.gc-ai-kicker {
  margin: 0 54px 8px 0;
  color: #6be3e7;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.gc-ai-dialog h2 {
  margin: 0 54px 12px 0;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.gc-ai-lead {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cce2ec;
  font-size: 1rem;
  line-height: 1.55;
}

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

.gc-ai-grid article {
  min-width: 0;
  border: 1px solid rgba(89, 208, 214, 0.22);
  border-radius: 15px;
  padding: 15px 16px;
  background: rgba(12, 50, 69, 0.76);
}

.gc-ai-grid h3 {
  margin: 0 0 7px;
  color: #78e0bd;
  font-size: 0.93rem;
}

.gc-ai-grid p,
.gc-ai-legal {
  margin: 0;
  color: #d9e9f0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.gc-ai-legal {
  margin-top: 18px;
  color: #a9c6d2;
}

.gc-ai-legal a {
  color: #7de7eb;
  font-weight: 800;
}

.gc-ai-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(104, 226, 231, 0.42);
  border-radius: 50%;
  color: #effaff;
  background: rgba(5, 27, 42, 0.84);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.gc-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.gc-ai-button {
  min-height: 44px;
  border: 1px solid rgba(102, 222, 226, 0.55);
  border-radius: 12px;
  padding: 10px 17px;
  color: #ecfbff;
  background: rgba(12, 52, 70, 0.9);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.gc-ai-button--primary {
  border-color: #55d7dc;
  color: #041b29;
  background: #65dce0;
}

.gc-ai-close:hover,
.gc-ai-close:focus-visible,
.gc-ai-button:hover,
.gc-ai-button:focus-visible,
.gc-ai-banner button:hover,
.gc-ai-banner button:focus-visible {
  outline: 3px solid rgba(126, 237, 241, 0.42);
  outline-offset: 2px;
}

.gc-ai-banner {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  width: min(760px, calc(100% - 28px));
  margin: 8px auto 0;
  border: 1px solid rgba(95, 226, 230, 0.7);
  border-radius: 16px;
  padding: 8px 10px;
  color: #effbff;
  background: rgba(5, 27, 42, 0.96);
  box-shadow: 0 10px 30px rgba(0, 8, 18, 0.38);
}

.game-shell.gc-ai-banner-visible {
  max-width: min(1500px, calc(177.77778vh - 217px));
}

.gc-ai-banner__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #05202c;
  background: #69dfe3;
  font-size: 0.86rem;
  font-weight: 950;
}

.gc-ai-banner p {
  min-width: 0;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.gc-ai-banner p strong,
.gc-ai-banner p span {
  display: block;
}

.gc-ai-banner p span {
  margin-top: 2px;
  color: #bed4de;
}

.gc-ai-banner button {
  border: 0;
  color: #eafcff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.gc-ai-banner__more {
  padding: 8px 10px;
  border: 1px solid rgba(93, 222, 227, 0.5) !important;
  border-radius: 10px !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.gc-ai-banner__dismiss {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem !important;
}

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

.gc-sr-actions {
  position: fixed;
  left: -10000px;
  top: 1rem;
  z-index: 10050;
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 2px solid #48d8d5;
  border-radius: 1rem;
  background: #092437;
  color: #f4ffff;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.48);
}

.gc-sr-actions-launcher {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  top: calc(50% + 3.15rem);
  z-index: 10040;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid #78e9e5;
  border-radius: 999px;
  background: #092437;
  color: #f4ffff;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.34);
  font: 800 1rem/1 Arial, sans-serif;
  text-align: center;
}

.gc-sr-actions-launcher:hover,
.gc-sr-actions-launcher:focus-visible {
  background: #168c91;
  outline: 3px solid #fff4a8;
  outline-offset: 2px;
}

.gc-sr-actions:focus-within {
  left: 1rem;
}

.gc-sr-actions h2,
.gc-sr-actions p {
  margin: 0 0 0.75rem;
  color: inherit;
}

.gc-sr-actions__close {
  float: right;
  width: 2.5rem;
  min-height: 2.5rem !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 1.35rem !important;
}

.gc-sr-actions__categories,
.gc-sr-actions__options {
  display: grid;
  gap: 0.5rem;
}

.gc-sr-actions__categories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.gc-sr-actions button {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #78e9e5;
  border-radius: 0.65rem;
  background: #123c4d;
  color: #f4ffff;
  font: 700 0.9rem/1.25 Arial, sans-serif;
  text-align: left;
}

.gc-sr-actions button[aria-expanded="true"] {
  background: #168c91;
}

.gc-sr-actions button:focus-visible {
  outline: 3px solid #fff4a8;
  outline-offset: 2px;
}

.gc-sr-actions button:disabled {
  opacity: 0.58;
}

@media (max-width: 720px) {
  .gc-ai-overlay {
    padding: 10px;
  }

  .gc-ai-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
    padding: 24px 18px;
  }

  .gc-ai-grid {
    grid-template-columns: 1fr;
  }

  .gc-ai-banner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    width: calc(100% - 16px);
    margin-top: 6px;
    padding: 9px;
  }

  .gc-ai-banner__mark {
    width: 32px;
    height: 32px;
  }

  .gc-ai-banner__more {
    grid-column: 2;
    justify-self: start;
    padding: 6px 8px;
  }

  .gc-ai-banner__dismiss {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .game-shell.gc-ai-banner-visible {
    max-width: min(100vw, calc(177.77778vh - 185px));
  }

  .gc-ai-banner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    margin-top: 5px;
    border-radius: 12px;
    padding: 6px 8px;
  }

  .gc-ai-banner__mark {
    width: 30px;
    height: 30px;
  }

  .gc-ai-banner p span {
    display: none;
  }

  .gc-ai-banner__more {
    grid-column: auto;
    padding: 5px 7px;
  }

  .gc-ai-banner__dismiss {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Formulario de comentarios ---------- */

.gc-feedback-overlay,
.gc-feedback-overlay * {
  box-sizing: border-box;
}

.gc-feedback-overlay {
  --gc-feedback-accent: #1da8b3;
  --gc-feedback-accent-strong: #117f89;
  --gc-feedback-ink: #123442;
  --gc-feedback-muted: #58717b;
  --gc-feedback-surface: rgba(248, 255, 255, 0.98);
  --gc-feedback-line: rgba(29, 168, 179, 0.38);
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 24, 38, 0.72);
  backdrop-filter: blur(8px);
}

.gc-feedback-overlay[hidden] {
  display: none !important;
}

.gc-feedback-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--gc-feedback-line);
  border-radius: 28px;
  color: var(--gc-feedback-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 250, 0.97)),
    var(--gc-feedback-surface);
  box-shadow: 0 28px 80px rgba(0, 18, 31, 0.34);
}

.gc-feedback-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #28c3ca, #118895, #56d6ba);
}

.gc-feedback-kicker {
  margin: 0 52px 8px 0;
  color: var(--gc-feedback-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gc-feedback-title {
  margin: 0 52px 12px 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.gc-feedback-intro {
  margin: 0 0 26px;
  color: var(--gc-feedback-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.gc-feedback-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gc-feedback-line);
  border-radius: 50%;
  color: var(--gc-feedback-ink);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.gc-feedback-form {
  display: grid;
  gap: 18px;
}

.gc-feedback-context {
  margin: -10px 0 22px;
  border: 1px solid rgba(29, 168, 179, 0.2);
  border-radius: 12px;
  padding: 10px 13px;
  color: #186b73;
  background: rgba(219, 246, 247, 0.72);
  font-size: 0.88rem;
  font-weight: 750;
}

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

.gc-feedback-rating {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(31, 133, 144, 0.2);
  border-radius: 15px;
  padding: 13px 14px 14px;
  background: rgba(255, 255, 255, 0.7);
}

.gc-feedback-rating legend {
  padding: 0 5px;
  color: var(--gc-feedback-ink);
  font-weight: 800;
}

.gc-feedback-rating legend small {
  color: var(--gc-feedback-muted);
  font-weight: 500;
}

.gc-feedback-rating > div {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) repeat(5, 38px) minmax(48px, 1fr);
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.gc-feedback-rating label {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gc-feedback-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-feedback-rating label span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(31, 133, 144, 0.28);
  border-radius: 10px;
  color: #176f78;
  background: #fff;
  font-weight: 850;
  transition: 140ms ease;
}

.gc-feedback-rating input:checked + span {
  border-color: #117f89;
  color: #fff;
  background: linear-gradient(135deg, #1fb4bd, #117d88);
  box-shadow: 0 5px 14px rgba(18, 137, 148, 0.25);
}

.gc-feedback-rating input:focus-visible + span {
  outline: 3px solid rgba(29, 168, 179, 0.26);
  outline-offset: 2px;
}

.gc-rating-end {
  color: var(--gc-feedback-muted);
  font-size: 0.67rem;
  line-height: 1.1;
}

.gc-rating-end--right {
  text-align: right;
}

.gc-feedback-field {
  display: grid;
  gap: 8px;
  color: var(--gc-feedback-ink);
  font-weight: 750;
}

.gc-feedback-field small {
  color: var(--gc-feedback-muted);
  font-weight: 500;
}

.gc-feedback-field input,
.gc-feedback-field textarea {
  width: 100%;
  border: 2px solid rgba(31, 133, 144, 0.24);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--gc-feedback-ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.gc-feedback-field textarea {
  min-height: 112px;
  resize: vertical;
}

.gc-feedback-field input:focus,
.gc-feedback-field textarea:focus {
  border-color: var(--gc-feedback-accent);
  box-shadow: 0 0 0 4px rgba(29, 168, 179, 0.14);
}

.gc-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.gc-feedback-button {
  min-height: 48px;
  border: 1px solid var(--gc-feedback-line);
  border-radius: 15px;
  padding: 12px 19px;
  color: var(--gc-feedback-accent-strong);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.gc-feedback-button--primary {
  flex: 1 1 230px;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1fb4bd, #117d88);
  box-shadow: 0 10px 24px rgba(18, 137, 148, 0.24);
}

.gc-feedback-button:hover,
.gc-feedback-button:focus-visible,
.gc-feedback-close:hover,
.gc-feedback-close:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 137, 148, 0.18);
}

.gc-feedback-status {
  min-height: 24px;
  margin: 2px 0 0;
  color: #267a56;
  font-weight: 700;
  line-height: 1.4;
}

.gc-feedback-status[data-error="true"] {
  color: #a53843;
}

.gc-feedback-note {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 133, 144, 0.16);
  color: var(--gc-feedback-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- Comentarios públicos y moderados ---------- */

.gc-comments-overlay,
.gc-comments-overlay * {
  box-sizing: border-box;
}

.gc-comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 20500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 20, 31, 0.8);
  backdrop-filter: blur(9px);
}

.gc-comments-overlay[hidden] {
  display: none !important;
}

.gc-comments-dialog {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(79, 208, 214, 0.46);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 42px);
  color: #123442;
  background:
    radial-gradient(circle at 94% 5%, rgba(58, 201, 190, 0.14), transparent 29%),
    linear-gradient(145deg, #fbffff, #e8f7f8 78%);
  box-shadow: 0 30px 90px rgba(0, 8, 18, 0.58);
}

.gc-comments-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, #28c3ca, #118895, #56d6ba);
}

.gc-comments-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(29, 168, 179, 0.34);
  border-radius: 50%;
  color: #123442;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 850;
  cursor: pointer;
}

.gc-comments-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.gc-comments-kicker {
  margin: 0 54px 7px 0;
  color: #117f89;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gc-comments-header h2 {
  margin: 0 54px 10px 0;
  color: #102f3e;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.gc-comments-header > p:last-child {
  margin: 0;
  color: #58717b;
  line-height: 1.5;
}

.gc-comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.gc-comments-form,
.gc-comments-community {
  min-width: 0;
  border: 1px solid rgba(29, 168, 179, 0.2);
  border-radius: 18px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.74);
}

.gc-comments-form {
  display: grid;
  gap: 15px;
}

.gc-comments-field {
  display: grid;
  gap: 7px;
  color: #173c49;
  font-weight: 800;
}

.gc-comments-field input,
.gc-comments-field textarea {
  width: 100%;
  border: 2px solid rgba(31, 133, 144, 0.23);
  border-radius: 13px;
  padding: 12px 14px;
  color: #123442;
  background: #fff;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.gc-comments-field textarea {
  min-height: 132px;
  resize: vertical;
}

.gc-comments-field input:focus,
.gc-comments-field textarea:focus {
  border-color: #1da8b3;
  box-shadow: 0 0 0 4px rgba(29, 168, 179, 0.13);
}

.gc-comments-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.gc-comments-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #496873;
  font-size: 0.84rem;
  line-height: 1.42;
  cursor: pointer;
}

.gc-comments-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #168c91;
}

.gc-comments-privacy {
  margin: 0;
  color: #68808a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.gc-comments-privacy a {
  color: #0c7580;
  font-weight: 800;
}

.gc-comments-submit,
.gc-comments-refresh {
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #1fb4bd, #117d88);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.gc-comments-submit {
  min-height: 49px;
  padding: 11px 18px;
  box-shadow: 0 9px 22px rgba(18, 137, 148, 0.22);
}

.gc-comments-refresh {
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 0.67rem;
}

.gc-comments-submit:disabled,
.gc-comments-refresh:disabled {
  cursor: wait;
  opacity: 0.62;
}

.gc-comments-submit:hover:not(:disabled),
.gc-comments-submit:focus-visible,
.gc-comments-refresh:hover:not(:disabled),
.gc-comments-refresh:focus-visible,
.gc-comments-close:hover,
.gc-comments-close:focus-visible {
  outline: 3px solid rgba(29, 168, 179, 0.25);
  outline-offset: 2px;
}

.gc-comments-form-status {
  min-height: 22px;
  margin: 0;
  color: #267a56;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.4;
}

.gc-comments-form-status[data-error="true"] {
  color: #a53843;
}

.gc-comments-community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gc-comments-community-heading h3 {
  margin: 0;
  color: #173c49;
  font-size: 1.18rem;
}

.gc-comments-community-heading .gc-comments-kicker {
  margin-right: 0;
}

.gc-comments-list {
  display: grid;
  gap: 10px;
  max-height: 396px;
  overflow: auto;
  padding-right: 4px;
}

.gc-comment-card {
  border: 1px solid rgba(31, 133, 144, 0.17);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(12, 75, 85, 0.06);
}

.gc-comment-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gc-comment-card strong {
  color: #126f78;
  font-size: 0.9rem;
}

.gc-comment-card time {
  flex: 0 0 auto;
  color: #78909a;
  font-size: 0.72rem;
}

.gc-comment-card p {
  margin: 8px 0 0;
  color: #304f5b;
  font-size: 0.88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gc-comments-empty {
  margin: 0;
  border: 1px dashed rgba(31, 133, 144, 0.27);
  border-radius: 13px;
  padding: 22px 16px;
  color: #647d87;
  background: rgba(238, 250, 250, 0.7);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.gc-comments-empty--error {
  border-color: rgba(181, 68, 79, 0.26);
  color: #98434d;
  background: rgba(255, 240, 241, 0.72);
}

@media (max-width: 820px) {
  .gc-comments-overlay {
    padding: 8px;
  }

  .gc-comments-dialog {
    max-height: calc(100vh - 16px);
    border-radius: 19px;
    padding: 24px 15px 18px;
  }

  .gc-comments-layout {
    grid-template-columns: 1fr;
  }

  .gc-comments-form,
  .gc-comments-community {
    padding: 15px;
  }

  .gc-comments-list {
    max-height: 280px;
  }
}

/* ---------- Secuencia terapéutica ---------- */

/* ---------- Accesibilidad y subtítulos ---------- */

.gc-accessibility-launcher {
  position: fixed;
  z-index: 19000;
  top: 50%;
  right: 8px;
  width: 42px;
  min-height: 42px;
  transform: translateY(-50%);
  border: 1px solid rgba(94, 220, 224, 0.48);
  border-radius: 999px;
  padding: 0;
  color: #eafcfd;
  background: rgba(7, 34, 50, 0.9);
  box-shadow: 0 8px 26px rgba(0, 16, 28, 0.28);
  font: 850 0.82rem/1 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gc-accessibility-launcher:hover,
.gc-accessibility-launcher:focus-visible {
  border-color: #6fe2e5;
  outline: 3px solid rgba(68, 207, 211, 0.24);
  transform: translateY(calc(-50% - 1px));
}

.gc-accessibility-overlay,
.gc-accessibility-overlay * {
  box-sizing: border-box;
}

.gc-accessibility-overlay {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 20, 31, 0.78);
  backdrop-filter: blur(9px);
}

.gc-accessibility-overlay[hidden] {
  display: none !important;
}

.gc-accessibility-dialog {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(34, 167, 177, 0.32);
  border-radius: 25px;
  padding: 34px clamp(24px, 5vw, 46px);
  color: #173a4a;
  background: linear-gradient(145deg, #fbffff, #e8f6f7);
  box-shadow: 0 28px 90px rgba(0, 11, 21, 0.42);
}

.gc-accessibility-kicker {
  margin: 0 50px 7px 0;
  color: #117f89;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gc-accessibility-dialog h2 {
  margin: 0 50px 10px 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.gc-accessibility-intro {
  margin: 0 0 20px;
  color: #58717b;
  line-height: 1.5;
}

.gc-accessibility-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 167, 177, 0.3);
  border-radius: 50%;
  color: #173a4a;
  background: #fff;
  font: 800 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.gc-accessibility-form {
  display: grid;
  gap: 10px;
}

.gc-accessibility-form > label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 62px;
  border: 1px solid rgba(31, 133, 144, 0.15);
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.gc-accessibility-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #168c91;
}

.gc-accessibility-form label span {
  display: grid;
  gap: 3px;
}

.gc-accessibility-form small {
  color: #627b84;
  line-height: 1.35;
}

.gc-accessibility-volume {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr) !important;
}

.gc-accessibility-volume input {
  width: 100%;
  accent-color: #168c91;
}

.gc-volume-value {
  color: #117f89 !important;
  font-weight: 800;
}

.gc-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(31, 133, 144, 0.18);
  padding-top: 17px;
  color: #58717b;
  font-size: 0.82rem;
}

.gc-shortcuts > strong {
  flex-basis: 100%;
  color: #173a4a;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.gc-shortcuts kbd {
  border: 1px solid rgba(31, 133, 144, 0.28);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  color: #117f89;
  background: #fff;
  font: 800 0.75rem/1.4 ui-monospace, monospace;
}

.gc-live-caption {
  position: fixed;
  z-index: 18500;
  left: 50%;
  bottom: clamp(16px, 4vh, 38px);
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(101, 226, 228, 0.44);
  border-radius: 14px;
  padding: 13px 18px;
  color: #f5ffff;
  background: rgba(5, 28, 42, 0.94);
  box-shadow: 0 12px 38px rgba(0, 10, 20, 0.38);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.gc-live-caption[hidden],
:root[data-gc-subtitulos="ocultos"] .gc-live-caption {
  display: none !important;
}

:root[data-gc-texto="grande"] .gc-live-caption,
:root[data-gc-texto="grande"] .gc-accessibility-dialog,
:root[data-gc-texto="grande"] .gc-feedback-dialog {
  font-size: 1.12rem;
}

:root[data-gc-contraste="alto"] #juego canvas {
  filter: contrast(1.18) saturate(0.9) brightness(0.94);
}

:root[data-gc-contraste="alto"] #juego {
  border-color: rgba(118, 242, 245, 0.88);
  box-shadow: 0 0 0 3px rgba(23, 85, 99, 0.72), 0 26px 80px rgba(0, 9, 18, 0.58);
}

:root[data-gc-movimiento="reducido"] *,
:root[data-gc-movimiento="reducido"] *::before,
:root[data-gc-movimiento="reducido"] *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

#juego canvas:focus-visible {
  outline: 4px solid #50d6da;
  outline-offset: -5px;
}

@media (max-width: 760px) {
  .gc-accessibility-launcher {
    top: 50%;
    right: 4px;
    width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 0.68rem;
  }

  .gc-accessibility-overlay {
    padding: 8px;
  }

  .gc-accessibility-dialog {
    max-height: calc(100vh - 16px);
    border-radius: 18px;
    padding: 27px 18px;
  }

  .gc-accessibility-volume {
    grid-template-columns: 1fr !important;
  }
}

.gc-sequence-modal-fix,
.gc-sequence-modal-fix * {
  box-sizing: border-box !important;
}

.gc-sequence-modal-fix {
  width: min(94vw, 1600px) !important;
  max-width: 94vw !important;
  max-height: calc(100vh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-bottom: 26px !important;
  border-radius: 28px !important;
}

.gc-sequence-header-fixed {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 24px clamp(24px, 4vw, 46px) !important;
}

.gc-sequence-title-fixed {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-wrap: anywhere !important;
  line-height: 1.12 !important;
}

.gc-sequence-close-fixed {
  position: relative !important;
  inset: auto !important;
  justify-self: end !important;
  width: auto !important;
  max-width: 260px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  white-space: normal !important;
}

.gc-sequence-intro-fixed {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 26px clamp(24px, 4vw, 46px) 22px !important;
  padding: 0 !important;
  overflow: visible !important;
  line-height: 1.45 !important;
}

.gc-sequence-columns-fixed {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: clamp(30px, 6vw, 110px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 clamp(24px, 4vw, 46px) !important;
  overflow: visible !important;
}

.gc-sequence-column-fixed {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

.gc-sequence-heading-fixed {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  min-height: 28px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  overflow: visible !important;
  line-height: 1.3 !important;
}

.gc-sequence-card-fixed,
.gc-sequence-modal-fix [draggable="true"] {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  overflow: hidden !important;
  transform: none !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

.gc-sequence-slot-fixed {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  overflow: hidden !important;
  transform: none !important;
}

.gc-sequence-validate-fixed {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(520px, calc(100% - 48px)) !important;
  max-width: 100% !important;
  min-height: 58px !important;
  height: auto !important;
  margin: 28px clamp(24px, 4vw, 46px) 0 auto !important;
  padding: 14px 22px !important;
  transform: none !important;
}

.gc-sequence-help-fixed {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 48px) !important;
  margin: 28px clamp(24px, 4vw, 46px) 0 !important;
  padding: 0 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 820px) {
  .gc-feedback-overlay {
    padding: 12px;
  }

  .gc-feedback-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .gc-feedback-ratings {
    grid-template-columns: 1fr;
  }

  .gc-feedback-rating > div {
    grid-template-columns: minmax(42px, 1fr) repeat(5, 34px) minmax(42px, 1fr);
  }

  .gc-sequence-modal-fix {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }

  .gc-sequence-header-fixed {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 20px !important;
  }

  .gc-sequence-close-fixed {
    justify-self: stretch !important;
    max-width: none !important;
  }

  .gc-sequence-intro-fixed {
    margin: 20px !important;
  }

  .gc-sequence-columns-fixed {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 0 20px !important;
  }

  .gc-sequence-validate-fixed,
  .gc-sequence-help-fixed {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-right: 20px !important;
    margin-left: 20px !important;
  }
}
