/* =========================================================================
   TEKTA · CAPA DE MEJORAS (solo sandbox local) · reversible
   Todo va scopeado bajo html.mejoras-on → se activa/desactiva con el botón
   "MEJORAS: ON/OFF" para comparar antes/después sin recargar.
   Pensado para modo OSCURO (el de la home por defecto).
   ========================================================================= */

/* ---------- #2 · El menú fijo ya NO tapa los títulos al hacer scroll ---------- */
html.mejoras-on :where(section, [id], .section-header, h1, h2, h3) {
  scroll-margin-top: 96px;
}

/* ---------- Sticker "Nuevo" del menú: esquinas ligeramente redondeadas ---------- */
html.mejoras-on .suite-sticker { border-radius: 5px !important; }

/* ---------- #1 + #3 · HERO con fuerza y titular legible ---------- */
html.mejoras-on .hero { min-height: 88vh; display: flex; align-items: center; }

html.mejoras-on .hero__kicker {
  color: var(--c-gold) !important;
  font-family: var(--f-mono) !important;
  letter-spacing: .12em !important;
  font-size: .74rem !important;
  opacity: 1 !important;
  transform: none !important;
}
/* En escritorio, el eyebrow en UNA sola línea (en móvil puede envolver) */
@media (min-width: 720px) {
  html.mejoras-on .hero__kicker { white-space: nowrap !important; }
}
html.mejoras-on .hero__title {
  font-family: var(--f-ui) !important;   /* Inter, no monoespaciada */
  text-transform: none !important;        /* frase normal, no MAYÚSCULAS */
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem) !important;
  line-height: 1.04 !important;
  color: var(--fg-strong) !important;     /* alto contraste */
  max-width: 17ch;
  opacity: 1 !important;                   /* evita el hero "invisible" */
  transform: none !important;
}
html.mejoras-on .hero__lead {
  color: var(--fg-soft) !important;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
  line-height: 1.5 !important;
  max-width: 48ch;
  opacity: 1 !important;
  transform: none !important;
}
/* CTA principal del hero: sólido, dorado, imposible de no ver */
html.mejoras-on .hero__ctas { gap: 14px !important; }
html.mejoras-on .hero__ctas .btn--primary,
html.mejoras-on .hero__ctas > a:first-child,
html.mejoras-on .hero__ctas > button:first-child {
  background: var(--c-gold) !important;
  color: #1a1815 !important;
  border-color: var(--c-gold) !important;
  font-weight: 700 !important;
  padding: .95rem 1.7rem !important;
  box-shadow: 0 10px 34px rgba(212,175,55,.28) !important;
}
/* El vídeo/visual del hero: visible y enmarcado como "producto" */
html.mejoras-on .hero__video {
  opacity: 1 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 26px 64px rgba(0,0,0,.5), 0 0 0 1px var(--line) !important;
}

/* ---------- #3 · Botones más legibles (menos "grito", más premium) ---------- */
html.mejoras-on .btn,
html.mejoras-on .gcard__cta-live {
  letter-spacing: .04em !important;
  border-radius: 10px !important;
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
}
html.mejoras-on .btn--primary {
  background: var(--c-gold) !important;
  color: #1a1815 !important;
  border-color: var(--c-gold) !important;
  font-weight: 700 !important;
}

/* ---------- #10 · Accesibilidad: foco visible, legibilidad, motion ---------- */
html.mejoras-on a:focus-visible,
html.mejoras-on button:focus-visible,
html.mejoras-on .btn:focus-visible,
html.mejoras-on .gcard__cta-live:focus-visible {
  outline: 3px solid var(--c-gold) !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}
html.mejoras-on .section-header p,
html.mejoras-on .hero__lead { color: var(--fg-soft) !important; }

html.mejoras-on a, html.mejoras-on button { min-height: 0; }
html.mejoras-on a.btn, html.mejoras-on .gcard__cta-live { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  html.mejoras-on * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Blindaje MÓVIL (≤600px): sin desbordes ni títulos gigantes ---------- */
@media (max-width: 600px) {
  html.mejoras-on .hero { min-height: auto; padding-top: 88px; }
  html.mejoras-on .hero__title {
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
    max-width: 100%;
  }
  html.mejoras-on .hero__kicker { white-space: normal !important; letter-spacing: .10em !important; }
  html.mejoras-on .hero__lead { max-width: 100%; }
  html.mejoras-on .hero__ctas .btn--primary,
  html.mejoras-on .hero__ctas > a:first-child { width: 100%; justify-content: center; }
  /* Lanzador único: un poco más pequeño y sin taparse con el borde */
  #mj-fab { right: 14px; bottom: 14px; }
  #mj-fab__main { width: 52px; height: 52px; }
}

/* ---------- #4 · Un ÚNICO lanzador (asistente + WhatsApp fundidos) ---------- */
/* Oculta los dos flotantes originales apilados */
html.mejoras-on #tkBotFab,
html.mejoras-on .wa-btn { display: none !important; }

#mj-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1650; display: none; }
html.mejoras-on #mj-fab { display: block; }

#mj-fab__main {
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(212,175,55,.5);
  background: radial-gradient(120% 120% at 30% 25%, #20232b, #0c0e12 70%, #000);
  color: #d4af37; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.5); transition: transform .15s;
}
#mj-fab__main:hover { transform: scale(1.08); }

#mj-fab__menu {
  position: absolute; right: 5px; bottom: 70px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#mj-fab.open #mj-fab__menu { opacity: 1; transform: none; pointer-events: auto; }

.mj-fab__item {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  text-decoration: none; background: transparent; border: 0; cursor: pointer; padding: 0;
  font: 600 13px/1 'Inter', system-ui, sans-serif; color: #fff; white-space: nowrap;
}
.mj-fab__lbl {
  background: #12141a; border: 1px solid rgba(255,255,255,.12);
  padding: 9px 13px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.mj-fab__ic {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.mj-fab__ic--wa { background: #25D366; color: #fff; }
.mj-fab__ic--wa svg { width: 30px; height: 30px; }
.mj-fab__ic--bot { background: radial-gradient(120% 120% at 30% 25%, #20232b, #0c0e12 70%, #000); border: 1px solid rgba(212,175,55,.5); }
.mj-fab__ic--bot img { width: 30px; height: 30px; object-fit: contain; }
