/* TDM Core — tdm-global.css
   Design System: Apple-style, base blanca, acento rojo #D70015
   ================================================================ */

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

/* ── Reset for TDM elements ── */
.tdm-hero-section *,
.tdm-explode-section *,
.tdm-taller-cta *,
.tdm-product-card *,
.tdm-featured-card *,
.tdm-marcas-section *,
.tdm-stats-row *,
.tdm-cita-form-wrap * {
  box-sizing: border-box;
  font-family: var(--tdm-font);
}

/* ── Reveal animation ── */
.tdm-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.tdm-reveal.tdm-in { opacity: 1; transform: translateY(0); }
@keyframes tdmFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes tdmFadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════════════
   HERO SECTION
   ══════════════════════════════════ */
.tdm-hero-section {
  min-height: 100vh;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 24px 48px;
}
.tdm-hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tdm-hero-glow {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(215,0,21,0.2) 0%, transparent 70%);
}
.tdm-hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 48px;
  position: relative; z-index: 1;
}
.tdm-hero-content { flex: 1; }
.tdm-hero-visual { flex-shrink: 0; }
.tdm-hero-eyebrow {
  font-size: 15px; font-weight: 600; color: var(--tdm-red);
  margin-bottom: 14px; display: block; animation: tdmFadeUp 0.9s 0.1s both;
}
.tdm-hero-title {
  font-size: clamp(52px, 9vw, 86px); font-weight: 700; color: #fff;
  line-height: 0.97; letter-spacing: -0.03em; margin-bottom: 22px;
  animation: tdmFadeUp 0.9s 0.25s both;
}
.tdm-hero-sub {
  font-size: 19px; font-weight: 300; color: rgba(255,255,255,0.62);
  max-width: 480px; line-height: 1.5; margin-bottom: 32px;
  animation: tdmFadeUp 0.9s 0.4s both;
}
.tdm-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: tdmFadeUp 0.9s 0.55s both;
}
.tdm-hero-moto { animation: tdmFloat 5s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(215,0,21,0.25)); }
.tdm-hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.tdm-btn-primary {
  display: inline-block; background: var(--tdm-red); color: #fff;
  padding: 13px 26px; border-radius: var(--tdm-radius-pill);
  font-size: 17px; font-weight: 400; text-decoration: none; border: none;
  cursor: pointer; transition: background 0.18s, transform 0.1s;
}
.tdm-btn-primary:hover { background: var(--tdm-red-dark); color: #fff; }
.tdm-btn-primary:active { transform: scale(0.98); }

.tdm-btn-outline-white {
  display: inline-block; color: #fff; background: transparent;
  padding: 13px 26px; border-radius: var(--tdm-radius-pill);
  border: 1px solid rgba(255,255,255,0.3); font-size: 17px;
  text-decoration: none; cursor: pointer; transition: background 0.18s;
}
.tdm-btn-outline-white:hover { background: rgba(255,255,255,0.09); color: #fff; }

.tdm-btn-red {
  display: inline-block; background: var(--tdm-red); color: #fff;
  padding: 13px 26px; border-radius: var(--tdm-radius-pill);
  font-size: 15px; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: background 0.18s;
}
.tdm-btn-red:hover { background: var(--tdm-red-dark); color: #fff; }

.tdm-btn-red-sm {
  display: inline-block; background: var(--tdm-red); color: #fff;
  padding: 8px 16px; border-radius: var(--tdm-radius-pill);
  font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
}

.tdm-btn-white-red {
  display: inline-block; background: #fff; color: var(--tdm-red);
  padding: 14px 32px; border-radius: var(--tdm-radius-pill);
  font-size: 17px; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: background 0.18s, transform 0.1s;
}
.tdm-btn-white-red:hover { background: rgba(255,255,255,0.92); color: var(--tdm-red); }
.tdm-btn-white-red:active { transform: scale(0.97); }

.tdm-btn-ghost { color: var(--tdm-red); font-size: 14px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; text-decoration: none; }
.tdm-btn-ghost:hover { text-decoration: underline; }

/* ══════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════ */
.tdm-label { display: block; font-size: 13px; font-weight: 500; color: var(--tdm-text-mid); margin-bottom: 6px; }
.tdm-input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--tdm-text);
  background: var(--tdm-white); border: 1px solid var(--tdm-border-strong);
  border-radius: var(--tdm-radius-sm); font-family: var(--tdm-font);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.tdm-input:focus { border-color: var(--tdm-red); box-shadow: 0 0 0 3px rgba(215,0,21,0.08); }
.tdm-field { margin-bottom: 16px; }
.tdm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ══════════════════════════════════
   EXPLODE SECTION
   ══════════════════════════════════ */
.tdm-explode-section { background: #111; position: relative; }
.tdm-explode-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tdm-explode-inner {
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center;
}
.tdm-label-sm { display: block; font-size: 13px; font-weight: 600; color: var(--tdm-red); margin-bottom: 10px; letter-spacing: 0.04em; }
.tdm-explode-title { font-size: clamp(32px,5vw,52px); font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 14px; }
.tdm-explode-body { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 24px; }
.tdm-explode-parts-list { margin-bottom: 24px; }
.tdm-part-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.tdm-part-item.tdm-part-active { color: rgba(255,255,255,0.85); }
.tdm-part-dot {
  width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2);
  flex-shrink: 0; transition: all 0.3s;
}
.tdm-part-item.tdm-part-active .tdm-part-dot { background: var(--tdm-red); border-color: var(--tdm-red); }
.tdm-explode-stack-info { display: flex; gap: 8px; align-items: center; }
.tdm-stack-item { background: rgba(255,255,255,0.06); color: var(--tdm-red); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.06em; }
.tdm-stack-sep { color: rgba(255,255,255,0.2); }
.tdm-explode-canvas-wrap {
  position: relative; background: rgba(0,0,0,0.4); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06); overflow: hidden;
}
.tdm-explode-progress { height: 2px; background: rgba(255,255,255,0.08); }
.tdm-explode-progress-fill { height: 100%; background: var(--tdm-red); width: 0%; transition: width 0.08s; border-radius: 0 1px 1px 0; }
#tdm-moto-canvas { display: block; width: 100%; height: auto; }
.tdm-explode-labels { position: absolute; inset: 0; pointer-events: none; }
.tdm-exp-label {
  position: absolute; color: var(--tdm-red); font-size: 9px;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--tdm-font); white-space: nowrap;
}

