/* Catálogo Torque Marine
 * Azul marino como fondo principal; las secciones de datos (línea, comparativa, calidad) van en claro.
 * Todo está encapsulado en .tm-catalogo y usa el prefijo tm- para no chocar con el tema de WordPress.
 */

.tm-catalogo {
  /* Paleta */
  --navy-950: #06111c;
  --navy-900: #0a1b2b;
  --navy-850: #0f2336;
  --navy-800: #142b42;
  --navy-700: #1f3d5a;
  --on-navy: #edf3f8;
  --on-navy-2: #a3b7ca;
  --on-navy-3: #7590a8;
  --celeste: #1bb0e0;
  --celeste-hover: #4cc4ec;
  --paper: #edf1f5;
  --paper-2: #e2e8ee;
  --ink: #0a1b2b;
  --ink-2: #4a5e72;
  --ink-3: #6b7f93;
  --link-claro: #0b6f99;

  /* Letra: Archivo (Omnibus-Type), de ancho variable: títulos anchos, rótulos angostos */
  --tm-face: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --tm-wide: 112%;
  --tm-narrow: 86%;

  --tm-wrap: 1120px;
  --tm-gutter: 32px;
  --tm-edge: max(var(--tm-gutter), calc((100vw - var(--tm-wrap)) / 2));
  --tm-radius: 10px;

  /* Colores según el fondo (marino por defecto) */
  --bg: var(--navy-900);
  --fg: var(--on-navy);
  --fg-2: var(--on-navy-2);
  --fg-3: var(--on-navy-3);
  --line: rgba(163, 183, 202, .2);
  --tile: var(--navy-800);
  --btn-bg: var(--celeste);
  --btn-fg: var(--navy-950);
  --btn-hover: var(--celeste-hover);
  --link: var(--celeste);
  --pend: #f2b648;
  --pend-bg: rgba(242, 182, 72, .14);
  --sil-fill: var(--navy-850);
  --sil-stroke: var(--on-navy-3);

  font-family: var(--tm-face);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
  accent-color: var(--celeste);
}

.tm-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: #cdd6df;
  --tile: #ffffff;
  --btn-bg: var(--navy-900);
  --btn-fg: #ffffff;
  --btn-hover: var(--navy-700);
  --link: var(--link-claro);
  --pend: #8a5300;
  --pend-bg: #fdecc8;
  --sil-fill: #ffffff;
  --sil-stroke: var(--ink-3);
  color: var(--fg);
}
.tm-deep { --bg: var(--navy-950); --tile: var(--navy-850); --sil-fill: var(--navy-900); }

body { margin: 0; background: var(--navy-900, #0a1b2b); }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }

.tm-catalogo *, .tm-catalogo *::before, .tm-catalogo *::after { box-sizing: border-box; }
.tm-catalogo img, .tm-catalogo video { max-width: 100%; display: block; }
.tm-catalogo a { color: inherit; }
.tm-catalogo [hidden] { display: none !important; }
.tm-catalogo ::selection { background: var(--celeste); color: var(--navy-950); }
.tm-catalogo :focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; border-radius: 4px; }

.tm-wrap { max-width: calc(var(--tm-wrap) + var(--tm-gutter) * 2); margin-inline: auto; padding-inline: var(--tm-gutter); }
.tm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.tm-h1, .tm-h2, .tm-hero__title, .tm-pasos__big, .tm-lu__name, .tm-bento dd, .tm-stats dt, .tm-tela__titulo {
  font-stretch: var(--tm-wide);
  text-wrap: balance;
}
.tm-h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1; font-weight: 760; letter-spacing: -0.025em; }
.tm-h2 { margin: 0; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.04; font-weight: 740; letter-spacing: -0.02em; }
.tm-h3 { margin: 0 0 18px; font-size: 20px; line-height: 1.2; font-weight: 700; }
.tm-lead { max-width: 58ch; margin: 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.45; color: var(--fg-2); }
/* Rótulo chico (datos, encabezados de tabla) */
.tm-bento dt, .tm-cmp tbody th, .tm-escala__cap, .tm-modelo__meta {
  font-stretch: var(--tm-narrow);
}

