/* ==========================================================================
   TEKENO RADAR · SISTEMA DE DISEÑO OFICIAL (ALINEADO CON TEKENO V3.2 EN VIVO)
   Paleta oficial: Navy #393949 · Azul #567FED / #597FED · Coral Botón #EF4A65
   Amarillo #FFB208 (siempre con texto #393949) · Verde éxito #1A8A3A
   ========================================================================== */

:root {
  --tk-navy: #393949;
  --tk-navy-soft: #5F5F72;
  --tk-navy-muted: #848496;
  --tk-blue: #567FED;
  --tk-blue-dark: #3B63D1;
  --tk-blue-soft: #EEF3FE;
  --tk-coral: #EF4A65;
  --tk-coral-hover: #D93D57;
  --tk-coral-soft: #FDF0F2;
  --tk-yellow: #FFB208;
  --tk-yellow-soft: #FFF7E0;
  --tk-green: #1A8A3A;
  --tk-green-soft: #E8F6EC;
  --tk-bg: #F5F5F8;
  --tk-surface: #FFFFFF;
  --tk-border: #E5E5EE;
  --tk-border-strong: #D5D5E2;
  --tk-shadow-sm: 0 2px 10px rgba(57, 57, 73, 0.05);
  --tk-shadow-md: 0 8px 24px rgba(57, 57, 73, 0.08);
  --tk-shadow-coral: 0 6px 18px rgba(239, 74, 101, 0.28);
  --tk-radius-card: 16px;
  --tk-radius-pill: 999px;
  --font-display: 'Outfit', 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-body);
  color: var(--tk-navy);
  background: #1B1D29;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button, input, select {
  font-family: inherit;
}

/* ================= CONTENEDOR DE TRABAJO (MÓVIL + PANEL DEMO EN ESCRITORIO) ================= */
.workspace-shell {
  width: 100%;
  max-width: 1320px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 20px;
}

.mobile-viewport {
  width: 430px;
  max-width: 100%;
  height: 890px;
  background: var(--tk-bg);
  border-radius: 36px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.48), 0 0 0 10px #2C2F3F;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

body.fullscreen-mode .workspace-shell {
  padding: 0;
}

body.fullscreen-mode .mobile-viewport {
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

body.fullscreen-mode .ceo-panel {
  display: none;
}

@media (max-width: 940px) {
  html, body {
    background: var(--tk-bg);
  }
  .workspace-shell {
    padding: 0;
    gap: 0;
  }
  .mobile-viewport {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .ceo-panel {
    display: none;
  }
}

/* ================= BARRA DE ANUNCIO SUPERIOR (announcement-bar.liquid) ================= */
.tk-announce-bar {
  background: var(--tk-coral);
  color: #FFFFFF;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 32px;
  flex-shrink: 0;
  z-index: 25;
}

.tk-announce-text {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tk-announce-text.is-fading {
  opacity: 0;
  transform: translateY(-3px);
}

.live-sync-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(57, 57, 73, 0.24);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--tk-radius-pill);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.live-sync-pill:hover {
  background: rgba(57, 57, 73, 0.45);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
}

/* ================= CABECERA OFICIAL TEKENO V3.2 ================= */
.app-header {
  background: var(--tk-surface);
  padding: 12px 14px 12px;
  position: relative;
  border-bottom: 1px solid var(--tk-border);
  box-shadow: 0 4px 16px rgba(57, 57, 73, 0.04);
  flex-shrink: 0;
  z-index: 20;
}

.header-brand-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #F04559 0 25%,
    #FFB208 25% 50%,
    #597FED 50% 75%,
    #393949 75% 100%);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.tk-wordmark-img {
  height: 25px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-radar-pill {
  background: var(--tk-coral-soft);
  color: var(--tk-coral);
  border: 1px solid rgba(239, 74, 101, 0.25);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--tk-radius-pill);
  text-transform: uppercase;
}

/* Selector de País con Banderas Planas Oficiales */
.country-switcher {
  display: inline-flex;
  background: var(--tk-bg);
  padding: 3px;
  border-radius: var(--tk-radius-pill);
  border: 1px solid var(--tk-border);
  gap: 2px;
}

.country-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: var(--tk-radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-navy-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.country-btn.active {
  background: var(--tk-surface);
  color: var(--tk-navy);
  box-shadow: 0 2px 6px rgba(57, 57, 73, 0.12);
}

.flag-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Buscador Píldora idéntico a tekeno.com V3.2 */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tk-search-pill {
  flex: 1;
  min-width: 0;
  height: 40px;
  background: var(--tk-surface);
  border: 1.5px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-pill);
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tk-search-pill:focus-within {
  border-color: var(--tk-coral);
  box-shadow: 0 0 0 3px rgba(239, 74, 101, 0.12);
}

.tk-search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tk-navy);
  outline: none;
}

