/* css/talentdeck-pages.css
 * Estilos compartidos para las páginas de servicio de TalentDeck.
 * Incluye: sticky CTA mobile, browser frame para mockups, comparison table,
 * SVG flow connectors, animaciones scroll-triggered, bento grid responsive,
 * mock card animations (radar, bars, counters), dark mode polish.
 */

/* ─── Display font (Cal Sans) — premium feel tipo Linear/Vercel ──────── */
@font-face {
  font-family: 'Cal Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/CalSans-Regular.woff2') format('woff2');
}

/* Aplicar Cal Sans a H1/H2 marcados con .font-display
   (Inter sigue siendo el body por defecto vía tailwind.config.js) */
.font-display, h1.font-display, h2.font-display {
  font-family: 'Cal Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ─── Browser frame (envuelve mockups del producto) ─────────────────────── */
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  background: #fff;
}
.dark .browser-frame { background: #1e293b; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5); }

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.dark .browser-frame__bar { background: #0f172a; border-bottom-color: #334155; }

.browser-frame__dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-frame__dot--red { background: #ef4444; }
.browser-frame__dot--amber { background: #f59e0b; }
.browser-frame__dot--green { background: #10b981; }

.browser-frame__url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 10px;
  margin: 0 8px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.dark .browser-frame__url { background: #1e293b; border-color: #334155; color: #94a3b8; }

.browser-frame__body { padding: 20px; }

/* ─── TalentDeck app preview: pantallas de producto más cercanas al sistema ─ */
.td-app-preview {
  --td-accent: #0891b2;
  --td-soft: rgba(8, 145, 178, 0.1);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

.td-app-preview--purple { --td-accent: #9333ea; --td-soft: rgba(147, 51, 234, 0.1); }
.td-app-preview--blue { --td-accent: #2563eb; --td-soft: rgba(37, 99, 235, 0.1); }
.td-app-preview--red { --td-accent: #dc2626; --td-soft: rgba(220, 38, 38, 0.1); }
.td-app-preview--cyan { --td-accent: #0891b2; --td-soft: rgba(8, 145, 178, 0.1); }
.td-app-preview--emerald { --td-accent: #059669; --td-soft: rgba(5, 150, 105, 0.1); }
.td-app-preview--amber { --td-accent: #d97706; --td-soft: rgba(217, 119, 6, 0.11); }

.td-app-shell {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 360px;
}

.td-app-sidebar {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px 10px;
}

.td-app-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.td-app-logo::before {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--td-accent), #111827);
  content: "";
}

.td-app-nav {
  display: grid;
  gap: 6px;
}

.td-app-nav span {
  display: block;
  border-radius: 8px;
  padding: 6px 7px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.18;
}

.td-app-nav span.is-active {
  background: var(--td-soft);
  color: var(--td-accent);
}

.td-app-main {
  min-width: 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.td-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 12px;
}

.td-app-eyebrow {
  margin-bottom: 2px;
  color: var(--td-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.td-app-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.td-app-actions {
  display: flex;
  gap: 6px;
}

.td-app-pill {
  border-radius: 999px;
  background: var(--td-soft);
  padding: 5px 7px;
  color: var(--td-accent);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.td-app-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  padding: 10px;
}

.td-app-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.td-app-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 9px;
  color: #0f172a;
  font-size: 9px;
  font-weight: 900;
}

.td-app-card__body { padding: 9px; }

.td-app-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}

.td-app-metric {
  border-radius: 10px;
  background: #f8fafc;
  padding: 7px 6px;
}

.td-app-metric span {
  display: block;
  color: #64748b;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-app-metric b {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1;
}

.td-app-table {
  display: grid;
  gap: 5px;
  font-size: 10px;
}

.td-app-row {
  display: grid;
  grid-template-columns: 1fr 0.45fr auto;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px;
}

.td-app-row b,
.td-app-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-app-row b { color: #1e293b; }
.td-app-row span { color: #64748b; }

.td-app-status {
  justify-self: end;
  border-radius: 999px;
  background: var(--td-soft);
  padding: 3px 6px;
  color: var(--td-accent);
  font-size: 8px;
  font-weight: 900;
}

.td-app-panel {
  display: grid;
  gap: 8px;
}

.td-app-chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 80px;
  padding-top: 8px;
}

.td-app-chart i {
  flex: 1;
  min-width: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--td-accent), rgba(15, 23, 42, 0.72));
  opacity: 0.92;
  transform-origin: bottom;
  animation: td-bar-rise 1.2s ease both;
}

.td-app-timeline {
  display: grid;
  gap: 7px;
  font-size: 9px;
}

.td-app-timeline span {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 6px;
  color: #475569;
}

.td-app-timeline span::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--td-accent);
  content: "";
}

@keyframes td-bar-rise {
  from { transform: scaleY(0.22); opacity: 0.45; }
  to { transform: scaleY(1); opacity: 0.92; }
}

/* ─── Trust signals band ─────────────────────────────────────────────────── */
.trust-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgb(248 250 252 / 0.8);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}
.dark .trust-band { background: rgb(15 23 42 / 0.4); border-color: #334155; }

.trust-band__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}
.dark .trust-band__item { color: #cbd5e1; }
.trust-band__item svg { width: 14px; height: 14px; flex-shrink: 0; color: #10b981; }

/* ─── Comparison table ───────────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.dark .compare-table { background: #1e293b; border-color: #334155; }

.compare-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.dark .compare-table thead th { background: #0f172a; border-bottom-color: #334155; color: #cbd5e1; }

.compare-table thead th:first-child { color: #64748b; }
.compare-table thead th.compare-table__col--bad { color: #dc2626; }
.compare-table thead th.compare-table__col--good { color: #059669; }

.compare-table tbody td {
  padding: 13px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.dark .compare-table tbody td { border-bottom-color: #334155; color: #cbd5e1; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: #f8fafc; }
.dark .compare-table tbody tr:hover td { background: #0f172a; }

.compare-table tbody td:first-child {
  font-weight: 600;
  color: #1e293b;
  width: 38%;
}
.dark .compare-table tbody td:first-child { color: #f1f5f9; }

/* Diferenciación inequívoca de columnas bad vs good */
.compare-table__bad {
  color: #b91c1c !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.compare-table__bad::before {
  content: '✗';
  font-weight: 800;
  color: #ef4444;
  font-size: 14px;
  line-height: 1;
}
.compare-table__good {
  color: #047857 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.compare-table__good::before {
  content: '✓';
  font-weight: 800;
  color: #10b981;
  font-size: 14px;
  line-height: 1;
}
.compare-table__bad svg, .compare-table__good svg { width: 14px; height: 14px; flex-shrink: 0; }
/* Tinte de fondo en celdas marcadas con clase explícita (más robusto que nth-child) */
.compare-table tbody td.compare-table__bad-cell { background: rgba(254, 242, 242, 0.6) !important; color: #b91c1c !important; }
.compare-table tbody td.compare-table__good-cell { background: rgba(236, 253, 245, 0.7) !important; color: #047857 !important; font-weight: 600; }
.dark .compare-table tbody td.compare-table__bad-cell { background: rgba(127, 29, 29, 0.15) !important; color: #fca5a5 !important; }
.dark .compare-table tbody td.compare-table__good-cell { background: rgba(6, 78, 59, 0.18) !important; color: #6ee7b7 !important; }

/* ─── Bento grid (1 hero + N small) ──────────────────────────────────────── */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .bento__hero { grid-column: span 2; grid-row: span 2; }
}

.bento__cell {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.dark .bento__cell { background: #1e293b; border-color: #334155; }
.bento__cell:hover { transform: translateY(-2px); }

.bento__hero { padding: 28px; }
.bento__hero h3 { font-size: 20px; }

/* ─── Flow diagram with SVG connectors ───────────────────────────────────── */
.flow {
  display: grid;
  gap: 20px;
  position: relative;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.flow__step {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  text-align: left;
}
.dark .flow__step { background: #1e293b; border-color: #334155; }

.flow__step::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #cbd5e1;
  display: none;
}
@media (min-width: 768px) {
  .flow__step:not(:last-child)::after { display: block; }
}
.dark .flow__step::after { color: #475569; }

.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}
.dark .flow__num { background: #334155; color: #cbd5e1; }

/* ─── Sticky mobile CTA ──────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -10px 30px -10px rgb(0 0 0 / 0.15);
}
.dark .sticky-cta { background: rgb(15 23 42 / 0.95); border-top-color: #334155; }
.sticky-cta--visible { transform: translateY(0); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

.sticky-cta__price {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
}
.dark .sticky-cta__price { color: #94a3b8; }
.sticky-cta__price strong {
  font-size: 16px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.1;
}
.dark .sticky-cta__price strong { color: #f8fafc; }

.sticky-cta__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Animaciones scroll-triggered ──────────────────────────────────────
 * Por defecto: opacity 1 (visible). Garantiza que si JS falla o el observer
 * no se inicializa antes del primer paint, el contenido se VE.
 * Solo aplicamos opacity:0 si el JS marcó la clase .reveal--armed.
 * El observer remueve --armed cuando la card entra al viewport.
 */
.reveal { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.reveal.reveal--armed { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: .08s; }
.reveal--delay-2.is-visible { transition-delay: .16s; }
.reveal--delay-3.is-visible { transition-delay: .24s; }
.reveal--delay-4.is-visible { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal--armed { opacity: 1; transform: none; transition: none; }
}

/* ─── ROI / Calculator widget ────────────────────────────────────────────── */
.calc {
  background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
  border: 1px solid #d1fae5;
  border-radius: 20px;
  padding: 28px;
}
.dark .calc { background: linear-gradient(135deg, #0c1f3a, #052e2b); border-color: #1e3a4a; }

.calc__slider { width: 100%; appearance: none; background: transparent; }
.calc__slider::-webkit-slider-runnable-track { height: 6px; background: #cbd5e1; border-radius: 999px; }
.calc__slider::-moz-range-track { height: 6px; background: #cbd5e1; border-radius: 999px; }
.calc__slider::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #0ea5e9; border: 3px solid #fff; box-shadow: 0 2px 8px rgb(14 165 233 / 0.4);
  cursor: pointer; margin-top: -8px;
}
.calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #0ea5e9; border: 3px solid #fff; box-shadow: 0 2px 8px rgb(14 165 233 / 0.4);
  cursor: pointer;
}

.calc__result {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}
@media (min-width: 640px) { .calc__result { grid-template-columns: repeat(3, 1fr); } }

.calc__metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.dark .calc__metric { background: #1e293b; border-color: #334155; }

.calc__metric__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; font-weight: 600; }
.calc__metric__value { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1.1; margin-top: 4px; }
.dark .calc__metric__value { color: #f1f5f9; }
.calc__metric__hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* ═══ Tailwind regenerado con safelist (build:css). Las utility classes ahora vienen de tailwind.min.css. ═══ */
/* ─── Bento grid en mobile: prevenir que hero ocupe rows extra ───────── */
@media (max-width: 767px) {
  .bento { grid-auto-rows: auto !important; }
  .bento__hero { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ─── Body/Hero overflow guard, refuerzo ─────────────────────────────── */
body, main, section { overflow-x: clip; }
@supports not (overflow-x: clip) { body, main, section { overflow-x: hidden; } }
.container { max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* ─── Mock cards en hero: ocultar en mobile pequeño si causan overflow ─ */
@media (max-width: 480px) {
  .browser-frame { transform: scale(0.92); transform-origin: top center; }
}

/* ═══ Mock card animations (D - premium feel sin libs) ═══════════════════ */

/* Radar chart drawing animation (psicometrias) */
.mock-radar polygon[filter] {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: radar-draw 1.6s ease-out 0.3s forwards;
}
.mock-radar circle {
  opacity: 0;
  animation: radar-dot-fade 0.4s ease-out forwards;
}
.mock-radar circle:nth-of-type(1) { animation-delay: 1.5s; }
.mock-radar circle:nth-of-type(2) { animation-delay: 1.6s; }
.mock-radar circle:nth-of-type(3) { animation-delay: 1.7s; }
.mock-radar circle:nth-of-type(4) { animation-delay: 1.8s; }
.mock-radar circle:nth-of-type(5) { animation-delay: 1.9s; }
@keyframes radar-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes radar-dot-fade {
  to { opacity: 1; }
}

/* Bars filling animation (clima organizacional, eval anual KPIs) */
.mock-bar-fill {
  width: 0 !important;
  animation: bar-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--bar-delay, 0.2s);
}
@keyframes bar-grow {
  to { width: var(--bar-target, 80%) !important; }
}

/* Vertical bars (eg. Q1-Q4 trimesters in desempeno) */
.bar-grow {
  transform: scaleY(0);
  transform-origin: bottom;
  animation: bar-grow-vertical 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bar-grow-vertical {
  to { transform: scaleY(1); }
}

/* Stagger entry para cards individuales del browser-frame (ej. evaluadores) */
.mock-row {
  opacity: 0;
  transform: translateX(-8px);
  animation: row-slide-in 0.45s ease-out forwards;
  animation-delay: var(--row-delay, 0s);
}
@keyframes row-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Pulse sutil en el dot verde del kiosko (reloj checador) */
.mock-pulse {
  position: relative;
}
.mock-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.4;
  animation: subtle-pulse 2s ease-out infinite;
}
@keyframes subtle-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Mock card hover global - lift + glow */
.browser-frame {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.reveal:hover .browser-frame,
.bento__cell:hover .browser-frame {
  transform: translateY(-4px);
}

/* ═══ Card lift + glow (D - bento + module tiles) ═══════════════════════ */
.bento__cell { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.3s; }
.bento__cell:hover { transform: translateY(-3px); }
.bento__cell:hover svg, .bento__cell:hover [class*="bg-emerald-100"], .bento__cell:hover [class*="bg-purple-100"] {
  transition: transform 0.3s;
}

/* CTA shimmer en hover (D - microinteracción premium) */
.cta-shimmer { position: relative; overflow: hidden; }
.cta-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}
.cta-shimmer:hover::before { left: 100%; }

/* ═══ Dark mode polish (C - refinamientos visuales) ════════════════════ */
/* Browser frames más diferenciados en dark */
.dark .browser-frame {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Flow steps: mismo tratamiento para todos en dark (eliminar ilusión de "incompletos") */
.dark .flow__step {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.dark .flow__step h3 { color: #f8fafc; }
.dark .flow__step p { color: #cbd5e1; }

/* Iconos en dark más luminosos (400/500 en lugar de 600/700) */
.dark .text-sky-600 { color: #38bdf8 !important; }
.dark .text-cyan-600 { color: #22d3ee !important; }
.dark .text-violet-600 { color: #a78bfa !important; }
.dark .text-emerald-600 { color: #34d399 !important; }
.dark .text-amber-600 { color: #fbbf24 !important; }
.dark .text-rose-600 { color: #fb7185 !important; }
.dark .text-blue-600 { color: #60a5fa !important; }
.dark .text-purple-600 { color: #c084fc !important; }
.dark .text-red-600 { color: #f87171 !important; }
.dark .text-amber-600 { color: #fb923c !important; }
.dark .text-emerald-600 { color: #2dd4bf !important; }

@media (max-width: 640px) {
  .td-app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .td-app-sidebar {
    display: none;
  }

  .td-app-content {
    grid-template-columns: 1fr;
  }

  .td-app-metrics {
    grid-template-columns: 1fr;
  }

  .td-app-actions {
    display: none;
  }

  .td-app-row {
    grid-template-columns: 1fr auto;
  }

  .td-app-row span:not(.td-app-status) {
    display: none;
  }
}

/* ═══ Product-page polish: reemplaza el look de "trabajo escolar" ═══════ */
main > section:not(:first-child) h2.font-display {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 2.4vw, 3.05rem);
  line-height: .98;
  letter-spacing: -0.035em;
}

main > section:has(.compare-table) {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

main > section:has(.compare-table) h2.font-display {
  font-size: clamp(1.75rem, 2vw, 2.45rem);
  letter-spacing: -0.03em;
  margin-bottom: 2rem !important;
}

main > section:not(:first-child) h2.font-display + p {
  max-width: 680px;
}

.trust-band {
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.78));
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
}

.trust-band__item {
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 760;
  color: #334155;
}

.bento {
  gap: 18px;
}

@media (min-width: 768px) {
  .bento {
    grid-auto-rows: minmax(188px, auto);
  }
}

.bento__cell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border-color: rgba(148, 163, 184, .22);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.98), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.92));
  box-shadow: 0 22px 55px rgba(15, 23, 42, .07);
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.bento__cell::after {
  content: '';
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,.14), transparent);
}

.bento__cell:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, .28);
  box-shadow: 0 34px 82px rgba(15, 23, 42, .10);
}

.bento__cell > span:first-child,
.bento__hero span[class*="rounded-lg"]:first-child {
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 12px 24px rgba(15,23,42,.08);
}

.bento__hero {
  padding: 34px;
  background:
    radial-gradient(circle at 82% 12%, rgba(14, 165, 233, .13), transparent 31%),
    radial-gradient(circle at 12% 95%, rgba(16, 185, 129, .10), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eef6ff 100%);
  justify-content: space-between;
}

.bento__hero h3 {
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  line-height: 1.05;
}

.bento__hero .flex-1 {
  min-height: 126px;
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.32)),
    repeating-linear-gradient(0deg, rgba(148,163,184,.12) 0 1px, transparent 1px 24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 42px rgba(15,23,42,.06);
  padding: 16px;
}

.bento__hero .flex-1 > .grid,
.bento__hero .flex-1 > svg,
.bento__hero .flex-1 > .flex {
  width: 100%;
}

.bento__hero .flex-1 [class*="rounded"] {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.compare-table {
  max-width: 1080px;
  margin-inline: auto;
  border-radius: 18px;
  border-color: rgba(148, 163, 184, .22);
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.compare-table thead th {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom-color: rgba(148, 163, 184, .22);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.compare-table tbody td {
  padding: 13px 18px;
  border-bottom-color: rgba(226, 232, 240, .72);
  font-size: 13px;
  line-height: 1.35;
}

.compare-table tbody td:first-child {
  font-size: 13px;
  font-weight: 760;
  color: #1f2937;
}

.compare-table__bad,
.compare-table__good {
  gap: 7px;
  font-size: 13px;
  font-weight: 760;
}

.compare-table__bad::before,
.compare-table__good::before {
  content: '' !important;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 7px;
}

.compare-table__bad::before { background: #f87171; }
.compare-table__good::before { background: #10b981; }

.compare-table tbody td.compare-table__bad-cell {
  background: rgba(254, 242, 242, .42) !important;
  color: #991b1b !important;
}

.compare-table tbody td.compare-table__good-cell {
  background: rgba(236, 253, 245, .52) !important;
  color: #047857 !important;
}

.flow {
  gap: 14px;
}

.flow__step {
  border-radius: 22px;
  border-color: rgba(148, 163, 184, .24);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
  padding: 24px;
}

.flow__step::after {
  right: -18px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.flow__num {
  width: 36px;
  height: 36px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
}

.calc {
  border-radius: 28px;
  border-color: rgba(125, 211, 252, .55);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.95), transparent 30%),
    linear-gradient(135deg, #eef8ff, #ecfdf5);
  box-shadow: 0 28px 70px rgba(14, 165, 233, .12);
  padding: 32px;
}

.calc__slider::-webkit-slider-runnable-track {
  height: 7px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.14);
}

.calc__slider::-moz-range-track {
  height: 7px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.calc__metric {
  border-radius: 18px;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
  padding: 18px;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a {
  border-radius: 22px !important;
  border-color: rgba(148, 163, 184, .22) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

section .grid.grid-cols-2.md\:grid-cols-4 > a:last-child {
  background: #0f172a !important;
  color: #fff !important;
}

#faq details {
  border-radius: 20px !important;
  border-color: rgba(148, 163, 184, .24) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

/* ═══ Comparison matrix: sobria, tipo producto B2B ═══════════════════════ */
main > section:has(.compare-table) {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

main > section:has(.compare-table) h2.font-display {
  max-width: 760px;
  font-size: clamp(1.55rem, 1.7vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 28px !important;
}

.compare-table {
  max-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.compare-table thead th {
  padding: 13px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.compare-table thead th.compare-table__col--bad,
.compare-table thead th.compare-table__col--good {
  color: #64748b;
}

.compare-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fff !important;
  color: #334155;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.compare-table tbody td:first-child {
  width: 38%;
  color: #111827;
  font-size: 14px;
  font-weight: 650;
}

.compare-table tbody tr:hover td {
  background: #fafafa !important;
}

.compare-table tbody td.compare-table__bad-cell,
.compare-table tbody td.compare-table__good-cell {
  background: #fff !important;
}

.compare-table__bad,
.compare-table__good {
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
}

.compare-table__bad {
  color: #64748b !important;
}

.compare-table__good {
  color: #0f766e !important;
}

.compare-table__bad::before {
  content: '';
  width: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: #cbd5e1;
}

.compare-table__good::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.compare-table tbody td.compare-table__good-cell {
  box-shadow: inset 3px 0 0 rgba(20, 184, 166, .18);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ═══ TalentDeck icon identity system ═════════════════════════════════════ */
:root {
  --td-icon-ink: #0f172a;
  --td-icon-brand: #0f766e;
  --td-icon-border: rgba(15, 23, 42, .10);
  --td-icon-surface: linear-gradient(180deg, #ffffff, #f8fafc);
  --td-icon-shadow: inset 0 0 0 1px rgba(255,255,255,.84), 0 12px 24px rgba(15, 23, 42, .08);
  --td-icon-size-sm: 16px;
  --td-icon-size-md: 20px;
  --td-icon-size-lg: 24px;
}

i[class^="ph-"],
i[class*=" ph-"],
i.ph {
  font-weight: 400;
  line-height: 1;
  speak: never;
}

.bento__cell > span:first-child,
.bento__hero span[class*="rounded-lg"]:first-child {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 14px !important;
  background: var(--td-icon-surface) !important;
  border: 1px solid var(--td-icon-border) !important;
  color: var(--td-icon-brand) !important;
  box-shadow: var(--td-icon-shadow);
}

.bento__cell > span:first-child i,
.bento__hero span[class*="rounded-lg"]:first-child i {
  font-size: var(--td-icon-size-md) !important;
  line-height: 1;
  color: currentColor !important;
}

.bento__cell > span:first-child svg,
.bento__hero span[class*="rounded-lg"]:first-child svg,
.trust-band__item svg,
.trust-band__item i,
#faq summary svg {
  color: currentColor !important;
  stroke-width: 1.9 !important;
}

.bento__cell > span:first-child svg,
.bento__hero span[class*="rounded-lg"]:first-child svg {
  width: 20px !important;
  height: 20px !important;
}

.trust-band__item {
  gap: 10px !important;
}

.trust-band__item svg {
  width: 17px !important;
  height: 17px !important;
  color: var(--td-icon-brand) !important;
}

.trust-band__item i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--td-icon-brand) !important;
  font-size: var(--td-icon-size-sm);
  line-height: 1;
}

#faq summary svg {
  color: #64748b !important;
}

main .inline-flex i[class*="ph-"] {
  font-size: var(--td-icon-size-sm);
  line-height: 1;
  flex-shrink: 0;
}

main section:first-child span.inline-flex i[class*="ph-"] {
  font-size: 13px;
}

.calc__metric {
  position: relative;
  padding-top: 58px !important;
}

.calc__metric::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: var(--td-icon-surface);
  box-shadow: var(--td-icon-shadow);
  color: var(--td-icon-brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.calc__metric:nth-child(1)::before { content: 'hrs'; }
.calc__metric:nth-child(2)::before { content: '$'; }
.calc__metric:nth-child(3)::before { content: 'x'; }

.flow__num {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  background: var(--td-icon-surface) !important;
  border: 1px solid var(--td-icon-border) !important;
  color: var(--td-icon-brand) !important;
  box-shadow: var(--td-icon-shadow);
  font-size: var(--td-icon-size-md) !important;
}

.flow__num i {
  line-height: 1;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a {
  min-height: 136px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: space-between;
  padding: 22px !important;
  text-align: left !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)) !important;
  border-color: rgba(15, 23, 42, .10) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .28) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .085);
}

section .grid.grid-cols-2.md\:grid-cols-4 > a > div.w-10.h-10 {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin: 0 0 22px 0 !important;
  border-radius: 15px !important;
  background: var(--td-icon-surface) !important;
  border: 1px solid var(--td-icon-border) !important;
  color: var(--td-icon-brand) !important;
  box-shadow: var(--td-icon-shadow);
}

section .grid.grid-cols-2.md\:grid-cols-4 > a > div.w-10.h-10 svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--td-icon-brand) !important;
  stroke-width: 1.9 !important;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a > span {
  display: block;
  color: var(--td-icon-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15;
  letter-spacing: -.01em;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a:last-child {
  background: linear-gradient(135deg, #0f172a, #0f3d3a) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.08) !important;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a:last-child::before {
  content: 'TD';
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

section .grid.grid-cols-2.md\:grid-cols-4 > a:last-child span {
  color: #fff !important;
}

@media (max-width: 640px) {
  section .grid.grid-cols-2.md\:grid-cols-4 > a {
    min-height: 124px;
    padding: 18px !important;
  }

  section .grid.grid-cols-2.md\:grid-cols-4 > a > div.w-10.h-10,
  section .grid.grid-cols-2.md\:grid-cols-4 > a:last-child::before {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 18px !important;
  }
}