/* Dos columnas: título a la izquierda, texto y acciones a la derecha */
.tm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.tm-split--titulo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- Botones y enlaces ---------- */
.tm-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.tm-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg) !important;
  font-size: 16px; line-height: 1.2; font-weight: 650; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: background .2s;
}
.tm-pill:hover { background: var(--btn-hover); }
.tm-pill svg { width: 20px; height: 20px; }
.tm-pill--sm { min-height: 34px; padding: 7px 14px; font-size: 14px; }
.tm-pill--lg { min-height: 56px; padding: 16px 28px; font-size: 18px; }
.tm-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--link); font-weight: 600; text-decoration: none;
}
.tm-link::after {
  content: ""; width: .85em; height: .85em; flex: none; background: currentColor; transition: transform .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tm-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tm-link:hover::after { transform: translateX(3px); }
.tm-link.is-disabled { color: var(--fg-3); font-weight: 500; }
.tm-link.is-disabled::after { content: none; }
.tm-round {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.tm-round:hover { background: var(--tile); border-color: var(--fg-3); }
.tm-round svg { width: 18px; height: 18px; }

/* ---------- Datos pendientes ---------- */
.tm-flag {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0;
  padding: 5px 12px; border-radius: 4px; background: var(--pend-bg); color: var(--pend);
  font-size: 14px; font-weight: 600;
}
.tm-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tm-pend { color: var(--pend); font-size: .82em; font-weight: 600; }
.tm-nw { white-space: nowrap; }
.tm-empty { margin: 0; color: var(--fg-2); }

/* ---------- Barra del mockup ---------- */
.tm-mockbar {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; border-radius: 8px;
  background: #ffffff; color: var(--ink); font-size: 12.5px; line-height: 1.3;
  box-shadow: 0 6px 24px rgba(6, 17, 28, .28);
}
.tm-mockbar a { color: var(--link-claro); }
.tm-mockbar > button { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: inherit; cursor: pointer; }
.tm-mockbar > button svg { width: 12px; height: 12px; }
.tm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f2b648; }

/* ---------- Barra del catálogo ---------- */
.tm-localnav { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--on-navy); border-bottom: 1px solid rgba(163, 183, 202, .16); }
.tm-localnav__in { display: flex; align-items: center; gap: 28px; height: 56px; }
.tm-localnav__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.tm-localnav__logo { width: 140px; height: 30px; color: #fff; }
.tm-localnav__title { padding-left: 14px; border-left: 1px solid rgba(163, 183, 202, .35); font-size: 16px; font-weight: 600; color: var(--on-navy-2); line-height: 1; }
.tm-localnav__links { display: flex; gap: 26px; margin-left: auto; }
.tm-localnav__links a { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--on-navy-2); text-decoration: none; transition: color .2s; }
.tm-localnav__links a:hover { color: #fff; }
.tm-localnav .tm-pill { --btn-bg: var(--celeste); --btn-fg: var(--navy-950); --btn-hover: var(--celeste-hover); }
.tm-localnav__toggle { display: none; margin-left: auto; width: 40px; height: 40px; padding: 10px; border: 0; background: none; color: var(--on-navy-2); cursor: pointer; }
.tm-localnav__toggle svg { width: 20px; height: 20px; transition: transform .3s; }
.tm-localnav.is-open .tm-localnav__toggle svg { transform: rotate(180deg); }

/* ---------- Secciones ---------- */
.tm-section { padding-block: clamp(64px, 7vw, 104px); background: var(--bg); }
.tm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------- Portada con video ---------- */
.tm-hero { position: relative; display: flex; min-height: min(88vh, 860px); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.tm-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Velo sobre el video: más oscuro donde va el texto (izquierda y abajo), más liviano sobre el bote */
.tm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 17, 28, .7), rgba(6, 17, 28, 0) 45%), linear-gradient(90deg, rgba(6, 17, 28, .8), rgba(6, 17, 28, .5) 50%, rgba(6, 17, 28, .12));
}
.tm-hero__in { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 104px); }
.tm-hero__title { max-width: 15ch; margin: 0; font-size: clamp(44px, 6.6vw, 94px); line-height: .97; font-weight: 780; letter-spacing: -0.03em; color: #fff; }
.tm-hero__sub { max-width: 46ch; margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--on-navy); }

