/*! Think TIC UI v1 — sistema visual de las herramientas.
 *  Componentes (siempre seguros): .tt-aurora, .tt-ray*, .tt-sg*, .tt-brand, .tt-btn, .ttl-card.tt-modal
 *  Piel de página (solo si <body class="tt-ui">): fondo aurora, tarjetas de vidrio, botones, selects.
 *  Inspirado en componentes de Kexsio (Radiant Typing, Surge, Soft Aurora, Thinking Text) en colores de la marca. */

:root {
  --tt-bg: #050818;
  --tt-ink: #f3f5ff;
  --tt-mute: rgba(206, 215, 247, .72);
  --tt-line: rgba(255, 255, 255, .1);
  --tt-blue: #0000a8;
  --tt-blue2: #3340ff;
  --tt-blue3: #8a96ff;
  --tt-orange: #f82800;
  --tt-orange2: #ff5a2e;
  --tt-peach: 255, 169, 143;
  --tt-cream: 255, 244, 228;
  --tt-glass: linear-gradient(125deg, rgba(39, 47, 61, .72), rgba(12, 18, 28, .72));
  --tt-font: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.tt-ui-html { background: var(--tt-bg); color-scheme: dark; }

/* ───────────────────────── Fondo aurora ───────────────────────── */
.tt-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0b1340 0%, #070b24 45%, #050818 100%);
}
.tt-aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tt-aurora::after { /* viñeta: protege la lectura del texto */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(95% 75% at 50% 42%, rgba(5, 8, 24, 0) 0%, rgba(5, 8, 24, .58) 100%);
}
.tt-aurora--static {
  background:
    radial-gradient(55% 45% at 18% 8%, rgba(51, 64, 255, .38), transparent 62%),
    radial-gradient(50% 42% at 86% 18%, rgba(255, 77, 31, .30), transparent 62%),
    radial-gradient(120% 90% at 50% 0%, #0b1340 0%, #070b24 45%, #050818 100%);
}

/* ───────────────────────── Marca ───────────────────────── */
.tt-brand {
  position: fixed; top: 14px; left: 16px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(145deg, rgba(32, 40, 53, .62), rgba(15, 22, 33, .58));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s;
}
.tt-brand:hover { transform: translateY(-1px); border-color: rgba(255, 220, 203, .2); }
.tt-brand img { height: 34px; width: auto; display: block; }
.tt-brand span { font: 600 11px var(--tt-font); letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 232, 255, .72); }

/* ───────────────────────── Campos "ray" (haz de luz en el cursor) ───────────────────────── */
.tt-ray {
  --tt-fs: 17px;
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate;
  border-radius: 18px;
  background: radial-gradient(circle at 46% 50%, rgba(255, 255, 255, .03), transparent 36%), var(--tt-glass);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 16px 36px rgba(0, 0, 0, .28);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
}
.tt-ray[data-kind="area"] { border-radius: 20px; }
.tt-ray[data-active="true"] {
  border-color: rgba(255, 220, 203, .2); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 20px 44px rgba(0, 0, 0, .36), 0 0 0 3px rgba(var(--tt-peach), .06);
}
.tt-ray::before { /* filo de luz del borde */
  content: ""; position: absolute; inset: 0; z-index: 6; padding: 1px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, rgba(255, 255, 255, .07), transparent 20%, transparent 75%, rgba(255, 255, 255, .015));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.tt-ray > .tt-ray-input {
  position: relative; z-index: 3; display: block; width: 100% !important; max-width: none !important; margin: 0 !important;
  border: 0 !important; outline: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: transparent !important; color: rgba(255, 252, 246, .95) !important; caret-color: transparent !important;
  -webkit-text-fill-color: rgba(255, 252, 246, .95);
  font: 500 var(--tt-fs) / 1.35 var(--tt-font) !important; letter-spacing: -.012em;
  padding: 15px var(--tt-pr, 18px) 15px var(--tt-pl, 18px) !important; min-height: 52px; height: auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .32);
}
.tt-ray > textarea.tt-ray-input { min-height: 110px; line-height: 1.55 !important; resize: vertical; }
.tt-ray > .tt-ray-input::placeholder { color: rgba(210, 215, 224, .34); -webkit-text-fill-color: rgba(210, 215, 224, .34); }
.tt-ray > .tt-ray-input::selection { background: rgba(var(--tt-peach), .28); }
.tt-ray > input[type="number"].tt-ray-input { -moz-appearance: textfield; }
.tt-ray > input[type="number"].tt-ray-input::-webkit-inner-spin-button { opacity: .25; }
.tt-ray > .tt-ray-input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease; box-shadow: 0 0 0 100px rgba(12, 18, 28, .9) inset !important; }