.tk-search-pill input::placeholder {
  color: var(--tk-navy-muted);
}

.tk-search-pill input::-webkit-search-cancel-button {
  display: none;
}

.tk-search-clear {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--tk-navy-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 2px;
}

.tk-search-clear[hidden] {
  display: none;
}

.tk-search-submit {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--tk-coral);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 74, 101, 0.35);
  transition: background 0.18s ease, transform 0.15s ease;
}

.tk-search-submit:hover {
  background: var(--tk-coral-hover);
}

.tk-search-submit:active {
  transform: scale(0.94);
}

.paste-shortcut-btn {
  height: 40px;
  padding: 0 13px;
  border-radius: var(--tk-radius-pill);
  border: 1.5px solid var(--tk-navy);
  background: var(--tk-navy);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.paste-shortcut-btn:hover {
  background: #282836;
}

.paste-shortcut-btn:active {
  transform: scale(0.96);
}

/* ================= TIRA DE LOS 8 GRUPOS OFICIALES (mundos-iconos.liquid) ================= */
.feed-controls-wrapper {
  position: relative;
  background: var(--tk-surface);
  border-bottom: 1px solid var(--tk-border);
  flex-shrink: 0;
  z-index: 15;
  padding-bottom: 4px;
  transition: padding 0.26s ease;
}

.feed-controls-wrapper.hidden {
  display: none;
}

.feed-controls-collapsible {
  max-height: 280px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.feed-controls-wrapper.is-collapsed {
  padding-bottom: 6px;
}

.feed-controls-wrapper.is-collapsed .feed-controls-collapsible {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.feed-collapse-toggle {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #DFE4F2;
  background: #FFFFFF;
  color: var(--tk-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 7px rgba(32, 34, 48, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, bottom 0.24s ease;
}

.feed-controls-wrapper.is-collapsed .feed-collapse-toggle {
  bottom: -14px;
  right: 12px;
  box-shadow: 0 3px 9px rgba(32, 34, 48, 0.16);
}

.feed-collapse-toggle svg {
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-collapse-toggle:hover {
  background: var(--tk-coral);
  border-color: var(--tk-coral);
  color: #FFFFFF;
}

.feed-controls-wrapper.is-collapsed .feed-collapse-toggle svg {
  transform: rotate(180deg);
}

.groups-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 6px 6px;
}

.cat-scroll-arrow {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 1px solid var(--tk-border);
  background: var(--tk-surface);
  color: var(--tk-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(57, 57, 73, 0.08);
  transition: all 0.15s ease;
}

.cat-scroll-arrow:hover {
  background: var(--tk-coral);
  color: #FFFFFF;
  border-color: var(--tk-coral);
}

@media (max-width: 540px) {
  .cat-scroll-arrow {
    display: none;
  }
  .groups-nav-row {
    padding: 10px 0 6px;
  }
}

.groups-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 12px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  flex: 1;
}

.groups-strip.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.groups-strip::-webkit-scrollbar {
  display: none;
}

.group-circle-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 64px;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  padding: 0;
}

.group-avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid var(--tk-border);
  background: var(--tk-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.group-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.group-avatar-ring.brand-mark-ring img {
  width: 72%;
  height: 72%;
  border-radius: 0;
  object-fit: contain;
}

.group-circle-item:hover .group-avatar-ring {
  transform: translateY(-2px);
  border-color: var(--tk-blue);
}

.group-circle-item.active .group-avatar-ring {
  border-color: var(--tk-coral);
  box-shadow: 0 4px 12px rgba(239, 74, 101, 0.26);
  transform: scale(1.04);
}

.group-circle-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--tk-navy-soft);
  line-height: 1.15;
  display: block;
  width: 100%;
}

.group-circle-item.active .group-circle-label {
  color: var(--tk-navy);
  font-weight: 800;
}

/* Sub-toolbar con switch estilo iOS/Shopify */
.sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px 6px;
  border-top: 1px solid #F0F0F6;
  font-size: 11.5px;
  color: var(--tk-navy-soft);
}

/* Chips de filtrado rápido (estilo idealo / kelkoo) */
.quick-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 48px 9px 14px;
  border-top: 1px solid #F0F0F6;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filter-row::-webkit-scrollbar {
  display: none;
}

.quick-filter-chip {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--tk-radius-pill);
  border: 1px solid #DCE2F2;
  background: #FFFFFF;
  color: var(--tk-navy-soft);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-filter-chip.active {
  background: var(--tk-blue);
  border-color: var(--tk-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(86, 127, 237, 0.25);
}

/* Insignia #1 Mejor Precio Real en comparativa ordenada */
.ranked-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #DCFCE7;
  color: #166534;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Barra visual Coste Oculto vs Precio Final (dentro de Ver detalle) */
.hidden-cost-meter {
  background: #F8FAFE;
  border-bottom: 1px solid var(--tk-border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tk-navy);
}

.hc-track {
  width: 100%;
  height: 10px;
  background: #E8ECF6;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.hc-seg-tk {
  height: 100%;
  background: var(--tk-blue);
  border-radius: 999px;
}

.hc-seg-base {
  height: 100%;
  background: #94A3B8;
}

.hc-seg-hidden {
  height: 100%;
  background: var(--tk-coral);
}

.hc-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--tk-navy-soft);
  font-weight: 600;
}