/* ---------- Escala: bote y bultos ---------- */
.tm-escala__in { display: grid; gap: clamp(40px, 5vw, 64px); }

.tm-escala__stage {
  /* Escala en px por cm: que entren a lo ancho los botes y bolsos de hoy (unos 1185 cm sumados) más la regla y los márgenes */
  --k: clamp(.46px, (min(100vw - var(--tm-gutter) * 2, var(--tm-wrap)) - 320px) / 1185, .86px);
  display: grid; grid-template-columns: auto; grid-auto-columns: auto; column-gap: 0; row-gap: 18px;
  justify-content: center; align-items: end; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  padding-top: 12px; /* el rótulo de 5 m sobresale de la regla */
}
.tm-regla { grid-column: 1; grid-row: 1; position: relative; width: 52px; height: calc(500 * var(--k)); border-right: 1px solid var(--line); border-bottom: 1px solid var(--fg-3); }
.tm-regla__t { position: absolute; right: 0; bottom: calc(var(--cm) * var(--k)); width: 7px; border-top: 1px solid var(--fg-3); }
.tm-regla__t--m { width: 14px; }
.tm-regla__t b { position: absolute; right: 20px; top: 0; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-escala__fig {
  grid-row: 1; display: flex; align-items: flex-end; gap: 10px;
  padding: 0 clamp(16px, 2vw, 28px); border-bottom: 1px solid var(--fg-3); text-decoration: none;
}
.tm-escala__boat { display: block; flex: none; height: calc(var(--eslora) * var(--k)); }
.tm-escala__boat img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 18px 18px rgba(10, 27, 43, .18)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.tm-escala__fig:hover img { transform: translateY(-6px); }
/* El bolso, apaisado: largo × ancho, con la manija arriba y el logo al medio */
.tm-pack {
  position: relative; display: grid; place-items: center; flex: none;
  width: calc(var(--l) * var(--k)); height: calc(var(--a) * var(--k));
  border-radius: calc(12 * var(--k)); background: #10151b; color: #fff;
  box-shadow: inset 0 calc(-6 * var(--k)) 0 rgba(255, 255, 255, .06), 0 10px 14px -8px rgba(10, 27, 43, .35);
}
.tm-pack::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 34%; height: calc(14 * var(--k)); transform: translateX(-50%);
  border: calc(4 * var(--k)) solid #10151b; border-bottom: 0; border-radius: 999px 999px 0 0;
}
.tm-pack svg { width: 62%; aspect-ratio: 650.61 / 139.34; }
.tm-escala__cap { grid-row: 2; align-self: start; width: 0; min-width: 100%; margin: 0; padding-inline: clamp(16px, 2vw, 28px); font-size: 14px; line-height: 1.35; color: var(--fg-2); }
.tm-escala__cap strong { color: var(--fg); font-weight: 700; margin-right: 4px; font-stretch: 100%; }
/* El único movimiento de la página: los botes suben y los bultos se arman al entrar en pantalla */
.tm-js .tm-escala__stage[data-reveal] .tm-escala__boat { opacity: 0; transform: translateY(48px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * .15s); }
.tm-js .tm-escala__stage[data-reveal] .tm-pack { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(.5s + var(--i) * .15s); }
.tm-js .tm-escala__stage.is-in .tm-escala__boat { opacity: 1; transform: none; }
.tm-js .tm-escala__stage.is-in .tm-pack { transform: none; }

