/*
Theme Name: theme
Theme URI: https://cosasdecamping.es/
Author: Cosas de Camping
Description: Tema con diseño estilo Tradeinn. Cajas de categorías con imágenes IA, carruseles de productos, newsletter y diseño responsive moderno.
Version: 1.0.36
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cosas-de-camping-tradeinn
Tags: marketplace, ecommerce, responsive, custom-logo, newsletter
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  --cdc-primary: #173f36;
  --cdc-primary-deep: #0f2c26;
  --cdc-orange: #ff662e;
  --cdc-orange-dark: #e55a24;
  --cdc-mustard: #f2a34c;
  --cdc-cream: #f8f2e7;
  --cdc-bg: #f5f5f5;
  --cdc-surface: #fff;
  --cdc-ink: #000;
  --cdc-ink-2: #333;
  --cdc-ink-3: #666;
  --cdc-ink-4: #999;
  --cdc-line: #e6e6e6;
  --cdc-green: #29a617;
  --cdc-star: #ffc107;
  --cdc-radius: 0.5rem;
  --cdc-radius-lg: 1rem;
  --cdc-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --cdc-shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --cdc-shadow-lg: 0 19px 2rem rgba(0,0,0,0.08);
  --cdc-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cdc-wrap: 1600px;
  --cdc-header-h: 140px;
  --cdc-transition: 0.2s ease;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cdc-bg);
  color: var(--cdc-ink);
  font-family: var(--cdc-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cdc-orange); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--cdc-orange); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1270px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1600px) { .wrap { padding: 0 2rem; } }

/* ==========================================================================
   3. Top Bar
   ========================================================================== */

/* ==========================================================================
   4. Header
   ========================================================================== */
.cdc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cdc-surface);
  box-shadow: var(--cdc-shadow);
}
.cdc-header__in {
  margin: 0;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.cdc-logo { display: flex; align-items: center; flex-shrink: 0; }
.cdc-logo__text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cdc-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cdc-logo__text em { font-style: normal; color: var(--cdc-mustard); }
.cdc-logo__text span { font-size: 0.7rem; font-weight: 400; color: var(--cdc-ink-3); display: block; margin-top: -2px; }

/* Search */
.cdc-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: var(--cdc-bg);
  border: 2px solid var(--cdc-line);
  border-radius: var(--cdc-radius);
  transition: border-color var(--cdc-transition), box-shadow var(--cdc-transition);
}
.cdc-search:focus-within {
  border-color: var(--cdc-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 46, 0.15);
}
.cdc-search__icon { margin: 0 0.75rem; color: var(--cdc-ink-3); flex-shrink: 0; }
.cdc-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.cdc-search input::placeholder { color: var(--cdc-ink-4); }
.cdc-search__btn {
  border: 0;
  cursor: pointer;
  margin: 4px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--cdc-radius);
  background: var(--cdc-orange);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--cdc-transition);
}
.cdc-search__btn:hover { background: var(--cdc-orange-dark); }

/* Total de anuncios, a la derecha del buscador */
.cdc-search-total {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  white-space: nowrap;
}
.cdc-search-total strong {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cdc-primary);
}
.cdc-search-total span {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cdc-ink-3);
}

/* 3.67.39: el total de anuncios, con estilo de rubrica (firma a mano). */
.cdc-search-total.cdc-search-total--rubrica {
  position: relative;
  align-items: center;
  padding: 0 .35rem .5rem;
  transform: rotate(-4deg);
  color: var(--cdc-primary);
}
.cdc-search-total.cdc-search-total--rubrica strong {
  font-family: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: .9;
}
.cdc-search-total.cdc-search-total--rubrica span {
  margin-top: 0;
  font-family: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cdc-ink-2, #444);
}
.cdc-search-total__firma {
  position: absolute;
  left: -2px;
  right: -6px;
  bottom: -3px;
  width: calc(100% + 8px);
  height: 16px;
  color: var(--cdc-orange, #f28c28);
  opacity: .85;
}
@media (max-width: 1100px) {
  .cdc-search-total.cdc-search-total--rubrica strong { font-size: 1.55rem; }
  .cdc-search-total.cdc-search-total--rubrica span { font-size: .92rem; }
}

/* Search suggest overlay + spinner */
.cdc-search { position: relative; }
.site-suggest,
.cdc-search .site-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--cdc-surface);
  border: 1px solid var(--cdc-line);
  border-radius: 0 0 var(--cdc-radius) var(--cdc-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}
.site-suggest__section { padding: 0.5rem 0; border-bottom: 1px solid var(--cdc-line); }
.site-suggest__section:last-child { border-bottom: none; }
.site-suggest__label {
  display: block;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cdc-ink-3);
}
.site-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--cdc-ink);
  transition: background 0.15s;
}
.site-suggest__item:hover,
.site-suggest__item.is-on { background: var(--cdc-bg); }
.site-suggest__item img { width: 40px; height: 40px; border-radius: var(--cdc-radius); object-fit: cover; flex-shrink: 0; }
.site-suggest__txt { flex: 1; min-width: 0; }
.site-suggest__txt strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-suggest__txt small { display: block; font-size: 0.75rem; color: var(--cdc-ink-3); }
.site-suggest__badge { font-size: 0.7rem; color: var(--cdc-ink-3); white-space: nowrap; margin-left: auto; }
.site-suggest__vacio { padding: 1rem; text-align: center; color: var(--cdc-ink-3); font-size: 0.9rem; }
.site-suggest__todos {
  display: block;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cdc-orange);
  border-top: 1px solid var(--cdc-line);
  text-decoration: none;
}
.site-suggest__todos:hover { background: var(--cdc-bg); }
.cdc-search__spinner {
  display: none;
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--cdc-line);
  border-top-color: var(--cdc-orange);
  border-radius: 50%;
  animation: cdc-spin 0.6s linear infinite;
}
.cdc-search.is-loading .cdc-search__spinner { display: block; }
@keyframes cdc-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Nav actions */
.cdc-nav { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }
.cdc-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--cdc-radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cdc-ink-2);
  transition: background var(--cdc-transition);
  white-space: nowrap;
}
.cdc-nav__link:hover { background: var(--cdc-bg); color: var(--cdc-ink); }
.cdc-nav__link.is-active { background: var(--cdc-bg); color: var(--cdc-orange); }
.cdc-nav__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.cdc-nav__badge {
  background: var(--cdc-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

/* Hamburger mobile */
.cdc-mobile-shortcuts { display: none; }
.cdc-hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.cdc-hamburger svg { width: 26px; height: 26px; color: var(--cdc-ink); }

/* Compare checkbox on product cards */
.cdc-compare-check {
  position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2;
  width: auto; min-width: 96px; height: 30px; padding: 0 10px; display: inline-flex; gap: 5px; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.96); border: 1px solid var(--cdc-primary); color: var(--cdc-primary); border-radius: 999px;
  cursor: pointer; transition: all 0.15s;
}
.cdc-compare-check::after { content: 'Comparar'; font-size: 11px; font-weight: 700; }
.cdc-compare-check:hover { border-color: var(--cdc-primary); background: #fff; }
.cdc-compare-check input { width: 14px; height: 14px; accent-color: var(--cdc-primary); margin: 0; cursor: pointer; }
.cdc-compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--cdc-primary); color: #fff; padding: 0.6rem 1rem;
  display: none; align-items: center; justify-content: center; gap: 0.75rem;
  font-size: 0.85rem; font-weight: 500; box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.cdc-compare-bar.is-active { display: flex; }
.cdc-compare-bar button {
  padding: 0.4rem 1rem; border: none; border-radius: var(--cdc-radius);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.cdc-compare-bar__btn { background: var(--cdc-orange); color: #fff; }
.cdc-compare-bar__clear { background: rgba(255,255,255,0.2); color: #fff; }

/* Social proof badge */

.cdc-mobile-drawer { display: none; }

@media (max-width: 1400px) and (min-width: 861px) {
  .cdc-header__in { gap: .65rem; }
  .cdc-logo__text { font-size: 1.35rem; }
  .cdc-search { max-width: 430px; }
  .cdc-search-total strong { font-size: 1.12rem; }
  .cdc-nav { gap: .1rem; }
  .cdc-nav__link { gap: .3rem; padding: .45rem .48rem; font-size: .76rem; }
  .cdc-nav__link svg { width: 18px; height: 18px; }
}

@media (max-width: 860px) {
  .cdc-header__in { padding: 0.5rem 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
  .cdc-logo { order: 1; margin-right: auto; }
  .cdc-search { order: 4; flex: 1 1 55%; max-width: none; width: auto; min-width: 0; }
  .cdc-search input { min-width: 0; }
  .cdc-search-total { order: 5; }
  .cdc-hamburger { display: block; order: 2; }
  .cdc-nav { order: 3; }
  .cdc-nav__link span { display: none; }
  .cdc-nav__link { padding: 0.5rem; }
  .cdc-catbar { display: none; }
  .cdc-mobile-drawer { display: block; position: fixed; inset: 0; z-index: 3000; }
  .cdc-mobile-drawer[hidden] { display: none; }
  .cdc-mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
  .cdc-mobile-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); overflow-y: auto; background: var(--cdc-surface); box-shadow: 8px 0 28px rgba(0,0,0,.2); padding-bottom: 2rem; }
  .cdc-mobile-drawer__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--cdc-primary); color: #fff; font-size: 1.05rem; z-index: 1; }
  .cdc-mobile-drawer__head button { border: 0; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
  .cdc-mobile-drawer__link, .cdc-mobile-drawer__sublink { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--cdc-line); text-decoration: none; color: var(--cdc-ink); font-weight: 700; }
  .cdc-mobile-drawer__sublink { padding: .65rem 1rem .65rem 1.75rem; font-size: .86rem; font-weight: 500; color: var(--cdc-ink-2); background: var(--cdc-bg); }
  .cdc-mobile-drawer__subsublink { display: block; padding: .55rem 1rem .55rem 2.75rem; font-size: .8rem; font-weight: 400; color: var(--cdc-ink-3); text-decoration: none; border-bottom: 1px solid var(--cdc-line); background: var(--cdc-bg); }
  .cdc-mobile-drawer__subsublink:hover { color: var(--cdc-orange); background: #f0f0f0; }
  body.cdc-mobile-menu-open { overflow: hidden; }
}

/* ==========================================================================
   5. Category Bar + Mega Menu
   ========================================================================== */
/* ---------- Category Bar — Estilo Tradeinn ---------- */
.cdc-catbar {
  background: var(--cdc-surface);
  border-bottom: 1px solid var(--cdc-line);
  position: relative;
  z-index: 100;
}
.cdc-catbar__in {
  margin: 0;
  padding: 0 1rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.cdc-catbar__in::-webkit-scrollbar { display: none; }
.cdc-catbar__item { position: static; flex-shrink: 0; }
.cdc-catbar__item > a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cdc-ink);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--cdc-transition), border-color var(--cdc-transition), background var(--cdc-transition), box-shadow var(--cdc-transition), transform var(--cdc-transition);
  letter-spacing: -0.01em;
}
.cdc-catbar__item > a:hover {
  color: var(--cdc-primary);
  background: #fff7f2;
  border-bottom-color: var(--cdc-orange);
  box-shadow: inset 0 -4px 0 var(--cdc-orange), 0 5px 16px rgba(15,44,38,.16);
  transform: translateY(-2px) scale(1.02);
}
.cdc-catbar__prefix {
  font-weight: 900;
  font-style: italic;
  font-size: 0.85rem;
}
.cdc-catbar__prefix-cosas {
  color: var(--cdc-primary);
}
.cdc-catbar__prefix-de {
  color: var(--cdc-mustard);
  margin-left: 3px;
}
.cdc-catbar__name {
  margin-left: 0.45rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cdc-ink);
}
.cdc-catbar__item.is-active > a,
.cdc-catbar__item > a.is-active {
  color: var(--cdc-primary);
  border-bottom-color: var(--cdc-orange);
  font-weight: 800;
  background: rgba(23, 63, 54, 0.06);
}