/* Captura de Alerta de Precio Ideal en Favoritos */
.fav-alert-box {
  background: #F8FAFE;
  border: 1px solid #D3E0FC;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fav-alert-inputs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fav-alert-input {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--tk-border-strong);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tk-navy);
  background: #FFFFFF;
}

.sub-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--tk-navy);
}

.sub-flag-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.toggle-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-navy);
  user-select: none;
}

.toggle-switch-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 32px;
  height: 18px;
  background: #D5D5E2;
  border-radius: var(--tk-radius-pill);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-thumb {
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-switch-label input:checked + .toggle-track {
  background: var(--tk-coral);
}

.toggle-switch-label input:checked + .toggle-track .toggle-thumb {
  transform: translateX(14px);
}

/* ================= CONTENIDO PRINCIPAL SCROLLEABLE ================= */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px 168px;
  scroll-behavior: smooth;
}

.tab-view {
  display: none;
  animation: fadeSlideIn 0.2s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner de Regla Aduanera del País */
.country-rule-banner {
  position: relative;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-left: 4px solid var(--tk-blue);
  border-radius: 14px;
  padding: 10px 34px 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--tk-shadow-sm);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.country-rule-banner.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.country-rule-banner.is-dismissed {
  display: none;
}

.rule-banner-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #E2E6F2;
  background: #F8F9FD;
  color: var(--tk-navy-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rule-banner-close:hover {
  background: var(--tk-coral);
  border-color: var(--tk-coral);
  color: #FFFFFF;
}

.rule-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--tk-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.rule-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rule-text {
  flex: 1;
  min-width: 0;
}

.rule-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--tk-navy);
  margin-bottom: 2px;
  line-height: 1.25;
}

.rule-text span {
  display: block;
  font-size: 11px;
  color: var(--tk-navy-soft);
  line-height: 1.35;
}

/* ================= TARJETA DE PRODUCTO OFICIAL TEKENO V3.2 ================= */
.product-card {
  background: var(--tk-surface);
  border-radius: var(--tk-radius-card);
  padding: 13px;
  margin-bottom: 12px;
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow-sm);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card.flash-updated {
  border-color: var(--tk-green);
  box-shadow: 0 0 0 3px rgba(26, 138, 58, 0.18);
}

.card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 11px;
}

