:root {
  --bg: #0A0F1C;
  --bg-2: #0D1424;
  --panel: #121A2B;
  --panel-2: #1A2438;
  --border: #26324A;
  --text: #E7ECF5;
  --text-dim: #8291AC;
  --overlay-rgb: 10, 15, 28;
  --cyan: #4FD8EA;
  --amber: #F5A623;
  --green: #3DDC84;
  --purple: #A78BFA;
  --red: #FF5C5C;
  --blue: #5B9BFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Modo claro: solo fondo/paneles/bordes/texto cambian — los colores de
   acento de las gráficas y estados (cian, ámbar, verde, morado, rojo) se
   mantienen iguales en ambos modos, igual que en la app. La excepción es
   --blue: no se usa en ninguna gráfica ni etiqueta de estado (solo en el
   "Clever" de la portada), así que aquí se oscurece un poco — el tono
   original quedaba deslavado sobre fondo claro. */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F3F6FA;
  --panel: #F5F7FA;
  --panel-2: #EBEEF3;
  --border: #DBE1EA;
  --text: #12161F;
  --text-dim: #5B6472;
  --overlay-rgb: 255, 255, 255;
  --blue: #2E5FE0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(var(--overlay-rgb), 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-sm { font-size: 16px; }
a.brand { color: var(--text); text-decoration: none; }
a.brand:hover { color: var(--cyan); }

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

.nav-menu-wrap { position: relative; }

.nav-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.nav-menu-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-menu-toggle:hover { border-color: var(--cyan); }
.nav-menu-toggle:hover span { background: var(--cyan); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--cyan); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav-menu a:hover { background: var(--panel-2); color: var(--cyan); }
.nav-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-menu button:hover { background: var(--panel-2); color: var(--cyan); }
.nav-menu-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 2px 7px;
  border-radius: 999px;
}

/* ---------- ventana de novedades ---------- */

.news-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.news-dialog::backdrop { background: rgba(var(--overlay-rgb), 0.72); backdrop-filter: blur(4px); }
.news-dialog .ui-window {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(79, 216, 234, 0.08);
}
.news-dialog .ui-window-bar { align-items: center; flex-shrink: 0; }
.news-dialog-label { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.news-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.news-close:hover { border-color: var(--cyan); color: var(--cyan); }
.news-dialog .ui-body { overflow-y: auto; }
.news-heading { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.news-date { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin: 0 0 20px; }
.news-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.news-icon { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
.news-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.news-item ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.news-item li + li { margin-top: 6px; }
.news-item li::marker { color: var(--cyan); }
.news-item p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.news-item strong { color: var(--text); }
.news-item a { color: var(--cyan); }
.news-actions { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); }

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(79, 216, 234, 0.25), 0 4px 14px rgba(20, 57, 110, 0.55);
}
.brand-sm .brand-logo { width: 24px; height: 24px; border-radius: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #38b8cc);
  color: #04141a;
  padding: 11px 20px;
  box-shadow: 0 8px 24px rgba(79, 216, 234, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79, 216, 234, 0.35); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }

.btn-ghost-header {
  padding: 9px 16px;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost-header:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- eyebrow / headings ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(79, 216, 234, 0.08);
  border: 1px solid rgba(79, 216, 234, 0.25);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.eyebrow-amber {
  color: var(--amber);
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.25);
}

h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 18px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.accent-cyan {
  color: var(--cyan);
  background: linear-gradient(180deg, transparent 62%, rgba(79, 216, 234, 0.22) 62%);
}
.accent-amber { color: var(--amber); }
.accent-blue { color: var(--blue); }

.lede {
  font-size: 18px;
  color: var(--text);
  max-width: 640px;
  margin: 0 0 8px;
}

.section-head { max-width: 640px; margin: 0 auto 8px; text-align: left; }

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.wear-visuals [data-reveal]:nth-child(2) { transition-delay: 0.12s; }

/* ---------- cover ---------- */

.cover {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.cover-bg {
  position: absolute;
  inset: -8%;
}
.cover-bg svg {
  width: 100%;
  height: 100%;
  filter: blur(2px) saturate(1.3);
  opacity: 0.9;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--overlay-rgb), 0.25) 0%, rgba(var(--overlay-rgb), 0.55) 68%, var(--bg) 100%),
    radial-gradient(760px 420px at 50% 45%, rgba(var(--overlay-rgb), 0.05), rgba(var(--overlay-rgb), 0.55) 78%);
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cover-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cover-cta .btn { min-width: 240px; }

