/*
Theme Name:   TechMilitar
Theme URI:    https://techmilitar.com
Description:  Tema standalone para TechMilitar — Blog de material militar, táctico y airsoft con marketing de afiliados Amazon. HUD Táctico v4. Tema independiente, no requiere tema padre.
Author:       TechMilitar
Author URI:   https://techmilitar.com
Version:      4.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  techmilitar
Tags:         military, tactical, affiliate, dark, blog
*/

/* =============================================
   VARIABLES — Sistema "HUD Táctico"
   ============================================= */
:root {
  --olive:        #7D8C52;
  --olive-dark:   #11150C;
  --olive-mid:    #1A2110;
  --olive-light:  #AAB87A;
  --khaki:        #8A916A;
  --sand:         #C9CDAB;
  --sand-light:   #E7E9D2;
  --accent:       #9AAC5F;
  --accent-h:     #AEBE72;
  --amazon:       #E8A23C;
  --amazon-h:     #F2B257;
  --text:         #E7E5D6;
  --text-m:       #9AA07F;
  --bg:           #0E120A;
  --bg-card:      #161B0D;
  --bg-panel:     #141A0C;
  --border:       #2A3219;
  --border-dark:  #222A16;
  --grid:         #1F2814;
  --font-d:       'Oswald', 'Barlow Condensed', sans-serif;
  --font-b:       'Barlow', system-ui, sans-serif;
  --font-m:       'Space Mono', ui-monospace, monospace;
  --r:            3px;
}

/* =============================================
   RESET BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #0E120A; }

/* Animaciones HUD */
@keyframes tmScan  { 0% { transform: translateY(-120%); } 100% { transform: translateY(120%); } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes tmFade  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   TOPBAR
   ============================================= */
#tm-topbar {
  background: var(--olive-dark);
  color: #8A9070;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
}
#tm-topbar a { color: var(--amazon); }
#tm-topbar a:hover { text-decoration: underline; }

/* =============================================
   HEADER
   ============================================= */
#tm-header {
  background: var(--olive-dark);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9999;
  min-height: 66px;
  transition: box-shadow 0.3s;
}
#tm-header.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,0.55); border-bottom-color: var(--accent); }

/* Logo */
.tm-logo { display: flex; align-items: center; gap: 0; }
.tm-logo-t { font-family: var(--font-d); font-weight: 700; font-size: 27px; color: #fff; letter-spacing: 0.14em; }
.tm-logo-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin: 0 4px 2px; display: inline-block; align-self: flex-end; }
.tm-logo-m { font-family: var(--font-d); font-weight: 700; font-size: 27px; color: var(--accent); letter-spacing: 0.14em; }

.tm-logo img.custom-logo,
#tm-header .custom-logo,
#tm-header .custom-logo-link img { max-height: 38px !important; width: auto !important; display: block; }
#tm-header .custom-logo-link { display: flex; align-items: center; height: 66px; }

/* Nav */
#tm-nav { display: flex; align-items: stretch; list-style: none; }
#tm-nav li a {
  color: #B8BEA6;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 24px 13px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
#tm-nav li a:hover,
#tm-nav li.current-menu-item > a { color: #fff; border-bottom-color: var(--accent); }
#tm-nav li.tm-cta a {
  background: var(--amazon);
  color: #1C1200 !important;
  font-weight: 600;
  padding: 9px 16px;
  margin: 14px 0 14px 14px;
  border-radius: var(--r);
  border-bottom: none !important;
  transition: background 0.2s, transform 0.15s;
}
#tm-nav li.tm-cta a:hover { background: var(--amazon-h); transform: translateY(-1px); }

/* Mobile */
#tm-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
#tm-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
#tm-mobile-nav {
  display: none;
  background: var(--olive-dark);
  border-bottom: 2px solid var(--accent);
  padding: 8px 20px 16px;
}
#tm-mobile-nav a {
  display: block; color: #C0C8B0; padding: 11px 0;
  font-family: var(--font-d); font-weight: 500; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06);
}
#tm-mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   CATEGORY STRIP
   ============================================= */
#tm-cats {
  background: var(--olive-mid);
  display: flex;
  overflow-x: auto;
  padding: 0 40px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-dark);
}
#tm-cats::-webkit-scrollbar { display: none; }
#tm-cats a {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  color: #9AA384;
  font-family: var(--font-d); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
#tm-cats a:hover { color: #fff; background: rgba(154,172,95,0.12); }
#tm-cats a .ci { font-size: 14px; }

/* =============================================
   HERO — HUD táctico
   ============================================= */