.tt-ray-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; font-size: var(--tt-fs); }
.tt-anchor {
  position: absolute; left: var(--cx, 18px); top: var(--cy, 14px); width: var(--cw, 2px); height: var(--chh, 22px);
  opacity: 0; transition: opacity .25s ease;
}
.tt-ray[data-active="true"] .tt-anchor { opacity: 1; }
.tt-caret {
  position: absolute; z-index: 20; inset: 0; border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .88), #fffbed 35%, #fff 62%, rgba(255, 255, 255, .86));
  box-shadow: 0 0 3px rgba(255, 255, 255, 1), 0 0 9px rgba(255, 242, 216, .95), 0 0 20px rgba(var(--tt-cream), .62), 0 0 40px rgba(var(--tt-peach), .28);
  animation: tt-caret-breathe 1.55s ease-in-out infinite;
}
.tt-left { position: absolute; z-index: 1; top: 50%; right: 0; width: 9.5em; height: 5.2em; overflow: hidden; pointer-events: none; transform: translateY(-50%); }
.tt-ray-wide {
  position: absolute; z-index: 1; top: 50%; right: 0; width: 8.6em; height: 4.2em; pointer-events: none;
  transform-origin: right center; transform: translateY(-50%);
  clip-path: polygon(0 0, 100% 45%, 100% 55%, 0 100%);
  background: linear-gradient(270deg, rgba(255, 246, 223, .5) 0%, rgba(255, 184, 154, .3) 14%, rgba(255, 135, 115, .13) 44%, transparent 90%);
  filter: blur(.34em); opacity: .55; mix-blend-mode: screen; animation: tt-ray-wide 3.2s ease-in-out infinite;
}
.tt-ray-core {
  position: absolute; z-index: 2; top: 50%; right: 0; width: 6.6em; height: 1.7em; pointer-events: none;
  transform-origin: right center; transform: translateY(-50%);
  clip-path: polygon(0 4%, 100% 42%, 100% 58%, 0 96%);
  background: linear-gradient(270deg, rgba(255, 250, 233, .78), rgba(255, 196, 165, .35) 15%, rgba(255, 128, 108, .1) 58%, transparent);
  filter: blur(.2em); opacity: .65; mix-blend-mode: screen; animation: tt-ray-core 2.45s ease-in-out infinite;
}
.tt-bloom {
  position: absolute; z-index: 3; top: 50%; right: -2.2em; width: 4.4em; height: 3.8em; pointer-events: none; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 247, 229, .82) 0%, rgba(255, 200, 174, .45) 10%, rgba(255, 146, 121, .23) 25%, rgba(255, 129, 106, .07) 48%, transparent 72%);
  filter: blur(.22em); opacity: .83; mix-blend-mode: screen; animation: tt-bloom-breathe 2.8s ease-in-out infinite;
}
.tt-back { /* luz hacia la derecha: solo cuando el campo está vacío */
  position: absolute; z-index: 1; left: 0; top: 50%; width: 3.1em; height: 2.6em; pointer-events: none;
  transform-origin: left center; transform: translateY(-50%) scaleX(1);
  clip-path: polygon(0 44%, 100% 14%, 100% 86%, 0 56%);
  background: linear-gradient(90deg, rgba(255, 219, 194, .28), rgba(255, 177, 146, .12) 42%, transparent 88%);
  filter: blur(.3em); opacity: .46; mix-blend-mode: screen;
  transition: opacity .18s ease, transform .22s ease;
}
.tt-ray:not([data-empty="true"]) .tt-back { opacity: 0; transform: translateY(-50%) scaleX(0); }
.tt-ray[data-burst="true"] .tt-bloom { opacity: 1; transform: translateY(-50%) scale(1.12); }
.tt-ray[data-burst="true"] .tt-ray-wide { opacity: .78; }
.tt-ray[data-burst="true"] .tt-ray-core { opacity: .92; }
.tt-spark {
  --x: 0em; --y: 0em; --d: 0s;
  position: absolute; z-index: 8; left: 50%; top: 50%; width: 2px; height: 2px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255, 241, 217, .95); box-shadow: 0 0 5px rgba(255, 236, 204, .95), 0 0 10px rgba(255, 155, 128, .55);
  animation: tt-particle 2.1s var(--d) ease-out infinite; animation-play-state: paused;
}
.tt-ray[data-active="true"] .tt-spark { animation-play-state: running; }
.tt-ray:not([data-empty="true"]) .tt-spark.tt-r { display: none; }