.cover-slogan {
  font-size: clamp(46px, 9vw, 108px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 40px;
  background:
    radial-gradient(680px 380px at 82% -10%, rgba(79, 216, 234, 0.14), transparent 60%),
    radial-gradient(500px 320px at 8% 30%, rgba(167, 139, 250, 0.10), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-ghost-hero {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost-hero:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-cta-hint {
  font-size: 13px;
  color: var(--text-dim);
}

.ui-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.ui-window-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.ui-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ui-window-bar span:nth-child(1) { background: #FF5C5C; }
.ui-window-bar span:nth-child(2) { background: #F5A623; }
.ui-window-bar span:nth-child(3) { background: #3DDC84; }

.ui-body { padding: 22px 24px 24px; }
.ui-body-center { display: flex; flex-direction: column; align-items: center; padding: 40px 24px; }

.ui-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.ui-title-sm { font-size: 13.5px; color: var(--text-dim); font-weight: 600; margin-bottom: 18px; }

.hero-shot { position: relative; }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: -50px;
  z-index: -1;
  background: radial-gradient(circle, rgba(79, 216, 234, 0.16), transparent 70%);
}
.ui-window-lg { box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(79, 216, 234, 0.08); }

/* ---------- widgets: registro diario ---------- */

.reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.reg-row:last-of-type { border-bottom: none; }
.reg-subject { display: flex; align-items: center; gap: 10px; }
.reg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.reg-input {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text);
  min-width: 70px;
  text-align: right;
}
.reg-input-empty { color: var(--text-dim); }
.reg-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 14.5px;
}
.reg-save { margin-top: 18px; width: 100%; }

/* ---------- widgets: contador ---------- */

.timer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 10px;
  animation: timer-pulse 1.4s infinite;
}
@keyframes timer-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.timer-label { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; }
.timer-display { font-family: var(--mono); font-size: 42px; font-weight: 700; color: var(--cyan); letter-spacing: 0.02em; }
.btn-ghost-dark {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
}
.btn-ghost-dark:hover { border-color: var(--red); color: var(--red); }
.timer-stop { margin-top: 20px; }

/* ---------- widgets: mini gráfico / barras ---------- */

.mini-chart { width: 100%; height: 70px; margin-bottom: 18px; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 52px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row b { font-family: var(--mono); color: var(--text); font-weight: 600; font-size: 11.5px; text-align: right; }
.bar-track { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }

/* ---------- widgets: clasificación / desgaste ---------- */

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.rank-row:last-of-type { border-bottom: none; }
.rank-num { width: 16px; color: var(--text-dim); font-family: var(--mono); font-size: 12.5px; }
.rank-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rank-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.rank-score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.rank-score.extreme { color: #FF8FA3; background: rgba(255, 92, 92, 0.14); }
.rank-score.exigente { color: #E6C229; background: rgba(230, 194, 41, 0.14); }
.rank-score.brutal { color: #FF9F6B; background: rgba(255, 122, 61, 0.14); }
.rank-score.hard { color: var(--amber); background: rgba(245, 166, 35, 0.14); }
.rank-score.moderate { color: var(--green); background: rgba(61, 220, 132, 0.14); }

.factor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.factor-head .ui-title-sm { margin-bottom: 0; }
.factor-score-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 20px; }
.factor-score { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.factor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.factor-item small { display: block; color: var(--text-dim); font-size: 11.5px; margin-bottom: 4px; }
.factor-item strong { font-family: var(--mono); font-size: 15px; font-weight: 600; }

/* ---------- widgets: comparación (misma carga de créditos) ---------- */

.compare-row {
  display: grid;
  grid-template-columns: 1fr 90px 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.compare-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.compare-row b { font-family: var(--mono); font-size: 12px; text-align: right; }
.compare-hero {
  margin-top: 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.compare-hero strong { color: var(--amber); font-family: var(--mono); }

/* ---------- widgets: antes / después ---------- */

.beforeafter { display: flex; align-items: center; gap: 10px; }
.ba-col {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.ba-col small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 12px; }
.ba-col strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.ba-before { opacity: 0.55; }
.ba-after strong { color: var(--cyan); font-family: var(--mono); }
.ba-col span { font-size: 11px; color: var(--text-dim); }
.ba-arrow { color: var(--text-dim); font-size: 18px; flex-shrink: 0; }

/* ---------- widgets: panel de estadísticas ---------- */

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat-item small { display: block; color: var(--text-dim); font-size: 11.5px; margin-bottom: 6px; }
.stat-item strong { font-family: var(--mono); font-size: 18px; font-weight: 700; }

/* ---------- 2. el problema ---------- */

.section-problem { padding: 90px 0 100px; }

.contrast-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin-top: 40px;
}
.contrast-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.contrast-before { opacity: 0.55; }
.contrast-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 92px;
  flex-shrink: 0;
}
.contrast-q { flex: 1; font-style: italic; color: var(--text-dim); font-size: 14px; }
.contrast-a { font-family: var(--mono); font-weight: 800; font-size: 16px; white-space: nowrap; }
.contrast-after { border-color: rgba(79, 216, 234, 0.3); }
.contrast-after .contrast-a { color: var(--cyan); }

/* ---------- 3. la idea ---------- */

.section-idea { padding: 90px 0 100px; border-top: 1px solid var(--border); }

.concept-bars {
  max-width: 580px;
  margin: 44px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.concept-bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 74px;
  align-items: center;
  gap: 16px;
}
.concept-label { font-size: 14px; }
.concept-label small { display: block; color: var(--text-dim); font-family: var(--mono); font-size: 11px; margin-top: 3px; }
.concept-track { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.concept-fill { height: 100%; border-radius: 6px; }
.concept-bar-row b { font-family: var(--mono); font-size: 14px; text-align: right; }

/* ---------- 4. cómo funciona / carousel ---------- */

.features { padding: 90px 0 100px; overflow: hidden; border-top: 1px solid var(--border); }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.form-row label { font-size: 13px; color: var(--text-dim); }
.reg-input-text { text-align: left; min-width: 140px; }

/* ---------- 5. tu referencia ---------- */

.section-reference { padding: 90px 0 100px; border-top: 1px solid var(--border); }
.reference-shot { max-width: 460px; margin-top: 40px; }

/* ---------- 7. clasificación histórica ---------- */

.section-diagnosis { padding: 90px 0 100px; }

.history-shot { max-width: 540px; margin-top: 40px; }

.history-fade { position: relative; }

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.history-row:last-of-type { border-bottom: none; }
.history-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.history-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.history-score { font-family: var(--mono); font-weight: 800; font-size: 19px; color: var(--amber); white-space: nowrap; }
.history-score small { font-size: 11px; font-weight: 600; color: var(--text-dim); margin-left: 3px; }

.history-row-hidden { filter: blur(3px); opacity: 0.5; }

.history-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  background: linear-gradient(180deg, transparent, var(--panel) 78%);
}
.history-more {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 100px;
}

/* ---------- 8. hacia dónde va ---------- */

.section-future { padding: 90px 0 100px; border-top: 1px solid var(--border); }
.future-shot { position: relative; max-width: 460px; margin-top: 40px; }
.future-shot-teaser .ui-body { filter: saturate(0.6) brightness(0.55) blur(1.5px); }
.section-closing-note {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.carousel { position: relative; margin-top: 12px; }

.car-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 36px calc(50% - 200px) 50px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.car-track::-webkit-scrollbar { display: none; }

.car-slide {
  flex: 0 0 auto;
  width: min(420px, 76vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.4;
  transform: scale(0.82);
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.car-slide.is-active { opacity: 1; transform: scale(1); }

.car-slide-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.car-slide.is-active .car-slide-label {
  color: var(--cyan);
  border-color: rgba(79, 216, 234, 0.4);
  background: rgba(79, 216, 234, 0.1);
  font-weight: 600;
}

.car-slide-shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  width: 100%;
  min-height: 260px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}
.car-slide.is-active .car-slide-shot {
  box-shadow: 0 44px 90px -20px rgba(79, 216, 234, 0.28), 0 20px 60px -20px rgba(0, 0, 0, 0.65);
  border-color: rgba(79, 216, 234, 0.35);
}

.car-slide-shot-teaser .ui-body { filter: saturate(0.6) brightness(0.55) blur(1.5px); }

.teaser-veil {
  position: absolute;
  inset: 0;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(var(--overlay-rgb), 0.75);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
}

.car-slide-desc {
  color: var(--text);
  font-size: 14.5px;
  max-width: 380px;
  margin: 18px 0 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
  min-height: 44px;
}
.car-slide.is-active .car-slide-desc { opacity: 1; transform: translateY(0); }

.car-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.car-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.car-arrow-prev { left: 8px; }
.car-arrow-next { right: 8px; }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
}
.car-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  background-clip: content-box;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.car-dot.is-active { background: var(--cyan); background-clip: content-box; width: 40px; border-radius: 12px; }

@media (max-width: 720px) {
  .car-arrow { display: none; }
  .car-track { padding: 30px 12vw 44px; }
}

/* ---------- wear / desgaste ---------- */

.wear {
  padding: 100px 0 110px;
  background: linear-gradient(180deg, transparent, rgba(245, 166, 35, 0.05) 40%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wear-head { max-width: 820px; margin: 0 auto 52px; text-align: left; }

.wear-factors-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.wear-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 100px;
}

.wear-visuals {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ---------- final cta ---------- */

.final-cta { padding: 90px 0 100px; text-align: center; }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta .lede { margin-bottom: 30px; }
.final-cta-buttons { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 26px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note { color: var(--text-dim); font-size: 13px; }
.footer-link { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.footer-link:hover { color: var(--cyan); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-shot { order: 2; }
  .wear-visuals { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .cover { min-height: 44vh; }
}

/* Funciones adicionales (home) */
.section-more { padding: 90px 0 40px; border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px 22px; }
.feature-card h3 { margin: 10px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.feature-icon { font-size: 26px; line-height: 1; }
.section-closing-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }


/* ---- Dos servicios: Clever App y Clever Tools ---- */
.cover-tools-link { display: inline-block; margin-top: 22px; color: var(--text-dim); text-decoration: none; font-size: 15px; }
.cover-tools-link b { color: var(--purple); font-weight: 700; }
.cover-tools-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.services { padding: 80px 0 30px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.service-card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.service-card h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.service-card p { margin: 0; color: var(--text-dim); line-height: 1.6; }
.service-card ul { margin: 0; padding-left: 18px; color: var(--text-dim); line-height: 1.8; }
.service-card li::marker { color: var(--cyan); }
.service-app { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); }
.service-tools { border-color: color-mix(in srgb, var(--purple) 45%, var(--border)); }
.service-tools li::marker { color: var(--purple); }
.service-tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--cyan); color: var(--cyan); }
.service-tag-tools { border-color: var(--purple); color: var(--purple); }
.service-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.service-cta .btn { padding: 13px 18px; font-size: 15px; }
.section-tools { padding: 90px 0 70px; border-top: 1px solid var(--border); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 36px; }
.tool-tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, border-color 0.15s; }
a.tool-tile:hover { transform: translateY(-2px); border-color: var(--purple); }
.tool-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); background: #f5f7f9; }
.tool-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tool-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.tool-tile h3 { margin: 0; font-size: 18px; }
.tool-tile p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.tool-go { margin-top: 6px; color: var(--purple); font-weight: 600; font-size: 14.5px; }
.tool-soon { border-style: dashed; justify-content: center; padding: 24px; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .tool-tile { transition: none; } }


/* ===== Estructura: dos universos (Clever App / Clever Tools) ===== */
.nav-menu-group { display:block; padding:10px 14px 4px; font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim); }
.nav-menu-group-app { color:var(--cyan); }
.nav-menu-group-tools { color:#b794f6; }
.crumb { display:block; width:fit-content; margin-bottom:14px; font-size:14px; color:var(--text-dim); text-decoration:none; }
.crumb:hover { color:var(--cyan); }
.crumb-tools:hover { color:#b794f6; }
.eyebrow-tools { color:#b794f6; }
.universes { padding:72px 0 40px; }
.universe { display:flex; flex-direction:column; }
.universe .service-cta { margin-top:auto; padding-top:18px; }
.universe-more { margin-top:14px; font-weight:600; font-size:15px; color:var(--cyan); text-decoration:none; }
.universe-more-tools { color:#b794f6; }
.universe-more:hover { text-decoration:underline; }
.universe-shots { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 4px; }
.universe-shots a { display:block; text-decoration:none; border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--panel-2); }
.universe-shots img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; object-position:top left; }
.universe-shots span { display:block; padding:8px 10px; font-size:13px; font-weight:600; color:var(--text); }
.universe-shots a:hover { border-color:#b794f6; }
.about-strip { padding:20px 0 70px; }
.about-strip .wrap { max-width:760px; text-align:center; }
.about-strip p { margin:0 0 8px; color:var(--text-dim); font-size:16px; line-height:1.6; }
.about-strip a { color:var(--cyan); font-weight:600; text-decoration:none; }
.tools-grid-2 { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.cross-app { margin:48px 0 0; padding:24px; border:1px solid var(--cyan); border-radius:16px; background:var(--panel); display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; }
.cross-app h3 { margin:6px 0 4px; font-size:19px; }
.cross-app p { margin:0; color:var(--text-dim); font-size:15px; }
.cross-app > div:first-child { flex:1 1 320px; }
.footer-cols { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-brand { display:flex; flex-direction:column; gap:10px; }
.footer-h { margin:0 0 4px; font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim); font-weight:600; }
.footer-h-app { color:var(--cyan); }
.footer-h-tools { color:#b794f6; }
.footer-copy { margin:26px 0 0; }
@media (max-width:720px){ .footer-cols { grid-template-columns:1fr 1fr; } .footer-brand { grid-column:1 / -1; } .universes{padding-top:48px;} }


/* ===== Ajustes tras revisión ===== */
.service-tag { background:var(--cyan); color:#06202a; font-weight:700; }
.service-tag-tools { background:var(--purple); border-color:var(--purple); color:#fff; }
.service-app { background:color-mix(in srgb, var(--cyan) 7%, var(--panel)); }
.service-tools { background:color-mix(in srgb, var(--purple) 9%, var(--panel)); }
.cover-tools-link b { font-size:16px; }
.nav-sub { border-radius:8px; }
.nav-sub summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-radius:8px; font-size:14px; font-weight:700; }
.nav-sub summary::-webkit-details-marker { display:none; }
.nav-sub summary::after { content:"▾"; font-size:12px; transition:transform .15s; }
.nav-sub[open] summary::after { transform:rotate(180deg); }
.nav-sub summary:hover { background:var(--panel-2); }
.nav-sub-app summary { color:var(--cyan); }
.nav-sub-tools summary { color:#b794f6; }
.nav-sub-legal summary { color:var(--text-dim); }
.nav-sub a { display:block; padding:8px 12px 8px 22px; }
.nav-sub-tools a:hover { color:#b794f6; }
.nav-sub-legal a:hover { color:var(--text); }
.service-tools .btn-primary { background:linear-gradient(135deg,#b49cff,#8c6cf0); color:#fff; }
.service-tools .btn-primary:hover { box-shadow:0 10px 28px rgba(167,139,250,.4); }
.tool-tile-wide { grid-column:1 / -1; flex-direction:row; }
.tool-tile-wide .tool-shot { width:44%; flex:none; aspect-ratio:auto; height:100%; max-height:300px; border-bottom:0; border-right:1px solid var(--border); }
.tool-tile-wide .tool-body { justify-content:center; padding:24px 28px; }
.tool-tile-wide h3 { font-size:22px; }
@media (max-width:720px){ .tool-tile-wide { flex-direction:column; } .tool-tile-wide .tool-shot { width:100%; height:auto; aspect-ratio:16/10; border-right:0; border-bottom:1px solid var(--border); } }

.service-cta { justify-content:center; }
.universe-more { align-self:center; }

/* Contraste del texto de acento en modo claro (único modo de la web) */
.nav-sub-app summary, .universe-more, .about-strip a, .footer-h-app, .eyebrow, .crumb:hover, .tool-go-app { color:#0a7f94; }
.nav-sub-tools summary, .universe-more-tools, .footer-h-tools, .eyebrow-tools, .tool-tag, .tool-go, .cover-tools-link b { color:#6d46e0; }
.eyebrow { border-color:#0a7f94; }
.eyebrow-tools { border-color:#6d46e0; }
.nav-sub-tools a:hover { color:#6d46e0; }
.service-tag { color:#04222b; }
[data-news-open][hidden]{display:none!important}

/* Botones: el texto siempre legible, sea cual sea el estado del enlace */
a.btn-primary, a.btn-primary:visited, a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active { color:#04141a !important; text-decoration:none !important; }
.service-tools a.btn-primary, .service-tools a.btn-primary:visited, .service-tools a.btn-primary:hover { color:#fff !important; }
a.btn, a.btn:hover { text-decoration:none !important; }


/* ===== Clever Tools: landing morada ===== */
.theme-tools .site-header { background:color-mix(in srgb, rgba(232,224,255,.88) calc(var(--hp,1) * 100%), rgba(255,255,255,.92)); border-bottom-color:rgba(219,225,234,calc(1 - var(--hp,1))); }
.tools-hero { position:relative; overflow:hidden; padding:110px 0 150px; text-align:center; margin-top:-1px;
  background: linear-gradient(180deg,#e8e0ff 0%,#efe9ff 38%,#f7f4ff 72%,#ffffff 100%); }
.th-bg { position:absolute; inset:0; pointer-events:none; }
.th-eqs span { position:absolute; font-family:"Georgia","Times New Roman",serif; font-style:italic; font-size:var(--s); color:#5b36d6; opacity:.3; transform:rotate(var(--r)); white-space:nowrap; }
.th-eqs sub, .th-eqs sup { font-size:.62em; }
.th-img { position:absolute; height:auto; opacity:.5; }
.th-img-l { width:min(520px,44vw); left:-40px; top:70px; transform:rotate(-4deg); }
.th-img-r { width:min(330px,28vw); right:2%; bottom:30px; transform:rotate(3deg); }
.tools-hero::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse 44% 52% at 50% 46%, rgba(239,233,255,.85), rgba(239,233,255,.4) 65%, rgba(239,233,255,0) 100%); pointer-events:none; }
.th-copy { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; max-width:820px; }
.accent-purple { color:#6d46e0; }
.th-cta { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:28px; }
.th-btn { background:linear-gradient(135deg,#b49cff,#8c6cf0) !important; box-shadow:0 10px 28px rgba(140,108,240,.35) !important; }
.th-back { margin:26px 0 0; font-size:14px; }
@media (max-width:720px){ .tools-hero{padding:64px 0 90px;} .th-img{opacity:.32;} .th-img-l{left:-160px;top:20px;width:420px;} .th-img-r{right:-60px;width:240px;} .th-eqs span{font-size:calc(var(--s) * .75);} }
a.btn-primary.th-btn, a.btn-primary.th-btn:hover { color:#fff !important; }
.th-title { font-size:clamp(52px,10vw,112px); font-weight:800; letter-spacing:-.03em; line-height:1; margin:0; max-width:none; }
.th-sub { max-width:34em; margin:22px auto 0; font-size:clamp(17px,2.2vw,21px); color:var(--text); }

/* ===== Portada principal: degradado azul → blanco ===== */
.home .site-header { background:color-mix(in srgb, rgba(208,238,248,.88) calc(var(--hp,1) * 100%), rgba(255,255,255,.92)); border-bottom-color:rgba(219,225,234,calc(1 - var(--hp,1))); }
.home .cover { border-bottom:0; margin-top:-1px; }
.home .cover::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg,#d0eef8 0%,rgba(208,238,248,.7) 35%,rgba(255,255,255,0) 100%); }
.home .cover-overlay { background:linear-gradient(180deg,rgba(255,255,255,.1) 0%,rgba(255,255,255,.4) 60%,#fff 100%); }
.home .cover-content { z-index:2; }

/* Portada principal: texto más luminoso sobre el azul claro */
.home .cover-slogan { text-shadow:0 0 28px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.8); }
.home .cover-slogan .accent-blue { color:#2563ff; }
.home .cover-tools-link { color:#3b4a5e; }
.home .cover-cta .btn-ghost-hero { background:#fff; border-color:#c9d6e6; }
/* Clever Tools: botón secundario sólido, legible sobre la estructura */
.tools-hero .btn-ghost-hero { background:#fff; border:1px solid #c4b5fd; color:#3a1fa8; box-shadow:0 6px 18px rgba(109,70,224,.15); }
.tools-hero .btn-ghost-hero:hover { border-color:#6d46e0; color:#6d46e0; }
.home .cover-slogan { color:#0b1f4d; }