/* ---------- En detalle (carrusel) ---------- */
/* Todas las tarjetas tienen la misma altura; el ancho sale de la proporción de cada foto (--ar) */
.tm-hl { --hl-h: clamp(300px, 33vw, 475px); overflow: hidden; }
.tm-hl__track {
  list-style: none; margin: 48px 0 0; padding: 0 var(--tm-edge);
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tm-edge);
  scrollbar-width: none;
}
.tm-hl__track::-webkit-scrollbar { display: none; }
.tm-hl__card { flex: none; width: calc(var(--hl-h) * var(--ar, 1.6)); display: flex; flex-direction: column; gap: 18px; scroll-snap-align: start; }
.tm-hl__card img { display: block; width: 100%; height: var(--hl-h); object-fit: cover; border-radius: var(--tm-radius); background: var(--navy-850); }
.tm-hl__cap { max-width: 44ch; margin: 0; font-size: 17px; line-height: 1.4; color: var(--fg-2); }
.tm-hl__cap strong { color: var(--fg); font-weight: 700; }
.tm-hl__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.tm-dots { display: inline-flex; align-items: center; gap: 8px; }
.tm-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--fg-3); cursor: pointer; transition: width .3s, background .3s; }
.tm-dots button[aria-current] { width: 32px; background: var(--celeste); }
.tm-hl__arrows { display: flex; gap: 10px; }

