@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@600..700&family=Public+Sans:wght@400..600&family=Chivo+Mono:wght@400;500&display=swap');
/* Trading Tools Club · estilos de la web. Todo bajo #ttc (Bitrix pone su tema alrededor).
   Rediseño 4 (24-oct-2026): marca = design/rediseno-4/marca.md (navy + azul de confianza, sin rojo; mundo oscuro = .pantalla).
   Imágenes de Higgsfield: design/rediseno-4/prompts.md y exportar_r4.py. */

/* ================================================================ tokens */
#ttc {
  color-scheme: light;
  --bg: #F4F7FB; --surface: #FFFFFF; --surface-2: #EAF0F8;
  --line: #D5DEEA; --line-strong: #7486A0;
  --ink: #0A1A33; --ink-2: #33445E; --muted: #556580;
  --ink-hover: #1A2D4C; --ink-press: #06111F; --on-ink: #F4F7FB; --press-sec: #D3E1F7;
  --accent: #2E6BE6; --accent-text: #1F56C7; --regla: rgba(255, 255, 255, .9);   /* --regla: línea de carga sobre el azul */
  --pri: #2E6BE6; --pri-hover: #2459C9; --pri-press: #1D4BAA; --on-pri: #FFFFFF;
  --focus: #0A1A33;
  --ok: #0B7568; --ok-soft: #DDF3EF;
  --espera: #9A4D0B; --espera-soft: #FCEBD9;
  --danger: #9A4D0B; --danger-soft: #FCEBD9;   /* naranja: en esta marca no hay rojo (el token conserva el nombre) */
  --wa: #128C7E;
  --vela-sube: #0E9384; --vela-baja: #C2650F; --limite: #2E6BE6;
  /* estados del panel de RiskGuard (marca.md §4.1): sin rojo; «bloqueado» claro con letra navy */
  --panel-ok: #0E6A60; --panel-espera: #8C6508; --panel-bloqueo: #F59A3C; --on-panel-bloqueo: #0A1A33; --panel-licencia: #2C3850; --panel-calc: rgba(34, 67, 126, .88);
  --font-display: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Chivo Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --r: 8px; --r-lg: 12px;
  --sombra-flota: 0 8px 24px rgba(10, 26, 51, .18);
  --sombra-tarjeta: 0 1px 2px rgba(10, 26, 51, .06), 0 8px 24px rgba(10, 26, 51, .08);
  --ancho: 1120px; --lectura: 65ch; --cab: 56px; --gutter: 16px;
  --dur-1: 90ms; --dur-2: 160ms; --dur-3: 240ms; --dur-4: 500ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-cajon: cubic-bezier(.32, .72, 0, 1);
  background: var(--bg) !important; color: var(--ink) !important;
  font-family: var(--font-body) !important; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; text-align: left; interpolate-size: allow-keywords;
}
#ttc .pantalla {
  color-scheme: dark;
  --bg: #0A1A33; --bg-hondo: #06111F; --surface: #102544; --surface-2: #16305A;
  --line: #223F69; --line-strong: #5E7BA6;
  --ink: #F4F7FB; --ink-2: #B9C6DA; --muted: #93A4BF;
  --ink-hover: #FFFFFF; --ink-press: #D7E2F2; --on-ink: #0A1A33; --press-sec: #24395C;
  --accent: #2E6BE6; --accent-text: #8DB4FF; --regla: rgba(255, 255, 255, .9); --focus: #8DB4FF; --espera: #F59A3C;
  --ok: #14B8A6; --danger: #F59A3C; --wa: #25D366;
  --vela-sube: #14B8A6; --vela-baja: #F59A3C; --limite: #8DB4FF;
  background: var(--bg); color: var(--ink);
}
@media (min-width: 600px) { #ttc { --gutter: 24px; } }
@media (min-width: 900px) { #ttc { --cab: 64px; } }
@media (min-width: 1200px) { #ttc { --gutter: 32px; } }

/* Bitrix fija html en 14px: toda la escala en rem salía 12,5 % más chica. Se vuelve al tamaño del navegador (respeta el del usuario). */
html:has(#ttc) { font-size: 100% !important; }
html { scroll-padding-top: 80px; }
html.ttc-sin-scroll { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================================================================ base */
#ttc *, #ttc *::before, #ttc *::after { box-sizing: border-box; }
#ttc :where(p, ul, ol, dl, dd, figure, h1, h2, h3, h4, table) { margin: 0; }
#ttc :where(ul, ol) { padding: 0; list-style: none; }
#ttc img { max-width: 100%; height: auto; display: block; }
#ttc [hidden] { display: none !important; }
#ttc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
#ttc a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
#ttc :focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 2px; }
#ttc b, #ttc strong { font-weight: 600; color: inherit; }
#ttc .sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#ttc .nota { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
#ttc .sin-corte { white-space: nowrap; }

/* Títulos: Libre Franklin 700, minúscula de oración, nunca en cursiva. Blindaje contra el tema de Bitrix (fuerza h1-h3 en #111). */
#ttc h1, #ttc h2, #ttc h3, #ttc h4 { color: var(--ink) !important; font-family: var(--font-display) !important; font-weight: 700 !important; font-style: normal;
  text-transform: none; letter-spacing: normal; overflow-wrap: break-word; min-width: 0; }
#ttc h1 { font-size: clamp(2.5rem, 1.7rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -.024em; }
#ttc h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem); line-height: 1.1; letter-spacing: -.018em; }
#ttc h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.012em; }

#ttc .ancho { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
#ttc .ancho--lectura { max-width: calc(760px + 2 * var(--gutter)); }

/* Íconos (los inyecta app.js) */
#ttc i[data-ic] { display: inline-flex; width: 20px; height: 20px; flex: none; font-style: normal; }
#ttc i[data-ic] svg { width: 100%; height: 100%; }

#ttc .saltar { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
#ttc .saltar:focus { top: 8px; }

/* ================================================================ botones (marca.md §6) */
#ttc .btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r);
  font: 600 1rem/1 var(--font-body); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms, border-color 120ms, box-shadow 120ms, transform 80ms; }
#ttc .btn i[data-ic] { width: 18px; height: 18px; }
#ttc .btn:active { transform: translateY(1px); }
#ttc .btn--lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }
#ttc .btn--sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
@media (pointer: coarse) { #ttc .btn--sm { min-height: 44px; } }
#ttc .btn--pri { background: var(--pri) !important; color: var(--on-pri) !important; border-color: var(--pri); }
#ttc .btn--pri:active { background: var(--pri-press) !important; }
#ttc .btn--sec, #ttc .btn--wa { background: transparent; color: var(--ink); border-color: var(--line-strong); }
#ttc .btn--sec:active, #ttc .btn--wa:active { background: var(--press-sec); }
@media (hover: hover) {
  #ttc .btn--pri:hover { background: var(--pri-hover) !important; }
  #ttc .btn--sec:hover, #ttc .btn--wa:hover { background: var(--surface-2); border-color: var(--ink); }
  #ttc .pantalla .btn--sec:hover, #ttc .pantalla .btn--wa:hover { border-color: var(--focus); }
}
#ttc .btn--wa i[data-ic] { color: var(--wa); }
#ttc .btn--agregado { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
#ttc .btn:disabled, #ttc .btn[aria-disabled="true"] { background: #D3DCEA !important; color: #4E5D77 !important; border-color: transparent; cursor: not-allowed; transform: none; box-shadow: none; opacity: 1; }
#ttc .pantalla .btn:disabled, #ttc .pantalla .btn[aria-disabled="true"] { background: #1A2B47 !important; color: #93A4BF !important; }
#ttc .btn--sec:disabled { background: transparent !important; border-color: var(--line); }
#ttc .btn[aria-busy="true"] { pointer-events: none; opacity: 1; }
#ttc .btn[aria-busy="true"] i[data-ic] { display: none; }
#ttc .btn[aria-busy="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 2px; background: var(--regla); animation: ttcRegla 1.1s linear infinite; }
#ttc .btn--sec[aria-busy="true"]::after { background: var(--accent); }
@keyframes ttcRegla { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
#ttc .acciones { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
@media (max-width: 479px) { #ttc .acciones .btn { width: 100%; } }

/* ================================================================ cabecera */
#ttc .cab { position: sticky; top: 0; z-index: 20; background: var(--surface) !important; border-bottom: 1px solid var(--line); margin: 0; padding: 0; }
#ttc .cab__in { max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--cab); display: flex; align-items: center; gap: 12px; }
#ttc .marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); margin-right: auto; }
#ttc .marca img { width: 40px; height: 40px; }
#ttc .marca span { font: 700 1.1875rem/1 var(--font-display); letter-spacing: -.012em; white-space: nowrap; }
@media (max-width: 379px) { #ttc .marca span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
#ttc .cab__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r); font: 600 .9375rem var(--font-body); cursor: pointer; }
#ttc .cab__nav { display: flex; align-items: center; gap: 8px; }
#ttc .cab__lista { display: flex; gap: 4px; }
#ttc .cab__lista a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
#ttc .cab__lista a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
#ttc .cab__carrito { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r); cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font: 600 .9375rem var(--font-body); transition: background-color 120ms, border-color 120ms; }
@media (hover: hover) { #ttc .cab__carrito:hover { background: var(--surface-2); border-color: var(--ink); } }
#ttc .cuenta { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--ink); color: var(--on-ink);
  font: 500 .75rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { #ttc .cuenta:not([hidden]) { animation: ttcCuenta 160ms var(--ease-out); } }
@keyframes ttcCuenta { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 899px) {
  #ttc.js .cab__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  #ttc.js .cab.abierto .cab__nav { display: flex; }
  #ttc.js .cab__lista { flex-direction: column; }
  #ttc.js .cab__lista a { min-height: 48px; font-size: 1.0625rem; color: var(--ink); padding: 0; border-bottom: 1px solid var(--line); }
  #ttc.js .cab__nav .btn { margin-top: 12px; width: 100%; }
  #ttc:not(.js) .cab__menu { display: none; }
  #ttc:not(.js) .cab__in { flex-wrap: wrap; }
  #ttc:not(.js) .cab__nav { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  #ttc .cab__carrito-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 479px) {
  #ttc .cab__in { gap: 8px; }
  #ttc .cab__menu { padding: 0; justify-content: center; }
  #ttc .cab__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) { #ttc .cab__menu { display: none; } }
@media (prefers-reduced-motion: no-preference) { #ttc.js .cab.abierto .cab__nav { animation: ttcBaja var(--dur-2) var(--ease-out); } }
@keyframes ttcBaja { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ================================================================ secciones */
#ttc .sec { position: relative; padding: 64px 0; }
@media (min-width: 900px) { #ttc .sec { padding: 96px 0; } }
#ttc .sec--hoja { background: var(--surface) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#ttc .sec__cab { max-width: 760px; margin-bottom: 40px; }
#ttc .sec__intro { margin-top: 12px; color: var(--ink-2); font-size: 1.125rem; max-width: 60ch; }

/* ================================================================ paneles de texto (réplica de lo que imprime cada herramienta) */
#ttc .panel { border-radius: 2px; padding: .9em 1.1em; color: #FFFFFF; background: var(--panel-ok); font-size: .75rem; transition: background-color 200ms var(--ease-out); }
#ttc .panel--ok { background: var(--panel-ok); }
#ttc .panel--espera { background: var(--panel-espera); }
#ttc .panel--bloqueo { background: var(--panel-bloqueo); color: var(--on-panel-bloqueo); }
#ttc .panel--bloqueo .panel__sep { border-top-color: rgba(10, 26, 51, .35); }
#ttc .panel--licencia { background: var(--panel-licencia); }
#ttc .panel--calc { background: var(--panel-calc); }
#ttc .panel__txt { font-family: var(--font-mono); font-size: 1em; line-height: 1.38; font-variant-numeric: tabular-nums; }
#ttc .panel__txt .ln { display: block; white-space: pre-wrap; padding-left: 16ch; text-indent: -16ch; min-height: 1.38em; }   /* lo que no entra cae bajo el valor, nunca bajo la etiqueta */
#ttc .salida .ln { display: block; white-space: pre-wrap; padding-left: 2ch; text-indent: -2ch; }
#ttc .panel__txt b { font-weight: inherit; color: inherit; border-radius: 2px; }
#ttc .panel__cab { font-weight: 500; }
#ttc .panel__cab--rg::before { content: "◆ "; }
#ttc .panel__cab--calc::before { content: "◈ "; }
#ttc .panel__sep { display: block; border-top: 1px solid rgba(255, 255, 255, .35); margin: .35em 0; }

/* ================================================================ 1 · hero: fondo de Higgsfield + titular (marca.md §3.1-3.3) */
#ttc .hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(55% 70% at 76% 40%, rgba(46, 107, 230, .30) 0%, rgba(46, 107, 230, .10) 48%, rgba(46, 107, 230, 0) 74%),
    radial-gradient(40% 50% at 98% 100%, rgba(20, 184, 166, .14) 0%, rgba(20, 184, 166, 0) 72%),
    linear-gradient(160deg, #0C2142 0%, #0A1A33 45%, #06111F 100%) !important; }
#ttc .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .08; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
#ttc .hero__media { position: relative; z-index: 0; order: 2; margin-top: -40px; height: clamp(240px, 56vw, 420px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%); mask-image: linear-gradient(180deg, transparent 0, #000 38%); }
#ttc .hero__fondo, #ttc .hero__fondo img { display: block; width: 100%; height: 100%; }
#ttc .hero__fondo img { object-fit: cover; object-position: 70% 85%; }
#ttc .hero__velo { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 30% at 60% 100%, rgba(6, 17, 31, .6) 0%, rgba(6, 17, 31, 0) 70%),
              radial-gradient(70% 40% at 70% 82%, rgba(46, 107, 230, .22) 0%, rgba(46, 107, 230, 0) 70%); }
#ttc .hero__in { position: relative; z-index: 2; order: 1; padding-top: 40px; }
#ttc .hero__texto { display: grid; gap: 16px; justify-items: start; max-width: 620px; }
#ttc .hero h1 { font-size: clamp(2.375rem, 1.7rem + 3vw, 4rem); max-width: 15ch; }
#ttc .hero__oferta { font: 500 .875rem/1.45 var(--font-body); color: var(--accent-text); }
#ttc .hero__linea { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 700px) { #ttc .hero__linea { font-size: 1.125rem; } }
#ttc .hero .acciones { margin-top: 8px; }
#ttc .hero__aviso { font-size: .875rem; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
#ttc .hero__plataformas { margin-top: 32px; display: grid; gap: 10px; }
#ttc .hero__plataformas > p { font-size: .8125rem; color: var(--muted); }
#ttc .plataformas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#ttc .plataforma { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; }
#ttc .plataformas img { height: 20px; width: auto; }
/* logos oficiales sin alterar (design/logos-plataformas/FUENTES.md): el de MT4 solo existe con letra gris, va sobre una placa clara */
#ttc .plataformas .plataforma--clara { background: #E6ECF5; border-color: transparent; }
#ttc .plataformas .plataforma--clara img { height: 28px; }
@media (max-width: 479px) {
  #ttc .plataformas { gap: 8px; }
  #ttc .plataforma { height: 34px; padding: 0 10px; }
  #ttc .plataformas img { height: 15px; }
  #ttc .plataformas .plataforma--clara img { height: 22px; }
}
@media (min-width: 1000px) {
  #ttc .hero { display: block; min-height: clamp(600px, calc(100svh - var(--cab)), 860px); }
  #ttc .hero__media { position: absolute; inset: 0; margin: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  #ttc .hero__fondo img { object-position: 70% 22%; }
  #ttc .hero__velo {
    background:
      radial-gradient(45% 55% at 96% 92%, rgba(6, 17, 31, .65) 0%, rgba(6, 17, 31, 0) 70%),
      linear-gradient(90deg, rgba(10, 26, 51, .90) 0%, rgba(10, 26, 51, .80) clamp(560px, 46%, 720px), rgba(10, 26, 51, .30) clamp(820px, 68%, 1120px), rgba(10, 26, 51, 0) 86%),
      radial-gradient(50% 60% at 76% 42%, rgba(46, 107, 230, .18) 0%, rgba(46, 107, 230, 0) 70%),
      linear-gradient(180deg, rgba(6, 17, 31, 0) 72%, rgba(6, 17, 31, .70) 100%); }
  #ttc .hero__in { min-height: inherit; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 48px; }
  #ttc .hero__plataformas { margin-top: 48px; }
}
@media (min-width: 1000px) and (max-height: 760px) { #ttc .hero h1 { font-size: clamp(2.375rem, 6.4vh, 3.5rem); } #ttc .hero__plataformas { margin-top: 28px; } }

/* ================================================================ 1b · RiskGuard en acción: gráfico en canvas + panel (app.js, ganchos data-hero-*) */
#ttc .demo-rg__ventana { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #081528; border: 1px solid #13284A; box-shadow: var(--sombra-tarjeta); }
#ttc .hero__pantalla { position: relative; width: 100%; aspect-ratio: 1.92 / 1; background: #081528; overflow: hidden; }
#ttc .hero__canvas, #ttc .hero__cuadro, #ttc .hero__cuadro img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ttc .hero__panel { display: none; }
#ttc .hero__lupa { display: flex; flex-direction: column-reverse; gap: 6px; width: min(380px, 100%); margin: 12px 0 0 auto; }
#ttc .hero__lupa .panel { font-size: 12px; box-shadow: 0 12px 32px rgba(6, 17, 31, .35); }
#ttc .hero__lupa-rot { font-size: .8125rem; color: var(--ink-2); text-align: right; }
@media (max-width: 379px) { #ttc .hero__lupa .panel { font-size: 11.5px; } }
#ttc .hero__barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 18px; }
#ttc .hero__pasos { display: grid; gap: 6px; flex: 1 1 520px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
#ttc .hero__pasos li { display: flex; gap: 10px; }
#ttc .hero__pasos li::before { content: "1"; font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2); min-width: 1ch; }   /* número fijo: en celular se ve un paso a la vez */
#ttc .hero__pasos li:nth-child(2)::before { content: "2"; }
#ttc .hero__pasos li:nth-child(3)::before { content: "3"; }
#ttc .hero__pasos li.en-curso { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
#ttc .hero__etiqueta { flex: 1 1 14rem; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
#ttc .hero__control { flex: none; min-height: 44px; }
@media (max-width: 699px) {
  #ttc .hero__pasos[data-actual] li { display: none; }
  #ttc .hero__pasos[data-actual="1"] li:nth-child(1), #ttc .hero__pasos[data-actual="2"] li:nth-child(2), #ttc .hero__pasos[data-actual="3"] li:nth-child(3) { display: flex; }
}
@media (min-width: 700px) { #ttc .hero__pasos { display: flex; flex-wrap: wrap; gap: 6px 28px; } }
@media (min-width: 1200px) {
  #ttc .hero__panel { display: block; position: absolute; z-index: 1; top: 2.5%; right: 9%; font-size: clamp(10px, .95vw, 13px); }
  #ttc .hero__panel .panel { font-size: 1em; padding: .6em .8em; line-height: 1.35; }
  #ttc .hero__lupa { display: none; }
}

/* ================================================================ 2 · herramientas y precios */
#ttc .prods { display: grid; gap: 24px; }
@media (min-width: 900px) { #ttc .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
#ttc .prod { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra-tarjeta);
  transition: border-color 120ms; }   /* sin container-type aquí: la contención de layout anula el subgrid */
@media (hover: hover) { #ttc .prod:hover { border-color: var(--line-strong); } }
@supports (grid-template-rows: subgrid) {
  /* demo, cabecera, línea, viñetas, letra chica y compra alineadas entre las dos tarjetas de cada fila */
  @media (min-width: 900px) { #ttc .prods > .prod { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; } }
}
#ttc .prod__img { margin: 0; aspect-ratio: 4 / 3; background: #0A1A33; overflow: hidden; }
#ttc .prod__img img { width: 100%; height: 100%; object-fit: cover; }
#ttc .prod__panel { padding: 8px 24px 0; min-width: 0; }
#ttc .prod__panel > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9375rem; color: var(--accent-text); }
#ttc .prod__panel > summary::-webkit-details-marker { display: none; }
#ttc .prod__panel > summary i[data-ic] { width: 16px; height: 16px; transition: transform 180ms var(--ease-out); }
#ttc .prod__panel[open] > summary i[data-ic] { transform: rotate(180deg); }
#ttc .prod__demo { margin: 0; padding: 8px 0 0; min-width: 0; display: flex; flex-direction: column; container: prod / inline-size; }
#ttc .prod__demo > .ventana, #ttc .prod__demo > .demo-par { flex: 0 0 auto; }
#ttc .prod__demo > .demo-copia { flex: 1 1 auto; }
#ttc .prod__leyenda { margin-top: 8px; padding: 0 4px; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
#ttc .prod__cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 20px 24px 0; }
#ttc .prod__cab h3 { font-size: 1.5rem; }
@media (min-width: 900px) { #ttc .prod__cab { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; } }
#ttc .prod__precio { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
#ttc .prod__precio b { font: 600 1.5rem/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
#ttc .prod__precio span { font-size: .875rem; color: var(--muted); }
#ttc .prod__intro { padding: 6px 24px 0; }
#ttc .prod__ficha { font: 500 .8125rem/1.5 var(--font-body); color: var(--ink-2); }
#ttc .prod__linea { margin-top: 8px; color: var(--ink); line-height: 1.5; }
#ttc .prod__mas { padding: 8px 24px 0; }
#ttc .prod__mas > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9375rem; }
#ttc .prod__mas > summary::-webkit-details-marker { display: none; }
#ttc .prod__mas > summary i[data-ic] { width: 16px; height: 16px; transition: transform 180ms var(--ease-out); }
#ttc .prod__mas[open] > summary i[data-ic] { transform: rotate(180deg); }
@media (min-width: 700px) { #ttc.js .prod__mas > summary { display: none; } #ttc.js .prod__mas { padding-top: 14px; } }
#ttc .prod__vin, #ttc .lista-raya { display: grid; gap: 8px; }
#ttc .prod__vin li, #ttc .lista-raya li { position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
#ttc .prod__vin li::before, #ttc .lista-raya li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--ink-2); }
#ttc .prod__chica { padding: 14px 24px 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
#ttc .prod__chica p + p { margin-top: 6px; }
#ttc .prod__compra { display: grid; gap: 12px; padding: 20px 24px 24px; margin-top: auto; align-self: end; }
#ttc .prod__extra { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .9375rem; line-height: 1.35; color: var(--ink);
  outline: 2px solid transparent; outline-offset: 2px; transition: border-color 120ms, background-color 120ms; }
#ttc .prod__extra input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
#ttc .prod__extra-p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ttc .prod__extra small { grid-column: 2 / -1; font-size: .8125rem; color: var(--ink-2); }
#ttc .prod__extra:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
#ttc .prod__extra.resaltada { animation: ttcResalta 1.2s var(--ease-out); }
@keyframes ttcResalta { from { outline-color: var(--accent); } to { outline-color: transparent; } }
#ttc .prod__btn { width: 100%; }
/* sin JS no hay carrito: cada tarjeta ofrece pedir por WhatsApp */
#ttc .prod__wa { display: none; }
#ttc:not(.js) .prod__wa { display: inline-flex; width: 100%; }
#ttc:not(.js) .prod__btn, #ttc:not(.js) .prod__extra, #ttc:not(.js) .cab__carrito { display: none; }

#ttc .prod--pronto { margin-top: 24px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px; background: transparent; border-style: solid; border-color: var(--line-strong); }
#ttc .prod--pronto__txt { flex: 1 1 320px; display: grid; gap: 6px; }
#ttc .prod--pronto h3 { font-size: 1.375rem; }
#ttc .prod--pronto .prod__linea { margin: 0; }
@media (max-width: 479px) { #ttc .prod--pronto .btn { width: 100%; } }

/* demos en código: ventanas oscuras con el texto real de cada herramienta */
#ttc .ventana { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; color: var(--ink); }
#ttc .ventana__barra { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 28px; padding: 4px 10px; border-bottom: 1px solid var(--line);
  background: var(--surface); font-size: .75rem; line-height: 1.3; color: var(--ink-2); }
#ttc .ventana__barra span:last-child { white-space: nowrap; }
#ttc .ventana__cuerpo { padding: 14px; }
#ttc .ventana .panel { font-size: .75rem; max-width: 100%; }
#ttc .salida { font-family: var(--font-mono); font-size: .75rem; line-height: 1.38; color: var(--ink); font-variant-numeric: tabular-nums; }
/* el contenedor es la figura de la demo (ancho de la tarjeta menos 24 px) */
@container prod (max-width: 430px) { #ttc .ventana .panel, #ttc .salida { font-size: .75rem; } }
#ttc .demo-par, #ttc .demo-copia { display: grid; gap: 8px; background: transparent; }
#ttc .demo-par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ttc .demo-copia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ttc .demo-copia__maestra { grid-column: 1 / -1; }
@container prod (max-width: 450px) { #ttc .demo-par { grid-template-columns: minmax(0, 1fr); } }
@container prod (max-width: 470px) { #ttc .demo-copia { grid-template-columns: minmax(0, 1fr); } #ttc .demo-copia__tercera { display: none; } }
#ttc .demo__rotulo { margin-top: 10px; padding: 0 4px; font-size: .875rem; color: var(--ink-2); }
#ttc .salida .ln { transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
#ttc .salida .demo-oculto { opacity: 0; transform: translateY(4px); }
#ttc .salida .demo-cambia { animation: ttcCambia var(--dur-2) var(--ease-out); }
@keyframes ttcCambia { from { opacity: .2; } to { opacity: 1; } }

/* RiskGuard en la tarjeta: los 4 estados */
#ttc .rg-demo .ventana__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
#ttc .rg-demo__lista .panel-est { display: flex; justify-content: flex-end; min-width: 0; }
#ttc .rg-demo__lista .panel { width: max-content; max-width: 100%; }
#ttc .panel__nombre, #ttc .panel__exp { display: none; }
#ttc:not(.js) .rg-demo__ctrl .rg-demo__rotulo, #ttc:not(.js) .rg-demo__estados { display: none; }
#ttc .rg-demo__rotulo { font-size: .8125rem; color: var(--ink-2); margin-bottom: 8px; }
#ttc .rg-demo__estados { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@container prod (max-width: 450px) { #ttc .rg-demo__estados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#ttc .seg { min-height: 44px; padding: 0 8px; background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--r);
  font: 600 .875rem var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color 120ms, color 120ms, transform 80ms; }
@media (pointer: coarse) { #ttc .seg { min-height: 44px; } }
@media (hover: hover) { #ttc .seg:hover { background: var(--surface-2); color: var(--ink); } }
#ttc .seg:active { transform: translateY(1px); }
#ttc .seg[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
#ttc .rg-demo__exp { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { #ttc .panel-est.entra .panel { animation: ttcFunde var(--dur-2) var(--ease-out); } }
@keyframes ttcFunde { from { opacity: .6; } to { opacity: 1; } }

/* RiskGuard en detalle y lo que incluye cada compra */
#ttc .rg-detalle { margin-top: 56px; display: grid; gap: 32px; }
@media (min-width: 1000px) { #ttc .rg-detalle { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
#ttc .rg-detalle__col { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
#ttc .rg-detalle h3 { font-size: 1.375rem; }
#ttc .rg-detalle p { font-size: .9375rem; line-height: 1.55; }
#ttc .tienda { background:
    radial-gradient(60% 480px at 8% 0%, rgba(46, 107, 230, .10) 0%, rgba(46, 107, 230, 0) 100%),
    radial-gradient(45% 380px at 96% 6%, rgba(20, 184, 166, .07) 0%, rgba(20, 184, 166, 0) 100%),
    #F4F7FB !important; }
#ttc .incluye { margin-top: 64px; padding: 32px 20px; border-radius: 16px; }
@media (min-width: 700px) { #ttc .incluye { padding: 40px 32px; } }
#ttc .incluye h3 { font-size: 1.5rem; margin-bottom: 20px; }
#ttc .incluye__ic { width: 72px; height: 72px; grid-row: span 2;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
#ttc .incluye__lista { display: grid; border-top: 1px solid var(--line); }
#ttc .incluye__lista li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
#ttc .incluye__lista b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
@media (min-width: 700px) {
  #ttc .incluye__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1200px) {
  #ttc .incluye__lista { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--line); }
  #ttc .incluye__lista li { border-bottom: 0; padding: 18px 20px; grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; }
  #ttc .incluye__ic { width: 88px; height: 88px; grid-row: auto; margin-bottom: 12px; }
  #ttc .incluye__lista li:first-child { padding-left: 0; }
  #ttc .incluye__lista li + li { border-left: 1px solid var(--line); }
}
#ttc .incluye__pie { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
#ttc .incluye__lista a { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ================================================================ 3 · de la compra al gráfico */
#ttc .pasos { display: grid; gap: 0; counter-reset: none; }
#ttc .pasos li { position: relative; padding: 0 0 24px 36px; }
#ttc .pasos li::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 0; border-left: 1px solid var(--line-strong); }
#ttc .pasos li:last-child::before { display: none; }
#ttc .pasos__n { position: absolute; left: 0; top: 0; width: 17px; text-align: center; background: var(--surface); font: 500 .8125rem/1.6 var(--font-mono); color: var(--ink); }
#ttc .pasos p { font-size: .9375rem; line-height: 1.55; max-width: 48ch; }
@media (min-width: 900px) {
  #ttc .pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  #ttc .pasos li { padding: 34px 0 0; }
  #ttc .pasos li::before, #ttc .pasos li:last-child::before { display: block; left: 0; right: -28px; top: 10px; bottom: auto; border-left: 0; border-top: 1px solid var(--line-strong); }
  #ttc .pasos li:last-child::before { right: 0; }
  #ttc .pasos__n { width: auto; padding-right: 12px; text-align: left; z-index: 1; }
}
#ttc .inst { margin-top: 56px; display: grid; gap: 40px; }
@media (min-width: 1000px) { #ttc .inst { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
#ttc .inst h3 { font-size: 1.375rem; }
#ttc .inst__req > p:not(.nota) { margin-top: 10px; }
#ttc .inst__req .nota { margin-top: 14px; }
#ttc .tabla-envoltura { margin-top: 18px; overflow-x: auto; }
#ttc .req { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.45; }
#ttc .req th, #ttc .req td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
#ttc .req thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-2); border-bottom-color: var(--line-strong); }
#ttc .req tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
#ttc .req td { color: var(--ink); }
@media (max-width: 699px) {
  #ttc .req thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #ttc .req, #ttc .req tbody, #ttc .req tr, #ttc .req th, #ttc .req td { display: block; }
  #ttc .req tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  #ttc .req th, #ttc .req td { padding: 0; border: 0; }
  #ttc .req tbody th { font-size: 1rem; margin-bottom: 6px; white-space: normal; }
  #ttc .req td { margin-top: 4px; }
  #ttc .req td::before { content: attr(data-col) ": "; color: var(--ink-2); }
}
#ttc .inst__caja { display: grid; gap: 12px; justify-items: start; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg); }
#ttc .inst__caja p { font-size: .9375rem; line-height: 1.55; }
#ttc .inst__caja .btn { margin-top: 8px; }
#ttc .inst__precio b { font-weight: 600; }

/* ================================================================ 4 · antes de comprar */
#ttc .antes__cols { display: grid; gap: 32px; }
@media (min-width: 900px) { #ttc .antes__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
#ttc .antes__col h3 { font-size: 1.375rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
#ttc .antes__lista li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); line-height: 1.5; }
#ttc .antes__lista li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 12px; height: 2px; background: var(--ink); }
#ttc .antes__col--no .antes__lista li::before { background: var(--danger); }
#ttc .antes__riesgo { margin-top: 40px; padding: 20px 0 0; border-top: 2px solid var(--danger); background: transparent; border-radius: 0; display: grid; gap: 10px; max-width: 900px; }
#ttc .antes__riesgo h3 { font-size: 1.375rem; color: var(--ink) !important; }
#ttc .antes__riesgo p { color: var(--ink); line-height: 1.55; }
#ttc .antes__decl { margin-top: 20px; max-width: 900px; font-size: .875rem; line-height: 1.55; color: var(--ink-2); }

/* ================================================================ 5 · preguntas */
#ttc .faqs { margin-top: 32px; border-top: 1px solid var(--line); }
#ttc .faq { border-bottom: 1px solid var(--line); }
#ttc .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none; }
#ttc .faq summary::-webkit-details-marker { display: none; }
#ttc .faq__q { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1.0625rem !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
#ttc .faq summary i[data-ic] { width: 16px; height: 16px; color: var(--ink-2); transition: transform 180ms var(--ease-out); }
#ttc .faq[open] summary i[data-ic] { transform: rotate(180deg); }
#ttc .faq__a { padding: 0 0 22px; color: var(--ink); max-width: 68ch; line-height: 1.6; }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    #ttc .faq::details-content { block-size: 0; overflow-y: clip; transition: block-size 180ms var(--ease-out), content-visibility 180ms allow-discrete; }
    #ttc .faq[open]::details-content { block-size: auto; }
  }
}

/* ================================================================ 6 · contacto */
#ttc .contacto { position: relative; isolation: isolate;
  background:
    radial-gradient(90% 110% at 50% 125%, rgba(46, 107, 230, .45) 0%, rgba(46, 107, 230, .16) 42%, rgba(46, 107, 230, 0) 66%),
    radial-gradient(36% 60% at 88% 0%, rgba(20, 184, 166, .12) 0%, rgba(20, 184, 166, 0) 70%),
    linear-gradient(180deg, #0A1A33 0%, #0C2142 100%) !important; }
#ttc .contacto::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
#ttc .contacto__txt { margin-top: 16px; max-width: var(--lectura); display: grid; gap: 10px; }
#ttc .contacto .acciones { margin-top: 28px; gap: 12px 24px; }
#ttc .contacto__tel { font: 600 1.0625rem var(--font-body); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 44px; }
#ttc .contacto__datos { margin-top: 20px; font: 600 1rem/1.4 var(--font-body); color: var(--ink); }
#ttc .contacto__logo { display: none; }
@media (min-width: 1000px) {
  #ttc .contacto .ancho { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; column-gap: 48px; }
  #ttc .contacto__logo { display: block; grid-column: 2; grid-row: 1 / span 4; width: 260px; height: 260px; filter: drop-shadow(0 24px 48px rgba(6, 17, 31, .55)); }
}

/* ================================================================ formulario (lo arma app.js dentro del cajón) */
#ttc .campo { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
#ttc .campo__etq { font-weight: 600; font-size: .9375rem; color: var(--ink); padding: 0; }
#ttc .campo__in { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r);
  font: 400 1rem/1.4 var(--font-body); }
#ttc select.campo__in { appearance: auto; }
#ttc .campo__in::placeholder { color: var(--muted); }
#ttc .campo__in:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 0; }
#ttc .campo__ayuda { font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
#ttc .campo__error { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; color: var(--danger); line-height: 1.45; }
#ttc .campo__error i[data-ic] { width: 16px; height: 16px; margin-top: 2px; }
#ttc .campo.es-error .campo__in, #ttc .campo__in[aria-invalid="true"] { border-color: var(--danger); }
#ttc .casilla { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; color: var(--ink); line-height: 1.4; }
#ttc .casilla input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
#ttc .casilla--acepta { align-items: flex-start; padding-top: 10px; font-size: .9375rem; }
#ttc .casilla--acepta input { margin-top: 2px; }
#ttc .form__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#ttc .form__resumen, #ttc .form__caja { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--danger); background: var(--danger-soft); color: var(--ink); }
#ttc .form__aviso { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface-2); display: grid; gap: 10px; justify-items: start; }
#ttc .form__ok { display: grid; gap: 14px; justify-items: start; padding: 4px 0; }
#ttc .form__ok h3 { color: var(--ok) !important; font-size: 1.375rem; }
#ttc .form__ok .nota { color: var(--ink-2); }
#ttc .medios { gap: 8px; }
#ttc .medio { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
#ttc .medio input { margin-top: 2px; }
#ttc .medio span { display: grid; gap: 2px; }
#ttc .medio small { color: var(--ink-2); font-size: .8125rem; line-height: 1.4; }
#ttc .medio:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }

/* ================================================================ cajón del pedido */
#ttc .carrito { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(6, 17, 31, 0); transition: background-color 180ms var(--ease-in); }
#ttc .carrito.abierto { background: rgba(6, 17, 31, .6); transition: background-color 240ms var(--ease-out); }
#ttc .carrito__panel { width: 100%; height: 100%; overflow-y: auto; background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 180ms var(--ease-in); box-shadow: -12px 0 40px rgba(6, 17, 31, .25); }
@media (min-width: 600px) { #ttc .carrito__panel { width: 420px; border-left: 1px solid var(--line); } }
#ttc .carrito.abierto .carrito__panel { transform: none; transition: transform 240ms var(--ease-cajon); }
#ttc .carrito__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
#ttc .carrito__cab h2 { font-size: 1.5rem; }
#ttc .carrito__cerrar { min-width: 44px; min-height: 44px; border-radius: var(--r); background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
#ttc .carrito__cuerpo { padding: 18px 20px 28px; display: grid; gap: 14px; }
#ttc .carrito__vacio { display: grid; gap: 14px; justify-items: start; color: var(--ink-2); }
#ttc .carrito__item { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 10px; }
#ttc .carrito__fila { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
#ttc .carrito__fila b { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
#ttc .carrito__precio { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ttc .carrito__quitar { width: 40px; height: 40px; border-radius: var(--r); background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
@media (pointer: coarse) { #ttc .carrito__quitar { width: 44px; height: 44px; } }
@media (hover: hover) { #ttc .carrito__quitar:hover { color: var(--danger); border-color: var(--danger); } }
#ttc .carrito__extra { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; color: var(--ink-2); font-size: .9375rem; cursor: pointer; }
#ttc .carrito__extra input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
#ttc .carrito__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-top: 1px solid var(--line); }
#ttc .carrito__total b { font: 600 1.5rem/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
#ttc .carrito__nota { font-size: .875rem; color: var(--ink-2); }
#ttc .carrito__form { display: grid; gap: 16px; padding-top: 6px; }
#ttc .carrito__enviar { width: 100%; }

/* ================================================================ WhatsApp flotante: rectángulo tinta, glifo verde (marca.md §6.2) */
#ttc .wa-flotante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 16px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); text-decoration: none;
  font: 600 1rem/1 var(--font-body); box-shadow: var(--sombra-flota);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 120ms, visibility 0s; }
#ttc .wa-flotante i[data-ic] { width: 22px; height: 22px; color: #25D366; }
@media (hover: hover) { #ttc .wa-flotante:hover { background: var(--ink-hover); } }
#ttc:not(.js) .wa-flotante { display: none; }   /* sin JS no se sabe cuándo deja de verse el hero: queda el botón de la cabecera */
#ttc .wa-flotante.oculto { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms; }
@media (max-width: 599px) {
  #ttc .wa-flotante { width: 52px; padding: 0; justify-content: center; }
  #ttc .wa-flotante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ================================================================ página legal */
#ttc .legal__in { display: grid; gap: 32px; }
#ttc .legal__cab { display: grid; gap: 12px; }
#ttc .legal__indice ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
#ttc .legal__indice a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); }
#ttc .legal__cuerpo { display: grid; gap: 48px; max-width: var(--lectura); }
#ttc .legal__sec { display: grid; gap: 14px; }
#ttc .legal__sec p { color: var(--ink); line-height: 1.65; }
#ttc .legal__sec h2 { font-size: 1.75rem; }
#ttc .legal__volver { font-size: .875rem; justify-self: start; }
@media (min-width: 900px) {
  #ttc .legal__in { grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; }
  #ttc .legal__cab { grid-column: 1 / -1; }
  #ttc .legal__indice { position: sticky; top: 88px; align-self: start; padding-left: 14px; border-left: 1px solid var(--line); }
  #ttc .legal__indice ul { flex-direction: column; gap: 0; }
  #ttc .legal__volver { display: none; }
}

/* ================================================================ pie */
#ttc .pie { background: var(--bg-hondo) !important; border-top: 1px solid var(--line); padding: 56px 0 96px; }   /* abajo: lugar para el WhatsApp flotante */
#ttc .pie__arriba { display: grid; gap: 32px; }
#ttc .pie__marca { display: grid; gap: 10px; align-content: start; justify-items: start; }
#ttc .pie__marca p { font-size: .875rem; color: var(--ink-2); }
#ttc .pie__avisos p { font-size: .8125rem; line-height: 1.55; color: var(--ink-2); margin-bottom: 10px; }
#ttc .pie__abajo { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
#ttc .pie__abajo p { font-size: .875rem; color: var(--muted); }
#ttc .pie__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
#ttc .pie__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--ink-2); }
@media (min-width: 900px) {
  #ttc .pie__arriba { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  #ttc .pie__abajo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  #ttc .pie__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
}
@media (min-width: 1200px) { #ttc .pie__avisos { columns: 2; column-gap: 40px; } #ttc .pie__avisos p { break-inside: avoid; } }

/* ================================================================ movimiento reducido: nada se desplaza ni parpadea */
@media (prefers-reduced-motion: reduce) {
  #ttc *, #ttc *::before, #ttc *::after { animation: none !important; transition-duration: .01ms !important; }
  #ttc .btn[aria-busy="true"]::after { width: 100%; }
  #ttc .prod__extra.resaltada { outline-color: var(--accent); }
}

/* ---- ajustes de la evaluación (r3) ---- */
#ttc .prod--pronto + .rg-detalle { margin-top: 56px; }
@media (min-width: 1000px) { #ttc .rg-detalle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#ttc .pie a[href^="tel:"], #ttc .contacto a[href^="tel:"] { white-space: nowrap; }

/* ---- precio de lanzamiento (marca.md §9.4): sin cinta, sin naranja, sin «OFERTA» ---- */
#ttc .prod__antes { font: 400 1rem/1.2 var(--font-body); color: var(--muted); text-decoration: line-through 1.5px; font-variant-numeric: tabular-nums; }
#ttc .prod__oferta { grid-column: 1 / -1; margin: 6px 0 0; font: 500 .875rem/1.45 var(--font-body); color: var(--accent-text); }
