/*
Theme Name: TGC Theme
Theme URI: https://tugestordecitas.com/
Author: TuGestorDeCitas
Description: Interfaz propia para la gestión privada de citas.
Version: 3.3.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: tgc-theme
*/

:root {
  --tgc-ink: #071126;
  --tgc-ink-2: #15213c;
  --tgc-copy: #485674;
  --tgc-muted: #66738f;
  --tgc-blue: #3b5cff;
  --tgc-blue-dark: #263fce;
  --tgc-blue-soft: #edf1ff;
  --tgc-violet: #7657f6;
  --tgc-aqua: #11a8a5;
  --tgc-coral: #ff6d5f;
  --tgc-success: #137a50;
  --tgc-warning: #a25c0b;
  --tgc-page: #f3f6fc;
  --tgc-surface: #ffffff;
  --tgc-surface-2: #f8f9fc;
  --tgc-line: #dfe4ee;
  --tgc-line-dark: #c9d0df;
  --tgc-shadow: 0 30px 90px rgba(7, 17, 38, 0.14);
  --tgc-action-gradient: linear-gradient(135deg, var(--tgc-blue), var(--tgc-violet));
  --tgc-display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  --tgc-body: "Segoe UI Variable Text", Aptos, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--tgc-page);
  color: var(--tgc-ink);
  font-family: var(--tgc-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
.wp-site-blocks { padding: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #92a5ff; outline-offset: 3px; }

.tgc-app { min-width: 0; overflow: clip; }
.tgc-shell { width: min(100%, 1160px); margin-inline: auto; padding-inline: 18px; }
.tgc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tgc-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  border-radius: 10px;
  background: #fff;
  color: var(--tgc-ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}
.tgc-skip-link:focus { transform: none; }

/* Aplicación pública: una pantalla por decisión */
.tgc-flow {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--tgc-surface);
}
.tgc-flow__rail {
  position: relative;
  z-index: 20;
  min-height: 82px;
  padding: 14px 18px 12px;
  background:
    radial-gradient(circle at 14% 8%, rgba(118,87,246,.25), transparent 28%),
    linear-gradient(165deg, #0b1630 0%, var(--tgc-ink) 58%, #080e1e 100%);
  color: #fff;
}
.tgc-flow__back {
  min-height: 36px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.tgc-flow__progress {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.tgc-flow__progress span { position: relative; display: grid; justify-items: center; color: #77819a; }
.tgc-flow__progress span::before {
  position: absolute;
  top: 7px;
  left: calc(-50% + 10px);
  width: calc(100% - 14px);
  height: 1px;
  background: #364057;
  content: "";
}
.tgc-flow__progress span:first-child::before { display: none; }
.tgc-flow__progress b {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 1px solid #536078;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tgc-ink);
  color: transparent;
  font-size: 0;
}
.tgc-flow__progress .is-active b { border-color: #fff; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.1); }
.tgc-flow__progress .is-complete b { border-color: #7f92ff; background: #7f92ff; }
.tgc-flow__progress .is-complete b::after { color: #fff; content: "✓"; font-size: 8px; }
.tgc-flow__progress i { display: none; font-style: normal; }
.tgc-flow__counter { position: absolute; right: 18px; top: 13px; margin: 0; color: #b6bed0; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tgc-flow__rail-note { display: none; }
.tgc-flow__viewport { position: relative; min-width: 0; flex: 1; overflow: hidden; }
.tgc-screen {
  position: relative;
  min-height: calc(100svh - 82px);
  padding: 42px 20px 58px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 86% 12%, rgba(59,92,255,.07), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(118,87,246,.045), transparent 24%),
    linear-gradient(90deg, rgba(24,35,61,.035) 1px, transparent 1px),
    linear-gradient(rgba(24,35,61,.035) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  animation: tgc-screen-enter .34s ease both;
}
.tgc-screen::after {
  position: absolute;
  z-index: 0;
  right: -140px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border: 78px solid rgba(52,87,241,.045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.tgc-screen__number {
  position: absolute;
  z-index: 0;
  top: 12px;
  right: 10px;
  color: rgba(10,16,34,.035);
  font-family: var(--tgc-display);
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1;
  pointer-events: none;
}
.tgc-screen__content { position: relative; z-index: 2; width: min(100%, 920px); margin-inline: auto; }
.tgc-kicker { margin: 0 0 15px; color: var(--tgc-blue-dark); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.tgc-screen h1,
.tgc-screen h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--tgc-display);
  font-size: clamp(2.7rem, 13vw, 6.5rem);
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: .94;
}
.tgc-screen h2 { font-size: clamp(2.25rem, 10vw, 5rem); }
.tgc-screen__lead { max-width: 690px; margin: 20px 0 0; color: var(--tgc-copy); font-size: 15px; line-height: 1.7; }
.tgc-screen__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tgc-state-pill,
.tgc-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--tgc-blue-soft);
  color: var(--tgc-blue-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tgc-command { margin-top: 34px; }
.tgc-command > label { display: block; margin-bottom: 9px; color: var(--tgc-ink-2); font-size: 12px; font-weight: 850; }
.tgc-command__control {
  padding: 7px;
  border: 1px solid var(--tgc-line-dark);
  border-radius: 20px;
  display: grid;
  gap: 7px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(10,16,34,.08);
}
.tgc-command input {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tgc-ink);
  font-size: 18px;
}
.tgc-command input::placeholder { color: #99a2b7; }
.tgc-command button,
.tgc-primary-button,
.tgc-primary-link {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--tgc-ink), #17264b);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(7,17,38,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tgc-command button b { font-size: 19px; }
.tgc-command button:disabled,
.tgc-primary-button:disabled { cursor: not-allowed; opacity: .52; }
.tgc-quick-actions { margin-top: 30px; }
.tgc-quick-actions > p { margin: 0 0 11px; color: var(--tgc-muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tgc-quick-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tgc-quick-actions button,
.tgc-text-action {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--tgc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tgc-ink-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.tgc-quick-actions button:hover { border-color: #9caae9; background: var(--tgc-blue-soft); color: var(--tgc-blue-dark); }
.tgc-api-status,
.tgc-location-status,
.tgc-plan-status,
.tgc-contract-status,
.tgc-summary-note { color: var(--tgc-muted); font-size: 11px; line-height: 1.55; }
.tgc-api-status { display: flex; margin-top: 22px; align-items: center; gap: 8px; }
.tgc-api-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--tgc-success); }
.tgc-api-status p { margin: 0; }
.tgc-api-status.is-error > span { background: var(--tgc-coral); }
.tgc-api-status.is-error,
.tgc-location-status.is-error,
.tgc-plan-status.is-unavailable,
.tgc-contract-status.is-unavailable { color: #9b2e2e; }

.tgc-result-list,
.tgc-location-list,
.tgc-office-list { display: grid; margin-top: 28px; gap: 10px; }
.tgc-result-option,
.tgc-location-option,
.tgc-office-option {
  width: 100%;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--tgc-line);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255,255,255,.94);
  color: var(--tgc-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.tgc-result-option:hover,
.tgc-location-option:hover,
.tgc-office-option:hover { border-color: #9aa9f8; box-shadow: 0 12px 28px rgba(23,33,58,.08); transform: translateY(-1px); }
.tgc-result-option > span:first-child,
.tgc-location-option > span:first-child { min-width: 0; display: grid; }
.tgc-result-option strong,
.tgc-location-option strong,
.tgc-office-option strong { font-size: 14px; line-height: 1.25; }
.tgc-result-option small,
.tgc-location-option small { margin-top: 4px; color: var(--tgc-muted); font-size: 10px; }
.tgc-result-option__summary { display: none; }
.tgc-result-option__badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--tgc-success);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.tgc-result-option__badge.is-official { background: #eef1f7; color: var(--tgc-copy); }
.tgc-result-option__badge.is-review { background: #fff0e2; color: var(--tgc-warning); }
.tgc-results__empty,
.tgc-location-results__empty { padding: 22px; border: 1px dashed var(--tgc-line-dark); border-radius: 16px; color: var(--tgc-copy); background: #fff; }
.tgc-text-action { margin-top: 20px; }

.tgc-selection { position: relative; min-height: 100%; }
.tgc-context-card {
  position: relative;
  z-index: 12;
  margin: 16px 18px 0;
  padding: 12px 13px;
  border: 1px solid rgba(202,209,223,.9);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(10,16,34,.07);
  backdrop-filter: blur(18px);
}
.tgc-context-card > span { min-width: 0; display: grid; }
.tgc-context-card small { color: var(--tgc-blue-dark); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tgc-context-card strong { margin-top: 2px; font-size: 12px; line-height: 1.25; }
.tgc-context-card i { margin-top: 2px; color: var(--tgc-muted); font-size: 9px; font-style: normal; line-height: 1.3; }
.tgc-context-card button { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 9px; background: var(--tgc-blue-soft); color: var(--tgc-blue-dark); cursor: pointer; font-size: 10px; font-weight: 850; }
.tgc-selection .tgc-screen { min-height: calc(100svh - 170px); padding-top: 42px; }
.tgc-location-selected {
  margin-top: 26px;
  padding: 15px;
  border: 1px solid #cdd6ff;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tgc-blue-soft);
}
.tgc-location-selected > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tgc-blue); color: #fff; }
.tgc-location-selected > div { min-width: 0; display: grid; }
.tgc-location-selected small { color: var(--tgc-blue-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tgc-location-selected strong { margin-top: 3px; font-size: 14px; }
.tgc-location-selected p { display: none; }
.tgc-location-option__arrow { color: var(--tgc-blue); font-size: 20px; }
.tgc-office-option { display: grid; align-items: initial; }
.tgc-office-option.is-recommended {
  border-color: #7185ff;
  background:
    radial-gradient(circle at 100% 0, rgba(118,87,246,.13), transparent 38%),
    linear-gradient(145deg, #fff 0%, #f6f7ff 100%);
  box-shadow: 0 16px 36px rgba(59,92,255,.12);
}
.tgc-office-option:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.tgc-office-option__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tgc-office-option__heading small { padding: 5px 8px; border-radius: 99px; background: #e8f7ef; color: var(--tgc-success); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tgc-office-option.is-recommended .tgc-office-option__heading small { background: linear-gradient(135deg, var(--tgc-blue), var(--tgc-violet)); color: #fff; box-shadow: 0 6px 14px rgba(59,92,255,.2); }
.tgc-office-option__address { color: var(--tgc-copy); font-size: 11px; }
.tgc-office-option__distance { display: flex; align-items: center; gap: 7px; color: var(--tgc-ink); font-size: 10px; font-weight: 850; }
.tgc-office-option__distance::before { width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--tgc-aqua); box-shadow: 0 0 0 2px rgba(17,168,165,.18); content: ''; }
.tgc-office-option__area { color: var(--tgc-blue-dark); font-size: 9px; font-weight: 800; }
.tgc-office-distance-note { margin: 12px 0 0; padding-left: 15px; border-left: 2px solid rgba(59,92,255,.35); color: var(--tgc-muted); font-size: 10px; line-height: 1.5; }
.tgc-office-alternatives-toggle { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--tgc-line-dark); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--tgc-blue-dark); cursor: pointer; font-size: 11px; font-weight: 850; }
.tgc-office-alternatives-toggle::after { margin-left: 8px; content: '↓'; }
.tgc-office-alternatives-toggle[aria-expanded='true']::after { content: '↑'; }
.tgc-office-alternatives { display: grid; gap: 10px; }
.tgc-office-alternatives[hidden] { display: none; }
.tgc-office-empty {
  padding: 20px;
  border: 1px solid #f0c9c3;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8f6;
}
.tgc-office-empty__icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: #ffe1dc; color: #9b2e2e; font-weight: 900; }
.tgc-office-empty > div { min-width: 0; }
.tgc-office-empty strong { display: block; font-size: 14px; }
.tgc-office-empty p { margin: 7px 0 0; color: var(--tgc-copy); font-size: 11px; line-height: 1.55; }
.tgc-office-empty__actions { display: flex; flex-wrap: wrap; margin-top: 14px; gap: 8px; }
.tgc-office-empty__actions button { min-height: 38px; padding: 0 12px; border: 1px solid var(--tgc-line-dark); border-radius: 10px; background: #fff; color: var(--tgc-ink); cursor: pointer; font-size: 10px; font-weight: 850; }
.tgc-office-empty__actions button:first-child { border-color: var(--tgc-blue); background: var(--tgc-blue); color: #fff; }

.tgc-plan-list { display: grid; margin-top: 24px; gap: 12px; }
.tgc-plan-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--tgc-line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.96);
}
.tgc-plan-card--plus { border-color: #9eacff; box-shadow: 0 16px 36px rgba(52,87,241,.1); }
.tgc-plan-card--plus { background: linear-gradient(#fff,#fff) padding-box, var(--tgc-action-gradient) border-box; border: 1px solid transparent; }
.tgc-plan-card--plus::before { position: absolute; top: -10px; right: 16px; padding: 5px 9px; border-radius: 99px; background: var(--tgc-action-gradient); color: #fff; content: "Más elegido"; font-size: 8px; font-weight: 900; text-transform: uppercase; box-shadow: 0 8px 18px rgba(59,92,255,.22); }
.tgc-plan-card__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tgc-plan-card h4 { margin: 0; font-size: 16px; }
.tgc-plan-card__heading strong { font-family: var(--tgc-display); font-size: 25px; letter-spacing: -.045em; }
.tgc-plan-card > p { min-height: 48px; color: var(--tgc-copy); font-size: 11px; }
.tgc-plan-card ul { display: grid; margin: 8px 0 22px; padding: 0; gap: 8px; list-style: none; }
.tgc-plan-card li { color: var(--tgc-copy); font-size: 10px; }
.tgc-plan-card li::before { margin-right: 7px; color: var(--tgc-blue); content: "✓"; font-weight: 900; }
.tgc-plan-card button { min-height: 48px; margin-top: auto; border: 0; border-radius: 13px; background: var(--tgc-ink); color: #fff; cursor: pointer; font-size: 12px; font-weight: 850; }
.tgc-plan-card--plus button { background: var(--tgc-action-gradient); box-shadow: 0 12px 24px rgba(59,92,255,.22); }
.tgc-plan-card button:disabled { cursor: not-allowed; opacity: .52; }

.tgc-contract-form { margin-top: 24px; }
.tgc-contact-promise {
  max-width: 690px;
  margin-top: 24px;
  padding: 15px;
  border: 1px solid #cfd8ff;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: linear-gradient(135deg, rgba(237,241,255,.96), rgba(248,246,255,.96));
  box-shadow: 0 14px 34px rgba(37,57,132,.07);
}
.tgc-contact-promise__mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: var(--tgc-action-gradient);
  box-shadow: 0 10px 20px rgba(59,92,255,.22);
}
.tgc-contact-promise__mark::before,
.tgc-contact-promise__mark::after,
.tgc-contact-promise__mark i { position: absolute; border-radius: 50%; background: #fff; content: ""; }
.tgc-contact-promise__mark::before { width: 18px; height: 14px; left: 10px; top: 9px; border-radius: 9px; }
.tgc-contact-promise__mark::after { width: 6px; height: 6px; left: 10px; top: 19px; clip-path: polygon(0 0,100% 0,0 100%); }
.tgc-contact-promise__mark i { width: 3px; height: 3px; left: 16px; top: 15px; box-shadow: 5px 0 #fff, 10px 0 #fff; background: var(--tgc-blue); }
.tgc-contact-promise > div { min-width: 0; }
.tgc-contact-promise strong { display: block; font-size: 12px; }
.tgc-contact-promise p { margin: 4px 0 0; color: var(--tgc-copy); font-size: 10px; line-height: 1.55; }
.tgc-contract-fields { display: grid; gap: 14px; }
.tgc-contract-field { display: grid; gap: 7px; color: var(--tgc-ink-2); font-size: 11px; font-weight: 800; }
.tgc-contract-field input,
.tgc-contract-field select { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid var(--tgc-line-dark); border-radius: 13px; background: #fff; color: var(--tgc-ink); }
.tgc-consent { display: flex; margin: 18px 0; padding: 15px; border-radius: 14px; align-items: flex-start; gap: 10px; background: var(--tgc-surface-2); color: var(--tgc-copy); font-size: 10px; }
.tgc-consent input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--tgc-blue); }
.tgc-primary-button { width: 100%; }
.tgc-summary-price { margin: 28px 0; padding: 18px; border: 1px solid var(--tgc-line); border-radius: 18px; background: #fff; }
.tgc-after-payment {
  max-width: 690px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--tgc-line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px 11px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 38px rgba(7,17,38,.06);
}
.tgc-after-payment > span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--tgc-blue-soft); color: var(--tgc-blue-dark); font-size: 8px; font-weight: 900; }
.tgc-after-payment > div { min-width: 0; display: grid; align-content: center; }
.tgc-after-payment strong { font-size: 11px; }
.tgc-after-payment small { margin-top: 2px; color: var(--tgc-muted); font-size: 9px; line-height: 1.45; }
.tgc-summary-price > div { display: flex; padding: 10px 0; border-bottom: 1px solid var(--tgc-line); justify-content: space-between; gap: 18px; }
.tgc-summary-price > div:last-child { border: 0; }
.tgc-summary-price dt { color: var(--tgc-copy); font-size: 11px; }
.tgc-summary-price dd { margin: 0; font-weight: 850; }
.tgc-summary-price > div:last-child dd { color: var(--tgc-blue-dark); font-size: 22px; }
.tgc-payment-element { margin: 18px 0; }
.tgc-local-payment { display: grid; gap: 14px; }
.tgc-local-payment__badge { justify-self: start; padding: 6px 9px; border-radius: 99px; background: #fff0e4; color: var(--tgc-warning); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tgc-fake-card { min-height: 190px; padding: 24px; border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(140deg, #17213a, #334fe0); color: #fff; box-shadow: 0 22px 44px rgba(23,33,58,.22); }
.tgc-fake-card small { color: #bfc8ff; font-size: 9px; text-transform: uppercase; }
.tgc-fake-card strong { font-size: clamp(1.2rem, 7vw, 1.8rem); letter-spacing: .08em; }
.tgc-fake-card div { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.tgc-simulator-options { display: grid; gap: 8px; }
.tgc-simulator-options label { padding: 12px; border: 1px solid var(--tgc-line); border-radius: 12px; display: flex; align-items: center; gap: 9px; background: #fff; font-size: 11px; }
.tgc-simulator-options input { accent-color: var(--tgc-blue); }

.tgc-completion-card {
  max-width: 690px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #c8d5ff;
  border-radius: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #edf2ff, #f8f6ff);
  box-shadow: 0 22px 56px rgba(49,72,160,.12);
}
.tgc-completion-card__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 15px; display: grid; place-items: center; background: var(--tgc-action-gradient); color: #fff; font-weight: 900; box-shadow: 0 12px 24px rgba(59,92,255,.25); }
.tgc-completion-card > div { min-width: 0; display: grid; }
.tgc-completion-card small { color: var(--tgc-blue-dark); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tgc-completion-card strong { margin-top: 5px; overflow-wrap: anywhere; font-family: var(--tgc-display); font-size: 18px; letter-spacing: -.025em; }
.tgc-completion-card p { margin: 7px 0 0; color: var(--tgc-copy); font-size: 10px; line-height: 1.55; }
.tgc-completion-next { max-width: 690px; margin-top: 14px; padding: 17px 19px; border: 1px solid var(--tgc-line); border-radius: 18px; background: rgba(255,255,255,.9); }
.tgc-completion-next strong { font-size: 11px; }
.tgc-completion-next p { margin: 5px 0 0; color: var(--tgc-copy); font-size: 10px; line-height: 1.6; }
.tgc-completion-step .tgc-text-action { border-color: #b8c4ff; color: var(--tgc-blue-dark); }

.tgc-footer { padding: 38px 20px 28px; background: var(--tgc-ink); color: #fff; }
.tgc-footer__primary { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tgc-brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.tgc-brand__mark { position: relative; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 12px; background: var(--tgc-blue); }
.tgc-brand__mark::before,
.tgc-brand__mark::after,
.tgc-brand__mark i { position: absolute; left: 10px; height: 3px; border-radius: 99px; background: #fff; content: ""; }
.tgc-brand__mark::before { top: 11px; width: 18px; }
.tgc-brand__mark i { top: 18px; width: 13px; }
.tgc-brand__mark::after { top: 25px; width: 8px; }
.tgc-brand > span:last-child { display: grid; }
.tgc-brand strong { font-family: var(--tgc-display); font-size: 15px; letter-spacing: -.035em; }
.tgc-brand small { color: #aeb7cb; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tgc-footer__access { min-height: 42px; padding: 0 13px; border: 1px solid #3d4860; border-radius: 12px; display: inline-flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 850; text-decoration: none; }
.tgc-footer__service { min-height: 40px; padding: 0 13px; border: 1px solid #34425f; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; color: #d6def1; font-size: 9px; font-weight: 800; }
.tgc-footer__service i { width: 7px; height: 7px; border-radius: 50%; background: #50d89a; box-shadow: 0 0 0 5px rgba(80,216,154,.1); }
.tgc-footer__facts { display: grid; margin-top: 28px; padding-top: 20px; border-top: 1px solid #2c374f; gap: 8px; color: #aeb7cb; font-size: 9px; }
.tgc-footer__facts p { margin: 0; }

/* Vistas públicas indexables */
.tgc-header { border-bottom: 1px solid var(--tgc-line); background: rgba(255,255,255,.96); }
.tgc-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tgc-header .tgc-brand { color: var(--tgc-ink); }
.tgc-nav { display: flex; gap: 8px; }
.tgc-nav a { min-height: 42px; padding: 0 14px; border: 1px solid var(--tgc-line); border-radius: 999px; display: inline-flex; align-items: center; background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.tgc-nav__primary { border-color: var(--tgc-blue) !important; background: var(--tgc-blue) !important; color: #fff; }
.tgc-public-view { background: var(--tgc-page); }
.tgc-detail-page { padding: 48px 18px 78px; }
.tgc-detail-hero { max-width: 820px; margin-inline: auto; padding: 26px; border: 1px solid var(--tgc-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(26,30,67,.08); }
.tgc-detail-hero h1 { margin: 12px 0; font-family: var(--tgc-display); font-size: clamp(2rem, 8vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.tgc-detail-lead { color: var(--tgc-copy); }
.tgc-detail-grid { display: grid; margin-top: 20px; gap: 14px; }
.tgc-detail-data,
.tgc-source-panel,
.tgc-catalog-grid > article { padding: 20px; border: 1px solid var(--tgc-line); border-radius: 17px; background: #fff; }
.tgc-detail-actions { display: flex; flex-wrap: wrap; margin-top: 22px; gap: 10px; }
.tgc-detail-cta,
.tgc-detail-secondary,
.tgc-card-link { min-height: 46px; padding: 0 16px; border: 1px solid var(--tgc-line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 850; text-decoration: none; }
.tgc-detail-cta { border-color: var(--tgc-blue); background: var(--tgc-blue); color: #fff; }
.tgc-catalog-grid { display: grid; margin-top: 22px; gap: 12px; }

@media (min-width: 700px) {
  .tgc-command__control { grid-template-columns: minmax(0,1fr) auto; }
  .tgc-command button { min-width: 174px; }
  .tgc-result-option__summary { display: block; margin-top: 5px; color: var(--tgc-muted); font-size: 10px; }
  .tgc-result-list,
  .tgc-location-list,
  .tgc-office-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tgc-office-option.is-recommended,
  .tgc-office-alternatives-toggle,
  .tgc-office-alternatives { grid-column: 1 / -1; }
  .tgc-office-alternatives { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tgc-office-empty { grid-column: 1 / -1; }
  .tgc-plan-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tgc-contract-fields,
  .tgc-detail-grid,
  .tgc-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tgc-footer { padding-inline: 34px; }
  .tgc-footer__facts { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
}

@media (hover: hover) {
  .tgc-command button:hover,
  .tgc-primary-button:hover,
  .tgc-primary-link:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(7,17,38,.22); filter: saturate(1.08); }
  .tgc-plan-card button:hover { transform: translateY(-1px); }
}

@media (min-width: 960px) {
  .tgc-flow { display: grid; grid-template-columns: 250px minmax(0,1fr); }
  .tgc-flow__rail { min-height: 100svh; padding: 36px 28px; display: flex; flex-direction: column; }
  .tgc-flow__back { align-self: flex-start; }
  .tgc-flow__progress { margin-top: 76px; grid-template-columns: 1fr; gap: 0; }
  .tgc-flow__progress span { min-height: 64px; grid-template-columns: 30px 1fr; align-items: start; justify-items: start; gap: 12px; }
  .tgc-flow__progress span::before { top: -46px; left: 14px; width: 1px; height: 47px; }
  .tgc-flow__progress b { width: 29px; height: 29px; color: #9ea8bd; font-size: 10px; }
  .tgc-flow__progress .is-active b { color: var(--tgc-ink); }
  .tgc-flow__progress .is-complete b { color: transparent; }
  .tgc-flow__progress .is-complete b::after { font-size: 11px; }
  .tgc-flow__progress i { display: block; padding-top: 5px; color: #8e98ad; font-size: 11px; font-weight: 750; }
  .tgc-flow__progress .is-active i { color: #fff; }
  .tgc-flow__progress .is-complete i { color: #aeb8ff; }
  .tgc-flow__counter { position: static; order: -1; margin-top: 26px; color: #aeb7cb; }
  .tgc-flow__rail-note { display: block; margin: auto 0 0; padding-top: 24px; border-top: 1px solid #2e3950; color: #919cb2; font-size: 10px; line-height: 1.65; }
  .tgc-screen { min-height: 100svh; padding: 72px 70px; }
  .tgc-selection .tgc-screen { min-height: calc(100svh - 105px); padding-top: 56px; }
  .tgc-screen__number { top: 24px; right: 34px; font-size: 14rem; }
  .tgc-context-card { width: min(390px, calc(100% - 76px)); margin: 26px 38px 0 auto; }
  .tgc-footer { padding: 42px 48px 30px; }
}

@media (min-width: 1320px) {
  .tgc-flow { grid-template-columns: 290px minmax(0,1fr); }
  .tgc-flow__rail { padding-inline: 36px; }
  .tgc-screen { padding-inline: 9vw; }
}

@keyframes tgc-screen-enter {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