.product-media-col {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-img-wrap {
  width: 96px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: #F6F6FA;
  border: 1px solid var(--tk-border);
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges oficiales de tarjeta en tekeno.com (ai_gen_block_50e6f5d.liquid) */
.tk-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  z-index: 2;
  letter-spacing: 0.02em;
}

.tk-card-badge--new {
  background-color: var(--tk-blue);
}

.tk-card-badge--save {
  background-color: var(--tk-coral);
}

/* Swatches circulares interactivos de variantes (como en tekeno.com) */
.tk-swatches-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0;
}

.tk-swatches-row::-webkit-scrollbar {
  display: none;
}

.tk-swatch-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid #D5D5E2;
  padding: 0;
  background: #F5F5F8;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tk-swatch-btn.active,
.tk-swatch-btn:hover {
  border-color: var(--tk-navy);
  transform: scale(1.1);
}

.tk-swatch-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.group-tag-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-navy-soft);
  background: var(--tk-bg);
  border: 1px solid var(--tk-border);
  padding: 2px 8px;
  border-radius: var(--tk-radius-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  border: 1px solid var(--tk-border);
  background: var(--tk-surface);
  color: var(--tk-navy-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fav-btn:hover {
  border-color: var(--tk-coral);
  color: var(--tk-coral);
}

.fav-btn.active {
  background: var(--tk-coral-soft);
  border-color: rgba(239, 74, 101, 0.35);
  color: var(--tk-coral);
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tk-navy);
  line-height: 1.28;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Precio en Azul Tekeno #567FED (en <span> por la regla del tema) */
.tk-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
}

.tk-price-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--tk-blue);
  letter-spacing: -0.02em;
}

.tk-save-inline-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tk-green);
  background: var(--tk-green-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.tk-save-inline-badge.match {
  color: var(--tk-navy);
  background: var(--tk-yellow-soft);
}

/* Fila "Envío gratis" en píldora azul + Botón "+" circular rojo (Exacto a tekeno.com V3.2) */
.tk-card-hook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.tekeno-envio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tk-blue);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tk-radius-pill);
  line-height: 1;
}

.tekeno-envio-pill svg {
  flex-shrink: 0;
}

.tkp-mas-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid #ECECF2;
  background: var(--tk-surface);
  color: var(--tk-coral);
  box-shadow: 0 3px 10px rgba(57, 57, 73, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tkp-mas-btn:hover {
  transform: scale(1.08);
  background: var(--tk-coral);
  color: #FFFFFF;
  border-color: var(--tk-coral);
}

.tkp-mas-btn.is-ok {
  background: var(--tk-green);
  color: #FFFFFF;
  border-color: var(--tk-green);
}

/* ================= BLOQUE COMPARADOR RADAR (MINI-IMAGEN CON LOGO DE COMPETENCIA) ================= */
.comparison-box {
  background: #F8F9FD;
  border: 1px solid #E3E7F4;
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 11px;
  overflow: hidden;
  max-width: 100%;
}

.comp-row-tekeno {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tk-surface);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--tk-blue);
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(86, 127, 237, 0.08);
}

.store-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tk-navy);
}

.tk-iso-mini {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Recuadro oficial solo con el logo de la tienda (fullsize, centrado y con borde blanco de contraste) */
.mini-prod-thumb {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(20, 22, 34, 0.16);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-prod-thumb--lg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mini-prod-thumb__only-logo,
.mini-prod-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.mini-prod-thumb__logo {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(20, 22, 34, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mini-prod-thumb--lg .mini-prod-thumb__logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.mini-prod-thumb__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.store-logo-pill {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(20, 22, 34, 0.24);
  background: #FFFFFF;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.clean-tag-inline {
  background: var(--tk-blue-soft);
  color: var(--tk-blue-dark);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.total-real-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--tk-blue);
}

.comp-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--tk-surface);
  border: 1px solid #E6E9F2;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.comp-mini-item:hover {
  border-color: var(--tk-blue);
  transform: translateY(-1px);
}

.comp-mini-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.comp-mini-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comp-mini-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--tk-navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-mini-sticker {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--tk-navy-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-mini-price {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--tk-coral);
  flex-shrink: 0;
}

/* Tira de Verificación Visual 1:1 en el Modal "Ver desglose" */
.match-1to1-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: #F4F7FF;
  border-bottom: 1px solid var(--tk-border);
}

