/* ==========================================================
   TDM Theme — tdmt-theme.css
   Design System: Apple-style · Base blanca · Rojo #D70015
   ========================================================== */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --tdmt-red:          #D70015;
  --tdmt-red-dark:     #A8000F;
  --tdmt-red-light:    #fff0f0;
  --tdmt-text:         #1d1d1f;
  --tdmt-text-mid:     #424245;
  --tdmt-text-muted:   #6e6e73;
  --tdmt-bg:           #f5f5f7;
  --tdmt-white:        #fff;
  --tdmt-black:        #000;
  --tdmt-border:       rgba(0,0,0,0.1);
  --tdmt-border-str:   rgba(0,0,0,0.18);
  --tdmt-radius:       14px;
  --tdmt-radius-sm:    8px;
  --tdmt-radius-pill:  980px;
  --tdmt-shadow:       0 2px 18px rgba(0,0,0,0.06);
  --tdmt-shadow-h:     0 8px 36px rgba(0,0,0,0.12);
  --tdmt-font:         -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --tdmt-nav-h:        48px;
  --tdmt-topbar-h:     36px;
}

/* ── Reset scoped ────────────────────────────────────────── */
.tdmt-site * { box-sizing: border-box; }
.tdmt-site { font-family: var(--tdmt-font); -webkit-font-smoothing: antialiased; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes tdmt-float  { 0%,100%{transform:translateY(0)}    50%{transform:translateY(-14px)}   }
@keyframes tdmt-fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

.tdmt-anim-0 { animation: tdmt-fadeUp .9s .10s both; }
.tdmt-anim-1 { animation: tdmt-fadeUp .9s .25s both; }
.tdmt-anim-2 { animation: tdmt-fadeUp .9s .40s both; }
.tdmt-anim-3 { animation: tdmt-fadeUp .9s .55s both; }
.tdmt-anim-4 { animation: tdmt-fadeUp .9s .70s both; }

/* Scroll reveal */
.tdmt-reveal { opacity:0; transform:translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.tdmt-reveal.tdmt-in { opacity:1; transform:translateY(0); }
.tdmt-d1 { transition-delay:.08s; } .tdmt-d2 { transition-delay:.16s; }
.tdmt-d3 { transition-delay:.24s; } .tdmt-d4 { transition-delay:.32s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tdmt-reveal, .tdmt-anim-0,.tdmt-anim-1,.tdmt-anim-2,.tdmt-anim-3,.tdmt-anim-4 {
    animation: none !important; transition: none !important; opacity:1 !important; transform:none !important;
  }
  .tdmt-hero-moto { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════ */
.tdmt-topbar {
  height: var(--tdmt-topbar-h); background: var(--tdmt-text); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.02em; padding: 0 20px; position: relative; z-index: 1001;
}
.tdmt-topbar-msg { flex: 1; text-align: center; }
.tdmt-topbar-close {
  background: none; border: none; color: rgba(255,255,255,0.4); font-size: 18px;
  cursor: pointer; padding: 0 4px; line-height: 1; position: absolute; right: 14px;
  transition: color .2s;
}
.tdmt-topbar-close:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
.tdmt-nav {
  position: sticky; top: 0; z-index: 1000; height: var(--tdmt-nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: rgba(0,0,0,0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .5s, border-color .5s;
}
.tdmt-nav.tdmt-nav-light {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(0,0,0,0.1);
}
/* Logo (imagen real) */
.tdmt-nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.tdmt-nav-logo-img {
  height: 34px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  /* Forzar visibilidad sobre fondos oscuros y claros */
  filter: brightness(1);
  transition: opacity .2s;
}
.tdmt-nav-logo:hover .tdmt-nav-logo-img { opacity: 0.85; }
/* Compatibilidad con la clase antigua (no se usa pero no rompe nada) */
.tdmt-nav-cross { display: none; }
.tdmt-nav-brand, .tdmt-nav-subbrand { display: none; }
/* Links */
.tdmt-nav-links { display: flex; gap: 22px; }
.tdmt-nav-link {
  font-size: 12px; color: rgba(255,255,255,0.7); text-decoration: none;
  cursor: pointer; transition: color .2s; padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.tdmt-nav.tdmt-nav-light .tdmt-nav-link { color: var(--tdmt-text-muted); }
.tdmt-nav-link:hover, .tdmt-nav-link.tdmt-active { color: #fff; border-bottom-color: var(--tdmt-red); }
.tdmt-nav.tdmt-nav-light .tdmt-nav-link:hover { color: var(--tdmt-text); }
/* Actions */
.tdmt-nav-actions { display: flex; align-items: center; gap: 14px; }
.tdmt-nav-phone {
  font-size: 11px; color: rgba(255,255,255,0.55); text-decoration: none;
  display: flex; align-items: center; gap: 5px; transition: color .2s;
}
.tdmt-nav.tdmt-nav-light .tdmt-nav-phone { color: var(--tdmt-text-muted); }
.tdmt-nav-phone:hover { color: #fff; }
.tdmt-nav.tdmt-nav-light .tdmt-nav-phone:hover { color: var(--tdmt-text); }
.tdmt-nav-cart, .tdmt-nav-account {
  color: rgba(255,255,255,0.7); text-decoration: none; display: flex; align-items: center;
  position: relative; transition: color .2s;
}
.tdmt-nav.tdmt-nav-light .tdmt-nav-cart,
.tdmt-nav.tdmt-nav-light .tdmt-nav-account { color: var(--tdmt-text-muted); }
.tdmt-nav-cart:hover, .tdmt-nav-account:hover { color: #fff; }
.tdmt-nav.tdmt-nav-light .tdmt-nav-cart:hover { color: var(--tdmt-text); }
.tdmt-cart-badge {
  position: absolute; top: -7px; right: -9px; background: var(--tdmt-red); color: #fff;
  font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tdmt-nav-cta {
  font-size: 12px; font-weight: 600; color: #fff; background: var(--tdmt-red);
  padding: 7px 16px; border-radius: var(--tdmt-radius-pill); border: none;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .1s;
}
.tdmt-nav-cta:hover { background: var(--tdmt-red-dark); color: #fff; }
.tdmt-nav-cta:active { transform: scale(.97); }
/* Hamburger */
.tdmt-hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px; width: 28px;
}
.tdmt-hamburger span {
  display: block; height: 1.5px; background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: all .3s;
}
.tdmt-nav.tdmt-nav-light .tdmt-hamburger span { background: var(--tdmt-text-muted); }
.tdmt-hamburger.tdmt-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tdmt-hamburger.tdmt-open span:nth-child(2) { opacity: 0; }
.tdmt-hamburger.tdmt-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.tdmt-mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 60px 32px; opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.tdmt-mobile-menu.tdmt-open { opacity: 1; pointer-events: auto; }
.tdmt-mobile-link {
  font-size: clamp(28px,6vw,48px); font-weight: 700; color: rgba(255,255,255,0.85);
  text-decoration: none; letter-spacing: -0.025em; margin-bottom: 20px;
  transition: color .2s;
}
.tdmt-mobile-link:hover { color: var(--tdmt-red); }
.tdmt-mobile-cta {
  margin-top: 28px; font-size: 17px; font-weight: 600; color: #fff;
  background: var(--tdmt-red); padding: 14px 32px; border-radius: var(--tdmt-radius-pill);
  text-decoration: none;
}
.tdmt-mobile-phone { margin-top: 20px; }
.tdmt-mobile-phone a { font-size: 15px; color: rgba(255,255,255,0.4); text-decoration: none; }

/* ──────────────────────────────────────────────────────────
   NAV — WooCommerce pages (light mode always)
   ────────────────────────────────────────────────────────── */
body.tdmt-woo .tdmt-nav {
  background: rgba(255,255,255,0.94) !important;
  border-bottom: 1px solid rgba(0,0,0,0.10) !important;
  border-bottom-color: rgba(0,0,0,0.10) !important;
}
/* .tdmt-nav-brand y .tdmt-nav-subbrand ya no se usan (reemplazados por imagen) */
body.tdmt-woo .tdmt-nav-link     { color: var(--tdmt-text-muted) !important; }
body.tdmt-woo .tdmt-nav-link:hover,
body.tdmt-woo .tdmt-nav-link.tdmt-active { color: var(--tdmt-text) !important; }
body.tdmt-woo .tdmt-nav-cart,
body.tdmt-woo .tdmt-nav-account  { color: var(--tdmt-text-muted) !important; }
body.tdmt-woo .tdmt-nav-cart:hover,
body.tdmt-woo .tdmt-nav-account:hover { color: var(--tdmt-text) !important; }
body.tdmt-woo .tdmt-nav-phone    { color: var(--tdmt-text-muted) !important; }
body.tdmt-woo .tdmt-nav-phone:hover { color: var(--tdmt-text) !important; }
body.tdmt-woo .tdmt-hamburger span { background: var(--tdmt-text-muted) !important; }

/* ══════════════════════════════════════════════════════════
   HERO — Scroll-Scrub Cinematic · Video driven by scroll
   ══════════════════════════════════════════════════════════ */

/* ── Outer shell — tall for scroll travel ───────────────── */
.tdmt-hero {
  position: relative;
  height: 500vh;         /* scroll travel: video plays across this */
  background: #030303;
  overflow-x: hidden;    /* evita scroll horizontal en móvil */
}

/* ── Sticky viewport — stays pinned while user scrolls ──── */
.tdmt-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;        /* safe viewport height en iOS */
  min-height: min(680px, 100svh); /* no supera el alto real del viewport */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* contenido anclado abajo */
  transform: translateZ(0);  /* crea capa GPU — fix iOS Safari overflow:hidden+sticky */
  isolation: isolate;
}

/* ── Vídeo / Fallback ────────────────────────────────────── */
.tdmt-hero-vid-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Elemento de vídeo (tanto <video> como <iframe>) */
.tdmt-hero-vid-el {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* Siempre cubre el contenedor (formato 16:9) */
  width: 177.8vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  object-fit: cover;
  border: none;
}

/* ── Barra de progreso de scroll (línea roja inferior) ───── */
.tdmt-hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
}
.tdmt-hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tdmt-red);
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--tdmt-red);
}

/* ── Fallback CSS animado (sin vídeo) ───────────────────── */
.tdmt-hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #060606 0%, #0d0000 55%, #0a0000 100%);
  overflow: hidden;
}
.tdmt-hero-fallback-road {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(215,0,21,0.04) 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0px, transparent 60px,
      rgba(255,255,255,0.016) 60px, rgba(255,255,255,0.016) 62px
    );
  animation: tdmt-road 3s linear infinite;
}
@keyframes tdmt-road {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}
.tdmt-hero-fallback-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 70%, rgba(215,0,21,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 20% at 50% 85%, rgba(215,0,21,0.22) 0%, transparent 60%);
  animation: tdmt-glow-pulse 4s ease-in-out infinite alternate;
}
@keyframes tdmt-glow-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
/* Streaks de velocidad */
.tdmt-hero-fallback-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,80,40,0.3), transparent);
  animation: tdmt-streak 3s ease-in-out infinite;
}
.tdmt-streak-1 { top: 42%; width: 60%; left: -10%; animation-delay: 0s; }
.tdmt-streak-2 { top: 55%; width: 40%; left: 30%; animation-delay: 1s; }
.tdmt-streak-3 { top: 48%; width: 80%; left: -30%; animation-delay: 1.8s; }
@keyframes tdmt-streak {
  from { transform: translateX(0);    opacity: 0; }
  40%  { opacity: 1; }
  to   { transform: translateX(140%); opacity: 0; }
}
/* SVG de moto centrado */
.tdmt-hero-fallback-moto {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  opacity: 0.85;
  filter: drop-shadow(0 24px 64px rgba(215,0,21,0.32));
  animation: tdmt-float 5s ease-in-out infinite;
}