.tt-ray > .tt-adorn { z-index: 7 !important; pointer-events: none; color: var(--tt-mute) !important; top: 50% !important; transform: translateY(-50%); bottom: auto !important; height: auto !important; }

/* ───────────────────────── Selects ───────────────────────── */
body.tt-ui select,
.tt-modal select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 18px !important;
  padding: 14px 46px 14px 18px !important; color: var(--tt-ink) !important;
  font: 500 16px / 1.3 var(--tt-font) !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfd6e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px,
    var(--tt-glass) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 30px rgba(0, 0, 0, .24) !important;
  transition: border-color .3s, box-shadow .3s;
}
body.tt-ui select:focus,
.tt-modal select:focus { outline: 0; border-color: rgba(255, 220, 203, .26) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 3px rgba(var(--tt-peach), .1) !important; }
body.tt-ui select option { background: #0b1030; color: var(--tt-ink); }
body.tt-ui input[type="checkbox"], body.tt-ui input[type="radio"], .tt-modal input[type="checkbox"], body.tt-ui input[type="range"] { accent-color: var(--tt-orange2); }

/* ───────────────────────── Botones ───────────────────────── */
.tt-btn,
body.tt-ui .bg-blue-600, body.tt-ui .bg-indigo-600, body.tt-ui .wizard-btn, body.tt-ui .btn-gradient,
.tt-modal .ttl-btn {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  background: linear-gradient(145deg, #2f3cff 0%, #1320d8 45%, #0000a8 100%) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important; color: #fff !important; border-radius: 999px !important;
  font-family: var(--tt-font) !important; font-weight: 600 !important; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -12px 26px rgba(0, 0, 40, .38), 0 12px 30px rgba(0, 0, 168, .38), 0 0 24px rgba(51, 64, 255, .22) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 40, .5);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, filter .35s ease;
}
.tt-btn::after,
body.tt-ui .bg-blue-600::after, body.tt-ui .bg-indigo-600::after, body.tt-ui .wizard-btn::after, body.tt-ui .btn-gradient::after,
.tt-modal .ttl-btn::after { /* brillo que llena el botón al pasar el mouse (como el avatar K) */
  content: ""; position: absolute; z-index: -1; inset: -4px; border-radius: inherit; pointer-events: none; opacity: 0; transform: scale(.9);
  background: radial-gradient(circle at 48% 42%, rgba(255, 255, 255, .62) 0%, rgba(255, 250, 235, .42) 14%, rgba(255, 219, 190, .32) 36%, rgba(255, 150, 120, .2) 62%, transparent 100%);
  filter: blur(6px); transition: opacity .3s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.tt-btn:hover, body.tt-ui .bg-blue-600:hover, body.tt-ui .bg-indigo-600:hover, body.tt-ui .wizard-btn:hover, body.tt-ui .btn-gradient:hover, .tt-modal .ttl-btn:hover {
  transform: translateY(-2px) scale(1.015); filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -12px 26px rgba(0, 0, 40, .3), 0 16px 36px rgba(0, 0, 168, .42), 0 0 14px rgba(255, 249, 230, .35), 0 0 34px rgba(255, 140, 110, .26) !important;
}
.tt-btn:hover::after, body.tt-ui .bg-blue-600:hover::after, body.tt-ui .bg-indigo-600:hover::after, body.tt-ui .wizard-btn:hover::after, body.tt-ui .btn-gradient:hover::after, .tt-modal .ttl-btn:hover::after { opacity: .55; transform: scale(1.03); }
.tt-btn:active, body.tt-ui .bg-blue-600:active, body.tt-ui .wizard-btn:active, body.tt-ui .btn-gradient:active, .tt-modal .ttl-btn:active { transform: translateY(0) scale(.985); }
.tt-btn:focus-visible, body.tt-ui button:focus-visible, body.tt-ui a:focus-visible { outline: 2px solid rgba(255, 220, 200, .4); outline-offset: 4px; }
.tt-btn[disabled], body.tt-ui button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* botón de acción final (WhatsApp / agendar): naranja de marca */
.tt-btn--cta,
body.tt-ui .bg-green-600, body.tt-ui .wizard-btn-cta, body.tt-ui a.bg-green-500 {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(145deg, #ff7448 0%, #f82800 55%, #c21f00 100%) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important; color: #fff !important; border-radius: 999px !important;
  font-family: var(--tt-font) !important; font-weight: 600 !important; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -12px 26px rgba(90, 10, 0, .3), 0 12px 30px rgba(248, 40, 0, .34), 0 0 24px rgba(255, 90, 46, .2) !important;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, filter .35s ease;
}
.tt-btn--cta:hover, body.tt-ui .bg-green-600:hover, body.tt-ui .wizard-btn-cta:hover, body.tt-ui a.bg-green-500:hover {
  transform: translateY(-2px) scale(1.015); filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 16px 36px rgba(248, 40, 0, .42), 0 0 16px rgba(255, 244, 228, .4), 0 0 38px rgba(255, 150, 110, .3) !important;
}

/* ───────────────────────── Piel de página (solo con body.tt-ui) ───────────────────────── */
body.tt-ui {
  background: transparent !important; color: var(--tt-ink); font-family: var(--tt-font);
  padding-top: max(64px, env(safe-area-inset-top)) !important; -webkit-font-smoothing: antialiased;
}
body.tt-ui .bg-gray-100, body.tt-ui .bg-gray-50, body.tt-ui .bg-gray-900, body.tt-ui.bg-gray-900, body.tt-ui .bg-dark { background: transparent !important; }
body.tt-ui .bg-white, body.tt-ui .bg-gray-800, body.tt-ui .bg-slate-800, body.tt-ui .bg-slate-900, body.tt-ui .bg-slate-50, body.tt-ui .card-modern {
  background: radial-gradient(circle at 46% 0%, rgba(255, 255, 255, .035), transparent 50%), linear-gradient(125deg, rgba(34, 42, 58, .66), rgba(10, 15, 26, .7)) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important; color: var(--tt-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .36) !important;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
body.tt-ui .bg-gray-900 .bg-gray-900, body.tt-ui .bg-gray-800 .bg-gray-900, body.tt-ui .bg-white .bg-white { background: rgba(5, 8, 24, .42) !important; backdrop-filter: none; box-shadow: none !important; }
body.tt-ui .bg-gray-700 { background: rgba(255, 255, 255, .06) !important; }
body.tt-ui .text-gray-900, body.tt-ui .text-gray-800, body.tt-ui .text-gray-700, body.tt-ui .text-black, body.tt-ui .text-light { color: var(--tt-ink) !important; }
body.tt-ui .text-gray-600, body.tt-ui .text-gray-500, body.tt-ui .text-gray-400, body.tt-ui .text-gray-300, body.tt-ui .text-slate-500, body.tt-ui .text-slate-600, body.tt-ui .text-slate-700 { color: var(--tt-mute) !important; }
body.tt-ui .text-blue-600, body.tt-ui .text-blue-500, body.tt-ui .text-blue-400, body.tt-ui .text-indigo-600, body.tt-ui .text-indigo-500 { color: #a4aeff !important; }
body.tt-ui .text-blue-700, body.tt-ui .text-blue-800, body.tt-ui .text-blue-900, body.tt-ui .text-indigo-700, body.tt-ui .text-indigo-800, body.tt-ui .text-indigo-900 { color: #aab5ff !important; }
body.tt-ui .text-green-600, body.tt-ui .text-green-500, body.tt-ui .text-green-400 { color: #62e6ac !important; }
body.tt-ui .text-purple-600, body.tt-ui .text-purple-500 { color: #cdb8ff !important; }
body.tt-ui .text-red-500, body.tt-ui .text-red-600, body.tt-ui .text-red-400 { color: #ff9f86 !important; }
body.tt-ui .text-yellow-400, body.tt-ui .text-amber-500, body.tt-ui .text-yellow-500 { color: #ffd37a !important; }
body.tt-ui .border-gray-100, body.tt-ui .border-gray-200, body.tt-ui .border-gray-300, body.tt-ui .border-gray-600, body.tt-ui .border-gray-700, body.tt-ui .border-slate-200, body.tt-ui .border-slate-300 { border-color: var(--tt-line) !important; }
body.tt-ui .bg-red-100 { background: rgba(248, 40, 0, .13) !important; border-color: rgba(255, 120, 90, .4) !important; backdrop-filter: none; }
body.tt-ui .bg-red-100, body.tt-ui .bg-red-100 * { color: #ffc2b3 !important; }
body.tt-ui .bg-green-100 { background: rgba(60, 220, 160, .12) !important; }
body.tt-ui .bg-amber-50, body.tt-ui .bg-yellow-50 { background: rgba(255, 190, 80, .1) !important; }
body.tt-ui:not([class*="tt-p-"]) a:not([class*="bg-"]):not(.wizard-btn):not(.wizard-btn-cta):not(.btn-gradient):not(.tt-brand) { color: #aeb8ff; }
body.tt-ui h1, body.tt-ui h2, body.tt-ui h3 { letter-spacing: -.025em; }
body.tt-ui label, body.tt-ui .input-label { color: rgba(222, 229, 255, .86) !important; font-weight: 500; }
body.tt-ui ul.list-disc li::marker { color: var(--tt-orange2); }
body.tt-ui hr, body.tt-ui .border-t { border-color: var(--tt-line) !important; }
/* campos que no se mejoran (ocultos, casillas): sin fondo claro */
body.tt-ui input[type="file"] { color: var(--tt-mute); }
body.tt-ui .input-modern { background: transparent !important; }

/* ───────────────────────── Loader Surge (con texto que vuela y barra de progreso) ───────────────────────── */
body.tt-ui .loader, body.tt-ui [id^="loader"].loader { border: 0 !important; background: none !important; width: auto !important; height: auto !important; animation: none !important; margin: 18px auto !important; border-radius: 0 !important; }
body.tt-ui .loader > *:not(.tt-sg) { display: none !important; }
.tt-sg {
  position: relative; width: min(560px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 34px) 22px;
  display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vh, 26px);
  border-radius: 28px; overflow: hidden; isolation: isolate; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(26, 40, 100, .55) 0%, rgba(8, 13, 32, .8) 60%), linear-gradient(125deg, rgba(34, 42, 58, .6), rgba(8, 12, 22, .75));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px rgba(0, 0, 0, .42);
  font-family: var(--tt-font);
}
.tt-sg::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 120%; height: 80%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(51, 64, 255, .22), rgba(51, 64, 255, 0) 70%); }
.tt-sg-stage { position: relative; height: clamp(46px, 9vh, 64px); width: 100%; perspective: 1000px; user-select: none; }
.tt-sg-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 600 clamp(24px, 5vw, 36px) / 1.1 'Space Grotesk', var(--tt-font); letter-spacing: -.02em;
  color: rgba(224, 232, 255, .86); transform-style: preserve-3d; will-change: transform, opacity, filter;
}
.tt-sg-label[data-mode="in"] { animation: tt-sg-label-in .9s cubic-bezier(.22, 1, .36, 1) both; }
.tt-sg-label[data-mode="out"] { animation: tt-sg-label-out .45s cubic-bezier(.7, 0, .84, 0) both; }
.tt-sg-letter { display: inline-block; white-space: pre; }
.tt-sg-label[data-mode="in"] .tt-sg-letter { animation: tt-sg-letter-in .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d); }
.tt-sg-bar { position: relative; height: 16px; width: 100%; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5), inset 0 -1px 2px rgba(255, 255, 255, .05); }
.tt-sg-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: 0%; border-radius: 999px; overflow: hidden; /* el brillo no debe salirse del relleno */
  background: linear-gradient(90deg, #1520d6 0%, #3340ff 38%, #8a96ff 62%, #ff7a4d 84%, #f82800 100%);
  box-shadow: 0 0 18px rgba(51, 64, 255, .55), 0 0 32px rgba(255, 90, 46, .3), inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -2px 3px rgba(0, 0, 60, .35);
}
.tt-sg-sheen { position: absolute; inset: 0; width: 55%; border-radius: 999px; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%); mix-blend-mode: screen; animation: tt-sg-sheen 1.6s linear infinite; }
.tt-sg-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(160, 180, 230, .6); }
.tt-sg-pct { color: rgba(232, 240, 255, .94); font-size: 14px; letter-spacing: .02em; }
.tt-sg-think { /* texto con brillo que recorre (Thinking Text, Kexsio) */
  display: inline-block; font: 500 14px / 1.4 var(--tt-font); letter-spacing: -.01em; color: transparent; text-transform: none;
  background-image: linear-gradient(110deg, #5b6585 0%, #5b6585 35%, #fff 48%, #ff7a4d 50%, #fff 52%, #5b6585 65%, #5b6585 100%);
  background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: tt-think 1.8s linear infinite;
}

/* ───────────────────────── Modal de datos (lead.js) ───────────────────────── */
.ttl-ov { background: rgba(3, 5, 18, .72) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ttl-card.tt-modal {
  color: var(--tt-ink) !important; font-family: var(--tt-font);
  background: radial-gradient(circle at 46% 0%, rgba(255, 255, 255, .04), transparent 55%), linear-gradient(125deg, rgba(30, 38, 56, .94), rgba(8, 12, 24, .96)) !important;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -10px 60px rgba(0, 0, 0, .55) !important;
}
.ttl-card.tt-modal h2 { color: #fff !important; letter-spacing: -.03em; }
.ttl-card.tt-modal p.ttl-s { color: var(--tt-mute) !important; }
.ttl-card.tt-modal label { color: rgba(222, 229, 255, .88) !important; }
.ttl-card.tt-modal .ttl-or { color: rgba(206, 215, 247, .5) !important; }
.ttl-card.tt-modal .ttl-chk { color: var(--tt-mute) !important; }
.ttl-card.tt-modal .ttl-chk a { color: #b6bfff !important; }
.ttl-card.tt-modal .ttl-x { color: rgba(206, 215, 247, .7) !important; }
.ttl-card.tt-modal .ttl-err { color: #ff9f86 !important; }
.ttl-card.tt-modal .tt-ray { margin-top: 2px; }
.ttl-card.tt-modal label.ttl-chk { display: flex !important; gap: 12px; align-items: flex-start; }
.ttl-card.tt-modal .ttl-chk input { accent-color: var(--tt-orange2); margin-top: 2px; }
.ttl-card.tt-modal .ttl-btn { min-height: 56px; background: linear-gradient(145deg, #ff7448 0%, #f82800 55%, #c21f00 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 30px rgba(248, 40, 0, .34), 0 0 24px rgba(255, 90, 46, .2) !important; }

/* ───────────────────────── Detalles por herramienta ───────────────────────── */
/* botones de las calculadoras (calculadora.css los deja muy delgados) */
body.tt-ui .wizard-btn, body.tt-ui .wizard-btn-cta, body.tt-ui .btn-gradient {
  min-height: 52px; padding: .8rem 1.6rem !important; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 1rem;
}
/* acción final (WhatsApp): centrada y de buen tamaño; antes quedaba a la izquierda con el ancho de su texto */
body.tt-ui .wizard-btn-cta { display: flex; width: min(100%, 560px); margin-left: auto; margin-right: auto; }
/* títulos con degradado (Tailwind bg-clip-text) */
body.tt-ui .bg-clip-text { background-image: linear-gradient(100deg, #fff 0%, #c3caff 55%, #ffb199 100%) !important; -webkit-text-fill-color: transparent; }
/* indicador de pasos del asistente de creativos */
body.tt-ui .stepper::before { background: rgba(255, 255, 255, .14) !important; }
body.tt-ui .step-circle { background: linear-gradient(145deg, rgba(40, 48, 64, .92), rgba(14, 20, 32, .92)) !important; border: 1px solid rgba(255, 255, 255, .16) !important; color: var(--tt-mute) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
body.tt-ui .step-title { color: var(--tt-mute) !important; }
body.tt-ui .step.activo .step-circle { background: linear-gradient(145deg, #3340ff, #0000a8) !important; border-color: rgba(255, 255, 255, .32) !important; color: #fff !important; box-shadow: 0 0 22px rgba(51, 64, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
body.tt-ui .step.activo .step-title { color: #fff !important; }
body.tt-ui .step.completado .step-circle { background: linear-gradient(145deg, #ff7448, #f82800) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
body.tt-ui .step.completado .step-title { color: #ffd2c4 !important; }


/* ───────────────────────── Botón secundario de vidrio ───────────────────────── */
.tt-btn--ghost {
  position: relative; cursor: pointer; border-radius: 999px !important;
  background: var(--tt-glass) !important; color: rgba(236, 240, 255, .9) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important; font-family: var(--tt-font) !important; font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 24px rgba(0, 0, 0, .25) !important;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s, color .3s;
}
.tt-btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255, 220, 203, .3) !important; color: #fff !important; }
body.tt-nobrand { padding-top: 0 !important; }

/* ───────────────────────── Páginas con diseño propio ───────────────────────── */
/* Generador de Schema FAQ (página clara → vidrio oscuro) */
body.tt-p-schema { --color-texto: #f3f5ff; --color-fondo: transparent; --color-blanco: #fff; --color-gris-claro: rgba(255, 255, 255, .1); }
body.tt-p-schema .container { background: radial-gradient(circle at 46% 0%, rgba(255, 255, 255, .035), transparent 50%), linear-gradient(125deg, rgba(34, 42, 58, .66), rgba(10, 15, 26, .7)); border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px rgba(0, 0, 0, .36); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); color: var(--tt-ink); }
body.tt-p-schema header { border-bottom-color: var(--tt-line); }
body.tt-p-schema h1 { color: #fff; }
body.tt-p-schema header p, body.tt-p-schema #resultados p { color: var(--tt-mute); }
body.tt-p-schema .form-group label { color: rgba(222, 229, 255, .88); }
body.tt-p-schema .faq-pair { background: rgba(255, 255, 255, .035); border: 1px dashed rgba(255, 255, 255, .16); }
body.tt-p-schema #resultados h3, body.tt-p-schema #cta-thinktic h2 { color: #b4bcff; }
body.tt-p-schema pre { background: rgba(5, 8, 24, .78); border: 1px solid var(--tt-line); }
body.tt-p-schema .btn-copy { background: linear-gradient(145deg, #ff7448, #f82800) !important; border-radius: 999px !important; }
body.tt-p-schema #cta-thinktic { background: rgba(51, 64, 255, .1); border: 1px solid rgba(138, 150, 255, .25); }
body.tt-p-schema #cta-thinktic p { color: var(--tt-mute); }
body.tt-p-schema footer { color: var(--tt-mute); border-top-color: var(--tt-line); }
body.tt-p-schema footer strong { color: rgba(236, 240, 255, .85); }

/* Diagnóstico de madurez en IA (variables: la página se oscurece completa) */
body.tt-p-diag {
  --bg: transparent; --white: rgba(14, 20, 36, .74); --brand-light: rgba(255, 255, 255, .07); --brand-primary: #c9d0ff; --brand-accent-bg: rgba(248, 40, 0, .14);
  --text-dark: #f3f5ff; --text-mid: rgba(214, 222, 250, .86); --text-soft: rgba(190, 200, 235, .68); --line: rgba(255, 255, 255, .1); --chalk: rgba(255, 255, 255, .05); --yellow-hl: rgba(255, 179, 0, .2);
  --shadow: 0 10px 36px rgba(0, 0, 0, .3); --shadow-lg: 0 30px 70px rgba(0, 0, 0, .4);
}
body.tt-p-diag .app-header { background: rgba(8, 12, 28, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--tt-line); }
body.tt-p-diag .card { border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); background: radial-gradient(circle at 46% 0%, rgba(255, 255, 255, .035), transparent 50%), linear-gradient(125deg, rgba(34, 42, 58, .66), rgba(10, 15, 26, .72)); }
body.tt-p-diag .brand { color: #fff; }

/* Black Friday (calculadora y test): fondo propio → aurora */
body.tt-p-bf { --bg-color: transparent; }
body.tt-p-bf .glass-card, body.tt-p-bf .card, body.tt-p-bf .wizard-container { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }

/* Cotizador APU y auditor IA: fondos propios → aurora */
body.tt-p-apu { --bg: transparent; --text-muted: #c3c9d6; }
body.tt-p-aia { --bg-color: transparent; }
/* páginas con mucho texto: aurora más tenue para que la lectura nunca sufra */
body.tt-p-bf { --text-muted: #cbc5de; }
body.tt-p-bf > .tt-aurora, body.tt-p-apu > .tt-aurora, body.tt-p-aia > .tt-aurora { opacity: .5; }


/* Herramientas de texto largo (Frankenstein, reseñas de Google, termómetro de cultura, propuesta de valor): página clara → vidrio oscuro */
body.tt-p-fam { --color-fondo: transparent; --color-texto: #f3f5ff; --color-secundario: #c9d0ff; --color-gris-claro: rgba(255, 255, 255, .1); }
body.tt-p-fam .container {
  background: radial-gradient(circle at 46% 0%, rgba(255, 255, 255, .035), transparent 50%), linear-gradient(125deg, rgba(34, 42, 58, .66), rgba(10, 15, 26, .72)) !important;
  border: 1px solid rgba(255, 255, 255, .07); color: var(--tt-ink); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px rgba(0, 0, 0, .36) !important; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
body.tt-p-fam header { background: linear-gradient(135deg, rgba(0, 0, 168, .62), rgba(10, 14, 48, .38)) !important; border-bottom: 1px solid var(--tt-line); color: #fff; }
body.tt-p-fam header h1 { color: #fff; }
body.tt-p-fam header p { color: rgba(230, 236, 255, .86); }
body.tt-p-fam .form-group label { color: #c9d0ff !important; }
body.tt-p-fam .diagnosis-card, body.tt-p-fam .result-card, body.tt-p-fam .respuesta-card { background: rgba(255, 255, 255, .045) !important; color: var(--tt-ink); box-shadow: none !important; }
body.tt-p-fam .respuesta-card { border: 1px solid var(--tt-line); }
body.tt-p-fam .diagnosis-card h3, body.tt-p-fam .result-card h3, body.tt-p-fam .respuesta-card h3 { color: #fff !important; }
body.tt-p-fam .diagnosis-card p, body.tt-p-fam .result-card p, body.tt-p-fam .respuesta-card p { color: rgba(222, 229, 255, .92); }
body.tt-p-fam .result-card { border-left-color: #8a96ff; }
body.tt-p-fam .card-1, body.tt-p-fam .risk-high { background: rgba(248, 40, 0, .1) !important; border-color: #ff6a4d !important; }
body.tt-p-fam .card-2, body.tt-p-fam .risk-med { background: rgba(255, 179, 0, .09) !important; border-color: #ffb300 !important; }
body.tt-p-fam .card-3 { background: rgba(53, 212, 154, .09) !important; border-color: #35d49a !important; }
body.tt-p-fam #cta-thinktic, body.tt-p-fam #cta-zully { background: rgba(51, 64, 255, .12) !important; border: 1px solid rgba(138, 150, 255, .25) !important; color: var(--tt-ink); }
body.tt-p-fam #cta-thinktic h2, body.tt-p-fam #cta-zully h2 { color: #fff !important; }
body.tt-p-fam #cta-thinktic p, body.tt-p-fam #cta-zully p { color: var(--tt-mute); }
body.tt-p-fam .btn-cta, body.tt-p-fam .btn-whatsapp { text-decoration: none; padding: 14px 30px; }
body.tt-ui .loader::after { display: none !important; }              /* el spinner antiguo dibujado con ::after */
body.tt-ui [style*="color: red"], body.tt-ui [style*="color:red"] { color: #ff9f86 !important; }   /* errores en rojo puro → legibles sobre fondo oscuro */

/* ───────────────────────── Animaciones ───────────────────────── */
@keyframes tt-caret-breathe { 0%, 100% { opacity: .88; transform: scaleY(.97); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes tt-bloom-breathe { 0%, 100% { opacity: .68; transform: translateY(-50%) scale(.94); } 50% { opacity: .94; transform: translateY(-50%) scale(1.06); } }
@keyframes tt-ray-wide { 0%, 100% { opacity: .42; transform: translateY(-50%) scaleX(.94); } 50% { opacity: .66; transform: translateY(-50%) scaleX(1.03); } }
@keyframes tt-ray-core { 0%, 100% { opacity: .48; transform: translateY(-50%) scaleX(.9); } 50% { opacity: .76; transform: translateY(-50%) scaleX(1.04); } }
@keyframes tt-particle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 16% { opacity: .9; } 70% { opacity: .35; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.15); } }
@keyframes tt-sg-label-in { 0% { opacity: 0; transform: translateZ(-380px) scale(.65); filter: blur(14px); } 35% { opacity: 1; transform: translateZ(60px) scale(1.08); filter: blur(0); } 70% { opacity: 1; transform: translateZ(-8px) scale(.985); filter: blur(0); } 100% { opacity: 1; transform: translateZ(0) scale(1); filter: blur(0); } }
@keyframes tt-sg-label-out { from { opacity: 1; transform: translateZ(0) scale(1); filter: blur(0); } to { opacity: 0; transform: translateZ(220px) scale(1.35); filter: blur(10px); } }
@keyframes tt-sg-letter-in { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes tt-sg-sheen { from { transform: translateX(-110%); } to { transform: translateX(210%); } }
@keyframes tt-think { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .tt-brand { top: 10px; left: 10px; padding: 6px 12px 6px 8px; }
  .tt-brand img { height: 28px; }
  .tt-brand span { display: none; }
  .tt-ray > .tt-ray-input { font-size: max(16px, var(--tt-fs)) !important; } /* evita el zoom de iOS al enfocar */
}
@media (prefers-reduced-motion: reduce) {
  .tt-caret, .tt-bloom, .tt-ray-wide, .tt-ray-core, .tt-spark, .tt-sg-sheen, .tt-sg-think, .tt-sg-label, .tt-sg-letter { animation: none !important; }
  .tt-sg-label { opacity: 1 !important; filter: none !important; transform: none !important; }
  .tt-sg-think { -webkit-text-fill-color: rgba(214, 224, 250, .8); background: none; }
}