.match-1to1-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.match-1to1-side.right-side {
  justify-content: flex-end;
  text-align: right;
}

.match-1to1-meta {
  min-width: 0;
}

.match-1to1-meta strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--tk-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-1to1-meta span {
  display: block;
  font-size: 10px;
  color: var(--tk-navy-soft);
}

.match-1to1-badge {
  background: var(--tk-surface);
  border: 1px solid #C9D8FB;
  color: var(--tk-blue-dark);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--tk-radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.verify-actions-bar {
  background: #FAFBFF;
  border-top: 1px solid var(--tk-border);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.verify-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.verify-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--tk-radius-pill);
  text-decoration: none;
  transition: all 0.15s ease;
}

.verify-pill-link--lens {
  background: var(--tk-blue-soft);
  color: var(--tk-blue-dark);
  border: 1px solid #C8D9FC;
}

.verify-pill-link--lens:hover {
  background: var(--tk-blue);
  color: #FFFFFF;
}

.verify-pill-link--store {
  background: var(--tk-surface);
  color: var(--tk-navy);
  border: 1px solid var(--tk-border-strong);
}

.verify-pill-link--store:hover {
  border-color: var(--tk-navy);
}

/* ================= BOTONES DE ACCIÓN PÍLDORA OFICIALES (tekeno.com V3.2) ================= */
.card-actions {
  display: flex;
  gap: 8px;
}

.btn-tk-outline {
  flex: 1;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--tk-radius-pill);
  border: 1.5px solid var(--tk-navy);
  background: transparent;
  color: var(--tk-navy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-tk-outline:hover {
  background: var(--tk-navy);
  color: #FFFFFF;
}

.btn-tk-outline.btn-sm {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11.5px;
}

.btn-tk-coral {
  flex: 1.35;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--tk-radius-pill);
  border: none;
  background: var(--tk-coral);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--tk-shadow-coral);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-tk-coral:hover {
  background: var(--tk-coral-hover);
  transform: translateY(-1px);
}

.btn-tk-coral:active {
  transform: scale(0.97);
}

.btn-tk-coral.btn-full {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ================= TARJETAS DE SUPERFICIE (PEGAR LINK, FAVORITOS, VENTAJAS) ================= */
.tk-surface-card {
  background: var(--tk-surface);
  border-radius: var(--tk-radius-card);
  padding: 16px;
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow-sm);
  margin-bottom: 12px;
}

.section-header-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.section-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-coral {
  background: var(--tk-coral-soft);
  color: var(--tk-coral);
}

.badge-blue {
  background: var(--tk-blue-soft);
  color: var(--tk-blue);
}

.section-header-inline h2,
.fav-header-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--tk-navy);
  line-height: 1.25;
  margin-bottom: 3px;
}

.section-sub,
.fav-header-info p {
  font-size: 12px;
  color: var(--tk-navy-soft);
  line-height: 1.4;
}

.url-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.url-pill-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tk-bg);
  border: 1.5px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-pill);
  padding: 0 14px;
  height: 44px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.url-pill-field:focus-within {
  border-color: var(--tk-blue);
  background: var(--tk-surface);
}

.url-field-icon {
  color: var(--tk-navy-muted);
  flex-shrink: 0;
}

.url-pill-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--tk-navy);
  outline: none;
}

.preset-links-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tk-navy-muted);
  margin-bottom: 8px;
}

.preset-links-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.preset-link-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--tk-bg);
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}

.preset-link-btn:hover {
  border-color: var(--tk-blue);
  background: var(--tk-blue-soft);
}

.preset-link-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.preset-link-texts {
  min-width: 0;
}

.preset-link-texts strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-link-texts span {
  display: block;
  font-size: 11px;
  color: var(--tk-navy-soft);
}

.fav-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.fav-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= PESTAÑA 4: VENTAJAS TEKENO + ICONOS 3D + LOGOS ECUADOR ================= */
.info-hero-head {
  text-align: center;
  margin-bottom: 16px;
}