/* ── Capas de overlay ────────────────────────────────────── */
.tdmt-hero-gradient {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* oscuro arriba para leer la nav */
    linear-gradient(180deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.15) 30%, transparent 55%),
    /* viñeta lateral izquierda para texto */
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 42%, transparent 72%),
    /* base oscura abajo para stats */
    linear-gradient(0deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.50) 28%, transparent 58%);
}
/* Grano de película (premium feel) */
.tdmt-hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
/* Línea decorativa roja (se reemplaza por la barra de progreso en scroll-scrub) */
.tdmt-hero-redline { display: none; }

/* ── Contenido interior ──────────────────────────────────── */
.tdmt-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px 76px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tdmt-hero-content { max-width: 720px; }

/* ── Eyebrow ─────────────────────────────────────────────── */
.tdmt-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
}
.tdmt-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tdmt-red);
  box-shadow: 0 0 8px var(--tdmt-red);
  animation: tdmt-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tdmt-dot-pulse {
  0%,100% { box-shadow: 0 0 6px var(--tdmt-red); }
  50%     { box-shadow: 0 0 14px var(--tdmt-red), 0 0 28px rgba(215,0,21,0.4); }
}

/* ── Título con clip-path reveal ─────────────────────────── */
.tdmt-hero-title {
  font-size: clamp(62px, 10vw, 114px);
  font-weight: 800;
  color: #fff;
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  font-style: normal;
}
/* Cada línea necesita overflow:hidden para que clip-path/translateY sea invisible */
.tdmt-clip-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.08;
}
.tdmt-clip-line {
  display: block;
  font-style: normal;
  transform: translateY(106%);   /* empieza tapado por el padre */
  opacity: 0;
  will-change: transform, opacity;
}
.tdmt-clip-d1 { /* delay para la 2ª línea — controlado por JS/clase */ }
.tdmt-title-dot { color: var(--tdmt-red); }