/* ══════════════════════════════════
   PRODUCT CARDS (shortcode)
   ══════════════════════════════════ */
.tdm-product-grid {
  display: grid; gap: 16px;
}
.tdm-cols-1 { grid-template-columns: 1fr; }
.tdm-cols-2 { grid-template-columns: repeat(2,1fr); }
.tdm-cols-3 { grid-template-columns: repeat(3,1fr); }
.tdm-cols-4 { grid-template-columns: repeat(4,1fr); }

.tdm-product-card {
  background: var(--tdm-white); border-radius: var(--tdm-radius);
  border: 0.5px solid var(--tdm-border); overflow: hidden; cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}
.tdm-product-card:hover { box-shadow: var(--tdm-shadow-hover); transform: translateY(-4px); }
.tdm-card-img {
  position: relative; background: var(--tdm-bg); height: 180px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tdm-card-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.tdm-card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.tdm-badge-red { background: var(--tdm-red); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tdm-card-body { padding: 16px; }
.tdm-card-brand { font-size: 11px; font-weight: 700; color: var(--tdm-red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.tdm-card-name { font-size: 17px; font-weight: 700; color: var(--tdm-text); letter-spacing: -0.02em; margin-bottom: 4px; }
.tdm-card-spec { font-size: 12px; color: var(--tdm-text-muted); margin-bottom: 10px; }
.tdm-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 0.5px solid var(--tdm-border); }
.tdm-card-price { font-size: 19px; font-weight: 700; color: var(--tdm-text); letter-spacing: -0.03em; }
.tdm-card-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.tdm-price-old { font-size: 12px; color: var(--tdm-text-muted); text-decoration: line-through; display: block; }
.tdm-card-atc {
  background: var(--tdm-red); color: #fff; border: none; border-radius: var(--tdm-radius-pill);
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.18s; font-family: var(--tdm-font);
}
.tdm-card-atc:hover { background: var(--tdm-red-dark); }
.tdm-placeholder-moto { max-width: 88%; height: auto; }
.tdm-no-products { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--tdm-text-muted); }

/* ── Featured cards ── */
.tdm-featured-wrap { width: 100%; }
.tdm-featured-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
.tdm-featured-card { background: var(--tdm-white); border-radius: var(--tdm-radius); border: 0.5px solid var(--tdm-border); overflow: hidden; text-decoration: none; display: block; transition: box-shadow 0.3s, transform 0.3s; }
.tdm-featured-card:hover { box-shadow: var(--tdm-shadow-hover); transform: translateY(-5px); }
.tdm-featured-img { background: var(--tdm-bg); height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tdm-featured-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.tdm-featured-body { padding: 18px; }
.tdm-featured-name { font-size: 19px; font-weight: 700; color: var(--tdm-text); letter-spacing: -0.02em; margin-bottom: 4px; }
.tdm-featured-price { font-size: 22px; font-weight: 700; color: var(--tdm-text); margin: 8px 0 12px; letter-spacing: -0.03em; }
.tdm-featured-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* ── Mini grid ── */
.tdm-mini-grid { display: grid; gap: 12px; }
.tdm-mini-card { background: var(--tdm-white); border-radius: 10px; border: 0.5px solid var(--tdm-border); overflow: hidden; text-decoration: none; display: block; transition: box-shadow 0.25s; }
.tdm-mini-card:hover { box-shadow: var(--tdm-shadow); }
.tdm-mini-img { background: var(--tdm-bg); height: 100px; display: flex; align-items: center; justify-content: center; }
.tdm-mini-img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.tdm-mini-title { font-size: 13px; font-weight: 600; color: var(--tdm-text); padding: 8px 12px 2px; }
.tdm-mini-price { font-size: 14px; font-weight: 700; color: var(--tdm-red); padding: 0 12px 12px; }
.tdm-mini-price .woocommerce-Price-amount { font-size: inherit; }

/* ══════════════════════════════════
   MARCAS ROW
   ══════════════════════════════════ */
.tdm-marcas-section { padding: 40px 24px; background: var(--tdm-white); text-align: center; }
.tdm-marcas-label { font-size: 13px; color: var(--tdm-text-muted); margin-bottom: 24px; }
.tdm-marcas-row { display: flex; flex-wrap: wrap; justify-content: center; max-width: 900px; margin: 0 auto; border-top: 0.5px solid var(--tdm-border); border-left: 0.5px solid var(--tdm-border); }
.tdm-marca-item {
  padding: 14px 20px; font-size: 15px; font-weight: 700; color: #c8c8cc;
  cursor: pointer; transition: color 0.2s; letter-spacing: -0.01em;
  border-right: 0.5px solid var(--tdm-border); border-bottom: 0.5px solid var(--tdm-border);
}
.tdm-marca-item:hover { color: var(--tdm-text); }

/* ══════════════════════════════════
   TALLER CTA
   ══════════════════════════════════ */
.tdm-taller-cta { background: var(--tdm-red); padding: 88px 24px; text-align: center; }
.tdm-taller-eyebrow { display: block; font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.tdm-taller-title { font-size: clamp(38px,7vw,68px); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 16px; }
.tdm-taller-sub { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 32px; line-height: 1.5; }
.tdm-taller-phone { display: block; margin-top: 16px; font-size: 15px; color: rgba(255,255,255,0.55); }
.tdm-taller-phone strong { color: #fff; }
.tdm-service-pills { margin-top: 40px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tdm-service-pill { background: rgba(255,255,255,0.15); color: #fff; padding: 8px 16px; border-radius: var(--tdm-radius-pill); font-size: 13px; border: 1px solid rgba(255,255,255,0.2); }

/* ══════════════════════════════════
   STATS
   ══════════════════════════════════ */
.tdm-stats-row { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 64px 24px; background: #000; }
.tdm-stat { text-align: center; }
.tdm-stat-num { font-size: 64px; font-weight: 700; color: var(--tdm-red); letter-spacing: -0.04em; display: block; line-height: 1; }
.tdm-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 8px; display: block; }

/* ══════════════════════════════════
   CITA FORM
   ══════════════════════════════════ */
.tdm-cita-form-wrap { background: var(--tdm-bg); padding: 64px 24px; }
.tdm-cita-form-inner { max-width: 980px; margin: 0 auto; background: var(--tdm-white); border-radius: 20px; border: 0.5px solid var(--tdm-border); overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; }
.tdm-cita-form-info { background: #1d1d1f; padding: 48px 36px; color: #fff; }
.tdm-cita-form-title { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.1; }
.tdm-cita-form-sub { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.tdm-check-list { list-style: none; padding: 0; }
.tdm-check-list li { padding: 5px 0; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.tdm-cita-address { font-size: 13px; color: rgba(255,255,255,0.38); }
.tdm-cita-form { padding: 40px 36px; }

/* ══════════════════════════════════
   WOOCOMMERCE OVERRIDES
   ══════════════════════════════════ */
.tdm-woocommerce .woocommerce-breadcrumb { font-size: 12px; color: var(--tdm-text-muted); }
.tdm-sale-flash { background: var(--tdm-red); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.tdm-shop-banner { background: var(--tdm-red); color: #fff; text-align: center; padding: 10px 20px; font-size: 13px; border-radius: var(--tdm-radius-sm); margin-bottom: 24px; }
.tdm-reserve-btn {
  display: block; margin-top: 8px; text-align: center; width: 100%;
  background: var(--tdm-bg); color: var(--tdm-text); border: 1px solid var(--tdm-border-strong);
  border-radius: var(--tdm-radius-pill); padding: 9px 0; font-size: 12px; font-weight: 500;
  text-decoration: none; transition: background 0.18s;
}
.tdm-reserve-btn:hover { background: #e8e8ea; color: var(--tdm-text); }
.tdm-trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.tdm-trust-item { text-align: center; padding: 12px 8px; background: var(--tdm-bg); border-radius: var(--tdm-radius-sm); border: 0.5px solid var(--tdm-border); }
.tdm-trust-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.tdm-trust-lbl { font-size: 10px; color: var(--tdm-text-muted); line-height: 1.3; }
.tdm-finance-teaser { background: var(--tdm-red-light); border-radius: var(--tdm-radius-sm); padding: 10px 14px; font-size: 14px; color: var(--tdm-text-mid); margin: 12px 0; border-left: 3px solid var(--tdm-red); }
.tdm-finance-link { color: var(--tdm-red); font-weight: 600; }
.tdm-cart-notice { background: var(--tdm-bg); border: 1px solid var(--tdm-border); border-radius: var(--tdm-radius-sm); padding: 12px 16px; font-size: 14px; color: var(--tdm-text-mid); margin-bottom: 20px; text-align: center; }
.tdm-security-badge { text-align: center; padding: 12px; font-size: 13px; color: var(--tdm-text-muted); }
.tdm-specs-table { width: 100%; border-collapse: collapse; }
.tdm-specs-table th { background: var(--tdm-bg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tdm-text-muted); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--tdm-border); }
.tdm-specs-table td { padding: 11px 14px; border-bottom: 0.5px solid var(--tdm-border); font-size: 14px; }
.tdm-finance-table { width: 100%; border-collapse: collapse; }
.tdm-finance-table th { background: var(--tdm-bg); padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--tdm-border); }
.tdm-finance-table td { padding: 12px 14px; border-bottom: 0.5px solid var(--tdm-border); font-size: 14px; }
.tdm-finance-table tr:hover td { background: var(--tdm-red-light); }
.tdm-finance-legal { font-size: 11px; color: var(--tdm-text-muted); margin-top: 12px; }
.tdm-garantia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.tdm-garantia-tab h4 { font-size: 16px; font-weight: 700; color: var(--tdm-text); margin-bottom: 10px; }
.tdm-shop-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tdm-shop-count { font-size: 14px; color: var(--tdm-text-muted); }
.tdm-shop-sort { border: 1px solid var(--tdm-border-strong); border-radius: var(--tdm-radius-sm); padding: 7px 28px 7px 10px; font-size: 13px; color: var(--tdm-text); font-family: var(--tdm-font); cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .tdm-hero-inner { flex-direction: column; }
  .tdm-hero-visual { display: none; }
  .tdm-hero-title { font-size: 48px; }
  .tdm-explode-inner { grid-template-columns: 1fr; }
  .tdm-explode-text { display: none; }
  .tdm-cols-3 { grid-template-columns: repeat(2,1fr); }
  .tdm-cols-4 { grid-template-columns: repeat(2,1fr); }
  .tdm-featured-grid { grid-template-columns: 1fr 1fr; }
  .tdm-cita-form-inner { grid-template-columns: 1fr; }
  .tdm-cita-form-info { display: none; }
  .tdm-stats-row { gap: 32px; }
  .tdm-stat-num { font-size: 44px; }
  .tdm-form-row { grid-template-columns: 1fr; }
  .tdm-garantia-grid { grid-template-columns: 1fr; }
}