/* Mega menu panel */
.cdc-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--cdc-orange);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cdc-line);
}
.cdc-catbar__item:hover .cdc-mega,
.cdc-catbar__item:focus-within .cdc-mega { display: block; }
.cdc-mega__inner {
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
}
.cdc-mega__main {
  flex: 0 0 220px;
  padding-right: 1.5rem;
  border-right: 1px solid var(--cdc-line);
}
.cdc-mega__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cdc-ink);
  margin: 0 0 0.5rem;
}
.cdc-mega__desc {
  font-size: 0.8rem;
  color: var(--cdc-ink-3);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}
.cdc-mega__see-all {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cdc-orange);
  text-decoration: none;
}
.cdc-mega__see-all:hover { text-decoration: underline; }
.cdc-mega__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
}
.cdc-mega__col {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--cdc-line);
}
.cdc-mega__col:last-child { border-right: none; }
.cdc-mega__sub-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cdc-ink);
  text-decoration: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--cdc-line);
}
.cdc-mega__sub-title:hover { color: var(--cdc-orange); }
.cdc-mega__cd {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  color: var(--cdc-mustard);
  background: var(--cdc-primary);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-size: 0.7rem;
  vertical-align: middle;
  margin-right: 2px;
}
.cdc-mega__cd-sm {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  color: var(--cdc-mustard);
  background: var(--cdc-primary);
  padding: 0.05em 0.25em;
  border-radius: 3px;
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 2px;
}
.cdc-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdc-mega__list li { margin-bottom: 0.2rem; }
.cdc-mega__list a {
  font-size: 0.8rem;
  color: var(--cdc-ink-3);
  text-decoration: none;
  transition: color var(--cdc-transition);
}
.cdc-mega__list a:hover { color: var(--cdc-orange); }
.cdc-mega__brand-logo {
  width: 24px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .cdc-mega { display: none !important; }
}

/* ==========================================================================
   6. Homepage — Category Cards
   ========================================================================== */
.cdc-section { padding: 1.5rem 0; }
.cdc-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem 1rem;
}
.cdc-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cdc-ink);
  margin: 0;
}
.cdc-section__nav { display: flex; gap: 0.5rem; }
.cdc-section__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cdc-line);
  background: var(--cdc-surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--cdc-transition), border-color var(--cdc-transition);
}
.cdc-section__arrow:hover { background: var(--cdc-bg); border-color: var(--cdc-ink-3); }
.cdc-section__arrow svg { width: 14px; height: 14px; }

/* Category cards grid — Estilo Tradeinn (banner-familia / hpt-minibanner) */
.cdc-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 1rem;
}

.cdc-cat-card {
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  min-width: 0;
  min-height: 220px;
  background: var(--cdc-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cdc-cat-card:hover,
.cdc-cat-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 4px 2rem 0 rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.cdc-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.cdc-cat-card--vehiculos .cdc-cat-card__img { object-fit: contain; background: #dfe8e5; padding: .35rem; }
.cdc-cat-card:hover .cdc-cat-card__img,
.cdc-cat-card:focus-within .cdc-cat-card__img { transform: scale(1.08); }
.cdc-cat-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: none;
  color: #fff;
  text-align: center;
}
.cdc-cat-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: -0.02em;
  text-shadow: 2px 1px 20px rgba(0,0,0,0.68);
  color: #fff;
}

.cdc-cat-card__prefix {
  display: inline-block;
  color: var(--cdc-mustard);
  font-weight: 800;
  font-style: italic;
  background: rgba(0,0,0,0.45);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  text-shadow: none;
  margin-right: 2px;
  vertical-align: middle;
}
.cdc-cat-card__prefix-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--cdc-mustard);
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
}
.cdc-cat-card__count {
  font-size: 0.8rem;
  opacity: 0.9;
  max-height: 24px;
  overflow: hidden;
  margin-top: 0.35rem;
  text-shadow: 2px 1px 20px rgba(0,0,0,0.68);
}
.cdc-cat-card__desc {
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.92;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 0.4rem;
  max-width: 36ch;
  text-shadow: 2px 1px 20px rgba(0,0,0,0.68);
}
@media (max-width: 500px) {
  .cdc-cat-card__desc { display: none; }
}

@media (min-width: 800px) {
  .cdc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .cdc-cat-card { aspect-ratio: 16/9; min-height: 280px; }
  .cdc-cat-card__name { font-size: 1.5rem; line-height: 1.3; }
}
@media (min-width: 1270px) {
  .cdc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0 2.5rem 1.25rem; }
  .cdc-cat-card { min-height: 320px; }
}
@media (min-width: 1600px) {
  .cdc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0 7rem 1.25rem; }
  .cdc-cat-card { min-height: 360px; }
}
@media (max-width: 500px) {
  .cdc-cats { gap: 1.25rem; padding: 0 0.75rem 0.75rem; }
  .cdc-cat-card { aspect-ratio: 5/4; min-height: 180px; }
  .cdc-cat-card__name { font-size: 1.05rem; }
}

/* ==========================================================================
   7. Homepage — Product Carousel
   ========================================================================== */
.cdc-products-wrap {
  background: var(--cdc-surface);
  border-radius: var(--cdc-radius);
  padding: 1rem 0.5rem;
  box-shadow: var(--cdc-shadow);
}
.cdc-products {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0.5rem;
}
.cdc-products::-webkit-scrollbar { display: none; }

@keyframes cdc-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cdc-product {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--cdc-radius);
  overflow: hidden;
  background: var(--cdc-surface);
  border: 1px solid var(--cdc-line);
  transition: box-shadow var(--cdc-transition), transform var(--cdc-transition);
  animation: cdc-fadein .3s ease both;
}
.cdc-product:hover { box-shadow: var(--cdc-shadow-md); transform: translateY(-2px); }
.cdc-product__img-wrap { position: relative; overflow: hidden; }
.cdc-product__img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: contain;
  padding: 0.2rem;
  background: #fff;
}
.cdc-product__body { padding: 0.75rem; }
.cdc-product__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cdc-ink);
  margin: 0 0 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cdc-product__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cdc-primary);
  margin: 0;
}
.cdc-product__original {
  font-size: 0.8rem;
  color: var(--cdc-ink-4);
  text-decoration: line-through;
  margin: 0.25rem 0 0;
}
.cdc-product__source {
  font-size: 0.7rem;
  color: var(--cdc-ink-3);
  margin: 0.4rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cdc-product__source img { width: 14px; height: 14px; border-radius: 3px; }
.cdc-product__discount {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--cdc-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.cdc-sort-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--cdc-radius);
  text-decoration: none;
  color: var(--cdc-ink-2);
  background: var(--cdc-bg);
  transition: all 0.15s;
}
.cdc-sort-btn:hover {
  background: var(--cdc-line);
}
.cdc-sort-btn.is-active {
  background: var(--cdc-primary);
  color: #fff;
  font-weight: 600;
}
.cdc-sort-btn.is-active:hover {
  background: var(--cdc-primary);
}
.cdc-product__thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cdc-product:hover .cdc-product__thumbs {
  transform: translateY(0);
  opacity: 1;
}
.cdc-pagination { margin: 1.5rem 0 .5rem; }
.cdc-pagination ul { display:flex; flex-wrap:wrap; justify-content:center; gap:.35rem; list-style:none; padding:0; margin:0; }
.cdc-pagination a, .cdc-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:34px; padding:.25rem .55rem; border:1px solid var(--cdc-line); border-radius:var(--cdc-radius); color:var(--cdc-ink-2); text-decoration:none; font-size:.82rem; }
.cdc-pagination .current { background:var(--cdc-primary); color:#fff; border-color:var(--cdc-primary); }
.cdc-pagination a:hover { background:var(--cdc-bg); border-color:var(--cdc-primary); }
.cdc-product__thumbs img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #fff;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .cdc-product { flex: 0 0 38%; }
}
@media (max-width: 500px) {
  .cdc-product { flex: 0 0 45%; }
}