/* ── Subtexto ────────────────────────────────────────────── */
.tdmt-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.60);
  max-width: 460px;
  line-height: 1.65;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(16px);
}

/* ── Botones ─────────────────────────────────────────────── */
.tdmt-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}
/* Añade icono de flecha al botón primario */
.tdmt-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Stats bar ───────────────────────────────────────────── */
.tdmt-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0;
  transform: translateY(16px);
}
.tdmt-hstat { display: flex; flex-direction: column; gap: 4px; }
.tdmt-hstat-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.tdmt-hstat-num {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.tdmt-hstat-suf {
  font-size: 20px;
  font-weight: 700;
  color: var(--tdmt-red);
  letter-spacing: -0.02em;
}
.tdmt-hstat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Elementos con fade genérico ─────────────────────────── */
.tdmt-fade-el {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

/* ── ANIMACIONES — se activan añadiendo .tdmt-hero-ready ─── */
.tdmt-hero-ready .tdmt-clip-line {
  animation: tdmt-slide-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.tdmt-hero-ready .tdmt-clip-d1 {
  animation-delay: 0.14s;
}
.tdmt-hero-ready .tdmt-fade-d0 { animation: tdmt-fade-up 0.7s 0.05s ease forwards; }
.tdmt-hero-ready .tdmt-fade-d1 { animation: tdmt-fade-up 0.7s 0.22s ease forwards; }
.tdmt-hero-ready .tdmt-fade-d2 { animation: tdmt-fade-up 0.7s 0.50s ease forwards; }
.tdmt-hero-ready .tdmt-fade-d3 { animation: tdmt-fade-up 0.7s 0.70s ease forwards; }
.tdmt-hero-ready .tdmt-fade-d4 { animation: tdmt-fade-up 0.7s 0.88s ease forwards; }
.tdmt-hero-ready .tdmt-fade-d5 { animation: tdmt-fade-up 0.7s 1.10s ease forwards; }
/* El eyebrow usa la clase fade */
.tdmt-hero-ready .tdmt-hero-eyebrow { animation: tdmt-fade-up 0.7s 0.05s ease forwards; }

@keyframes tdmt-slide-up {
  from { transform: translateY(106%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes tdmt-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll cue (ratón animado) ──────────────────────────── */
.tdmt-scroll-cue {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.32);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tdmt-scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.tdmt-scroll-wheel {
  width: 2.5px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: tdmt-wheel 1.8s ease-in-out infinite;
}
@keyframes tdmt-wheel {
  0%,100% { transform: translateY(0);   opacity: 1; }
  50%     { transform: translateY(7px); opacity: 0.3; }
}

/* ── Dirección inferior ──────────────────────────────────── */
.tdmt-hero-address {
  position: absolute;
  bottom: 28px; left: 48px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tdmt-hero-address a {
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  transition: color 0.2s;
}
.tdmt-hero-address a:hover { color: var(--tdmt-red); }
.tdmt-addr-sep { opacity: 0.4; }

/* ── Responsive ──────────────────────────────────────────── */
/* En móvil reducimos el scroll travel para no cansar al usuario */

/* ── Tablet (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
  .tdmt-hero-inner { padding: 0 36px 68px; }
}

/* ── Tablet pequeña / móvil grande (≤ 900px) ───────────── */
@media (max-width: 900px) {
  .tdmt-hero { height: 350vh; }
  .tdmt-hero-sticky { min-height: min(580px, 100svh); }
  .tdmt-hero-inner { padding: 0 24px 60px; }
  .tdmt-hero-title { font-size: clamp(40px, 9vw, 80px); }
  .tdmt-hero-sub   { font-size: 15px; max-width: 100%; }
  .tdmt-hero-stats { gap: 24px; margin-top: 36px; }
  .tdmt-hstat-num  { font-size: 28px; }
  .tdmt-hstat-suf  { font-size: 18px; }
  .tdmt-scroll-cue { right: 24px; }
  .tdmt-hero-address { display: none; }
}

/* ── Móvil (≤ 600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  .tdmt-hero { height: 260vh; }
  .tdmt-hero-sticky { min-height: min(520px, 100svh); }
  .tdmt-hero-inner { padding: 0 20px 56px; }
  /* clamp sin valor mínimo mayor que el espacio disponible:
     a 375px → 14vw = 52px; a 320px → 14vw = 44px (≥ 38px mín.) */
  .tdmt-hero-title { font-size: clamp(38px, 13vw, 60px); }
  .tdmt-hero-sub   { font-size: 14px; max-width: 100%; }
  .tdmt-hero-actions { flex-wrap: wrap; gap: 10px; }
  .tdmt-hero-stats {
    gap: 16px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2 columnas en móvil */
  }
  .tdmt-hstat-num  { font-size: 24px; }
  .tdmt-hstat-suf  { font-size: 14px; }
  .tdmt-hstat-lbl  { font-size: 10px; }
  .tdmt-scroll-cue { display: none; }
}

/* ── Móvil muy pequeño (≤ 390px — iPhone SE, Galaxy A) ─── */
@media (max-width: 390px) {
  .tdmt-hero { height: 240vh; }
  .tdmt-hero-sticky { min-height: min(480px, 100svh); }
  .tdmt-hero-inner { padding: 0 16px 48px; }
  .tdmt-hero-title { font-size: clamp(32px, 12vw, 48px); }
  .tdmt-hero-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .tdmt-hero-sub   { font-size: 13px; margin-bottom: 24px; }
  .tdmt-hero-stats { gap: 12px; margin-top: 20px; }
  .tdmt-hstat-num  { font-size: 22px; }
}

/* ── Landscape en móvil (altura ≤ 500px) ───────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .tdmt-hero { height: 180vh; }
  .tdmt-hero-sticky {
    height: 100svh;
    min-height: unset;     /* deja que el viewport mande */
  }
  .tdmt-hero-inner { padding: 0 24px 32px; }
  .tdmt-hero-title { font-size: clamp(28px, 6vh, 52px); }
  .tdmt-hero-sub   { display: none; }  /* oculta el subtítulo en landscape */
  .tdmt-hero-stats { display: none; }  /* oculta stats; solo título + botón */
  .tdmt-hero-eyebrow { margin-bottom: 10px; }
  .tdmt-scroll-cue { display: none; }
}

/* ── prefers-reduced-motion: sin scroll scrub ─────────── */
@media (prefers-reduced-motion: reduce) {
  .tdmt-hero { height: 100vh; height: 100svh; }
  .tdmt-hero-sticky { position: relative; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.tdmt-btn-primary {
  display: inline-block; background: var(--tdmt-red); color: #fff;
  padding: 14px 30px; border-radius: var(--tdmt-radius-pill);
  font-size: 17px; font-weight: 400; text-decoration: none; border: none;
  cursor: pointer; transition: background .18s, transform .1s; font-family: var(--tdmt-font);
}
.tdmt-btn-primary:hover { background: var(--tdmt-red-dark); color: #fff; }
.tdmt-btn-primary:active { transform: scale(.98); }
.tdmt-btn-outline-white {
  display: inline-block; color: #fff; background: transparent;
  padding: 14px 30px; border-radius: var(--tdmt-radius-pill);
  border: 1px solid rgba(255,255,255,0.3); font-size: 17px;
  text-decoration: none; cursor: pointer; transition: background .18s; font-family: var(--tdmt-font);
}
.tdmt-btn-outline-white:hover { background: rgba(255,255,255,0.09); color: #fff; }
.tdmt-btn-white-red {
  display: inline-block; background: #fff; color: var(--tdmt-red);
  padding: 14px 32px; border-radius: var(--tdmt-radius-pill);
  font-size: 17px; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: background .18s, transform .1s; font-family: var(--tdmt-font);
}
.tdmt-btn-white-red:hover { background: rgba(255,255,255,0.92); color: var(--tdmt-red); }

/* ══════════════════════════════════════════════════════════
   HIGHLIGHTS
   ══════════════════════════════════════════════════════════ */
.tdmt-highlights { background: var(--tdmt-bg); padding: 100px 24px; text-align: center; }
.tdmt-hl-heading { font-size: clamp(28px,5vw,48px); font-weight: 700; letter-spacing: -0.02em; color: var(--tdmt-text); }
.tdmt-hl-link {
  font-size: 17px; color: var(--tdmt-red); text-decoration: none; display: inline-block;
  margin: 6px 0 52px; cursor: pointer;
}
.tdmt-hl-link::after { content: ' ›'; }
.tdmt-hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 940px; margin: 0 auto; }
.tdmt-hl-card {
  border-radius: 20px; overflow: hidden; padding: 40px 36px 32px; text-align: left;
  cursor: pointer; transition: transform .35s ease;
}
.tdmt-hl-card:hover { transform: scale(1.015); }
.tdmt-hl-dark { background: #1d1d1f; }
.tdmt-hl-white { background: #fff; }
.tdmt-hl-tag { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.tdmt-hl-dark .tdmt-hl-tag { color: rgba(255,255,255,0.48); }
.tdmt-hl-white .tdmt-hl-tag { color: var(--tdmt-text-muted); }
.tdmt-hl-card-title { font-size: clamp(20px,2.2vw,26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.tdmt-hl-dark .tdmt-hl-card-title { color: #fff; }
.tdmt-hl-white .tdmt-hl-card-title { color: var(--tdmt-text); }
.tdmt-hl-card-body { font-size: 14px; line-height: 1.5; }
.tdmt-hl-dark .tdmt-hl-card-body { color: rgba(255,255,255,0.5); }
.tdmt-hl-white .tdmt-hl-card-body { color: var(--tdmt-text-muted); }
.tdmt-hl-visual { margin-top: 24px; display: flex; align-items: center; justify-content: center; min-height: 110px; }

/* ══════════════════════════════════════════════════════════
   DARK SECTIONS (Engineering / Performance)
   ══════════════════════════════════════════════════════════ */
.tdmt-dark-section { background: var(--tdmt-black); padding: 100px 24px; text-align: center; }
.tdmt-section-label { display: block; font-size: 17px; font-weight: 600; color: var(--tdmt-red); margin-bottom: 8px; }
.tdmt-section-title { font-size: clamp(34px,6vw,56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--tdmt-text); margin-bottom: 18px; }
.tdmt-section-title.tdmt-wh { color: #fff; }
.tdmt-section-body { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 560px; margin: 0 auto 64px; }
.tdmt-eng-visual { max-width: 700px; margin: 0 auto; filter: drop-shadow(0 24px 56px rgba(215,0,21,0.18)); }
.tdmt-toggle-btn {
  margin-top: 32px; font-size: 17px; color: #fff;
  background: rgba(255,255,255,0.08); padding: 12px 26px; border-radius: var(--tdmt-radius-pill);
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: background .2s;
  font-family: var(--tdmt-font);
}
.tdmt-toggle-btn:hover { background: rgba(255,255,255,0.14); }
.tdmt-exploded-grid {
  background: #141414; border-radius: 16px; padding: 28px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center;
}
.tdmt-exploded-item { padding: 16px; background: #1a1a1a; border-radius: 10px; border: 1px solid #222; }
.tdmt-exploded-label { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.03em; margin-top: 8px; }

/* Performance */
.tdmt-perf-grid { display: flex; justify-content: center; gap: 80px; margin-top: 60px; flex-wrap: wrap; }
.tdmt-perf-item { text-align: center; }
.tdmt-perf-num { font-size: 72px; font-weight: 700; color: var(--tdmt-red); letter-spacing: -0.04em; display: block; line-height: 1; }
.tdmt-perf-lbl { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   TALLER CTA
   ══════════════════════════════════════════════════════════ */
.tdmt-taller-section { background: var(--tdmt-red); padding: 88px 24px; text-align: center; }
.tdmt-taller-eyebrow { display: block; font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.tdmt-taller-title { font-size: clamp(42px,8vw,76px); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 18px; }
.tdmt-taller-sub { font-size: 19px; color: rgba(255,255,255,0.72); max-width: 500px; margin: 0 auto 36px; line-height: 1.5; }
.tdmt-taller-phone { display: block; margin-top: 18px; font-size: 15px; color: rgba(255,255,255,0.55); }
.tdmt-taller-phone strong { color: #fff; }
.tdmt-service-pills { margin-top: 44px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tdmt-service-pill { background: rgba(255,255,255,0.15); color: #fff; padding: 8px 18px; border-radius: var(--tdmt-radius-pill); font-size: 14px; border: 1px solid rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════════════════
   MARCAS
   ══════════════════════════════════════════════════════════ */
.tdmt-marcas-section { background: #fff; padding: 56px 24px; text-align: center; border-top: 1px solid rgba(0,0,0,0.07); border-bottom: 1px solid rgba(0,0,0,0.07); }
.tdmt-marcas-lbl { font-size: 14px; color: var(--tdmt-text-muted); margin-bottom: 28px; }
.tdmt-marcas-row { display: flex; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.tdmt-marca-item {
  padding: 14px 22px; font-size: 17px; font-weight: 700; color: #c8c8cc;
  text-decoration: none; cursor: pointer; transition: color .2s; letter-spacing: -0.01em;
  display: inline-block;
}
.tdmt-marca-item:hover { color: var(--tdmt-text); }

/* ══════════════════════════════════════════════════════════
   FINDER (HOME CATALOG)
   ══════════════════════════════════════════════════════════ */
.tdmt-finder { background: var(--tdmt-bg); padding: 80px 24px; text-align: center; }
.tdmt-finder-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 940px; margin: 44px auto 0; }
.tdmt-finder-card {
  background: #fff; border-radius: 20px; padding: 28px 22px 24px; text-align: center;
  cursor: pointer; transition: transform .3s ease; border: 1px solid rgba(0,0,0,0.05);
}
.tdmt-finder-card:hover { transform: translateY(-5px); }
.tdmt-finder-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--tdmt-red); padding: 3px 12px; border-radius: var(--tdmt-radius-pill);
  margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
.tdmt-finder-img { margin-bottom: 16px; display: flex; align-items: center; justify-content: center; height: 90px; }
.tdmt-finder-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.tdmt-finder-name { font-size: 21px; font-weight: 700; color: var(--tdmt-text); margin-bottom: 4px; letter-spacing: -0.02em; }
.tdmt-finder-sub { font-size: 13px; color: var(--tdmt-text-muted); margin-bottom: 12px; }
.tdmt-finder-price { font-size: 26px; font-weight: 700; color: var(--tdmt-text); letter-spacing: -0.03em; }
.tdmt-finder-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.tdmt-finder-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--tdmt-red); text-decoration: none; }
.tdmt-finder-link::after { content: ' ›'; }
.tdmt-finder-cta-box {
  margin-top: 48px; padding: 32px; background: #fff; border-radius: 20px;
  max-width: 940px; margin-left: auto; margin-right: auto; margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.tdmt-footer-marcas { background: var(--tdmt-text); padding: 22px 24px; text-align: center; }
.tdmt-footer-marcas-label { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.tdmt-footer-marcas-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.tdmt-footer-marca { padding: 6px 16px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.2); cursor: pointer; transition: color .2s; }
.tdmt-footer-marca:hover { color: rgba(255,255,255,0.6); }
.tdmt-footer-main { background: var(--tdmt-bg); padding: 48px 24px 32px; border-top: 1px solid rgba(0,0,0,0.08); }
.tdmt-footer-inner { max-width: 940px; margin: 0 auto; }
.tdmt-footer-legal { font-size: 12px; color: var(--tdmt-text-muted); padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 28px; }
.tdmt-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.tdmt-footer-logo { display: block; margin-bottom: 16px; }
/* Imagen del logo en footer */
.tdmt-footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}
/* Logo reducido en el bottom bar */
.tdmt-footer-logo-img--sm {
  height: 26px;
  max-width: 140px;
}
/* Compatibilidad — ocultar cruces SVG antiguas */
.tdmt-footer-cross, .tdmt-footer-cross-sm { display: none; }
.tdmt-footer-desc { font-size: 12px; color: var(--tdmt-text-muted); line-height: 1.7; max-width: 220px; margin-bottom: 16px; }
.tdmt-footer-social { display: flex; gap: 10px; }
.tdmt-social-link { color: var(--tdmt-text-muted); transition: color .2s; text-decoration: none; }
.tdmt-social-link:hover { color: var(--tdmt-red); }
.tdmt-footer-col-title { font-size: 12px; font-weight: 600; color: var(--tdmt-text); margin-bottom: 12px; }
.tdmt-footer-link { display: block; font-size: 12px; color: var(--tdmt-text-muted); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.tdmt-footer-link:hover { color: var(--tdmt-text); text-decoration: underline; }
.tdmt-footer-hours { margin-top: 8px; font-size: 12px; color: var(--tdmt-text-muted); }
.tdmt-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px; color: var(--tdmt-text-muted);
}
.tdmt-footer-bottom-logo { display: flex; align-items: center; gap: 6px; }
.tdmt-footer-bottom-links { display: flex; gap: 16px; }
.tdmt-footer-bottom-links a { color: var(--tdmt-text-muted); text-decoration: none; }
.tdmt-footer-bottom-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   WOOCOMMERCE WRAP
   ══════════════════════════════════════════════════════════ */
.tdmt-wc-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .tdmt-nav-links, .tdmt-nav-phone, .tdmt-nav-account { display: none; }
  .tdmt-hamburger { display: flex; }
  /* .tdmt-hero-title manejado en el bloque de héroe */
  .tdmt-hl-grid { grid-template-columns: 1fr; }
  .tdmt-finder-grid { grid-template-columns: 1fr 1fr; }
  .tdmt-finder-cta-box { flex-direction: column; gap: 16px; text-align: left; }
  .tdmt-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tdmt-perf-grid { gap: 40px; }
  .tdmt-perf-num { font-size: 54px; }
  .tdmt-exploded-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 600px) {
  /* .tdmt-hero padding y .tdmt-hero-title manejados en el bloque de héroe */
  .tdmt-finder-grid { grid-template-columns: 1fr; }
  .tdmt-footer-cols { grid-template-columns: 1fr; }
  .tdmt-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .tdmt-exploded-grid { grid-template-columns: repeat(2,1fr); }
  .tdmt-taller-title { font-size: 38px; }
  .tdmt-perf-grid { gap: 28px; }
}

/* ══════════════════════════════════════════════════════════
   BAJAJ FINDER SECTION — Mac OS Finder style, scroll-pinned
   ══════════════════════════════════════════════════════════ */

/* ── Pin wrapper: 220 vh so the sticky window "dwell" 1.2× viewport ── */
.tdmt-finder-pin-wrap {
  height: 220vh;
  background: #050505;
  position: relative;
}

/* ── Sticky inner: glues the window to the viewport ── */
.tdmt-finder-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 20px;
  overflow: hidden;
}

/* ── Heading above the window ── */
.tdmt-finder-heading {
  text-align: center;
}
.tdmt-finder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--tdmt-red, #D70015);
  display: block;
  margin-bottom: 10px;
}
.tdmt-finder-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.tdmt-finder-title em {
  font-style: normal;
  color: var(--tdmt-red, #D70015);
}

/* ── Mac OS window chrome ── */
.tdmt-os-win {
  width: 100%;
  max-width: 860px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.70), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Title bar */
.tdmt-os-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  user-select: none;
}
.tdmt-os-dots { display: flex; gap: 7px; align-items: center; }
.tdmt-os-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}
.tdmt-os-dot.r { background: #ff5f57; }
.tdmt-os-dot.y { background: #febc2e; }
.tdmt-os-dot.g { background: #28c840; }
.tdmt-os-wintitle {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7);
  letter-spacing: -0.01em;
}
.tdmt-os-wintime {
  font-size: 12px; color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}

/* Breadcrumb bar */
.tdmt-os-breadbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #242426;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.tdmt-os-bc { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .15s; }
.tdmt-os-bc:hover { color: #fff; }
.tdmt-os-bc--active { color: rgba(255,255,255,0.75); }
.tdmt-os-bc-sep { color: rgba(255,255,255,0.2); }
.tdmt-os-bc-count { margin-left: auto; color: rgba(255,255,255,0.3); font-size: 11px; }

/* Finder body: list + preview */
.tdmt-os-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 340px;
}

/* Left model list */
.tdmt-os-list {
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  background: #1c1c1e;
}
.tdmt-os-list::-webkit-scrollbar { width: 4px; }
.tdmt-os-list::-webkit-scrollbar-track { background: transparent; }
.tdmt-os-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.tdmt-os-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
  width: 100%;
}
.tdmt-os-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.tdmt-os-item--active {
  background: #D70015 !important;
  color: #fff !important;
}
.tdmt-os-item--active .tdmt-os-item-ico { color: rgba(255,255,255,0.8); }
.tdmt-os-item-ico { flex-shrink: 0; color: rgba(255,255,255,0.3); }
.tdmt-os-item-name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdmt-os-item-cc { font-size: 10px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.tdmt-os-item--active .tdmt-os-item-cc { color: rgba(255,255,255,0.6); }

/* Right preview */
.tdmt-os-preview {
  position: relative;
  background: #141414;
  overflow: hidden;
}
.tdmt-os-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.tdmt-os-slide--active { opacity: 1; pointer-events: auto; }

.tdmt-os-slide-img {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdmt-os-slide-img img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
}
.tdmt-os-slide-info { flex: 1; min-width: 0; }
.tdmt-os-slide-brand {
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: #D70015; margin-bottom: 6px;
}
.tdmt-os-slide-name {
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 8px;
}
.tdmt-os-slide-meta { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.tdmt-os-slide-price {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.tdmt-os-slide-cta {
  display: inline-flex; align-items: center;
  background: #D70015; color: #fff;
  padding: 10px 20px; border-radius: 980px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.tdmt-os-slide-cta:hover { background: #A8000F; }

/* Footer CTA row */
.tdmt-finder-footer-cta {
  display: flex; align-items: center; gap: 20px; justify-content: center;
}
.tdmt-finder-all-link {
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color .15s;
}
.tdmt-finder-all-link:hover { color: rgba(255,255,255,0.7); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .tdmt-finder-pin-wrap { height: auto; }
  .tdmt-finder-pin-inner { position: static; height: auto; min-height: auto; padding: 48px 16px; }
  .tdmt-os-body { grid-template-columns: 1fr; height: auto; }
  .tdmt-os-list { height: 160px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .tdmt-os-slide { position: static; opacity: 1; pointer-events: auto; padding: 16px; }
  .tdmt-os-slide:not(.tdmt-os-slide--active) { display: none; }
  .tdmt-os-slide-img { flex: 0 0 140px; }
  .tdmt-os-slide-img img { max-height: 110px; }
}

/* ══════════════════════════════════════════════════════════
   SHOP — Finder-style sidebar layout
   (archive-product.php en templates/woocommerce/)
   ══════════════════════════════════════════════════════════ */

/* ── Variables de tienda (modo oscuro) ── */
.tdmt-woo, body.post-type-archive-product, body.single-product, body.woocommerce-page {
  background: #080808 !important;
  color: #f5f5f7 !important;
  -webkit-font-smoothing: antialiased;
}
/* tokens locales */
:root {
  --sh-red:     #D70015;
  --sh-red-dk:  #A8000F;
  --sh-glow:    rgba(215,0,21,0.18);
  --sh-bg:      #080808;
  --sh-bg2:     #111113;
  --sh-card:    rgba(255,255,255,0.038);
  --sh-text:    #f5f5f7;
  --sh-mid:     rgba(255,255,255,0.70);
  --sh-low:     rgba(255,255,255,0.38);
  --sh-bdr:     rgba(255,255,255,0.09);
  --sh-bdr2:    rgba(255,255,255,0.16);
  --sh-r:       14px;
  --sh-rsm:     8px;
  --sh-pill:    980px;
  --sh-font:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --sh-sbw:     260px;
  --sh-nav:     48px;
}
[data-theme="light"] {
  --sh-bg:   #f0f0f2;
  --sh-bg2:  #ffffff;
  --sh-card: rgba(0,0,0,0.03);
  --sh-text: #1d1d1f;
  --sh-mid:  rgba(0,0,0,0.70);
  --sh-low:  rgba(0,0,0,0.45);
  --sh-bdr:  rgba(0,0,0,0.09);
  --sh-bdr2: rgba(0,0,0,0.16);
  --sh-glow: rgba(215,0,21,0.10);
}

/* ── Breadcrumb strip ── */
.tdmt-shop-bread {
  background: var(--sh-bg2);
  border-bottom: 1px solid var(--sh-bdr);
}
.tdmt-shop-bread-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 8px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tdmt-shop-bread-crumb,
.tdmt-shop-bread .woocommerce-breadcrumb {
  font-size: 12px; color: var(--sh-low); margin: 0; padding: 0;
}
.tdmt-shop-bread .woocommerce-breadcrumb a { color: var(--sh-low); text-decoration: none; }
.tdmt-shop-bread .woocommerce-breadcrumb a:hover { color: var(--sh-red); }
.tdmt-shop-bread-count {
  font-size: 11px; font-weight: 600; color: var(--sh-low);
  background: rgba(255,255,255,0.06); border: 1px solid var(--sh-bdr);
  border-radius: var(--sh-pill); padding: 2px 10px; white-space: nowrap;
}
[data-theme="light"] .tdmt-shop-bread-count { background: rgba(0,0,0,0.05); }

/* ── Layout ── */
.tdmt-shop-layout {
  max-width: 1400px; margin: 0 auto;
  padding: 24px 28px 100px;
  display: grid;
  grid-template-columns: var(--sh-sbw) 1fr;
  gap: 28px; align-items: start;
}

/* ── Sidebar ── */
.tdmt-shop-sb {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  position: sticky; top: calc(var(--sh-nav) + 12px);
  max-height: calc(100vh - var(--sh-nav) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.tdmt-shop-sb::-webkit-scrollbar { width: 4px; }
.tdmt-shop-sb::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
[data-theme="light"] .tdmt-shop-sb { background: #fff; border-color: rgba(0,0,0,0.12); box-shadow: 0 20px 60px rgba(0,0,0,0.10); }

/* Mac OS title bar */
.tdmt-shop-sb-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08);
}
[data-theme="light"] .tdmt-shop-sb-bar { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.08); }
.tdmt-shop-sb-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.tdmt-shop-sb-dot--r { background: #FF5F57; }
.tdmt-shop-sb-dot--y { background: #FFBD2E; }
.tdmt-shop-sb-dot--g { background: #28C840; }
.tdmt-shop-sb-title {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  color: var(--sh-low); letter-spacing: -0.01em; margin-left: -23px;
}
.tdmt-shop-sb-reset {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; color: var(--sh-low);
  text-decoration: none; transition: all .15s;
}
.tdmt-shop-sb-reset:hover { color: var(--sh-red); background: var(--sh-glow); }

/* Search */
.tdmt-shop-search { padding: 12px 12px 0; }
.tdmt-shop-search-inner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 7px 10px; transition: border-color .15s;
}
[data-theme="light"] .tdmt-shop-search-inner { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.14); }
.tdmt-shop-search-inner:focus-within { border-color: var(--sh-red); }
.tdmt-shop-search-inner svg { color: var(--sh-low); flex-shrink: 0; }
.tdmt-shop-search-input {
  flex: 1; border: none; background: transparent; font-size: 12px;
  color: var(--sh-text); font-family: var(--sh-font); outline: none; min-width: 0;
}
.tdmt-shop-search-input::placeholder { color: var(--sh-low); }

/* Sections */
.tdmt-shop-sb-sec {
  padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
[data-theme="light"] .tdmt-shop-sb-sec { border-bottom-color: rgba(0,0,0,0.07); }
.tdmt-shop-sb-sec--last { border-bottom: none; }

.tdmt-shop-sb-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 10px; font-weight: 700; color: var(--sh-low);
  text-transform: uppercase; letter-spacing: 0.09em;
}
.tdmt-shop-sb-label svg { flex-shrink: 0; }

/* Pills */
.tdmt-shop-sb-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.tdmt-shop-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: var(--sh-pill);
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
  font-size: 11.5px; font-weight: 500; color: var(--sh-mid);
  text-decoration: none; cursor: pointer; transition: all .15s; white-space: nowrap;
}
[data-theme="light"] .tdmt-shop-pill { border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.03); color: rgba(0,0,0,0.65); }
.tdmt-shop-pill:hover { border-color: var(--sh-red); color: var(--sh-red); background: var(--sh-glow); text-decoration: none; }
.tdmt-shop-pill--on { background: var(--sh-red) !important; color: #fff !important; border-color: var(--sh-red) !important; font-weight: 700 !important; }
.tdmt-shop-pill-n { font-size: 10px; opacity: 0.65; font-weight: 400; }

/* Price range */
.tdmt-shop-price-val { font-size: 10px; font-weight: 400; color: var(--sh-low); text-transform: none; letter-spacing: 0; margin-left: auto; }
.tdmt-shop-ranges { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.tdmt-shop-range { width: 100%; accent-color: var(--sh-red); cursor: pointer; }
.tdmt-shop-apply {
  width: 100%; padding: 8px; background: var(--sh-red); color: #fff;
  border: none; border-radius: var(--sh-rsm); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s; font-family: var(--sh-font); letter-spacing: -0.01em;
}
.tdmt-shop-apply:hover { background: var(--sh-red-dk); color: #fff; }

/* Trust */
.tdmt-shop-trust {
  padding: 12px 12px 14px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 8px;
}
[data-theme="light"] .tdmt-shop-trust { border-top-color: rgba(0,0,0,0.07); }
.tdmt-shop-trust-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--sh-low); }

/* ── Main ── */
.tdmt-shop-main { min-width: 0; }

/* Mobile filter button */
.tdmt-shop-mob-btn {
  display: none; align-items: center; gap: 7px; padding: 8px 16px;
  background: var(--sh-card); border: 1px solid var(--sh-bdr);
  border-radius: var(--sh-rsm); font-size: 13px; font-weight: 600;
  color: var(--sh-text); cursor: pointer; font-family: var(--sh-font); margin-bottom: 14px; position: relative;
}
.tdmt-shop-mob-dot {
  width: 7px; height: 7px; background: var(--sh-red); border-radius: 50%;
  position: absolute; top: 6px; right: 10px;
}

/* Topbar */
.tdmt-shop-topbar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--sh-bdr);
  border-radius: var(--sh-rsm); padding: 9px 14px; backdrop-filter: blur(8px);
}
.tdmt-shop-topbar-count,
.tdmt-shop-topbar-count .woocommerce-result-count { font-size: 12px; color: var(--sh-low); margin: 0; padding: 0; }
.tdmt-shop-topbar-right { display: flex; align-items: center; gap: 10px; }
.tdmt-shop-sort { display: flex; align-items: center; gap: 6px; }
.tdmt-shop-sort-lbl { font-size: 11px; color: var(--sh-low); white-space: nowrap; }
.woocommerce-ordering { margin: 0 !important; float: none !important; }
.woocommerce-ordering select {
  border: 1px solid var(--sh-bdr2); border-radius: var(--sh-rsm);
  padding: 5px 28px 5px 10px; font-size: 12px; color: var(--sh-text);
  font-family: var(--sh-font); cursor: pointer; outline: none; transition: border-color .15s;
  background: rgba(255,255,255,0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E") no-repeat right 9px center;
  -webkit-appearance: none; appearance: none;
}
.woocommerce-ordering select:focus { border-color: var(--sh-red); }
[data-theme="light"] .woocommerce-ordering select {
  background-color: rgba(0,0,0,0.04); color: #1d1d1f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(0,0,0,0.4)'/%3E%3C/svg%3E");
}

/* View buttons */
.tdmt-shop-views { display: flex; gap: 2px; }
.tdmt-shop-vbtn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--sh-bdr); border-radius: var(--sh-rsm);
  background: rgba(255,255,255,0.04); color: var(--sh-low); cursor: pointer; transition: all .15s;
}
.tdmt-shop-vbtn:hover { border-color: var(--sh-red); color: var(--sh-red); }
.tdmt-shop-vbtn--on { background: var(--sh-red) !important; color: #fff !important; border-color: var(--sh-red) !important; }

/* hide WC default controls */
.tdmt-shop-main .woocommerce-result-count,
.tdmt-shop-main .woocommerce-ordering { display: none !important; }

/* ── Product grid ── */
ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important; list-style: none !important;
  margin: 0 !important; padding: 0 !important; float: none !important;
}
ul.products.tdm-list-view { grid-template-columns: 1fr !important; }
ul.products.tdm-list-view li.product a.woocommerce-LoopProduct-link { flex-direction: row !important; }
ul.products.tdm-list-view li.product img.attachment-woocommerce_thumbnail { width: 200px !important; height: 155px !important; flex-shrink: 0 !important; }

/* ── Product card ── */
ul.products li.product,
.woocommerce ul.products li.product {
  background: #141416 !important; border-radius: var(--sh-r) !important;
  border: 1px solid rgba(255,255,255,0.09) !important; overflow: hidden !important;
  position: relative !important; cursor: pointer !important;
  transition: box-shadow .28s, transform .28s, border-color .28s !important;
  display: flex !important; flex-direction: column !important;
  margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important;
}
[data-theme="light"] ul.products li.product,
[data-theme="light"] .woocommerce ul.products li.product { background: #ffffff !important; border-color: rgba(0,0,0,0.09) !important; }
ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(215,0,21,0.15) !important;
  transform: translateY(-3px) !important; border-color: rgba(215,0,21,0.35) !important;
}
ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a { text-decoration: none; color: var(--sh-text); display: flex; flex-direction: column; flex: 1; }
ul.products li.product img.attachment-woocommerce_thumbnail {
  width: 100% !important; height: 200px !important; object-fit: cover !important;
  display: block !important; background: rgba(255,255,255,0.03) !important; transition: transform .38s !important;
}
ul.products li.product:hover img.attachment-woocommerce_thumbnail { transform: scale(1.04) !important; }

/* sale badge */
span.onsale {
  position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; z-index: 5 !important;
  background: var(--sh-red) !important; color: #fff !important; font-size: 10px !important; font-weight: 800 !important;
  padding: 3px 9px !important; border-radius: var(--sh-pill) !important; letter-spacing: 0.06em !important;
  text-transform: uppercase !important; min-height: auto !important; min-width: auto !important; width: auto !important; margin: 0 !important; line-height: 1.5 !important;
}

/* title */
ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title {
  color: var(--sh-text) !important; font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: -0.02em !important; line-height: 1.35 !important;
  padding: 12px 14px 0 !important; margin: 0 0 4px !important; font-family: var(--sh-font) !important;
}

/* price */
ul.products li.product .price, ul.products li.product span.price {
  color: var(--sh-text) !important; font-size: 16px !important; font-weight: 800 !important;
  letter-spacing: -0.03em !important; display: block !important; padding: 0 14px 4px !important; margin: 0 !important;
}
ul.products li.product .price del { font-size: 12px !important; color: var(--sh-low) !important; font-weight: 400 !important; margin-right: 4px !important; }
ul.products li.product .price ins { text-decoration: none !important; color: var(--sh-red) !important; }

/* star rating */
.woocommerce ul.products li.product .star-rating,
.star-rating { color: #f0a500 !important; font-size: 11px !important; padding: 0 14px 4px !important; }

/* ATC button */
ul.products li.product .button,
.woocommerce ul.products li.product .button {
  display: inline-flex !important; align-items: center !important;
  margin: 8px 14px 14px !important; padding: 8px 16px !important;
  background: var(--sh-red) !important; color: #fff !important; border: none !important;
  border-radius: var(--sh-pill) !important; font-size: 12px !important; font-weight: 700 !important;
  cursor: pointer !important; transition: background .16s, transform .12s !important;
  white-space: nowrap !important; font-family: var(--sh-font) !important;
  letter-spacing: -0.01em !important; text-decoration: none !important; align-self: flex-start !important;
}
ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:hover { background: var(--sh-red-dk) !important; transform: scale(1.03) !important; color: #fff !important; }

/* empty */
.tdmt-shop-empty { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tdmt-shop-empty p { font-size: 15px; color: var(--sh-low); margin: 0; }

/* pagination */
.tdmt-shop-pagination { margin-top: 48px; display: flex; justify-content: center; }
.woocommerce-pagination ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--sh-rsm); border: 1px solid var(--sh-bdr);
  font-size: 13px; color: var(--sh-mid); text-decoration: none; transition: all .15s; background: var(--sh-card);
}
.woocommerce-pagination ul li a:hover { border-color: var(--sh-red); color: var(--sh-red); background: var(--sh-glow); }
.woocommerce-pagination ul li span.current { background: var(--sh-red); color: #fff; border-color: var(--sh-red); }

/* global WC */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: rgba(255,255,255,0.04) !important; border-top-color: var(--sh-red) !important;
  color: var(--sh-mid) !important; padding: 14px 18px !important; font-size: 14px !important;
  border-radius: var(--sh-rsm) !important;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--sh-red) !important; color: #fff !important; border: none !important;
  border-radius: var(--sh-pill) !important; font-weight: 700 !important; letter-spacing: -0.01em !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--sh-red-dk) !important; color: #fff !important; }

/* hide site footer on shop pages */
body.woocommerce .site-footer,
body.woocommerce-page .site-footer,
body.post-type-archive-product .site-footer,
body.single-product .site-footer { display: none !important; }

/* wrap de NavHooks en WC — neutralizar */
.tdmt-wc-wrap { display: contents; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  ul.products, .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 960px) {
  .tdmt-shop-layout { grid-template-columns: 1fr; padding: 14px 14px 80px; }
  .tdmt-shop-sb {
    position: fixed; inset: 0 auto 0 0; width: 280px; border-radius: 0;
    z-index: 9000; transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: 100vh; top: 0; box-shadow: 6px 0 40px rgba(0,0,0,0.8);
  }
  .tdmt-shop-sb.tdmt-shop-sb--open { transform: translateX(0); }
  .tdmt-shop-mob-btn { display: flex; }
}
@media (max-width: 640px) {
  ul.products, .woocommerce ul.products { grid-template-columns: 1fr !important; }
}