.tk-eyebrow-pill {
  display: inline-block;
  background: var(--tk-yellow-soft);
  border: 1px solid var(--tk-yellow);
  color: var(--tk-navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--tk-radius-pill);
  margin-bottom: 8px;
}

.info-hero-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--tk-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.info-hero-head p {
  font-size: 12px;
  color: var(--tk-navy-soft);
  line-height: 1.45;
}

.value-prop-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 16px;
}

.value-prop-card {
  background: var(--tk-bg);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.value-prop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.value-prop-card.stripe-coral::before { background: var(--tk-coral); }
.value-prop-card.stripe-blue::before { background: var(--tk-blue); }
.value-prop-card.stripe-yellow::before { background: var(--tk-yellow); }

.vp-3d-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.vp-body {
  flex: 1;
  min-width: 0;
}

.vp-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 4px;
}

.tag-coral { background: var(--tk-coral-soft); color: var(--tk-coral); }
.tag-blue { background: var(--tk-blue-soft); color: var(--tk-blue-dark); }
.tag-yellow { background: var(--tk-yellow); color: var(--tk-navy); }

.vp-body h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tk-navy);
  margin-bottom: 4px;
  line-height: 1.25;
}

.vp-body p {
  font-size: 11.5px;
  color: var(--tk-navy-soft);
  line-height: 1.42;
}

.vp-legal {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--tk-navy-muted);
  font-style: italic;
}

/* Bloque de Aliados de Ecuador (idéntico a snippets/tk-opciones-ec.liquid) */
.tk-ec-partners-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.tk-ec-partners-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tk-navy-muted);
  margin-bottom: 8px;
}

.tk-ec-partners-grid {
  display: flex;
  flex-direction: column;
}

.tk-ec-partner-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid #EDEDF3;
}

.tk-ec-partner-row:first-child {
  border-top: none;
  padding-top: 2px;
}

.tk-ec-partner-row:last-child {
  padding-bottom: 0;
}

.tk-ec-partner-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tk-navy);
}

.tk-ec-partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.tk-ec-partner-logos img {
  height: 21px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ================= BARRA INTERACTIVA "TU PAQUETE" (snippets/tk-paquete.liquid) ================= */
.tkp-shell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 30;
  pointer-events: none;
}

.tkp-bar {
  pointer-events: auto;
  background: var(--tk-surface);
  border-top: 1px solid var(--tk-border);
  border-radius: 16px 16px 0 0;
  padding: 9px 12px 10px;
  box-shadow: 0 -8px 26px rgba(57, 57, 73, 0.14);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.tkp-shell.is-minimized .tkp-bar {
  display: none;
}

.tkp-circles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}

.tkp-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.8px dashed #D2D2DE;
  background: #F7F7FA center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #B0B0C0;
}

.tkp-slot.is-filled {
  border: 2px solid var(--tk-coral);
  color: transparent;
  animation: tkpPop 0.35s ease;
}

@keyframes tkpPop {
  0% { transform: scale(0.6); }
  65% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.tkp-remove-item {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--tk-coral);
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.tkp-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tkp-copy {
  flex: 1;
  min-width: 0;
}

.tkp-l1 {
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkp-l1 b {
  color: var(--tk-coral);
  font-weight: 800;
}

.tkp-l2 {
  font-size: 11px;
  color: var(--tk-navy-soft);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkp-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tkp-ver-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--tk-radius-pill);
  border: none;
  background: var(--tk-coral);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.tkp-ver-btn:hover {
  background: var(--tk-coral-hover);
}

.tkp-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #F1F1F6;
  color: var(--tk-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tkp-floating-pill {
  pointer-events: auto;
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: var(--tk-coral);
  color: #FFFFFF;
  border: none;
  border-radius: var(--tk-radius-pill);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(239, 74, 101, 0.35);
  cursor: pointer;
}

.tkp-floating-pill[hidden] {
  display: none;
}

/* ================= BARRA DE NAVEGACIÓN INFERIOR ================= */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--tk-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px;
  z-index: 35;
}

.nav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--tk-navy-muted);
  cursor: pointer;
  position: relative;
  padding: 4px 12px;
  border-radius: 10px;
  transition: color 0.15s ease;
}