/* ---------- Línea ---------- */
.tm-segmented { display: inline-flex; padding: 3px; border-radius: 6px; background: var(--paper-2); }
.tm-segmented button {
  padding: 8px 18px; border: 0; border-radius: 4px; background: transparent; color: var(--fg-2);
  font: 600 14px/1.2 var(--tm-face); cursor: pointer; transition: background .2s, color .2s;
}
.tm-segmented button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.tm-lineup__scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tm-lineup__row { --k: .6px; display: grid; grid-auto-flow: column; grid-auto-columns: 184px; grid-template-rows: repeat(6, auto); width: max-content; margin-inline: auto; padding-inline: var(--tm-gutter); }
.tm-lu { position: relative; grid-row: span 6; display: grid; grid-template-rows: subgrid; justify-items: center; align-content: start; padding: 0 14px; text-align: center; }
.tm-lu + .tm-lu { border-left: 1px solid var(--line); }
.tm-lu__fig { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: calc(470 * var(--k)); }
.tm-lu__fig > span { display: block; height: calc(var(--eslora) * var(--k)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.tm-lu__fig img, .tm-lu__fig svg { height: 100%; width: auto; }
.tm-lu__fig img { filter: drop-shadow(0 14px 14px rgba(10, 27, 43, .16)); }
.tm-lu__fig:hover > span { transform: translateY(-6px); }
.tm-swatches { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; }
.tm-swatches li { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(10, 27, 43, .2); }
.tm-swatches--none li { visibility: hidden; }
.tm-lu__name { margin: 14px 0 0; font-size: 23px; line-height: 1.1; font-weight: 740; letter-spacing: -0.015em; }
.tm-lu__lema { margin: 8px 0 0; min-height: 2.8em; font-size: 15px; line-height: 1.35; color: var(--fg-2); }
.tm-lu__ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.tm-lu__ctas .tm-link { font-size: 14px; }
.tm-lu__feats { list-style: none; display: grid; gap: 20px; width: 100%; margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.tm-lu__feats li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: calc(34px + 2.6em); font-size: 14px; line-height: 1.3; }
.tm-lu__feats svg { width: 26px; height: 26px; color: var(--link); }
.tm-lu__feats .tm-casco { width: 50px; } /* corte del casco: más ancho que alto */

/* Silueta de modelos sin foto */
.tm-sil { overflow: visible; color: var(--sil-stroke); }
.tm-sil__casco { fill: var(--sil-fill); stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.tm-sil__piso { fill: rgba(117, 144, 168, .14); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tm-sil__eje { stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.tm-sil__asientos rect { fill: rgba(117, 144, 168, .32); }

/* ---------- Ficha de modelo (una a la vez, con pestañas) ---------- */
.tm-fichas { padding-top: 0; }
.tm-fichas__bar { position: sticky; top: 56px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.tm-fichas__in { display: flex; align-items: center; gap: 24px; }
.tm-tabs { position: relative; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tm-tabs::-webkit-scrollbar { display: none; }
.tm-tab {
  flex: none; padding: 18px 0 16px; margin-right: 28px; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--fg-2); font: 600 15px/1.2 var(--tm-face); white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s;
}
.tm-tab:hover { color: var(--fg); }
.tm-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--celeste); }
.tm-tab--corte { position: relative; margin-left: 4px; }
.tm-tab--corte::before { content: ""; position: absolute; left: -20px; top: 50%; height: 18px; margin-top: -9px; border-left: 1px solid var(--line); }
.tm-tab:focus-visible { outline-offset: -2px; }
.tm-fichas__cmp { flex: none; margin-left: auto; font-size: 14px; }
.tm-modelo { padding-top: clamp(48px, 6vw, 80px); outline: 0; }
.tm-modelo:not([hidden]) { animation: tm-ficha .35s ease-out; }
@keyframes tm-ficha { from { opacity: 0; } }
.tm-modelo__head { align-items: end; }
.tm-modelo__meta { margin: 16px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--fg-2); }
.tm-new { color: var(--celeste); }
.tm-modelo__head .tm-ctas { margin-top: 24px; }
/* La foto va sobre una placa clara: los botes negros no se pierden en el marino */
.tm-modelo__fig {
  --sec-bg: var(--paper);
  display: flex; flex-direction: column; align-items: center;
  margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(40px, 5vw, 64px) calc(clamp(24px, 4vw, 56px) + 36px) clamp(56px, 6vw, 76px) clamp(24px, 4vw, 56px);
  border-radius: var(--tm-radius); background: var(--paper);
}
/* El ancho sigue la eslora: el 4,60 ocupa todo y el resto se achica en proporción. */
.tm-dim { position: relative; width: calc(min(100%, 860px) * var(--eslora, 460) / 460); }
.tm-dim__vista { position: relative; }
.tm-dim__vista > img, .tm-dim__vista > svg { display: block; width: 100%; height: auto; }
.tm-dim__vista > img { filter: drop-shadow(0 24px 24px rgba(10, 27, 43, .18)); }
.tm-dim__vista--lado { margin-top: clamp(28px, 4vw, 48px); }
.tm-dim__l, .tm-dim__w { position: absolute; color: var(--ink-3); }
.tm-dim__l { left: 0; right: 0; bottom: -30px; border-top: 1px solid currentColor; }
.tm-dim__l::before, .tm-dim__l::after { content: ""; position: absolute; top: -5px; height: 9px; border-left: 1px solid currentColor; }
.tm-dim__l::before { left: 0; }
.tm-dim__l::after { right: 0; }
.tm-dim__w { top: 0; bottom: 0; right: -32px; border-left: 1px solid currentColor; }
.tm-dim__w::before, .tm-dim__w::after { content: ""; position: absolute; left: -5px; width: 9px; border-top: 1px solid currentColor; }
.tm-dim__w::before { top: 0; }
.tm-dim__w::after { bottom: 0; }
.tm-dim b { position: absolute; padding: 0 8px; background: var(--paper); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-dim__l b { left: 50%; top: 0; transform: translate(-50%, -50%); }
.tm-dim__w b { top: 50%; left: 0; transform: translate(-50%, -50%) rotate(90deg); }
.tm-modelo__ph { margin-top: 52px; padding: 4px 10px; border-radius: 4px; background: var(--pend-bg); color: var(--pend); font-size: 13px; font-weight: 600; }

.tm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.tm-bento > div { margin: 0; padding: 22px 24px 24px; border-radius: var(--tm-radius); background: var(--tile); }
.tm-bento dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.tm-bento dd { margin: 8px 0 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tm-bento .tm-bento__wide { grid-column: span 2; }
.tm-bento__wide dd { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.25; }
.tm-bento dd .tm-pend { font-size: 16px; font-stretch: 100%; letter-spacing: 0; }

.tm-acc { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.tm-acc__item { border-bottom: 1px solid var(--line); }
.tm-acc__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; list-style: none; cursor: pointer;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 700;
}
.tm-acc__item summary::-webkit-details-marker { display: none; }
.tm-acc__item summary:hover { color: var(--link); }
.tm-acc__item summary svg { flex: none; width: 28px; height: 28px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; transition: transform .3s; }
.tm-acc__item[open] summary svg { transform: rotate(45deg); }
.tm-acc__body { padding: 0 0 26px; }
.tm-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.tm-list li { position: relative; padding: 7px 0 7px 20px; break-inside: avoid; color: var(--fg-2); }
.tm-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; border-top: 2px solid var(--celeste); }

.tm-strip {
  display: flex; gap: 12px; margin: 40px calc(-1 * var(--tm-edge)) 0; padding-inline: var(--tm-edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tm-edge); scrollbar-width: none;
}
.tm-strip::-webkit-scrollbar { display: none; }
.tm-strip__item { flex: 0 0 auto; width: 220px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--tile); cursor: zoom-in; scroll-snap-align: start; }
.tm-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.tm-strip__item:hover img { transform: scale(1.05); }

/* ---------- Comparativa ---------- */
.tm-compare__scroll { margin-top: 48px; overflow-x: auto; padding: 4px 24px 12px; border-radius: var(--tm-radius); background: #fff; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tm-cmp { width: 100%; min-width: 960px; table-layout: fixed; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-cmp thead th { padding: 28px 6px 20px; vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.tm-cmp thead th:first-child { width: 168px; }
.tm-cmp__model { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.tm-cmp__model strong { font-size: 16px; font-weight: 700; font-stretch: var(--tm-wide); }
.tm-cmp__model:hover strong { color: var(--link); }
.tm-cmp__thumb { display: flex; align-items: flex-end; height: 112px; }
.tm-cmp__thumb img, .tm-cmp__thumb svg { height: calc(var(--eslora) * .23px); width: auto; }
.tm-cmp tbody th { position: sticky; left: 0; z-index: 1; padding: 13px 8px 13px 0; background: #fff; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.tm-cmp td { padding: 13px 6px; text-align: center; }
.tm-cmp tbody tr > * { border-bottom: 1px solid var(--paper-2); }
.tm-cmp tbody tr:last-child > * { border-bottom: 0; }
.tm-yes { width: 20px; height: 20px; color: var(--link); vertical-align: middle; }
.tm-no { color: var(--fg-3); }

/* ---------- Línea táctica ---------- */
.tm-tactica .tm-h1 { font-size: clamp(42px, 6vw, 80px); }
.tm-tactica__video { margin: clamp(48px, 6vw, 72px) 0 0; border-radius: var(--tm-radius); overflow: hidden; background: var(--navy-850); }
.tm-tactica__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin: 24px 0 0; }
.tm-stats > div { margin: 0; }
.tm-stats dt { font-size: clamp(24px, 2.4vw, 32px); line-height: 1; font-weight: 740; letter-spacing: -0.02em; color: var(--celeste); font-variant-numeric: tabular-nums; }
.tm-stats dd { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--fg-2); }

/* ---------- Calidad ---------- */
.tm-calidad__head { margin-bottom: clamp(48px, 6vw, 72px); }
/* Las seis propiedades en tres columnas */
.tm-props { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tm-props li { display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.3; font-weight: 650; }
.tm-props svg { flex: none; width: 34px; height: 34px; color: var(--link); }
/* La tela en capas: la ilustración y qué aporta cada capa */
.tm-tela { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.tm-tela__img { margin: 0; }
.tm-tela__img img { display: block; width: 100%; height: auto; }
.tm-tela__titulo { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; font-weight: 740; letter-spacing: -0.02em; }
.tm-tela__texto { margin: 16px 0 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.45; color: var(--fg-2); }
.tm-tela__capas { margin: 32px 0 0; border-top: 1px solid var(--line); }
.tm-tela__capa { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tm-tela__capa::before { content: ""; grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 4px; }
.tm-tela__capa--pvc::before { background: #9fb3c8; }
.tm-tela__capa--trama::before { background: #ece7dc; box-shadow: inset 0 0 0 1px #c9c2b4; }
.tm-tela__capa dt { font-weight: 700; color: var(--fg); }
.tm-tela__capa dd { margin: 0; line-height: 1.45; color: var(--fg-2); }

/* ---------- Cómo se usa ---------- */
.tm-pasos__big { margin: 0; font-size: clamp(40px, 7vw, 92px); line-height: 1; font-weight: 780; letter-spacing: -0.03em; color: #fff; }
.tm-pasos__big span { display: inline-block; }
.tm-pasos__big i { font-style: normal; color: var(--celeste); }
.tm-pasos__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; }
.tm-pasos__list li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.tm-pasos__list strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 700; color: var(--fg); }

/* ---------- Contacto: banda celeste de cierre ---------- */
.tm-contacto {
  --bg: var(--celeste); --fg: var(--navy-950); --fg-2: var(--navy-900);
  --btn-bg: var(--navy-950); --btn-fg: #fff; --btn-hover: var(--navy-700); --link: var(--navy-950);
  color: var(--fg); padding-block: clamp(64px, 8vw, 104px);
}
.tm-contacto__in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px 64px; align-items: end; }
.tm-contacto .tm-lead { margin-top: 18px; color: var(--fg-2); }
.tm-contacto .tm-ctas { margin-top: 0; }

/* ---------- Notas al pie ---------- */
/* Pie en dos columnas: marca y aclaración a la izquierda; secciones y contacto a la derecha */
.tm-footer { padding: 56px 0; background: var(--bg); color: var(--fg-2); }
.tm-footer__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; }
.tm-footer__marca p { margin: 0; font-size: 13px; line-height: 1.5; }
.tm-footer__marca p:first-of-type { margin-top: 20px; }
.tm-footer__links { display: flex; gap: 64px; }
.tm-footer__nav, .tm-footer__contacto { flex-direction: column; }
.tm-footer__brand { display: block; width: max-content; color: #fff; }
.tm-footer__logo { display: block; width: 150px; height: 32px; color: #fff; }
.tm-footer__nav, .tm-footer__contacto { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.tm-footer__nav a, .tm-footer__contacto a { color: var(--fg); text-decoration: none; transition: color .2s; }
.tm-footer__nav a:hover, .tm-footer__contacto a:hover { color: var(--link); }
.tm-footer__contacto a { display: inline-flex; align-items: center; gap: 8px; }
.tm-footer__contacto svg { width: 18px; height: 18px; }
.tm-bento__nota { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0; font-stretch: 100%; color: var(--fg-2); }

/* ---------- Galería ampliada ---------- */
.tm-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 17, 28, .96); color: var(--on-navy); }
.tm-lightbox::backdrop { background: rgba(6, 17, 28, .6); }
.tm-lightbox figure { display: grid; place-items: center; align-content: center; gap: 16px; height: 100%; margin: 0; padding: 72px 88px; }
.tm-lightbox img { max-height: calc(100dvh - 180px); width: auto; border-radius: 8px; }
.tm-lightbox figcaption { font-size: 14px; color: var(--on-navy-2); text-align: center; }
.tm-lightbox .tm-round { position: absolute; --line: rgba(163, 183, 202, .35); --fg: var(--on-navy); --tile: var(--navy-800); --fg-3: var(--on-navy-3); }
.tm-lightbox__cerrar { top: 20px; right: 20px; }
.tm-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.tm-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .tm-localnav__title { display: none; }
  .tm-escala__stage { justify-content: start; }
  .tm-pasos__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .tm-props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 734px) {
  .tm-catalogo { --tm-gutter: 16px; font-size: 16px; }
  .tm-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .tm-localnav__toggle { display: block; }
  .tm-localnav__in { gap: 6px; }
  .tm-localnav__logo { width: 112px; height: 24px; }
  .tm-footer__in { grid-template-columns: minmax(0, 1fr); }
  .tm-footer__links { gap: 40px; }
  .tm-localnav__title { display: inline; padding-left: 10px; font-size: 15px; }
  .tm-localnav__links {
    position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 4px var(--tm-gutter) 16px; background: var(--navy-900); border-bottom: 1px solid rgba(163, 183, 202, .16);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .tm-localnav.is-open .tm-localnav__links { visibility: visible; opacity: 1; transform: none; }
  .tm-localnav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(163, 183, 202, .14); }

  .tm-hero { min-height: 86svh; }
  .tm-hero::before { background: linear-gradient(0deg, rgba(6, 17, 28, .8), rgba(6, 17, 28, .5) 60%, rgba(6, 17, 28, .4)); }
  .tm-hero__in { padding-top: 96px; padding-bottom: 48px; }

  .tm-escala__stage { --k: .46px; margin-inline: calc(var(--tm-gutter) * -1); padding-inline: var(--tm-gutter); }
  .tm-regla { position: sticky; left: 0; z-index: 1; width: 40px; background: var(--bg); }
  .tm-regla__t b { right: 16px; font-size: 11px; }
  .tm-escala__fig { gap: 6px; padding-inline: 14px; }
  .tm-escala__cap { padding-inline: 14px; font-size: 13px; }

  .tm-hl { --hl-h: 63vw; }
  .tm-hl__card { max-width: 84vw; }
  .tm-hl__cap { font-size: 16px; }
  .tm-hl__arrows { display: none; }

  .tm-head { margin-bottom: 40px; }
  .tm-lineup__row { --k: .5px; }
  .tm-lineup__row { grid-auto-columns: 152px; }
  .tm-lu { padding: 0 10px; }
  .tm-lu__name { font-size: 20px; }

  .tm-fichas__cmp { display: none; }
  .tm-tabs { margin-inline: calc(var(--tm-gutter) * -1); padding-inline: var(--tm-gutter); scroll-padding-inline: var(--tm-gutter); }
  .tm-tab { margin-right: 22px; font-size: 14.5px; }
  .tm-tab--corte::before { left: -15px; }
  .tm-modelo__fig { padding: 32px 46px 52px 18px; }
  .tm-dim__w { right: -24px; }
  .tm-dim__l { bottom: -26px; }
  .tm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-bento > div { padding: 18px 18px 20px; }
  .tm-list { columns: 1; }
  .tm-strip__item { width: 150px; }

  .tm-compare__scroll { padding: 4px 14px 10px; margin-inline: calc(var(--tm-gutter) * -1 + 8px); }
  .tm-cmp { min-width: 820px; font-size: 14px; }
  .tm-cmp thead th:first-child { width: 108px; }

  .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-props { grid-template-columns: minmax(0, 1fr); }
  .tm-tela { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tm-pasos__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tm-contacto__in { grid-template-columns: minmax(0, 1fr); }

  .tm-ctas .tm-pill { width: 100%; max-width: 380px; }
  .tm-mockbar { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 11.5px; }
  .tm-lightbox figure { padding: 72px 12px; }
  .tm-lightbox__prev, .tm-lightbox__next { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tm-catalogo *, .tm-catalogo *::before, .tm-catalogo *::after { animation: none !important; transition: none !important; }
  .tm-js .tm-escala__stage[data-reveal] .tm-escala__boat, .tm-js .tm-escala__stage[data-reveal] .tm-pack { opacity: 1; transform: none; }
}