#tm-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 440px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 78% -10%, #1B2412 0%, var(--bg) 58%);
}
#tm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(120% 80% at 65% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 65% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.tm-hero-left {
  padding: 56px 48px 56px 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.tm-hero-right { position: relative; overflow: hidden; border-left: 1px solid var(--border); }
.tm-hero-right img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: brightness(0.7) saturate(0.85) contrast(1.05);
  transition: transform 8s ease;
}
.tm-hero-right:hover img { transform: scale(1.04); }
.tm-hero-right::before {
  content: ''; position: absolute; top: 0; left: 0; width: 140px; height: 100%;
  background: linear-gradient(to right, var(--bg), transparent); z-index: 1;
}
.tm-hero-right::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(154,172,95,0.10), transparent);
  animation: tmScan 5s linear infinite; z-index: 1; pointer-events: none;
}
.tm-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(154,172,95,0.10);
  border: 1px solid rgba(154,172,95,0.4);
  color: var(--olive-light);
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 2px;
  margin-bottom: 22px; width: fit-content;
}
.tm-hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 1.9s infinite;
}
.tm-hero-left h1 {
  font-family: var(--font-d); font-weight: 700; font-size: 68px; color: #F3F1E4;
  line-height: 0.94; letter-spacing: 0.01em; text-transform: uppercase;
  margin-bottom: 20px; position: relative; z-index: 2;
}
.tm-hero-left h1 em { color: var(--accent); font-style: normal; }
.tm-hero-sub {
  color: #B6BAA0; font-size: 16px; line-height: 1.65; max-width: 440px;
  margin-bottom: 30px; position: relative; z-index: 2;
}
.tm-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.tm-hero-stats {
  display: flex; gap: 34px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--border); position: relative; z-index: 2;
}
.tm-hs-num { font-family: var(--font-d); font-weight: 700; font-size: 34px; color: var(--olive-light); line-height: 1; }
.tm-hs-lbl { font-family: var(--font-m); font-size: 10px; color: var(--text-m); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* =============================================
   FEATURED STRIP
   ============================================= */
.tm-featured-strip {
  background: var(--olive-mid);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 40px;
  display: flex; align-items: center; overflow-x: auto;
  scrollbar-width: none;
}
.tm-featured-strip::-webkit-scrollbar { display: none; }
.tm-feat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-right: 1px solid rgba(255,255,255,0.05);
  color: inherit; flex-shrink: 0; transition: background 0.2s;
}
.tm-feat-item:hover { background: rgba(154,172,95,0.08); }
.tm-feat-thumb { width: 52px; height: 52px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.tm-feat-info { min-width: 0; }
.tm-feat-cat  { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); margin-bottom: 3px; }
.tm-feat-name { font-family: var(--font-d); font-weight: 600; font-size: 16px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tm-feat-price { font-size: 11px; color: var(--amazon); margin-top: 2px; font-weight: 600; }
.tm-feat-btn {
  flex-shrink: 0; background: var(--amazon); color: #1C1200;
  font-family: var(--font-d); font-weight: 600; font-size: 11px; padding: 7px 13px;
  border-radius: var(--r); letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; margin-left: 8px;
}
.tm-feat-btn:hover { background: var(--amazon-h); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-p {
  background: var(--accent); color: #0E120A;
  padding: 13px 26px; font-family: var(--font-d); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; border: none; cursor: pointer;
  border-radius: var(--r); display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-p:hover { background: var(--accent-h); transform: translateY(-2px); }
.btn-s {
  background: transparent; color: var(--sand-light);
  padding: 12px 24px; font-family: var(--font-d); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--border);
  cursor: pointer; border-radius: var(--r); display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-s:hover { border-color: var(--accent); background: rgba(154,172,95,0.06); }
.btn-amz {
  background: var(--amazon); color: #1C1200 !important;
  padding: 11px 20px; font-family: var(--font-d); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; border: none; cursor: pointer;
  border-radius: var(--r); display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-amz:hover { background: var(--amazon-h); transform: translateY(-1px); }
.btn-amz .al { font-weight: 700; letter-spacing: -0.01em; }

/* =============================================
   SECTION HELPERS
   ============================================= */
.tm-wrap { padding: 48px 40px; }
.tm-sec-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.tm-tag {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.tm-tag::before { content: '//'; color: var(--accent); font-weight: 700; }
.tm-title { font-family: var(--font-d); font-weight: 700; font-size: 36px; color: #F1EFE0; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; }
.tm-title span { color: var(--accent); }
.tm-more { font-family: var(--font-d); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive-light); }
.tm-more:hover { color: var(--accent); }

/* =============================================
   MAIN + SIDEBAR LAYOUT
   ============================================= */
.tm-layout {
  display: grid; grid-template-columns: 1fr 308px; gap: 32px;
  padding: 48px 40px; align-items: start;
}

/* =============================================
   RANKING CARDS
   ============================================= */
.rank-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-bottom: 16px; transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.rank-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.rank-hd {
  background: var(--olive-dark); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.rank-row { display: flex; align-items: center; gap: 14px; }
.rank-n { font-family: var(--font-d); font-weight: 700; font-size: 40px; line-height: 1; min-width: 42px; color: var(--olive-light); }
.rank-n.g { color: #F0C040; }
.rank-n.s { color: #C8D0D8; }
.rank-n.b { color: #D09050; }
.rank-thumb { width: 64px; height: 48px; border-radius: 3px; object-fit: cover; opacity: 0.92; flex-shrink: 0; border: 1px solid var(--border); }
.rank-meta h3 { font-family: var(--font-d); font-weight: 600; font-size: 21px; color: #fff; line-height: 1.12; }
.rank-meta p  { font-family: var(--font-m); font-size: 11px; color: var(--text-m); margin-top: 4px; }
.score-chip {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: var(--r); font-family: var(--font-d); font-weight: 700; font-size: 24px; line-height: 1; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.sc9 { background: #1A4A1A; color: #74DC74; }
.sc8 { background: #34491E; color: #A6CC5E; }
.sc7 { background: #5A3D10; color: #E0A840; }
.rank-body { padding: 18px 20px; display: flex; align-items: flex-start; gap: 20px; }
.rank-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-lbl { font-family: var(--font-m); font-size: 10px; color: var(--text-m); min-width: 85px; text-transform: uppercase; letter-spacing: 0.04em; }
.bar-track { flex: 1; height: 7px; background: var(--border-dark); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.bf-green  { background: #6FA84A; }
.bf-olive  { background: var(--olive); }
.bf-red    { background: var(--amazon); }
.bar-val { font-family: var(--font-m); font-size: 10px; color: var(--sand); min-width: 28px; text-align: right; font-weight: 700; }
.rank-cta { text-align: right; flex-shrink: 0; min-width: 120px; }
.rank-price { font-family: var(--font-d); font-weight: 700; font-size: 30px; color: var(--amazon); line-height: 1; }
.rank-price-note { font-family: var(--font-m); font-size: 10px; color: var(--text-m); margin-bottom: 12px; }

/* =============================================
   ARTICLE CARDS
   ============================================= */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.art-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.art-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 32px rgba(0,0,0,0.42); }
.art-card-img { height: 155px; position: relative; overflow: hidden; background: var(--olive-mid); }
.art-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.art-card:hover .art-card-img img { transform: scale(1.06); }
.art-card-img.no-img {
  background: var(--olive-mid);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(255,255,255,0.03) 14px, rgba(255,255,255,0.03) 28px);
}
.art-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, rgba(14,18,10,0.7), transparent);
}
.art-type {
  position: absolute; top: 9px; left: 9px; z-index: 1;
  font-family: var(--font-m); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; color: #0E120A;
}
.at-review  { background: var(--sand); }
.at-rank    { background: var(--accent); }
.at-guide   { background: var(--amazon); }
.art-card-body { padding: 15px 17px; flex: 1; display: flex; flex-direction: column; }
.art-cat { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--khaki); margin-bottom: 6px; }
.art-title { font-family: var(--font-d); font-weight: 600; font-size: 20px; color: #ECE9DB; line-height: 1.16; margin-bottom: 8px; }
.art-excerpt { font-size: 13px; color: var(--text-m); line-height: 1.6; flex: 1; }
.art-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.art-stars { color: var(--amazon); font-size: 12px; letter-spacing: 1px; }
.art-date  { font-family: var(--font-m); font-size: 10px; color: var(--text-m); }

/* =============================================
   SIDEBAR
   ============================================= */
.sw { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.sw-title { background: var(--olive-dark); color: #fff; font-family: var(--font-d); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; padding: 12px 16px; border-bottom: 1px solid var(--border); text-transform: uppercase; }
.sw-body  { padding: 14px 16px; }
.sw-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.sw-item:last-child { border-bottom: none; padding-bottom: 0; }
.sw-num  { font-family: var(--font-d); font-weight: 700; font-size: 26px; color: var(--accent); min-width: 28px; line-height: 1; }
.sw-info strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.sw-info span   { font-size: 11px; color: var(--text-m); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cat-pill { background: var(--olive-mid); color: #B8C0A2; font-family: var(--font-d); font-weight: 500; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding: 9px 10px; border-radius: 3px; text-align: center; border: 1px solid var(--border); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cat-pill:hover { background: rgba(154,172,95,0.14); color: #fff; border-color: var(--accent); }
.affiliate-box {
  background: var(--olive-dark); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 15px; margin-bottom: 20px; font-family: var(--font-m); font-size: 11px;
  color: var(--text-m); line-height: 1.65; text-align: center;
}
.affiliate-box strong { color: var(--amazon); }
.sw-body input[type="email"] {
  width: 100%; padding: 11px 12px; font-family: var(--font-b); font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-panel);
  color: var(--text); margin-bottom: 9px;
}
.sw-body input[type="email"]::placeholder { color: var(--text-m); }
.sw-body input[type="email"]:focus { outline: none; border-color: var(--accent); }

/* =============================================
   AMAZON BOX (shortcode / dentro de posts)
   ============================================= */
.amz-box {
  background: var(--bg-card); border: 1px solid var(--amazon); border-radius: var(--r);
  padding: 20px 24px; margin: 30px 0; display: flex; align-items: center; gap: 22px;
  position: relative;
}
.amz-box::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px;
  border-top: 2px solid var(--amazon); border-left: 2px solid var(--amazon);
}
.amz-box::after {
  content: ''; position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px;
  border-bottom: 2px solid var(--amazon); border-right: 2px solid var(--amazon);
}
.amz-box-img { width: 200px; height: 200px; object-fit: contain; flex-shrink: 0; border-radius: var(--r); background: #0E120A; padding: 8px; border: 1px solid var(--border); }
.amz-box-name  { font-family: var(--font-d); font-weight: 600; font-size: 24px; color: #F1EFE0; margin-bottom: 4px; }
.amz-box-price { font-family: var(--font-d); font-weight: 700; font-size: 32px; color: var(--amazon); margin-bottom: 12px; }
.amz-box-price small { font-family: var(--font-m); font-size: 11px; color: var(--text-m); display: block; font-weight: 400; }

/* =============================================
   SCORE BARS (shortcode)
   ============================================= */
.tm-score-section { margin: 28px 0; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); }
.tm-score-section h4 { font-family: var(--font-d); font-weight: 600; font-size: 20px; color: #F1EFE0; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.03em; }

/* =============================================
   QUIZ — Recomendador interactivo
   ============================================= */
#tm-quiz { background: linear-gradient(180deg, var(--bg-panel), var(--olive-mid)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 58px 40px; }
.tm-quiz-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.tm-quiz-inner > .tm-tag { justify-content: center; }
.tm-quiz-inner h2 { font-family: var(--font-d); font-weight: 700; font-size: 38px; color: #F3F1E4; text-transform: uppercase; margin-bottom: 8px; }
.tm-quiz-lead { font-size: 16px; color: var(--text-m); margin-bottom: 30px; }
.tm-quiz-box { border: 1px solid var(--border); background: var(--bg); padding: 32px 28px; text-align: left; }
.tm-quiz-prog { height: 3px; background: var(--border-dark); margin-bottom: 24px; }
.tm-quiz-prog > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.35s ease; }
.tm-quiz-step { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-m); margin-bottom: 14px; }
.tm-quiz-q { font-family: var(--font-d); font-weight: 600; font-size: 26px; color: #ECE9DB; margin-bottom: 22px; }
.tm-quiz-opts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tm-quiz-opt {
  font-family: var(--font-d); font-weight: 500; font-size: 16px; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); padding: 20px 14px;
  text-align: left; cursor: pointer; transition: all 0.15s; border-radius: var(--r);
}
.tm-quiz-opt:hover { border-color: var(--accent); background: rgba(154,172,95,0.08); color: #fff; }
.tm-quiz-result { text-align: center; animation: tmFade 0.4s ease both; }
.tm-quiz-result h3 { font-family: var(--font-d); font-weight: 700; font-size: 30px; color: #F3F1E4; margin-bottom: 8px; }
.tm-quiz-result p { font-size: 16px; color: var(--text-m); max-width: 520px; margin: 0 auto 24px; }
.tm-quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FILTRO / BUSCADOR
   ============================================= */
.tm-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tm-filter-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg-panel); padding: 9px 13px; min-width: 248px; border-radius: var(--r); }
.tm-filter-search span { color: var(--text-m); }
.tm-filter-search input { background: transparent; border: none; outline: none; color: var(--text); font-family: var(--font-b); font-size: 14px; width: 100%; }
.tm-filter-search input::placeholder { color: var(--text-m); }
.tm-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-chip {
  font-family: var(--font-d); font-weight: 500; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; padding: 8px 15px; border-radius: var(--r); transition: all 0.15s;
  background: transparent; color: #B9BDA3; border: 1px solid var(--border);
}
.tm-chip:hover { border-color: var(--accent); color: #fff; }
.tm-chip.active { background: var(--accent); color: #0E120A; border-color: var(--accent); }
.tm-no-results { text-align: center; padding: 38px; font-family: var(--font-m); font-size: 13px; color: var(--text-m); grid-column: 1 / -1; }

/* =============================================
   NEWSLETTER
   ============================================= */
#tm-newsletter {
  background: var(--olive-mid);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.015) 24px, rgba(255,255,255,0.015) 25px);
  padding: 48px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--border);
}
#tm-newsletter h2 { font-family: var(--font-d); font-weight: 700; font-size: 36px; color: #fff; letter-spacing: 0.02em; margin-bottom: 8px; text-transform: uppercase; }
#tm-newsletter p  { font-size: 14px; color: var(--text-m); max-width: 440px; }
.nl-form { display: flex; gap: 10px; }
.nl-form input {
  padding: 13px 18px; font-family: var(--font-b); font-size: 13px;
  background: var(--bg-panel); border: 1px solid var(--border); color: #fff;
  border-radius: var(--r); width: 270px;
}
.nl-form input::placeholder { color: var(--text-m); }
.nl-form input:focus { outline: none; border-color: var(--accent); }
.nl-note { font-family: var(--font-m); font-size: 11px; color: var(--text-m); margin-top: 9px; text-align: center; }

/* =============================================
   FOOTER
   ============================================= */
#tm-footer { background: var(--olive-dark); padding: 44px 40px 20px; border-top: 1px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand-desc { font-size: 12px; color: var(--text-m); line-height: 1.7; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-d); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-light); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-m); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.soc-btn { background: rgba(255,255,255,0.06); color: var(--text-m); font-family: var(--font-m); font-size: 11px; padding: 7px 14px; border-radius: var(--r); letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; }
.soc-btn:hover { background: rgba(154,172,95,0.15); color: var(--sand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border-dark); font-family: var(--font-m); font-size: 11px; color: var(--text-m); }
.footer-bottom a { color: var(--text-m); }
.footer-bottom a:hover { color: var(--sand); }

/* =============================================
   SINGLE POST
   ============================================= */
.single-wrap { display: grid; grid-template-columns: 1fr 308px; gap: 32px; padding: 48px 40px; align-items: start; }
.post-hd { margin-bottom: 28px; }
.post-cat-tag { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.post-cat-tag::before { content: '//'; color: var(--accent); font-weight: 700; }
.post-hd h1 { font-family: var(--font-d); font-weight: 700; font-size: 46px; color: #F3F1E4; line-height: 1.04; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.01em; }
.post-meta-row { display: flex; gap: 20px; font-family: var(--font-m); font-size: 11px; color: var(--text-m); text-transform: uppercase; letter-spacing: 0.05em; align-items: center; flex-wrap: wrap; }
.post-score-badge { background: #1A4A1A; color: #74DC74; font-family: var(--font-d); font-weight: 700; font-size: 18px; padding: 3px 10px; border-radius: 3px; }

/* Tipografía de contenido */
.post-content h2 { font-family: var(--font-d); font-weight: 600; font-size: 30px; color: #F1EFE0; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.01em; }
.post-content h3 { font-family: var(--font-d); font-weight: 600; font-size: 24px; color: var(--olive-light); margin: 26px 0 10px; }
.post-content p  { font-size: 16px; line-height: 1.85; color: #CFD3BF; margin-bottom: 20px; }
.post-content ul,
.post-content ol { padding-left: 22px; margin-bottom: 20px; }
.post-content li { font-size: 16px; line-height: 1.75; color: #CFD3BF; margin-bottom: 7px; }
.post-content li::marker { color: var(--accent); }
.post-content img { border-radius: var(--r); margin: 20px auto; }
.post-content blockquote {
  border-left: 3px solid var(--accent); margin: 28px 0; padding: 14px 22px;
  background: rgba(154,172,95,0.06); font-style: italic; color: var(--sand);
}
.post-content a { color: var(--amazon); text-decoration: underline; }
.post-content a:hover { color: var(--amazon-h); }
.post-content h2, .post-content h3 { scroll-margin-top: 90px; }
.post-content img { max-width: 100%; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.pros-box, .cons-box { border-radius: var(--r); padding: 16px 18px; }
.pros-box { background: rgba(111,168,74,0.10); border: 1px solid rgba(111,168,74,0.3); }
.cons-box { background: rgba(232,162,60,0.08); border: 1px solid rgba(232,162,60,0.3); }
.pros-box h4 { color: #8FC25A; font-family: var(--font-d); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.cons-box h4 { color: var(--amazon); font-family: var(--font-d); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.pros-box ul, .cons-box ul { padding-left: 20px; }
.pros-box li, .cons-box li { color: #CFD3BF; margin-bottom: 6px; }
.pros-box li::marker { color: #8FC25A; }
.cons-box li::marker { color: var(--amazon); }
.tm-star { color: var(--amazon); }

/* =============================================
   ARCHIVE / CATEGORY
   ============================================= */
.archive-hd {
  background: radial-gradient(120% 120% at 80% -20%, #1B2412, var(--olive-dark) 60%);
  padding: 40px; border-bottom: 1px solid var(--accent); position: relative; overflow: hidden;
}
.archive-hd::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px; opacity: 0.3;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 20%, transparent 75%);
}
.archive-hd > * { position: relative; z-index: 1; }
.archive-hd .tm-tag { margin-bottom: 8px; }
.archive-hd h1 { font-family: var(--font-d); font-weight: 700; font-size: 44px; color: #fff; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.archive-hd p { font-size: 14px; color: var(--text-m); margin-top: 10px; max-width: 560px; }

.tm-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.tm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r); font-family: var(--font-d); font-weight: 500; font-size: 14px; color: var(--text-m); transition: background 0.2s, color 0.2s; }
.tm-pagination .page-numbers.current,
.tm-pagination .page-numbers:hover { background: var(--accent); color: #0E120A; border-color: var(--accent); }

/* =============================================
   PAGE (páginas estáticas)
   ============================================= */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 52px 40px; }
.page-wrap h1 { font-family: var(--font-d); font-weight: 700; font-size: 46px; color: #F3F1E4; line-height: 1.04; margin-bottom: 28px; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.page-wrap .entry-content h2 { font-family: var(--font-d); font-size: 28px; color: var(--olive-light); margin: 30px 0 12px; }
.page-wrap .entry-content p { font-size: 16px; color: #CFD3BF; line-height: 1.85; margin-bottom: 18px; }
.page-wrap .entry-content ul { padding-left: 22px; margin-bottom: 18px; }
.page-wrap .entry-content li { font-size: 16px; color: #CFD3BF; margin-bottom: 6px; }
.page-wrap .entry-content li::marker { color: var(--accent); }
.page-wrap .entry-content a { color: var(--amazon); text-decoration: underline; }
.page-wrap .entry-content a:hover { color: var(--amazon-h); }

/* =============================================
   404
   ============================================= */
.error-404-wrap { text-align: center; padding: 96px 40px; }
.error-404-code { font-family: var(--font-d); font-weight: 700; font-size: 140px; color: var(--olive-mid); line-height: 1; letter-spacing: 0.05em; }
.error-404-wrap h1 { font-family: var(--font-d); font-weight: 700; font-size: 36px; color: #F3F1E4; text-transform: uppercase; margin-bottom: 14px; }
.error-404-wrap p { font-size: 16px; color: var(--text-m); margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* =============================================
   SEARCH
   ============================================= */
.search-hd { background: var(--olive-dark); padding: 32px 40px; border-bottom: 1px solid var(--border); }
.search-hd h1 { font-family: var(--font-d); font-weight: 700; font-size: 32px; color: #fff; text-transform: uppercase; }
.search-hd h1 span { color: var(--accent); }
.search-form-wrap { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.search-form-wrap input[type="search"] {
  flex: 1; padding: 12px 16px; background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-b); font-size: 14px; border-radius: var(--r);
}
.search-form-wrap input[type="search"]:focus { outline: none; border-color: var(--accent); }
.search-form-wrap button { padding: 12px 22px; }

/* =============================================
   WORDPRESS DEFAULT WIDGETS dentro de .sw
   El widget va directo dentro de .sw (sin sw-body).
   Añadimos padding y estilos a los elementos hijos.
   ============================================= */

/* Padding general para contenido de widget sin body wrapper */
.widget-area > ul,
.widget-area > .textwidget,
.widget-area > p,
.widget-area > form,
.widget-area > select,
.widget-area > .recentcomments {
    display: block;
    padding: 14px 16px;
    margin: 0;
}

/* Listas de widgets (Recent Posts, Archives, Categories…) */
.widget-area > ul {
    list-style: none;
    padding: 0;
}
.widget-area > ul li {
    padding: 9px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
}
.widget-area > ul li:last-child { border-bottom: none; }
.widget-area > ul li a {
    color: var(--text);
    display: block;
    transition: color 0.2s;
}
.widget-area > ul li a:hover { color: var(--accent); }

/* Recent Comments — tiene estructura propia */
.widget-area > ul.recentcomments li { padding: 10px 16px; color: var(--text-m); font-size: 12px; }
.widget-area > ul.recentcomments li a { color: var(--sand); display: inline; }
.widget-area > ul.recentcomments li a:hover { color: var(--accent); }

/* Archives dropdown */
.widget-area select {
    margin: 14px 16px;
    width: calc(100% - 32px);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--r);
    font-family: var(--font-b);
    font-size: 13px;
}
.widget-area select:focus { outline: none; border-color: var(--accent); }

/* Tag cloud */
.widget-area .tagcloud { padding: 12px 16px; display: block; }
.widget-area .tagcloud a {
    display: inline-block;
    background: var(--olive-mid);
    color: #B8C0A2;
    font-size: 11px !important;
    padding: 4px 9px;
    border-radius: 3px;
    border: 1px solid var(--border);
    margin: 3px 2px;
    transition: background 0.2s, color 0.2s;
}
.widget-area .tagcloud a:hover { background: rgba(154,172,95,0.14); color: #fff; border-color: var(--accent); }

/* Search widget */
.widget-area .search-form { padding: 14px 16px; display: flex; gap: 8px; }
.widget-area .search-field {
    flex: 1; padding: 9px 12px; background: var(--bg-panel);
    border: 1px solid var(--border); color: var(--text);
    font-family: var(--font-b); font-size: 13px; border-radius: var(--r);
}
.widget-area .search-field:focus { outline: none; border-color: var(--accent); }
.widget-area .search-submit { padding: 9px 16px; }

/* Text / HTML widget */
.widget-area .textwidget { padding: 14px 16px; font-size: 13px; color: var(--text-m); line-height: 1.65; }
.widget-area .textwidget a { color: var(--amazon); }
.skip-link { position: absolute; top: -100px; left: 8px; background: var(--accent); color: #0E120A; padding: 8px 16px; border-radius: 0 0 4px 4px; font-family: var(--font-d); font-weight: 600; font-size: 13px; z-index: 99999; transition: top 0.2s; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.bar-fill, .art-card, .rank-card { transform: translateZ(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  #tm-hero { grid-template-columns: 1fr; }
  .tm-hero-right { height: 320px; border-left: none; border-top: 1px solid var(--border); }
  .tm-layout { grid-template-columns: 1fr; padding: 32px 24px; }
  .single-wrap { grid-template-columns: 1fr; padding: 32px 24px; }
  .tm-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #tm-newsletter, .tm-wrap, #tm-quiz { padding-left: 24px; padding-right: 24px; }
  #tm-topbar, .tm-featured-strip { display: none; }
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .tm-hero-left { padding: 40px 24px; }
  .tm-hero-left h1 { font-size: 50px; }
  #tm-header { padding: 0 20px; }
  #tm-nav { display: none; }
  #tm-burger { display: flex; }
  .archive-hd { padding: 28px 20px; }
  .post-hd h1 { font-size: 34px; }
  .pros-cons { grid-template-columns: 1fr; }
  .tm-quiz-opts { grid-template-columns: 1fr; }
  .tm-filter { flex-direction: column; align-items: stretch; }
  .page-wrap { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input { width: 100%; }
  #tm-newsletter { flex-direction: column; align-items: flex-start; }
  .rank-body { flex-direction: column; }
  .rank-cta { text-align: left; }
  .amz-box { flex-direction: column; align-items: flex-start; }
  .amz-box-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  #tm-topbar, #tm-header, #tm-cats, #tm-newsletter, #tm-footer, #tm-quiz,
  .tm-sidebar, .tm-filter, .btn-amz, .btn-p { display: none !important; }
  .single-wrap, .tm-layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .post-content p, .post-content li { color: #000; }
}


/* =============================================
   BARRA DE COMPRA STICKY MÓVIL
   ============================================= */
#tm-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; align-items: center; gap: 11px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(20, 25, 15, 0.97);
  border-top: 1px solid var(--amazon);
  box-shadow: 0 -6px 22px rgba(0,0,0,0.45);
  transform: translateY(110%);
  transition: transform 0.26s cubic-bezier(.4,0,.2,1);
}
#tm-buybar.on { transform: translateY(0); }
#tm-buybar img {
  width: 44px; height: 44px; object-fit: contain; flex-shrink: 0;
  background: #0E120A; border: 1px solid var(--border);
  border-radius: var(--r); padding: 3px;
}
.tm-bb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tm-bb-name {
  font-family: var(--font-d); font-weight: 600; font-size: 14px; color: #F1EFE0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.tm-bb-sub {
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-m);
}
.tm-bb-btn {
  flex-shrink: 0; background: var(--amazon); color: #1C1200 !important;
  font-family: var(--font-d); font-weight: 700; font-size: 14px;
  letter-spacing: .03em; text-decoration: none;
  min-height: 48px; padding: 0 18px;
  display: inline-flex; align-items: center; border-radius: var(--r);
}
.tm-bb-btn:active { background: var(--amazon-h); }

@media (max-width: 1024px) {
  #tm-buybar { display: flex; }
  /* deja aire para que la barra no tape el final del artículo */
  body.single { padding-bottom: 72px; }
  /* objetivos táctiles reales: 48px mínimo */
  .btn-amz { min-height: 48px; padding: 13px 22px; font-size: 14px; }
  .tm-feat-btn { min-height: 40px; display: inline-flex; align-items: center; }
}
@media print { #tm-buybar { display: none !important; } }


/* =============================================
   TABLA COMPARATIVA DE FINALISTAS  [tm_versus]
   ============================================= */
.tm-versus {
  margin: 32px 0; border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; background: var(--bg-panel);
  container-type: inline-size;
}
.tm-versus-hd {
  font-family: var(--font-d); font-weight: 600; font-size: 17px;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 13px 18px; color: #F1EFE0;
  background: var(--olive); border-bottom: 1px solid var(--border);
}
.tm-vs-row {
  display: grid; grid-template-columns: 34px 76px 1fr auto;
  align-items: center; gap: 14px; padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.tm-vs-row:last-child { border-bottom: none; }
.tm-vs-win { background: rgba(232,162,60,0.07); box-shadow: inset 3px 0 0 var(--amazon); }
.tm-vs-pos {
  font-family: var(--font-d); font-weight: 700; font-size: 24px;
  color: var(--text-m); text-align: center; line-height: 1;
}
.tm-vs-win .tm-vs-pos { color: var(--amazon); }
.tm-vs-img {
  width: 76px; height: 76px; object-fit: contain;
  background: #0E120A; border: 1px solid var(--border);
  border-radius: var(--r); padding: 5px;
}
.tm-vs-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: break-word; }
.tm-vs-tag {
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amazon); font-weight: 700;
}
.tm-vs-name {
  font-family: var(--font-d); font-weight: 600; font-size: 17px;
  color: #F1EFE0; line-height: 1.25; text-wrap: pretty;
}
.tm-vs-score { font-size: 12.5px; color: var(--text-m); letter-spacing: .5px; }
.tm-vs-score strong { color: var(--sand); }
.tm-vs-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.tm-vs-price {
  font-family: var(--font-d); font-weight: 700; font-size: 24px;
  color: var(--amazon); line-height: 1;
}
.tm-vs-btn {
  background: var(--amazon); color: #1C1200 !important;
  font-family: var(--font-d); font-weight: 700; font-size: 13px;
  letter-spacing: .03em; text-decoration: none !important;
  min-height: 44px; padding: 0 17px; white-space: nowrap;
  display: inline-flex; align-items: center; border-radius: var(--r);
  transition: background .2s, transform .15s;
}
.tm-vs-btn:hover { background: var(--amazon-h); transform: translateY(-1px); }
.tm-versus-foot {
  font-family: var(--font-m); font-size: 10.5px; color: var(--text-m);
  padding: 10px 18px; margin: 0; border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Apilado por ANCHO DEL PROPIO BLOQUE, no del viewport: la columna de
   artículo con sidebar puede medir <620px aunque la ventana sea ancha. */
@container (max-width: 620px) {
  .tm-vs-row {
    grid-template-columns: 30px 60px 1fr;
    grid-template-areas: "pos img info" ".  cta cta";
    row-gap: 11px;
  }
  .tm-vs-pos  { grid-area: pos; font-size: 20px; }
  .tm-vs-img  { grid-area: img; width: 60px; height: 60px; }
  .tm-vs-info { grid-area: info; }
  .tm-vs-cta  {
    grid-area: cta; flex-direction: row; align-items: center;
    justify-content: space-between; width: 100%;
  }
  .tm-vs-name  { font-size: 15.5px; }
  .tm-vs-price { font-size: 21px; }
  .tm-vs-btn   { min-height: 48px; flex: 1; justify-content: center; margin-left: 12px; }
}

/* Reserva para navegadores sin container queries */
@supports not (container-type: inline-size) {
  @media (max-width: 900px) {
    .tm-vs-row {
      grid-template-columns: 30px 60px 1fr;
      grid-template-areas: "pos img info" ".  cta cta";
      row-gap: 11px;
    }
    .tm-vs-pos  { grid-area: pos; font-size: 20px; }
    .tm-vs-img  { grid-area: img; width: 60px; height: 60px; }
    .tm-vs-info { grid-area: info; }
    .tm-vs-cta  {
      grid-area: cta; flex-direction: row; align-items: center;
      justify-content: space-between; width: 100%;
    }
    .tm-vs-name  { font-size: 15.5px; }
    .tm-vs-price { font-size: 21px; }
    .tm-vs-btn   { min-height: 48px; flex: 1; justify-content: center; margin-left: 12px; }
  }
}