.nav-item.active {
  color: var(--tk-coral);
  font-weight: 800;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--tk-coral);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--tk-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ================= MODAL BOTTOM SHEET (DESGLOSE Y PAQUETE) ================= */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 36, 48, 0.58);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: none;
  align-items: flex-end;
}

.modal-backdrop.open {
  display: flex;
}

.bottom-sheet {
  width: 100%;
  max-height: 88%;
  background: var(--tk-surface);
  border-radius: 24px 24px 0 0;
  padding: 14px 16px 22px;
  overflow-y: auto;
  animation: slideUpSheet 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #D5D7E3;
  border-radius: var(--tk-radius-pill);
  margin: 0 auto 12px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid var(--tk-border);
  background: var(--tk-bg);
  color: var(--tk-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--tk-coral);
  color: #FFFFFF;
  border-color: var(--tk-coral);
}

.receipt-table-card {
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 12px;
  background: var(--tk-surface);
}

.receipt-table-header {
  background: #F8F9FD;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--tk-navy);
  border-bottom: 1px solid var(--tk-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.receipt-table th,
.receipt-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--tk-border);
  text-align: right;
  vertical-align: middle;
}

.receipt-table th {
  font-size: 11.5px;
  font-weight: 800;
  background: #FAFBFF;
}

.receipt-table th:first-child,
.receipt-table td:first-child {
  text-align: left;
  font-weight: 600;
  width: 38%;
}

.receipt-table th.tk-col,
.receipt-table td.tk-col {
  background: var(--tk-blue-soft);
  color: var(--tk-navy);
  font-weight: 700;
  width: 31%;
}

.receipt-table th.comp-col,
.receipt-table td.comp-col {
  width: 31%;
}

.receipt-total-row td {
  font-size: 13px;
  font-weight: 800;
  border-top: 2px solid var(--tk-navy);
  border-bottom: none;
}

/* ================= NOTIFICACIÓN TOAST EN TIEMPO REAL ================= */
.realtime-toast {
  position: absolute;
  top: 44px;
  left: 12px;
  right: 12px;
  background: var(--tk-navy);
  color: #FFFFFF;
  padding: 10px 13px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(30, 32, 43, 0.35);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  border-left: 4px solid var(--tk-coral);
}

.realtime-toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 74, 101, 0.2);
  color: #FF8FA3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.3;
}

.toast-body strong {
  display: block;
  color: #FFFFFF;
  font-size: 12px;
  margin-bottom: 1px;
}

.toast-body span {
  color: #D2D3E0;
}

/* ================= PANEL EJECUTIVO DE DEMOSTRACIÓN (ESCRITORIO) ================= */
.ceo-panel {
  flex: 1;
  max-width: 470px;
  background: #252736;
  color: #F3F4F6;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  position: sticky;
  top: 20px;
}

.ceo-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ceo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 74, 101, 0.18);
  color: #FF94A6;
  border: 1px solid rgba(239, 74, 101, 0.4);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--tk-radius-pill);
  letter-spacing: 0.03em;
}

.ceo-panel h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.ceo-panel > p {
  font-size: 12.5px;
  color: #B4B7C8;
  line-height: 1.48;
  margin-bottom: 16px;
}

.ceo-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 14px;
}

.ceo-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93B4FF;
  margin-bottom: 11px;
}

.demo-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ceo-action-btn {
  background: #303347;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.ceo-action-btn:hover {
  background: var(--tk-blue);
  border-color: var(--tk-blue);
  transform: translateY(-1px);
}

.ceo-btn-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.ceo-action-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #A5A9BD;
}

.ceo-action-btn:hover small {
  color: #EEF3FE;
}

.roi-slider-row {
  margin-bottom: 10px;
}

.roi-slider-row label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #D1D5DB;
  margin-bottom: 4px;
}

.roi-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--tk-coral);
}

.roi-result-box {
  background: rgba(26, 138, 58, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-top: 8px;
}

.roi-result-box .big-num {
  font-size: 22px;
  font-weight: 800;
  color: #34D399;
  display: block;
}

.roi-result-box span {
  font-size: 11.5px;
  color: #D1FAE5;
}

.ceo-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.45;
}

.ceo-footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