/* ==========================================================================
   8. Homepage — Subcategories
   ========================================================================== */

.cdc-subcat {
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: var(--cdc-surface);
  border-radius: var(--cdc-radius-lg);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: box-shadow var(--cdc-transition);
}
.cdc-subcat:hover { box-shadow: var(--cdc-shadow-md); }
.cdc-subcat img { max-height: 80px; object-fit: contain; }

@media (max-width: 860px) {
  .cdc-subcat { flex: 0 0 28%; height: 100px; }
}

/* ==========================================================================
   9. Homepage — Store Banners Grid
   ========================================================================== */

/* ==========================================================================
   10. Newsletter
   ========================================================================== */
.cdc-newsletter {
  background: var(--cdc-primary);
  color: #fff;
  padding: 3rem 1rem;
}
.cdc-newsletter__in {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cdc-newsletter__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.cdc-newsletter__desc {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0 0 1.5rem;
}
.cdc-newsletter__form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}
.cdc-newsletter__input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--cdc-radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--cdc-transition);
}
.cdc-newsletter__input::placeholder { color: rgba(255,255,255,0.6); }
.cdc-newsletter__input:focus { border-color: var(--cdc-orange); }
.cdc-newsletter__btn {
  border: 0;
  padding: 0.8rem 1.5rem;
  border-radius: var(--cdc-radius);
  background: var(--cdc-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--cdc-transition);
}
.cdc-newsletter__btn:hover { background: var(--cdc-orange-dark); }
.cdc-newsletter__legal {
  font-size: 0.75rem;
  opacity: 0.65;
  margin: 0;
}
.cdc-newsletter__msg {
  padding: 0.75rem;
  border-radius: var(--cdc-radius);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.cdc-newsletter__msg--ok { background: rgba(41, 166, 23, 0.2); }
.cdc-newsletter__msg--err { background: rgba(168, 58, 44, 0.2); }

@media (max-width: 500px) {
  .cdc-newsletter__form { flex-direction: column; }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.cdc-footer {
  background: var(--cdc-surface);
  border-top: 1px solid var(--cdc-line);
  padding: 2.5rem 1rem 1.5rem;
}
.cdc-footer__in {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cdc-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cdc-ink-3);
  margin: 0 0 1rem;
}
.cdc-footer ul { display: grid; gap: 0.6rem; }
.cdc-footer a { font-size: 0.85rem; color: var(--cdc-ink-2); }
.cdc-footer a:hover { color: var(--cdc-orange); }
.cdc-footer__brand { font-size: 1.1rem; font-weight: 800; color: var(--cdc-primary); }
.cdc-footer__brand em { font-style: normal; color: var(--cdc-mustard); }
.cdc-footer__desc { font-size: 0.8rem; color: var(--cdc-ink-3); margin: 0.5rem 0 0; line-height: 1.6; }

.cdc-footer__legal {
  max-width: var(--cdc-wrap);
  margin: 2rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--cdc-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--cdc-ink-3);
}
.cdc-footer__legal a { font-size: inherit; }

@media (max-width: 860px) {
  .cdc-footer__in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .cdc-footer__in { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. Mobile Bottom Nav
   ========================================================================== */
.cdc-mnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--cdc-surface);
  border-top: 1px solid var(--cdc-line);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.cdc-mnav { flex-direction: row; justify-content: space-around; align-items: stretch; }
.cdc-mnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  color: var(--cdc-ink-3);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--cdc-transition);
  flex: 1 1 0;
  justify-content: center;
}
.cdc-mnav__item svg { width: 20px; height: 20px; }
.cdc-mnav__item.is-active { color: var(--cdc-orange); }
.cdc-mnav__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--cdc-orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

@media (max-width: 860px) {
  .cdc-mnav { display: flex !important; opacity: 1; transition: opacity .2s ease, background .2s ease; }
  .cdc-mnav__item { padding-inline: .25rem; }
  .cdc-mnav.cdc-mnav--scrolled { opacity: .78; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); }
  body { padding-bottom: 60px; }
}

/* ==========================================================================
   13. Content Pages
   ========================================================================== */
.cdc-content { min-height: 60vh; }
.cdc-page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.cdc-page h1 { font-size: 1.8rem; margin: 0 0 1rem; }
.cdc-page p { color: var(--cdc-ink-2); font-size: 1rem; margin: 0 0 1rem; }
.cdc-page a { color: var(--cdc-primary); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   14. Blog
   ========================================================================== */
.cdc-blog { padding: 2rem 0 3rem; }
.cdc-blog__header { text-align: center; margin-bottom: 2rem; }
.cdc-blog__title { font-size: 1.8rem; color: var(--cdc-primary); margin: 0 0 0.5rem; }
.cdc-blog__desc { color: var(--cdc-ink-3); margin: 0; }

.cdc-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cdc-blog-card {
  background: var(--cdc-surface);
  border-radius: var(--cdc-radius-lg);
  overflow: hidden;
  box-shadow: var(--cdc-shadow);
  transition: box-shadow var(--cdc-transition), transform var(--cdc-transition);
}
.cdc-blog-card:hover { box-shadow: var(--cdc-shadow-md); transform: translateY(-3px); }
.cdc-blog-card__img { display: block; aspect-ratio: 16/9; background: var(--cdc-bg); overflow: hidden; }
.cdc-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cdc-blog-card:hover .cdc-blog-card__img img { transform: scale(1.04); }
.cdc-blog-card__body { padding: 1.25rem; }
.cdc-blog-card__date { font-size: 0.8rem; color: var(--cdc-ink-4); margin-bottom: 0.5rem; display: block; }
.cdc-blog-card__title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.cdc-blog-card__title a:hover { color: var(--cdc-orange); }
.cdc-blog-card__excerpt { font-size: 0.9rem; color: var(--cdc-ink-3); margin: 0 0 0.75rem; line-height: 1.5; }

/* En el blog, la barra superior navega por temas editoriales. */
.cdc-catbar--blog .cdc-catbar__in { justify-content: center; }
.cdc-catbar--blog .cdc-catbar__item > a { padding-inline: 1.05rem; }
.cdc-catbar--blog .cdc-catbar__name { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
.cdc-catbar--blog .cdc-catbar__item > a.is-active { color: var(--cdc-orange-dark); box-shadow: inset 0 -3px 0 var(--cdc-orange); }
.cdc-catbar__count { display:inline-flex;align-items:center;justify-content:center;min-width:1.65rem;height:1.35rem;padding:0 .38rem;border-radius:999px;background:#edf2ef;color:var(--cdc-primary);font-size:.69rem;font-weight:800;line-height:1; }
.cdc-catbar--blog .cdc-catbar__item > a.is-active .cdc-catbar__count { background:var(--cdc-orange);color:#fff; }
.cdc-blog__eyebrow { margin:0 0 .45rem;color:var(--cdc-orange-dark);font-size:.78rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase; }
.cdc-blog-card__more { display:inline-flex;gap:.35rem;margin-top:auto;color:var(--cdc-primary);font-size:.9rem;font-weight:800;text-decoration:none; }
.cdc-blog-card__more:hover { color:var(--cdc-orange-dark); }
.cdc-blog__empty { text-align:center;padding:60px 20px; }

.cdc-page .cdc-article-photo { margin: 1.6rem 0; }
.cdc-page .cdc-article-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 12px; }
.cdc-page .cdc-article-photo figcaption { margin-top: 0.45rem; color: var(--cdc-ink-4); font-size: 0.74rem; text-align: right; }
.cdc-page .cdc-article-photo figcaption a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   15. Brand Slider
   ========================================================================== */
.cdc-brand-slider-wrap {
  position: relative;
  padding: 0 2.4rem;
}
.cdc-brand-slider {
  -webkit-overflow-scrolling: touch;
}
.cdc-brand-slider::-webkit-scrollbar { display: none; }
.cdc-brand-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cdc-line);
  border-radius: 50%;
  background: var(--cdc-surface);
  color: var(--cdc-primary);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--cdc-shadow);
}
.cdc-brand-slider__arrow:hover { background: var(--cdc-primary); color: #fff; }
.cdc-brand-slider__arrow--prev { left: 0; }
.cdc-brand-slider__arrow--next { right: 0; }
.cdc-brand-slide {
  transition: all 0.2s ease;
}
.cdc-brand-slide:hover {
  border-color: var(--cdc-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cdc-brand-slide.is-active {
  border-color: var(--cdc-orange) !important;
  background: rgba(232,117,67,0.06);
}
.cdc-brand-slide img {
  filter: grayscale(0.15);
  transition: filter 0.2s;
}
.cdc-brand-slide:hover img {
  filter: grayscale(0);
}

.cdc-brand-slide__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  color: var(--cdc-primary);
  background: var(--cdc-cream);
  border: 1px solid var(--cdc-primary);
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .8rem;
}

@media (min-width: 900px) {
  /* Con 9 categorias principales ya no caben «Cosas De» y el nombre en una
     linea: el «Cosas De» va encima y el nombre debajo, en dos lineas como
     mucho. Nunca se encogen por debajo de su texto (antes se montaban). */
  .cdc-catbar__item { flex: 1 0 auto; min-width: 0; }
  .cdc-catbar__item > a { flex-direction: column; justify-content: center; padding: .45rem .5rem; white-space: normal; text-align: center; line-height: 1.15; height: 100%; }
  .cdc-catbar__prefix { font-size: .64rem; line-height: 1; margin-bottom: .15rem; white-space: nowrap; }
  .cdc-catbar__name { margin-left: 0; font-size: .76rem; max-width: 8.5em; }
  .cdc-catbar__in { align-items: stretch; }
}
@media (min-width: 900px) and (max-width: 1150px) {
  .cdc-catbar__in { padding: 0 .4rem; }
  .cdc-catbar__item > a { padding: .45rem .28rem; }
  .cdc-catbar__name { font-size: .7rem; max-width: 7.6em; }
}

/* ==========================================================================
   16. Utilities
   ========================================================================== */
.cdc-hidden { display: none !important; }

/* Category sidebar */
.cdc-cat-sidebar { display: block; }
.cdc-subcat-chips { display: none; }
.cdc-subcat-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  background: var(--cdc-surface); color: var(--cdc-ink-2); border: 1px solid var(--cdc-line);
  transition: all 0.15s;
}
.cdc-subcat-chip span { font-size: 0.7rem; opacity: 0.7; }
.cdc-subcat-chip.is-active { background: var(--cdc-primary); color: #fff; border-color: var(--cdc-primary); }
.cdc-subcat-chip:active { transform: scale(0.96); }
@media (max-width: 900px) {
  .cdc-cat-sidebar { display: none; }
  .cdc-cat-layout { flex-direction: column !important; overflow: hidden; }
  .cdc-subcat-chips { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------------
   Portada de la ficha de taller.
   El plugin la fija en 158px de alto, así que a anchuras menores la imagen se
   recortaba por los lados. Aquí la banda es proporcional (2412x316, la medida
   recomendada de portada) y en móvil se acorta desplazando el encuadre hacia
   la izquierda, donde está la foto del taller.
   ------------------------------------------------------------------------ */
.cm-workshop-card .cm-workshop-card__banner {
	height: auto;
	aspect-ratio: 2412 / 316;
}

@media (max-width: 860px) {
	.cm-workshop-card .cm-workshop-card__banner {
		aspect-ratio: auto;
		height: 116px;
	}
	.cm-workshop-card .cm-workshop-card__banner img {
		object-position: 22% 50%;
	}
}

/* ---------------------------------------------------------------------------
   Afiliados modal
   ------------------------------------------------------------------------ */
.cdc-modal {
	border: none;
	border-radius: var(--cdc-radius-lg, 16px);
	padding: 0;
	background: var(--cdc-surface);
	color: var(--cdc-ink);
	box-shadow: 0 16px 48px rgba(0,0,0,0.25);
	overflow: hidden;
}
.cdc-modal::backdrop {
	background: rgba(0,0,0,0.5);
}
.cdc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem 0.5rem;
}
.cdc-modal__head h3 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--cdc-primary, #173f36);
}
.cdc-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--cdc-line, #e0ddd5);
	background: var(--cdc-surface, #fff);
	color: var(--cdc-ink-2, #666);
	cursor: pointer;
	transition: background 0.15s;
}
.cdc-modal__close:hover {
	background: var(--cdc-bg, #f5f0e8);
}
.cdc-modal__close svg { width: 18px; height: 18px; }
.cdc-modal__body {
	padding: 0.5rem 1.25rem 1.25rem;
}
.cdc-affiliates-modal {
	max-width: 700px;
	width: 90vw;
	max-height: 80vh;
}
.cdc-affiliates-desc {
	font-size: 0.85rem;
	color: var(--cdc-ink-3, #666);
	margin: 0 0 1rem;
}
.cdc-affiliates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 0.75rem;
	max-height: 60vh;
	overflow-y: auto;
	padding: 0.25rem;
}
.cdc-affiliates-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 0.5rem;
	border-radius: var(--cdc-radius, 8px);
	text-decoration: none;
	color: var(--cdc-ink, #1a1a1a);
	transition: background var(--cdc-transition, 0.15s), transform 0.12s;
	text-align: center;
}
.cdc-affiliates-item:hover {
	background: var(--cdc-bg, #f5f0e8);
	transform: translateY(-2px);
}
.cdc-affiliates-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--cdc-line, #e0ddd5);
	color: var(--cdc-ink-3, #666);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	flex-shrink: 0;
	overflow: hidden;
}
.cdc-affiliates-logo img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
}
.cdc-affiliates-name {
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}
.cdc-affiliates-count {
	font-size: 0.68rem;
	color: var(--cdc-ink-3, #999);
}
@media (max-width: 600px) {
	.cdc-affiliates-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 0.5rem;
	}
	.cdc-affiliates-logo { width: 40px; height: 40px; font-size: 0.75rem; border-radius: 10px; }
}
@media (max-width: 700px) {
	.cdc-toolbar {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.4rem !important;
	}
	.cdc-toolbar__filters {
		overflow-x: auto;
		flex-wrap: nowrap !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
	}
	.cdc-toolbar__filters::-webkit-scrollbar { display: none; }
	.cdc-toolbar__sort {
		overflow-x: auto;
		flex-wrap: nowrap !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
	}
	.cdc-toolbar__sort::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   Blog — FAB Categorías (solo móvil)
   ========================================================================== */
.cdc-blog-fab,
.cdc-blog-fab-sheet {
	/* Botón y hoja de categorías son solo para móvil. En escritorio la hoja
	   no tenía ninguna regla que la ocultara y aparecía como una lista de
	   categorías debajo de cada entrada. */
	display: none;
}
@media (max-width: 768px) {
	.cdc-blog-fab {
		display: flex;
		position: fixed;
	 bottom: 5.5rem;
		right: 1.25rem;
		z-index: 900;
		width: 52px;
		height: 52px;
		border-radius: 50%;
		background: var(--cdc-primary, #173f36);
		color: #fff;
		border: none;
		cursor: pointer;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 14px rgba(0,0,0,.3);
		transition: transform .2s, box-shadow .2s;
		-webkit-tap-highlight-color: transparent;
	}
	.cdc-blog-fab:active {
		transform: scale(.92);
		box-shadow: 0 2px 8px rgba(0,0,0,.25);
	}
	.cdc-blog-fab svg {
		width: 24px;
		height: 24px;
		fill: currentColor;
		pointer-events: none;
	}
	/* Bottom sheet overlay */
	.cdc-blog-fab-sheet {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 950;
		background: rgba(0,0,0,.45);
		align-items: flex-end;
		justify-content: center;
		opacity: 0;
		transition: opacity .25s;
	}
	.cdc-blog-fab-sheet.is-open {
		display: flex;
		opacity: 1;
	}
	.cdc-blog-fab-sheet__panel {
		width: 100%;
		max-width: 480px;
		max-height: 70vh;
		background: var(--cdc-surface, #fff);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -4px 24px rgba(0,0,0,.18);
		overflow-y: auto;
		padding: 0 0 1.5rem;
		transform: translateY(100%);
		transition: transform .3s cubic-bezier(.4,0,.2,1);
		-webkit-overflow-scrolling: touch;
	}
	.cdc-blog-fab-sheet.is-open .cdc-blog-fab-sheet__panel {
		transform: translateY(0);
	}
	.cdc-blog-fab-sheet__handle {
		display: flex;
		justify-content: center;
		padding: .75rem 0 .5rem;
	}
	.cdc-blog-fab-sheet__handle span {
		width: 36px;
		height: 4px;
		border-radius: 2px;
		background: #ccc;
	}
	.cdc-blog-fab-sheet__title {
		padding: 0 1.25rem .75rem;
		font-size: .95rem;
		font-weight: 700;
		color: var(--cdc-ink, #222);
	}
	.cdc-blog-fab-sheet__list {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.cdc-blog-fab-sheet__list li {
		border-bottom: 1px solid var(--cdc-line, #eee);
	}
	.cdc-blog-fab-sheet__list a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: .85rem 1.25rem;
		text-decoration: none;
		color: var(--cdc-ink, #222);
		font-weight: 600;
		font-size: .92rem;
		transition: background .15s;
	}
	.cdc-blog-fab-sheet__list a:active {
		background: #f5f5f5;
	}
	.cdc-blog-fab-sheet__list .is-active a {
		color: var(--cdc-orange, #e87543);
	}
	.cdc-blog-fab-sheet__count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 1.6rem;
		height: 1.3rem;
		padding: 0 .35rem;
		border-radius: 999px;
		background: #edf2ef;
		color: var(--cdc-primary, #173f36);
		font-size: .7rem;
		font-weight: 800;
	}
	.cdc-blog-fab-sheet__list .is-active .cdc-blog-fab-sheet__count {
		background: var(--cdc-orange, #e87543);
		color: #fff;
	}
	/* Hide FAB when sheet is open */
	.cdc-blog-fab.is-hidden {
		display: none !important;
	}
	/* Scrollbar hidden */
	.cdc-blog-fab-sheet__panel::-webkit-scrollbar { display: none; }
.cdc-blog-fab-sheet__panel { scrollbar-width: none; }
}

/* ==========================================================================
   20. Ajustes de claridad y responsive (auditoría septiembre 2026)
   ========================================================================== */

.cdc-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 1rem;
}
.cdc-product-grid .cdc-product { min-width: 0; width: auto; flex: none; }
.cdc-product-grid .cdc-product__img { aspect-ratio: 1 / 1; object-fit: contain; }
.cdc-filter-toggle {
	display: none;
	width: 100%; min-height: 44px; align-items: center; justify-content: space-between;
	padding: .65rem .85rem; border: 1px solid var(--cdc-line); border-radius: 10px;
	background: var(--cdc-surface); color: var(--cdc-primary); font: inherit;
	font-size: .86rem; font-weight: 750; cursor: pointer;
}
.cdc-filter-toggle span { font-size: 1.25rem; line-height: 1; }
.cdc-home-products .cdc-products { scroll-padding-inline: 1rem; }
.cdc-home-products .cdc-product { scroll-snap-align: start; }
.cdc-newsletter__legal a { color: var(--cdc-mustard); text-decoration: underline; }

@media (max-width: 860px) {
	/* El menú inferior ya contiene estas acciones. Evita dos filas de iconos
	   sin texto y devuelve casi 50 px de contenido útil. */
	.cdc-header .cdc-nav { display: none; }
	.cdc-header__in { align-items: center; }
	.cdc-logo__text { font-size: 1.28rem; }
	.cdc-search { margin-top: .1rem; }

	.cdc-filter-toggle { display: flex; }
	.cdc-toolbar { width: 100%; align-items: stretch !important; border-bottom: 0 !important; }
	.cdc-toolbar__filters,
	.cdc-toolbar__sort { display: none !important; }
	.cdc-toolbar.is-open {
		position: fixed; z-index: 1150; left: 10px; right: 10px; bottom: 66px;
		width: auto; max-height: min(70vh, 520px); overflow: auto;
		padding: 14px !important; margin: 0 !important; border: 1px solid var(--cdc-line) !important;
		border-radius: 16px; background: var(--cdc-surface);
		box-shadow: 0 18px 55px rgba(15,44,38,.28);
	}
	.cdc-toolbar.is-open .cdc-toolbar__filters,
	.cdc-toolbar.is-open .cdc-toolbar__sort { display: flex !important; width: 100%; }
	.cdc-toolbar.is-open .cdc-toolbar__filters { align-items: center !important; gap: .7rem !important; }
	.cdc-toolbar.is-open .cdc-toolbar__filters input[type="number"] { flex: 1 1 90px; width: auto !important; min-height: 42px; }
	.cdc-toolbar.is-open .cdc-toolbar__filters label { min-height: 40px; }
	.cdc-toolbar.is-open .cdc-toolbar__filters button[type="submit"] { margin-left: auto; min-width: 80px; min-height: 42px; font-size: .8rem !important; }
	.cdc-toolbar.is-open .cdc-toolbar__sort { align-items: center; flex-wrap: wrap; gap: .45rem !important; padding-top: .7rem; border-top: 1px solid var(--cdc-line); }
	.cdc-toolbar.is-open .cdc-sort-btn { min-height: 38px; display: inline-flex; align-items: center; }
}

@media (max-width: 700px) {
	/* El creativo móvil puede seguir siendo vertical, pero no debe consumir la
	   primera pantalla completa. */
	.cdc-publi--ancho { aspect-ratio: auto !important; height: 180px; }
	.cdc-publi--ancho .cdc-publi__slide img { object-fit: cover; object-position: center; }
	.cdc-publi-zona { padding-inline: 12px; }
	.cdc-section { padding-inline: 12px; }
	.cdc-section__title { font-size: 1.12rem; }
	.cdc-section__tag { display: none; }
	.cdc-section__nav { display: none; }
	.cdc-home-products .cdc-product { flex-basis: 44%; }
	.cdc-product__body { padding: .58rem; }
	.cdc-product__name { font-size: .78rem; min-height: 2.1em; margin-bottom: .35rem; }
	.cdc-product__price { font-size: 1rem; }
	.cdc-product__source { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cdc-product__thumbs { display: none; }
	.cdc-compare-check { width: 38px; height: 38px; top: .3rem; right: .3rem; }
	.cdc-compare-check input { width: 18px; height: 18px; }
	.cdc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
	.cdc-product-grid .cdc-product__body { min-height: 106px; }
	.cdc-subcat-chips { margin-inline: -4px; padding-inline: 4px; }
	.cdc-brand-slider-wrap { margin-bottom: .75rem !important; }
	.cdc-brand-slide { min-width: 104px !important; height: 48px !important; }
	.cdc-brand-slide img { max-height: 32px !important; }
}

@media (max-width: 380px) {
	.cdc-mnav__item { font-size: .59rem; padding-inline: .1rem; }
	.cdc-product-grid { gap: .5rem; }
	.cdc-home-products .cdc-product { flex-basis: 47%; }
}

/* Estado del vehiculo en la tarjeta del listado (Nueva / De ocasion). */
.cdc-product__estado {
	display: inline-block;
	margin: 0 0 0.3rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	background: #e7f1ec;
	color: #1f5b45;
}
.cdc-product__estado.is-ocasion {
	background: #fdf0e6;
	color: #9a4a12;
}

/* ==========================================================================
   Tarjeta de producto normalizada (22/09/2026)
   Una sola tarjeta para todo el sitio (cdc_product_card): foto en caja fija,
   titulo a dos lineas reservadas y precio + tienda siempre a la misma altura,
   ocupe el titulo una linea o dos.
   ========================================================================== */
.cdc-product {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--cdc-ink);
}
.cdc-product-grid .cdc-product { height: 100%; }
.cdc-product__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #fff;
	overflow: hidden;
	border-bottom: 1px solid var(--cdc-line);
}
.cdc-product__media .cdc-product__img,
.cdc-product-grid .cdc-product__media .cdc-product__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	padding: .35rem;
	background: #fff;
}
/* Un vehiculo se ve mejor a sangre: la foto es el anuncio. */
.cdc-product.is-vehiculo .cdc-product__media .cdc-product__img { object-fit: cover; padding: 0; }

.cdc-product__badges {
	position: absolute; left: .45rem; bottom: .45rem; z-index: 2;
	display: flex; gap: .3rem; align-items: center;
}
.cdc-product__badges .cdc-product__estado { margin: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cdc-product__badges .cdc-product__discount { position: static; }

/* Favoritos: corazon blanco para guardar, rojo cuando ya esta guardado.
   El plugin trae su propio .cm-card__fav (arriba a la derecha, donde esta la
   casilla de comparar): aqui se recoloca abajo a la derecha. */
.cdc-product .cdc-product__fav.cm-card__fav { top: auto; left: auto; }
.cdc-product__fav {
	position: absolute; right: .45rem; bottom: .45rem; z-index: 3;
	width: 34px; height: 34px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.95);
	box-shadow: 0 1px 5px rgba(0,0,0,.18);
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.cdc-product__fav svg { fill: none; stroke: #2b2b2b; stroke-width: 2; }
.cdc-product__fav:hover { transform: scale(1.08); }
.cdc-product__fav.is-on svg { fill: #e53935; stroke: #e53935; }
.cdc-product__fav:disabled { opacity: .6; }

.cdc-product__thumbs { z-index: 4; }

.cdc-product__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: .65rem .75rem .7rem;
	min-height: 0;
	background: var(--cdc-surface);
}
.cdc-product__name {
	font-size: .85rem;
	line-height: 1.35;
	min-height: calc(2em * 1.35);
	margin: 0 0 .4rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cdc-product__prices {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem;
	min-height: 1.6rem;
}
.cdc-product__prices .cdc-product__original { margin: 0; }
.cdc-product__price--ask { font-size: .9rem; color: var(--cdc-ink-3); font-weight: 600; }
.cdc-product__original { color: #555; }
.cdc-product__shop {
	margin-top: auto;
	padding-top: .25rem;
	height: 30px;
	display: flex; align-items: center;
}

.cdc-load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .45rem;
	padding: 1.25rem 0 .25rem;
}
.cdc-load-more {
	min-height: 44px;
	padding: .65rem 1.25rem;
	border: 1px solid var(--cdc-primary);
	border-radius: 999px;
	background: var(--cdc-primary);
	color: #fff;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.cdc-load-more:hover { background: var(--cdc-primary-deep); transform: translateY(-1px); }
.cdc-load-more:disabled { opacity: .65; cursor: wait; transform: none; }
.cdc-load-more__hint { color: #555; font-size: .78rem; }
.cdc-product__shoplogo {
	display: block;
	max-width: 112px;
	max-height: 22px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
}
.cdc-product__shoplogo--texto {
	max-height: none;
	font-size: .72rem;
	color: var(--cdc-ink-3);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	max-width: 100%;
}
/* Emblemas cuadrados o casi (clase cm-shoplogo--cuadrado, la pone el plugin):
   en la caja apaisada salían a 22px y no se distinguían. La fila sigue midiendo
   30px: el relleno de arriba baja a .25rem para que quepa este cuadro de 26px. */
.cdc-product__shoplogo.cm-shoplogo--cuadrado { max-width: 26px; max-height: 26px; }
@media (max-width: 760px) {
	.cdc-product-grid .cdc-product__body { min-height: 0; }
	.cdc-product__fav { width: 38px; height: 38px; }
	.cdc-product__shoplogo { max-width: 92px; max-height: 18px; }
	.cdc-product__shoplogo.cm-shoplogo--cuadrado { max-width: 24px; max-height: 24px; }
}

/* Afiliados: logos reales (apaisados, 480x120) en lugar del cuadrado de iniciales. */
.cdc-affiliates-logo.has-logo {
	width: 100%;
	max-width: 132px;
	height: 48px;
	padding: 6px 10px;
	box-sizing: border-box;
}
.cdc-affiliates-logo.has-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
@media (max-width: 600px) {
	.cdc-affiliates-logo.has-logo { height: 42px; padding: 5px 8px; }
}

/* «Mi cuenta» a todo el ancho (ver page.php). */
.cdc-page.cdc-page--app {
	max-width: var(--cdc-wrap, 1400px);
	padding: 1.5rem 24px 4rem;
}
.cdc-page--app main.cm-account { max-width: none; padding: 0; }
/* El panel traia su propia barra de navegacion de cuando no habia tema:
   duplica la cabecera de la web. */
.cdc-page--app .cm-topbar { display: none; }
.cdc-page--app .cm-auth-shell { padding-top: 0; }
.cdc-page--app a { text-decoration: none; }

/* Check «Comparar» de la card (boton; antes era un checkbox que no respondia). */
.cdc-compare-check { color: var(--cdc-primary); padding: 0 10px; }
.cdc-compare-check svg { display: block; }
.cdc-compare-check.is-on {
	background: var(--cdc-primary); border-color: var(--cdc-primary); color: #fff;
}
.cdc-compare-check.is-on::after { content: 'Añadido'; }
@media (max-width: 760px) {
	.cdc-compare-check { min-width: 88px; height: 30px; padding: 0 8px; }
	.cdc-compare-check svg { width: 16px; height: 16px; }
	.cdc-compare-bar { bottom: 56px; flex-wrap: wrap; }
}

/* «Avisarme de nuevos» (busqueda guardada). */
.cdc-guardar-busqueda {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .3rem .7rem; border: 1px solid var(--cdc-primary); border-radius: 999px;
	background: #fff; color: var(--cdc-primary); font-size: .75rem; font-weight: 600; cursor: pointer;
}
.cdc-guardar-busqueda:hover { background: var(--cdc-primary); color: #fff; }
.cdc-guardar-busqueda.is-on { background: var(--cdc-primary); color: #fff; }

/* Miniaturas al pasar el raton: por encima de las etiquetas y sin tapar el corazon. */
.cdc-product__thumbs { padding: 6px 48px 6px 8px; pointer-events: auto; }
.cdc-product__thumbs img { width: 46px; height: 46px; background: #fff; cursor: pointer; transition: border-color .12s; }
.cdc-product__thumbs img.is-on, .cdc-product__thumbs img:hover { border-color: var(--cdc-orange); }
.cdc-product:hover .cdc-product__badges { opacity: 0; transition: opacity .2s; }

/* ==========================================================================
   Estilo Tradeinn: cards mas grandes, foto cuadrada y precio protagonista.
   ========================================================================== */
@media (min-width: 861px) {
	/* Cintas de portada: 5 cards por pantalla en escritorio (antes 220 px fijos). */
	.cdc-home-products .cdc-product { flex: 0 0 calc((100% - 4 * 1rem) / 5); min-width: 210px; }
	/* Listados: cards de al menos 230 px (4 por fila junto a la columna lateral). */
	.cdc-product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
	.cdc-product__name { font-size: .92rem; line-height: 1.3; }
	.cdc-product__price { font-size: 1.2rem; font-weight: 800; }
}
@media (min-width: 1500px) {
	.cdc-home-products .cdc-product { flex-basis: calc((100% - 5 * 1rem) / 6); }
}
/* Foto cuadrada, como en las tiendas; los vehiculos siguen apaisados. */
.cdc-product:not(.is-vehiculo) .cdc-product__media { aspect-ratio: 1 / 1; }
.cdc-product__media .cdc-product__img { padding: .6rem; }
.cdc-product { border-color: #ececec; }
.cdc-product:hover { border-color: #d9d9d9; }

/* ==========================================================================
   Bloques de marcas afiliadas (Publicidad → Bloques de afiliación).
   ========================================================================== */
.cdc-bloque-afil {
	position: relative;
	margin: 1.25rem auto;
	padding: .9rem .75rem;
	background: #fff;
	border: 1px solid var(--cdc-line);
	border-radius: var(--cdc-radius);
	max-width: var(--cdc-wrap, 1400px);
}
.cdc-bloque-afil__etiqueta {
	display: none;
	font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cdc-ink-4, #999);
}
.cdc-bloque-afil__fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.cdc-bloque-afil__item { display: flex; justify-content: center; align-items: center; max-width: 100%; overflow: hidden; }
.cdc-bloque-afil__item img { max-width: 100%; height: auto; display: block; }
.cdc-bloque-afil__item[data-cdc-pendiente] { display: none; }
.cdc-product-grid__publi { grid-column: 1 / -1; }
.cdc-product-grid__publi .cdc-bloque-afil { margin: .25rem 0; }
.cdc-bloque-afil--lateral { margin: 1rem 0; padding: 1.4rem .5rem .75rem; }
.cdc-bloque-afil--lateral .cdc-bloque-afil__fila { flex-direction: column; }

/* Producto en varias tiendas: «Desde» + «en N tiendas». */
.cdc-product__desde { font-size: .7rem; color: var(--cdc-ink-3, #777); margin-right: .25rem; align-self: center; }
.cdc-product__shop { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.cdc-product__tiendas {
	flex: 0 0 auto; font-size: .7rem; font-weight: 700; color: var(--cdc-primary);
	background: #eef5f1; border-radius: 999px; padding: .15rem .5rem; white-space: nowrap;
}

/* ==========================================================================
   Categoria estilo Tradeinn: titulo, subcategorias con foto y guia al final.
   ========================================================================== */
.cdc-cat-cabecera { margin: 0 0 1.1rem; }
.cdc-cat-cabecera__titulo { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .35rem; color: var(--cdc-ink); }
.cdc-cat-cabecera__intro { margin: 0; max-width: 80ch; color: var(--cdc-ink-2); font-size: .92rem; }

.cdc-subcats-grid { margin: 0 0 1.5rem; }
.cdc-subcats-grid__titulo { font-size: 1.15rem; margin: 0 0 .85rem; }
/* Subcategorías — Tradeinn .subfamilias-wrapper li: radio .5rem, fondo blanco, columna centrada, solo foto + título. */
.cdc-subcats-grid__lista {
	display: flex; flex-direction: row; gap: 1rem; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
	width: 100%; padding: .25rem 0 .5rem; background: none; border-radius: 0;
	grid-template-columns: unset;
}
.cdc-subcats-grid__lista::-webkit-scrollbar { display: none; }
.cdc-subcat-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; gap: .5rem; padding: 1rem;
	background: #fff; border: none; border-radius: 8px;
	color: var(--cdc-ink); text-decoration: none;
	transition: box-shadow 0.15s ease;
	min-height: 0; flex: 0 0 40%; width: 100%; scroll-snap-align: start;
}
.cdc-subcat-card:hover,
.cdc-subcat-card:focus-within {
	border-color: transparent;
	box-shadow: 0 4px 2rem 0 rgba(0, 0, 0, 0.15);
	transform: none;
}
.cdc-subcat-card__foto {
	width: 100%; height: auto; aspect-ratio: 1; min-height: 0; max-height: none;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	background: #fff; border-radius: 0;
}
.cdc-subcat-card__foto img {
	max-width: 100%; max-height: 100%; width: auto; height: auto; padding: 0;
	object-fit: contain; object-position: center; display: block; margin: 0 auto;
	transition: transform 0.3s ease-in-out;
}
.cdc-subcat-card:hover .cdc-subcat-card__foto img,
.cdc-subcat-card:focus-within .cdc-subcat-card__foto img { transform: scale(1.1); }
.cdc-subcat-card__nombre {
	font-weight: 600; font-size: 0.9rem; line-height: 1.2rem; text-align: center; min-height: 0; display: block;
}
.cdc-subcat-card:hover .cdc-subcat-card__nombre,
.cdc-subcat-card:focus-within .cdc-subcat-card__nombre { font-weight: 700; }
/* Numero de productos y texto de cada subcategoria: visibles siempre (SEO y ayuda para elegir). */
.cdc-subcat-card__dato { display: block; font-size: .74rem; color: var(--cdc-ink-3, #777); }
.cdc-subcat-card.is-grande .cdc-subcat-card__dato { display: block !important; }
.cdc-subcat-card.is-grande .cdc-subcat-card__desc {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cdc-subcat-card:focus-visible { outline: 3px solid var(--cdc-primary); outline-offset: 3px; }
@media (min-width: 500px) {
	.cdc-subcat-card { flex: 0 0 28%; }
}
@media (min-width: 800px) {
	.cdc-subcat-card { flex: 0 0 20%; }
}
@media (min-width: 1270px) {
	.cdc-subcats-grid__lista { overflow-x: visible; overflow-y: visible; scroll-snap-type: none; }
	.cdc-subcat-card { flex: 1 1 0; min-width: 0; }
}

.cdc-cat-seo {
	margin: 2.5rem 0 1rem; padding: 1.5rem 1.6rem; background: #fff;
	border: 1px solid var(--cdc-line); border-radius: var(--cdc-radius);
	color: var(--cdc-ink-2); font-size: .92rem; line-height: 1.65;
}
.cdc-cat-seo h2 { font-size: 1.15rem; color: var(--cdc-ink); margin: 1.2rem 0 .5rem; }
.cdc-cat-seo h2:first-child { margin-top: 0; }
.cdc-cat-seo h3 { font-size: 1rem; color: var(--cdc-ink); margin: 1rem 0 .4rem; }
.cdc-cat-seo p { margin: 0 0 .8rem; }

@media (max-width: 860px) {
	.cdc-cat-cabecera__titulo { font-size: 1.3rem; }
	.cdc-subcats-grid__lista { display: flex; grid-template-columns: unset; gap: .85rem; }
	.cdc-subcat-card { scroll-snap-align: start; min-height: 0; flex: 0 0 45%; }
	.cdc-subcat-chips:has(~ .cdc-subcats-grid) { display: none !important; }
	.cdc-cat-seo { padding: 1.1rem; }
}

/* Tarjetas de categoria de la PORTADA: foto real de un producto de la
   categoria sobre blanco y el nombre debajo, cada una en su caja blanca con
   aire alrededor (como las familias/subfamilias de Tradeinn). */
.cdc-home-cats__lista {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 24px; padding: 0 1rem 1.25rem;
}
.cdc-subcat-card__foto { background: #fff; }
.cdc-subcat-card.is-vehiculo .cdc-subcat-card__foto img { object-fit: contain; border-radius: 0; background: #fff; }
.cdc-subcat-card.is-grande {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	padding: 1.1rem 1rem 1.2rem; gap: .45rem; background: #fff;
	border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
	min-width: 0; width: auto; min-height: 0; aspect-ratio: auto; overflow: hidden;
	flex: initial; scroll-snap-align: none;
}
.cdc-subcat-card.is-grande:hover,
.cdc-subcat-card.is-grande:focus-within {
	border-color: transparent; box-shadow: 0 4px 2rem 0 rgba(0,0,0,.15); transform: translateY(-2px);
}
.cdc-subcat-card.is-grande .cdc-subcat-card__foto {
	position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1;
	min-height: 0; max-height: none; background: #fff; border-radius: 0;
}
.cdc-subcat-card.is-grande .cdc-subcat-card__foto img {
	width: auto; height: auto; max-width: 100%; max-height: 100%; padding: 0;
	object-fit: contain; border-radius: 0; background: #fff;
}
.cdc-subcat-card.is-grande:hover .cdc-subcat-card__foto img,
.cdc-subcat-card.is-grande:focus-within .cdc-subcat-card__foto img { transform: scale(1.06); }
.cdc-subcat-card.is-grande .cdc-subcat-card__nombre,
.cdc-subcat-card.is-grande .cdc-subcat-card__dato,
.cdc-subcat-card.is-grande .cdc-subcat-card__desc { position: static; color: var(--cdc-ink); text-shadow: none; }
.cdc-subcat-card.is-grande .cdc-subcat-card__nombre { font-size: 1.02rem; line-height: 1.3; font-weight: 700; display: block; }
.cdc-subcat-card.is-grande .cdc-subcat-card__dato { display: block !important; font-size: .78rem; color: var(--cdc-ink-3, #777); }
.cdc-subcat-card.is-grande .cdc-subcat-card__desc {
	display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: .76rem; line-height: 1.35; color: var(--cdc-ink-3, #777); max-width: 100%;
}
.cdc-subcat-card__desc {
	font-size: .74rem; line-height: 1.35; color: var(--cdc-ink-3, #777);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	max-width: 100%;
}
.cdc-home-cats__lista .cdc-publi { grid-column: span 2; }
@media (min-width: 1600px) {
	.cdc-home-cats__lista { gap: 28px; }
}
@media (max-width: 860px) {
	.cdc-home-cats__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 .75rem 1rem; }
	.cdc-subcat-card.is-grande { padding: .8rem .7rem 1rem; }
	.cdc-subcat-card.is-grande .cdc-subcat-card__nombre { font-size: .92rem; }
	.cdc-subcat-card.is-grande .cdc-subcat-card__desc { font-size: .72rem; }
}
/* Overflow seguro en fotos de subcategoría (evita recortes laterales). */
.cdc-subcat-card__foto, .cdc-subcat-card__foto img { max-width: 100%; box-sizing: border-box; }

/* Version cache-busting for browsers. */

/* Chips de subcategoria en listado de categoria (sin banner). */
.cdc-subcat-card { min-width: 0; padding: 1rem; border-radius: 8px; gap: .5rem; }
.cdc-subcat-card__foto { border-radius: 0; }
.cdc-subcat-card__foto img { padding: 0; }
.cdc-subcat-card.is-vehiculo .cdc-subcat-card__foto img { padding: 0; }
.cdc-subcat-card__nombre { min-height: 0; display: block; }
.cdc-subcat-card:focus-visible { outline: 3px solid var(--cdc-primary); outline-offset: 3px; }
.cdc-subcat-card:hover, .cdc-subcat-card:focus-within {
	border-color: transparent;
	box-shadow: 0 4px 2rem 0 rgba(0,0,0,.15);
	transform: none;
}
.cdc-subcats-grid__lista {
	display: flex;
	flex-direction: row;
	grid-template-columns: unset;
	gap: 1rem;
	background: none;
	border-radius: 0;
	padding: .25rem 0 .5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}
.cdc-category-landing .cdc-section { padding-inline: 0; }
.cdc-category-landing .cdc-section__header { padding-inline: 0; }
.cdc-category-landing .cdc-products { padding-inline: 0; }
@media (min-width: 1270px) {
	.cdc-subcats-grid__lista {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
		scroll-snap-type: none;
		padding: .25rem 0 .5rem;
	}
	.cdc-subcat-card { flex: initial; width: 100%; }
}
@media (max-width: 860px) {
	.cdc-subcats-grid__lista { display: flex; grid-template-columns: unset; }
	.cdc-subcat-card { flex: 0 0 45%; }
}
@media (max-width: 540px) {
	.cdc-subcats-grid__lista { padding: .25rem 0 .5rem; gap: .75rem; }
	.cdc-subcat-card { flex: 0 0 70%; padding: .85rem; min-height: 0; }
	.cdc-subcat-card__foto { height: auto; min-height: 0; }
	.cdc-subcat-card__nombre { font-size: .9rem; line-height: 1.2rem; }
	.cdc-category-landing .cdc-section__header { flex-wrap: wrap; gap: .5rem; }
	.cdc-category-landing .cdc-section__tag { font-size: .7rem; }
}

/* Marca «CD» delante del nombre de cada categoria (branding Cosas de Camping). */
.cdc-cd {
	display: inline-block; margin-right: 1px; padding: .08em .34em;
	background: var(--cdc-ink, #1f2a24); color: var(--cdc-mustard, #e0a82e);
	font-weight: 800; font-style: italic; font-size: .78em; letter-spacing: .02em;
	border-radius: 4px; line-height: 1.3; vertical-align: .08em;
}
.cdc-cd__punto {
	display: inline-block; width: 4px; height: 4px; margin: 0 5px 0 3px;
	background: var(--cdc-mustard, #e0a82e); border-radius: 50%; vertical-align: .22em;
}

/* Subcategorias (al entrar en una categoria): cajas blancas con borde fino y
   aire entre ellas, varias por fila, como las subfamilias de Tradeinn. */
.cdc-subcat-card:not(.is-grande) {
	border: 1px solid #e8e8e8; box-shadow: 0 1px 2px rgba(0,0,0,.05); background: #fff;
}
.cdc-subcat-card:not(.is-grande):hover,
.cdc-subcat-card:not(.is-grande):focus-within { border-color: transparent; box-shadow: 0 4px 2rem 0 rgba(0,0,0,.15); }
@media (min-width: 861px) {
	.cdc-subcats-grid__lista {
		display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
		overflow: visible; scroll-snap-type: none; padding: .25rem 0 .75rem;
	}
	.cdc-subcat-card:not(.is-grande) { flex: initial; width: auto; }
}

/* Entre tablet y portatil pequeno la cabecera no cabe con los textos: solo
   iconos. El texto sigue ahi para lectores de pantalla (oculto a la vista). */
@media (min-width: 861px) and (max-width: 1150px) {
	.cdc-nav__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.cdc-nav__link { position: relative; }
	.cdc-nav__link { padding: 0.5rem; }
}

/* ==========================================================================
   Banners de categoria principal (portada) — como los «banner-familia» de
   Tradeinn: foto de ambiente a todo el ancho, titulo blanco centrado encima.
   ========================================================================== */
.cdc-home-cats__lista:has(> .cdc-cat-banner) {
	grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.cdc-cat-banner {
	position: relative; display: block; aspect-ratio: 2 / 1; min-width: 0;
	border-radius: 8px; overflow: hidden; isolation: isolate;
	background: #dfe8e5; color: #fff; text-decoration: none;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
	transition: box-shadow .2s ease, transform .2s ease;
}
.cdc-cat-banner__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center; transition: transform .45s ease;
}
/* Velo suave para que el texto se lea sobre cualquier foto. */
.cdc-cat-banner::after {
	content: ''; position: absolute; inset: 0; z-index: 0;
	background: radial-gradient(ellipse at center, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.05) 100%);
	transition: background .2s ease;
}
.cdc-cat-banner__txt {
	position: absolute; inset: 0; z-index: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: .3rem; padding: 1rem 1.25rem; text-align: center;
	text-shadow: 2px 1px 20px rgba(0,0,0,.68), 0 1px 3px rgba(0,0,0,.45);
}
.cdc-cat-banner__titulo { font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.cdc-cat-banner__titulo .cdc-cd { font-size: .5em; vertical-align: .35em; text-shadow: none; }
.cdc-cat-banner__titulo .cdc-cd__punto { vertical-align: .45em; }
.cdc-cat-banner__dato { font-size: .85rem; font-weight: 600; opacity: .95; }
.cdc-cat-banner__desc {
	font-size: .8rem; line-height: 1.35; opacity: .95; max-width: 40ch;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cdc-cat-banner:hover,
.cdc-cat-banner:focus-visible { box-shadow: 0 4px 2rem 0 rgba(0,0,0,.15); transform: translateY(-2px); }
.cdc-cat-banner:hover .cdc-cat-banner__img,
.cdc-cat-banner:focus-visible .cdc-cat-banner__img { transform: scale(1.06); }
.cdc-cat-banner:hover::after { background: radial-gradient(ellipse at center, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.08) 100%); }
.cdc-cat-banner:focus-visible { outline: 3px solid var(--cdc-orange, #e8753f); outline-offset: 3px; }

@media (max-width: 1100px) {
	.cdc-home-cats__lista:has(> .cdc-cat-banner) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	/* Numero impar de categorias: la ultima ocupa la fila entera, sin hueco. */
	.cdc-home-cats__lista > .cdc-cat-banner:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
	.cdc-cat-banner__titulo { font-size: 1.45rem; }
}
@media (max-width: 600px) {
	.cdc-home-cats__lista:has(> .cdc-cat-banner) { gap: 10px; }
	/* Cuadrados en movil para que quepa tambien el texto de la categoria. */
	.cdc-cat-banner { aspect-ratio: 1 / 1; }
	.cdc-cat-banner__txt { padding: .55rem; gap: .2rem; }
	.cdc-cat-banner__titulo { font-size: 1rem; line-height: 1.2; }
	.cdc-cat-banner__dato { font-size: .72rem; }
	.cdc-cat-banner__desc { font-size: .68rem; line-height: 1.3; -webkit-line-clamp: 3; }
	.cdc-home-cats__lista > .cdc-cat-banner:last-child:nth-child(odd) { aspect-ratio: 2 / 1; }
}
/* Sin titulo encima: un poco de aire respecto al bloque anterior. */
.cdc-home-cats { padding-top: 1.25rem; }

/* ==========================================================================
   Escaparate de categoria principal (estructura Tradeinn)
   ========================================================================== */
.cdc-bloque-afil--categoria-cabecera { margin: 0 0 1.25rem; padding: 0; border: 0; background: none; max-width: none; }
.cdc-bloque-afil--categoria-cabecera .cdc-bloque-afil__item img { width: 100%; height: auto; border-radius: 8px; }

/* Carrusel de marcas: sin caja, logos en gris que cogen color al pasar. */
.cdc-marcas-cat { position: relative; display: flex; align-items: center; gap: .25rem; margin: 0 0 1.25rem; }
.cdc-marcas-cat__pista {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: 2.25rem;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: .5rem .25rem;
}
.cdc-marcas-cat__pista::-webkit-scrollbar { display: none; }
.cdc-marcas-cat__marca { flex: 0 0 auto; display: flex; align-items: center; height: 44px; scroll-snap-align: start; }
.cdc-marcas-cat__marca img {
	width: auto; height: auto; max-height: 36px; max-width: 120px; object-fit: contain;
	filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease;
}
.cdc-marcas-cat__marca:hover img,
.cdc-marcas-cat__marca:focus-visible img { filter: none; opacity: 1; }
.cdc-marcas-cat__flecha {
	flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
	background: transparent; color: var(--cdc-ink-3, #777); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.cdc-marcas-cat__flecha:hover { background: #fff; color: var(--cdc-ink); }

/* Subcategorias del escaparate: llenan todo el ancho. */
.cdc-category-landing .cdc-subcats-grid__titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 861px) {
	.cdc-category-landing .cdc-subcats-grid__lista { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
	.cdc-category-landing .cdc-subcat-card__foto { max-height: 170px; }
}
@media (max-width: 860px) {
	.cdc-marcas-cat__flecha { display: none; }
	.cdc-marcas-cat__pista { gap: 1.5rem; }
	.cdc-marcas-cat__marca img { max-height: 28px; max-width: 96px; }
}
@media (max-width: 540px) {
	.cdc-category-landing .cdc-subcat-card { flex: 0 0 44%; padding: .7rem; }
	.cdc-category-landing .cdc-subcat-card__foto { max-height: 120px; }
}

/* ==========================================================================
   Subcategorias con foto de ambiente (escaparate de categoria). Mismo banner
   que la portada pero mas sobrio: foto real, degradado suave abajo y el texto
   alineado a la izquierda, como una seccion de tienda y no como un anuncio.
   ========================================================================== */
.cdc-cat-banner--sub { aspect-ratio: 4 / 3; box-shadow: none; }
.cdc-cat-banner--sub::after {
	background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.46) 34%, rgba(0,0,0,.08) 66%, rgba(0,0,0,0) 100%);
}
.cdc-cat-banner--sub:hover::after,
.cdc-cat-banner--sub:focus-visible::after {
	background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 38%, rgba(0,0,0,.12) 70%, rgba(0,0,0,0) 100%);
}
.cdc-cat-banner--sub .cdc-cat-banner__txt {
	justify-content: flex-end; align-items: flex-start; text-align: left;
	gap: .2rem; padding: .85rem .95rem .9rem;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.cdc-cat-banner--sub .cdc-cat-banner__titulo { font-size: 1.12rem; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
.cdc-cat-banner--sub .cdc-cat-banner__dato { font-size: .74rem; font-weight: 600; opacity: .9; }
.cdc-cat-banner--sub .cdc-cat-banner__desc { font-size: .76rem; line-height: 1.35; opacity: .92; max-width: none; }
.cdc-cat-banner--sub:hover,
.cdc-cat-banner--sub:focus-visible { transform: none; box-shadow: 0 4px 1.5rem 0 rgba(0,0,0,.14); }
.cdc-cat-banner--sub:hover .cdc-cat-banner__img,
.cdc-cat-banner--sub:focus-visible .cdc-cat-banner__img { transform: scale(1.04); }

@media (min-width: 861px) {
	.cdc-subcats-grid__lista--banners,
	.cdc-category-landing .cdc-subcats-grid__lista--banners {
		display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
	}
}
@media (max-width: 860px) {
	.cdc-subcats-grid__lista--banners > .cdc-cat-banner--sub { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 540px) {
	.cdc-subcats-grid__lista--banners { gap: .6rem; }
	.cdc-subcats-grid__lista--banners > .cdc-cat-banner--sub { flex: 0 0 66%; }
	.cdc-cat-banner--sub .cdc-cat-banner__txt { padding: .65rem .7rem .7rem; }
	.cdc-cat-banner--sub .cdc-cat-banner__titulo { font-size: 1rem; }
	.cdc-cat-banner--sub .cdc-cat-banner__desc { font-size: .7rem; }
}
/* El color de enlace al pasar el raton no debe teñir el texto del banner. */
.cdc-cat-banner:hover, .cdc-cat-banner:focus-visible,
.cdc-cat-banner:hover .cdc-cat-banner__txt, .cdc-cat-banner:focus-visible .cdc-cat-banner__txt { color: #fff; }

/* Thais uses a square seal: preserve its legibility on product cards. */
.cdc-product__shoplogo.cm-shoplogo--thais { width: 54px; height: 54px; max-width: 54px; max-height: 54px; }
@media (max-width: 760px) { .cdc-product__shoplogo.cm-shoplogo--thais { width: 48px; height: 48px; max-width: 48px; max-height: 48px; } }

/* Categorías móviles: se muestra únicamente el nivel que se abre. */
.cdc-mobile-tree { padding: .25rem 0 1rem; }
.cdc-mobile-branch > summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:48px; padding:.8rem 1rem; color:var(--cdc-ink); font-weight:700; cursor:pointer; list-style:none; border-bottom:1px solid var(--cdc-line); }
.cdc-mobile-branch > summary::-webkit-details-marker { display:none; }
.cdc-mobile-branch > summary > span { font-size:1.5rem; transition:transform .15s; }
.cdc-mobile-branch[open] > summary > span { transform:rotate(90deg); }
.cdc-mobile-branch:not([open]) > .cdc-mobile-branch__children { display:none !important; }
.cdc-mobile-branch__children { margin-left:.65rem; border-left:2px solid var(--cdc-line); }
.cdc-mobile-branch__children summary { font-size:.9rem; font-weight:600; }
.cdc-mobile-leaf, .cdc-mobile-branch__all { display:block; padding:.8rem 1rem; min-height:44px; text-decoration:none; color:var(--cdc-ink); border-bottom:1px solid var(--cdc-line); font-size:.9rem; }
.cdc-mobile-branch__all { color:var(--cdc-orange-dark); font-weight:700; background:var(--cdc-bg); }
.cdc-mobile-tree :focus-visible { outline:2px solid var(--cdc-orange); outline-offset:-3px; }
/* Accesos móviles siempre visibles; no afectan a la navegación de escritorio. */
@media (max-width: 860px) {
  .cdc-mobile-shortcuts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 6; flex: 0 0 100%; gap: .4rem; min-width: 0;
  }
  .cdc-mobile-shortcuts > a, .cdc-mobile-shortcuts > button {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    min-height: 44px; min-width: 0; margin: 0; padding: .4rem .25rem;
    border: 1px solid var(--cdc-line); border-radius: var(--cdc-radius);
    background: var(--cdc-surface); color: var(--cdc-ink);
    font: inherit; font-size: .78rem; font-weight: 700; text-decoration: none;
  }
  .cdc-mobile-shortcuts > .cdc-hamburger { order: 0; }
  .cdc-mobile-shortcuts svg { width: 18px; height: 18px; flex-shrink: 0; }
  .cdc-mobile-shortcuts > :focus-visible { outline: 2px solid var(--cdc-primary); outline-offset: 2px; }
  .cdc-mobile-shortcuts > :hover { background: var(--cdc-bg); }
}

/* Árbol de categorías del afiliado accesible también en pantallas pequeñas. */
.cdc-source-categories-toggle { display: none; }
@media (max-width: 860px) {
  .cdc-header .cdc-search-total { display: none !important; }
  .cdc-header .cdc-search { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 900px) {
  .cdc-source-categories-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    width: 100%; min-height: 44px; padding: .75rem;
    background: var(--cdc-surface); color: var(--cdc-primary);
    border: 1px solid var(--cdc-line); border-radius: 10px;
    font: inherit; font-weight: 700; text-align: left; cursor: pointer;
  }
  .cdc-source-categories-toggle:focus-visible { outline: 2px solid var(--cdc-primary); outline-offset: 2px; }
  .cdc-source-categories.is-open {
    display: block; position: static !important; flex: none !important;
    box-sizing: border-box; width: 100%; max-height: 55vh; overflow: auto;
    padding: .65rem; border: 1px solid var(--cdc-line); border-radius: 10px;
    background: var(--cdc-surface);
  }
  .cdc-source-categories a { min-height: 44px; font-size: .85rem !important; align-items: center; }
  .cdc-source-categories a span:first-child { white-space: normal !important; }
}
