/* ============================================================
   TauPadel — tu tienda de pádel
   Sistema: base blanca · tinta navy · acento teal · lima pelota
   Radios: tarjetas/inputs 14px · tiles 18px · botones píldora
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --ink: #625D5D;
  --ink-2: #524E4E;
  --ink-3: #746E6E;
  --paper: #F9FDFE;
  --mist: #EFEFEF;
  --line: #e0e0e0;
  --teal: #EFEFEF;
  --teal-dark: #D9D9D9;
  --teal-soft: #F5F5F5;
  --lime: #D9D9D9;
  --text: #1a1a2e;
  --muted: #6b6b6b;
  --shadow: 0 10px 30px -12px rgba(98, 93, 93, .22);
  --r-card: 14px;
  --r-tile: 18px;
  --container: 1280px;
  --header-h: 180px;
}
@media (max-width: 900px) {
  :root { --header-h: 118px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; }
::selection { background: var(--ink); color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: none; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink-3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn.disabled { pointer-events: none; opacity: .5; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: var(--ink);
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Topbar promocional (mensaje único + flechas) ---------- */
.topbar {
  background: #625D5D; color: #fff; font-size: 13.5px; font-weight: 500;
  position: relative; z-index: 60;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px;
}
.topbar-msgs { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; min-height: 100%; }
.topbar-msg {
  position: absolute; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease; pointer-events: none; text-align: center;
  white-space: nowrap;
}
@media (max-width: 640px) { .topbar { font-size: 12px; } }
.topbar-msg.on { opacity: 1; pointer-events: auto; }
.topbar-msg strong { color: #fff; font-weight: 800; }
.topbar-msg code {
  font-family: inherit; background: rgba(255, 255, 255, .15); color: #fff;
  padding: 1px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .04em;
}
.topbar-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; color: #fff; flex-shrink: 0;
  transition: background .2s ease;
}
.topbar-arrow:hover { background: rgba(255, 255, 255, .1); }
.topbar-arrow svg { width: 20px; height: 20px; }

/* ---------- Header (banda de marca + fila de búsqueda) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.header-brand { background: var(--ink); }
.header-brand-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 66px; }
.header-brand-in .logo { justify-self: center; grid-column: 2; }
.header-brand-in > .icon-btn.light { grid-column: 3; justify-self: end; }
.header-brand .logo-text b { color: #fff; }
.header-brand .logo-text span { color: #999999; }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255, 255, 255, .1); }
.header-main { display: flex; align-items: center; gap: 12px; height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg.mark { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.logo-text span { font-size: 8.5px; font-weight: 600; letter-spacing: .34em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }

.search {
  display: flex; align-items: center; flex: 1; max-width: none;
  background: var(--mist); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 6px 0 20px; height: 46px; transition: border-color .2s ease, background .2s ease;
}
.search:focus-within { border-color: var(--ink); background: var(--paper); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: #999999; }
.search button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff;
  transition: background .2s ease;
}
.search button:hover { background: var(--ink); }
.search button svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .icon-btn { position: relative; flex-direction: column; gap: 2px; }
.header-actions .label { font-size: 10px; font-weight: 600; color: var(--muted); display: none; }
.cart-count {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px;
  background: #e53935; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: none; align-items: center; justify-content: center;
  padding: 0 5px; line-height: 1; pointer-events: none;
}
.cart-count.show { display: inline-flex; }
#burger { display: none; }

/* ---------- Nav ---------- */
.nav { border-top: 1px solid var(--line); background: var(--paper); }
.nav ul {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  list-style: none; height: 48px; overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav ul > li > a {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav ul > li > a:hover { background: var(--mist); color: var(--ink); }
.nav ul > li > a.hot { color: var(--ink); font-weight: 800; }
.nav ul > li > a.hot:hover { background: var(--ink); color: #fff; }

/* ---------- Título de página ---------- */
.page-title {
  text-align: center; padding: 44px 24px 10px;
}
.page-title h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.1;
}
.page-title h1 em { font-style: normal; color: var(--ink); opacity: .55; }

/* ---------- Banners de colección ---------- */
.banners { display: grid; gap: 20px; padding-block: 26px 20px; }
.banner {
  border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.banner-media { position: relative; }
.banner-media svg, .banner-media img, .banner-media video {
  display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover;
}
@media (min-width: 900px) {
  .banner-media svg, .banner-media img, .banner-media video { aspect-ratio: 16 / 9.6; }
}
/* Vídeo vertical (9:16): sube el encuadre para no cortar por la cara/producto */
.banner-media[data-banner="verano"] video { object-position: 50% 18%; }
.banner-media[data-banner="mundial"] img { object-position: 50% 32%; }
.banner-body { padding: 24px 26px 30px; display: grid; gap: 5px; justify-items: start; }
.banner-eyebrow { font-size: 14.5px; font-weight: 500; }
.banner-body h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.banner-body h2 em { font-style: normal; color: var(--ink-3); }
.banner-sub { font-size: 15.5px; }
.btn-sq {
  display: inline-block; margin-top: 14px; padding: 13px 24px; border-radius: 8px;
  font-weight: 700; font-size: 15px; transition: transform .15s ease, opacity .2s ease;
}
.btn-sq:hover { opacity: .88; }
.btn-sq:active { transform: scale(.97); }
.btn-sq.dark { background: var(--ink); color: #fff; }
.btn-sq.light { background: var(--paper); color: var(--ink); }
.b-lime { background: var(--lime); color: var(--ink); }
.b-lime .banner-eyebrow, .b-lime .banner-sub { color: #2d3a10; }
.b-magenta { background: #8e1d4c; color: #fff; }
.b-magenta .banner-eyebrow, .b-magenta .banner-sub { color: #f2cede; }
.b-sky { background: #d6e3f5; color: var(--ink); }
.b-sky .banner-eyebrow, .b-sky .banner-sub { color: #3f4d61; }
.b-dark { background: var(--ink); color: #fff; }
.b-dark .banner-eyebrow, .b-dark .banner-sub { color: #aebbc6; }
.b-split { background: var(--ink); color: #fff; }
.b-split .banner-eyebrow, .b-split .banner-sub { color: #aebbc6; }

/* Banner de vídeo completo: se respeta la proporción real del clip
   (nada se recorta) y el texto flota encima sobre un degradado. */
.banner.video-hero { position: relative; background: var(--ink); }
.banner.video-hero .banner-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
}
.banner.video-hero::before {
  content: ''; position: absolute; inset: 0 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(22, 22, 22, .95) 0%, rgba(22, 22, 22, .65) 32%, rgba(22, 22, 22, 0) 60%);
}
.banner.video-hero .banner-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 26px 30px; color: #fff;
}
.banner.video-hero .banner-eyebrow, .banner.video-hero .banner-sub { color: #cccccc; }
@media (min-width: 900px) {
  .banners { grid-template-columns: 1fr 1fr; align-items: start; }
  .banner.span2 { grid-column: 1 / -1; flex-direction: row; }
  .banner.span2 .banner-media { flex: 1.25; }
  .banner.span2 .banner-media svg, .banner.span2 .banner-media img, .banner.span2 .banner-media video { height: 100%; aspect-ratio: auto; min-height: 380px; }
  .banner.span2 .banner-body { flex: 1; align-content: center; padding: 40px 48px; }
}

/* Banner de foto limpia: sin texto ni degradado encima, solo la imagen. */
.banner.photo-only .banner-media svg,
.banner.photo-only .banner-media img,
.banner.photo-only .banner-media video {
  aspect-ratio: auto; width: 100%; height: auto; object-fit: contain;
}

/* ---------- Hero sidebar + header links (solo desktop) ---------- */
.hero-sidebar { display: none; }
.header-links { display: none; }

/* La sección de banners está partida en dos (hero / secundarios) para poder
   intercalar la franja de USP entre ambas en desktop. En móvil las dos
   secciones se pegan para conservar exactamente el ritmo vertical original. */
.banners-hero { padding-block: 26px 0; }
.banners-secondary { padding-block: 20px 20px; }

@media (min-width: 1024px) {

  /* ===== 1. Header colapsado a una sola fila ===== */
  .header {
    display: flex; align-items: center; gap: 28px;
    height: 90px; background: var(--ink);
    border-bottom: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    padding-inline: max(24px, calc((100% - var(--container)) / 2));
  }
  .header-brand { background: none; flex: 0 0 auto; }
  .header-brand-in {
    display: flex; align-items: center; height: auto;
    max-width: none; margin-inline: 0; padding-inline: 0;
  }
  .header-brand-in .logo { justify-self: start; grid-column: auto; }
  .header-main {
    flex: 1; min-width: 0; height: auto; gap: 22px;
    justify-content: flex-end;
    max-width: none; margin-inline: 0; padding-inline: 0;
  }
  /* Las categorías ya viven en el sidebar del hero: no se duplican aquí. */
  .nav { display: none; }

  .header-links { display: flex; align-items: center; gap: 26px; }
  .header-links a {
    font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap;
    transition: opacity .18s ease;
  }
  .header-links a:hover { opacity: .72; }

  .header .search {
    flex: 0 0 460px; width: 460px; max-width: 460px;
    background: #fff; border-color: transparent;
  }
  .header .search:focus-within { background: #fff; border-color: transparent; }
  .header-actions .icon-btn { color: #fff; }
  .header-actions .icon-btn:hover { background: rgba(255, 255, 255, .12); }

  /* ===== 2. Sin headline sobre el hero ===== */
  .page-title { display: none; }

  /* ===== Orden vertical: hero → USP → banners secundarios ===== */
  body { display: flex; flex-direction: column; }
  /* width:100% es obligatorio: como flex item, el margin-inline:auto de
     .container anularía el stretch y encogería la sección a su contenido. */
  body > * { order: 5; width: 100%; }
  .topbar { order: 0; }
  .header { order: 1; }
  .banners-hero { order: 2; }
  .usp { order: 3; }
  .banners-secondary { order: 4; }

  /* ===== 3. Hero: 2 columnas exactas (sidebar + imagen) ===== */
  .banners-hero {
    display: grid; grid-template-columns: 240px 1fr;
    grid-template-rows: 560px; gap: 0 32px;
    padding-block: 20px 16px;
  }
  .banners-hero .banner.video-hero { display: none; }
  .banners-hero .banner:hover { transform: none; box-shadow: none; }

  .hero-sidebar {
    display: flex; flex-direction: column; align-self: start;
    background: none; border: none; border-radius: 0;
    box-shadow: none; overflow: visible; padding-top: 6px;
  }
  .hero-sidebar-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 0; font-size: 15px; font-weight: 700;
    color: var(--ink); text-decoration: none; border: none;
    transition: color .15s ease;
  }
  .hero-sidebar-item:hover { color: var(--ink-3); }
  .hero-sidebar-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted); }

  .banners-hero .banner.span2.photo-only {
    grid-column: 2; flex-direction: column; height: 560px;
    border-radius: var(--r-tile); overflow: hidden;
  }
  .banners-hero .banner.photo-only .banner-media { height: 100%; }
  .banners-hero .banner.photo-only .banner-media img,
  .banners-hero .banner.photo-only .banner-media video {
    width: 100%; height: 100%; min-height: 0;
    aspect-ratio: auto; object-fit: cover; object-position: center 35%;
  }

  /* ===== 4. Franja de USP debajo del hero ===== */
  .usp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
    height: 76px; padding-block: 0; align-items: center;
  }

  /* ===== 5. Banners en dos columnas reales, texto en overlay ===== */
  .banners-secondary {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    padding-block: 24px;
  }
  .banners-secondary .banner {
    position: relative; height: 420px;
    border-radius: var(--r-tile); overflow: hidden;
  }
  .banners-secondary .banner .banner-media { height: 100%; }
  .banners-secondary .banner .banner-media img,
  .banners-secondary .banner .banner-media video {
    width: 100%; height: 100%; min-height: 0; max-height: none;
    aspect-ratio: auto; object-fit: cover;
  }
  .banners-secondary .banner::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
  }
  .banners-secondary .banner-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 48px; color: #fff;
  }
  .banners-secondary .banner-body h2 { color: #fff; }
  .banners-secondary .banner-eyebrow,
  .banners-secondary .banner-sub { color: rgba(255, 255, 255, .82); }
}

/* ---------- USP ---------- */
.usp { border-bottom: 1px solid var(--line); background: var(--paper); }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 22px;
}
.usp-item {
  display: flex; align-items: center; gap: 14px; padding-inline: 22px;
}
.usp-item + .usp-item { border-left: 1px solid var(--line); }
.usp-item svg { width: 30px; height: 30px; color: var(--ink); flex-shrink: 0; }
.usp-item b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.usp-item small { font-size: 12.5px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding-block: 72px; }
.section-mist { background: var(--mist); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; color: var(--ink);
  line-height: 1.1;
}
.section-head p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.section-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  color: var(--ink); white-space: nowrap; padding-bottom: 2px;
}
.section-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.section-link:hover svg { transform: translateX(4px); }

/* Reveal (solo se oculta cuando hay JS: la clase .js se añade en <head>) */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Categorías (bento) ---------- */
.cats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px;
}
.cat-tile {
  position: relative; border-radius: var(--r-tile); overflow: hidden;
  background: var(--mist); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.cat-tile.big { grid-column: span 2; grid-row: span 2; background: var(--ink); border-color: var(--ink); }
.cat-tile .cat-cta { color: rgba(255,255,255,.85); }
.cat-tile.teal { background: var(--mist); border-color: transparent; }
.cat-art {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  padding: 12% 14% 22%;
}
.cat-art svg { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.cat-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover .cat-art svg { transform: scale(1.05) rotate(-2deg); }
.cat-tile:hover .cat-art img { transform: scale(1.05); }
.cat-tile.big .cat-art { padding: 8% 16% 16%; }
.cat-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0) 40%, rgba(22, 22, 22, .55) 100%);
}
.cat-name { position: relative; z-index: 2; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.01em; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.cat-tile.big .cat-name { font-size: 26px; }
.cat-cta {
  position: relative; z-index: 2; font-size: 13px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
}
.cat-cta svg { width: 14px; height: 14px; }

/* ---------- Tarjeta de producto ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd8de; }
.card-media { position: relative; background: var(--paper); display: block; }
.card-art { aspect-ratio: 1; background: #fff; border-radius: var(--r-card) var(--r-card) 0 0; display: flex; align-items: center; justify-content: center; padding: 12%; }
.card-art svg { width: 100%; height: 100%; transition: transform .3s ease; }
.card:hover .card-art svg { transform: scale(1.06) rotate(-2deg); }
.badge-off, .badge-new {
  position: absolute; top: 12px; z-index: 2; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.badge-off { left: 12px; background: var(--lime); color: var(--ink); }
.badge-new { right: 12px; background: var(--ink); color: #fff; }
.card-fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .2s ease, background .2s ease, transform .15s ease;
  backdrop-filter: blur(4px);
}
.card-fav:hover { color: #e74c6f; background: var(--paper); }
.card-fav.fav-on { color: #e74c6f; }
.card-fav.fav-on svg { fill: #e74c6f; }
.card-fav:active { transform: scale(.88); }
.card-fav svg { width: 17px; height: 17px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.card-brand {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.card-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; min-height: 2.7em; }
.card-rating { display: flex; align-items: center; gap: 2px; }
.card-rating .star { width: 14px; height: 14px; color: #d7dee3; }
.card-rating .star.on { color: #f4b63f; }
.card-rating .star svg { width: 100%; height: 100%; }
.card-reviews { font-size: 12px; color: var(--muted); margin-left: 5px; }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.price-now { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.card-specs { list-style: disc inside; margin: 4px 0 0; padding: 0; }
.card-specs li { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.btn-add {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; transition: background .2s ease, transform .15s ease;
}
.btn-add:hover { background: var(--ink-3); }
.btn-add:active { transform: scale(.97); }
.btn-add svg { width: 17px; height: 17px; }

/* ---------- Carrusel destacadas ---------- */
.head-tools { display: flex; align-items: center; gap: 20px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; background: var(--paper);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.carousel-nav button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.carousel-nav svg { width: 18px; height: 18px; }
.carousel-nav .prev svg { transform: rotate(180deg); }

/* ---------- Banner promo ---------- */
.promo {
  background: var(--ink); border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px;
  padding: 56px 60px;
}
.promo-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 2.5px, transparent 2.5px);
  background-size: 26px 26px;
}
.promo h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 12px; }
.promo h2 em { font-style: normal; color: var(--lime); }
.promo p { color: #b9c6d0; font-size: 16px; max-width: 48ch; margin-bottom: 26px; }
.promo-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; }
.promo-code {
  display: inline-flex; align-items: center; gap: 12px; border: 1.5px dashed rgba(201, 229, 38, .6);
  border-radius: 999px; padding: 11px 22px; font-weight: 800; letter-spacing: .12em; color: var(--lime);
  background: rgba(201, 229, 38, .08); transition: background .2s ease;
}
.promo-code:hover { background: rgba(201, 229, 38, .16); }
.promo-art { position: relative; display: flex; justify-content: center; }
.promo-art svg { width: min(300px, 100%); height: auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  color: var(--ink-3); border: 1.5px solid var(--line); background: var(--paper);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

/* ---------- Marcas ---------- */
.brands { border-block: 1px solid var(--line); padding-block: 34px; overflow: hidden; background: var(--paper); }
.brands-head { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; user-select: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 64px; padding-right: 64px;
  flex-shrink: 0; animation: marquee 30s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { flex-wrap: wrap; justify-content: center; }
}
.brand-mark { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #a8b4be; white-space: nowrap; transition: color .2s ease; }
.brand-mark:hover { color: var(--ink); }
.brand-mark.serifless { letter-spacing: .18em; font-weight: 600; font-size: 20px; }

/* ---------- Consejos / blog ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip-card {
  border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; background: var(--paper);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-media { aspect-ratio: 16 / 8.5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tip-media svg { width: 100%; height: 100%; }
.tip-media img { width: 100%; height: 100%; object-fit: cover; }
.tip-body { padding: 20px 22px 24px; }
.tip-tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tip-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; letter-spacing: -.01em; }
.tip-body p { font-size: 14px; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, #D9D9D9, #EFEFEF); color: var(--ink); }
.newsletter-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 58px;
}
.newsletter h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.newsletter p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.newsletter form { display: flex; gap: 10px; background: var(--paper); border-radius: 999px; padding: 6px; }
.newsletter input {
  flex: 1; border: 0; outline: 0; background: none; padding-left: 18px; font-size: 15px; color: var(--ink); min-width: 0;
}
.newsletter input::placeholder { color: #999999; }
.newsletter .btn { flex-shrink: 0; }
.newsletter small { display: block; margin-top: 12px; color: var(--muted); font-size: 12.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aebbc6; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 60px 44px;
}
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: #888888; }
.footer-about p { font-size: 14px; margin: 18px 0 20px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center; color: #cccccc;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-social a:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer h4 { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; transition: color .18s ease; }
.footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--ink-3); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 20px; flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.payments { display: flex; gap: 8px; align-items: center; }
.payments svg { height: 26px; width: auto; border-radius: 5px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .55);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Drawer carrito ---------- */
#overlay {
  position: fixed; inset: 0; background: rgba(22, 22, 22, .5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90;
}
#overlay.show { opacity: 1; pointer-events: auto; }
#cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 100;
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  box-shadow: -18px 0 50px rgba(22, 22, 22, .18);
}
#cart-drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.drawer-progress { padding: 16px 24px 4px; }
.drawer-progress p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.drawer-progress strong { color: var(--ink); }
.drawer-progress-bar { height: 7px; border-radius: 99px; background: var(--mist); overflow: hidden; }
#drawer-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ink), var(--ink-3)); width: 0; transition: width .4s ease; }
#drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: grid; gap: 14px; align-content: start; }
.drawer-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px;
}
.drawer-item-art { background: var(--mist); border-radius: 10px; padding: 8px; }
.drawer-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 2px 0 8px; }
.drawer-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-item-row strong { font-size: 15px; color: var(--ink); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; font-size: 16px; font-weight: 700; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.drawer-item-remove { color: #9aa8b3; align-self: start; padding: 4px; border-radius: 8px; }
.drawer-item-remove:hover { color: #d64545; background: #fdf0f0; }
.drawer-item-remove svg { width: 17px; height: 17px; }
.drawer-empty { text-align: center; padding: 48px 12px; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.drawer-empty-art { width: 64px; height: 64px; border-radius: 999px; background: var(--mist); display: flex; align-items: center; justify-content: center; }
.drawer-empty-art svg { width: 28px; height: 28px; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; display: grid; gap: 12px; }
.drawer-total-row { display: flex; justify-content: space-between; font-size: 16px; }
.drawer-total-row strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.drawer-promo { margin-bottom: 10px; }
.drawer-promo-row {
  display: flex; gap: 8px;
}
.drawer-promo-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; height: 38px;
  padding: 0 16px; font-size: 13.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; outline: 0; transition: border-color .2s ease; min-width: 0;
}
.drawer-promo-row input:focus { border-color: var(--ink); }
.drawer-promo-row .btn { height: 38px; padding: 0 16px; font-size: 13px; }
.drawer-promo-msg {
  font-size: 12.5px; font-weight: 600; margin-top: 6px; padding-left: 4px;
}
.drawer-promo-msg[hidden] { display: none; }
.promo-ok { color: #16a34a; }
.promo-err { color: #dc2626; }
.drawer-stock-error {
  background: #fef2f2; color: #b91c1c; border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; text-align: center;
}
.drawer-stock-error[hidden] { display: none; }
#drawer-pay, #drawer-checkout {
  height: 54px; font-size: 15px; font-weight: 700; border: none;
}
#drawer-pay { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
#drawer-pay:hover { background: var(--ink-3); }
#drawer-checkout { background: var(--ink); color: #fff; text-decoration: none; }
#drawer-checkout:hover { background: var(--ink-3); }
.drawer-note { text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 110;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast svg { width: 18px; height: 18px; color: var(--lime); }

/* ---------- Mobile nav ---------- */
#mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 100;
  background: var(--paper); transform: translateX(-100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  display: flex; flex-direction: column; padding: 0;
}
#mobile-nav.open { transform: none; }
#mobile-nav .drawer-head { padding: 20px 20px 16px; }

.nav-drawer-body {
  position: relative; overflow: hidden; flex: 1;
}
.nav-panel, .nav-sub-panel {
  position: absolute; inset: 0; overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  list-style: none; display: grid; gap: 0; align-content: start;
}
.nav-panel { transform: translateX(0); }
.nav-sub-panel { transform: translateX(100%); }
.nav-drawer-body.sub-open .nav-panel { transform: translateX(-100%); }
.nav-drawer-body.sub-open .nav-sub-panel { transform: translateX(0); }

.nav-item {
  display: flex; align-items: center; padding: 15px 20px; border-radius: 0;
  font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
  border: none; border-bottom: 1px solid var(--line); background: none;
  width: 100%; text-align: left; text-decoration: none;
}
.nav-item:last-child { border-bottom: none; }
.nav-item:hover { background: var(--mist); }
.nav-item .nav-arrow {
  margin-left: auto; width: 16px; height: 16px; color: var(--muted); flex-shrink: 0;
  opacity: .5;
}
.nav-item.hot { color: var(--ink); font-weight: 800; }

.nav-back {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  border-bottom: 2px solid var(--line); margin-bottom: 4px;
}
.nav-back:hover { background: var(--mist); border-radius: 0; }
.nav-back svg { width: 18px; height: 18px; }

.nav-view-all {
  display: block; padding: 14px 20px; border-radius: 0; text-decoration: none;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.nav-view-all:hover { background: var(--mist); }

.nav-separator {
  height: 1px; background: var(--line); margin: 0;
}
.nav-highlight-row {
  display: flex; flex-direction: column; gap: 0; padding: 0;
}
.nav-highlight-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: 0; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center; line-height: 1;
  box-sizing: border-box; width: 100%;
}
.nav-highlight-btn.outlet {
  background: #c0392b; color: #fff; border: none;
}
.nav-highlight-btn.outlet:hover { background: #a93226; }
.nav-highlight-btn.marcas {
  background: transparent; color: var(--ink); border: none;
  border-top: 1px solid var(--line);
}
.nav-highlight-btn.marcas:hover { background: var(--mist); }
.nav-dropdown-loading {
  display: block; padding: 10px 20px; font-size: 13px; color: var(--muted);
}

/* ---------- Desktop nav dropdown ---------- */
.nav li { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 3px; padding: 7px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.nav-dropdown-trigger:hover { background: var(--mist); color: var(--ink); }
.nav-chevron { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1); padding: 8px 0; min-width: 220px; z-index: 50;
  opacity: 0; pointer-events: none; max-height: 400px; overflow-y: auto;
  transition: opacity .2s ease, transform .2s ease;
}
li:hover > .nav-dropdown,
li.nav-dd-open > .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-dropdown-item:hover { background: var(--mist); }
.nav-dropdown-item.view-all {
  font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}

/* ---------- Tienda ---------- */
.shop-hero { background: var(--ink); color: #fff; padding-block: 44px; }
.shop-hero .crumbs { font-size: 13px; color: #999999; margin-bottom: 10px; }
.shop-hero .crumbs a:hover { color: #fff; }
.shop-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.shop-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; padding-block: 44px;
}
#filters { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.f-group h3 {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
}
.f-list { display: grid; gap: 8px; }
.f-check {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; color: var(--ink-3);
}
.f-check input {
  width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer;
}
.f-check em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.f-price input[type="range"] { width: 100%; accent-color: var(--ink); }
#f-price-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; display: block; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 20px; flex-wrap: wrap;
}
#shop-count { font-size: 14.5px; color: var(--muted); }
#shop-count strong { color: var(--ink); font-size: 16px; }
.shop-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-search-wrap { display: flex; }
#shop-search {
  border: 1.5px solid var(--line); border-radius: 999px; height: 42px; padding: 0 18px;
  font-size: 14px; outline: 0; width: 210px; transition: border-color .2s ease;
}
#shop-search:focus { border-color: var(--ink); }
#shop-sort {
  border: 1.5px solid var(--line); border-radius: 999px; height: 42px; padding: 0 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); background: var(--paper); outline: 0; cursor: pointer;
}
#filters-toggle { display: none; }
#shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px; display: grid; gap: 16px;
  justify-items: center; color: var(--muted); background: var(--mist); border-radius: var(--r-tile);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .carousel-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  #shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile.big { grid-column: span 3; grid-row: span 1; min-height: 220px; }
  .nav ul > li > a, .nav-dropdown-trigger { font-size: 13px; padding: 6px 10px; }
}
@media (max-width: 900px) {
  .header-brand-in { height: 58px; }
  .header-main { height: 60px; gap: 8px; }
  #burger { display: inline-flex; width: 44px; height: 44px; }
  #burger svg { width: 30px; height: 30px; }
  .nav { display: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .usp-item:nth-child(3) { border-left: 0; }
  .brands { display: none; }
  .promo { grid-template-columns: 1fr; padding: 40px 28px; }
  .promo-art { display: none; }
  .newsletter-grid { grid-template-columns: 1fr; padding-block: 46px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  #filters {
    position: static; display: none; padding: 20px; border: 1px solid var(--line);
    border-radius: var(--r-tile); margin-bottom: 8px;
  }
  #filters.open { display: grid; }
  #filters-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .page-title { padding: 28px 16px 6px; }
  .page-title h1 { font-size: clamp(26px, 7vw, 36px); }
  .section { padding-block: 52px; }
  .logo-text span { display: none; }
  .usp-item b { font-size: 13px; }
  .usp-item small { font-size: 11.5px; }
  .usp-item svg { width: 24px; height: 24px; }
  .usp-item { padding-inline: 14px; }
  .carousel-track { grid-auto-columns: calc((100% - 16px) / 1.6); }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  #shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(170px, auto); }
  .cat-tile.big { grid-column: span 2; min-height: 260px; }
  .card { border-color: transparent; box-shadow: none; }
  .card:hover { box-shadow: none; border-color: transparent; }
  .card-name { font-size: 13.5px; }
  .price-now { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .carousel-nav { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tips-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; border-radius: 22px; }
  .newsletter .btn { width: 100%; }
}

/* ============================================================
   Fase 2 — catálogo real de PrestaShop (aditivo: no modifica
   los estilos aprobados, solo cubre los nuevos elementos)
   ============================================================ */

/* Fotos reales en cards: enmarcadas uniformemente sobre fondo mist */
.card-art img {
  width: 100%; height: 100%; object-fit: contain;
}
.card-art.card-noimg { position: relative; }
.card-art.card-noimg::after {
  content: 'TP'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 40px; font-weight: 900; font-style: italic;
  color: var(--line); letter-spacing: -.04em;
}

/* Badge de producto agotado (spec §8.2) */
.badge-out {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 12px;
  font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
  background: var(--muted); color: #fff;
}
.btn-add[disabled] {
  background: var(--line); color: var(--muted); cursor: not-allowed;
}
.btn-add[disabled]:hover { background: var(--line); }

/* Skeleton loading (T018): misma silueta que la card para evitar CLS */
.card-skeleton .card-art { background: var(--mist); }
.card-skeleton .sk-line {
  display: block; border-radius: 6px; background: var(--mist);
  animation: skPulse 1.2s ease-in-out infinite;
}
.card-skeleton .sk-brand { width: 38%; height: 11px; }
.card-skeleton .sk-name { width: 85%; height: 15px; margin-top: 2px; }
.card-skeleton .sk-price { width: 45%; height: 20px; margin-top: 6px; }
.card-skeleton .sk-btn { width: 100%; height: 42px; border-radius: 999px; margin-top: auto; }
@keyframes skPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .card-skeleton .sk-line { animation: none; }
}

/* Dropdown de sugerencias del buscador (T027) */
.search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden; padding: 6px;
}
.suggest-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 10px; transition: background .15s ease;
}
.suggest-item:hover, .suggest-item:focus { background: var(--mist); outline: none; }
.suggest-thumb {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px;
  background: var(--mist); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-meta { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.suggest-price { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.suggest-brands {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 10px;
  border-top: 1px solid var(--line); margin-top: 4px;
}
.suggest-brand {
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-3); transition: border-color .15s ease;
}
.suggest-brand:hover, .suggest-brand:focus { border-color: var(--ink); color: var(--ink); }
.suggest-all {
  display: block; text-align: center; padding: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px;
}
.suggest-all:hover, .suggest-all:focus { background: var(--mist); }
.suggest-empty { padding: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Fotos en el drawer del carrito */
.drawer-item-art { overflow: hidden; }
.drawer-item-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.drawer-item-art.no-img { position: relative; }

/* Logos reales de marca en el marquee (con fallback a wordmark) */
.brand-logo { height: 34px; width: auto; filter: grayscale(1); opacity: .65; transition: opacity .2s ease, filter .2s ease; }
.brand-mark:hover .brand-logo { filter: none; opacity: 1; }

/* Tienda: aviso de búsqueda sin resultados y "cargar más" */
.shop-notice {
  background: var(--mist); color: var(--ink); border-radius: var(--r-card);
  padding: 14px 18px; font-size: 14.5px; margin-bottom: 16px;
}
.shop-more { display: flex; justify-content: center; margin-top: 28px; }

/* ============================================================
   Vista de categoría feed vertical (TWE mobile style)
   Se activa con ?cat= — la tienda general sigue usando el grid
   ============================================================ */

/* Barra de filtros horizontal */
.cat-filters {
  display: none; align-items: center; gap: 10px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: var(--header-h); z-index: 25;
}
.cat-filters.active { display: flex; }
.cat-filters::-webkit-scrollbar { display: none; }
.cat-filter-chip {
  flex-shrink: 0; padding: 8px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink); white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--paper);
  font-family: inherit;
}
.cat-filter-chip:hover { border-color: var(--ink); }
.cat-filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-sort-select {
  appearance: none; padding: 8px 32px 8px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--paper) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="%23161616" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 5 4 4 4-4"/></svg>') no-repeat right 10px center;
  background-size: 14px; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.cat-results-count { font-size: 13px; color: var(--muted); flex-shrink: 0; margin-left: auto; }

/* Feed container */
.cat-feed {
  display: none; flex-direction: column; gap: 24px;
  max-width: 720px; margin: 24px auto 0; padding-inline: 16px;
}
.cat-feed.active { display: flex; }

/* Feed card */
.cat-feed-card { position: relative; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.cat-feed-card a.cat-feed-link { text-decoration: none; color: inherit; display: block; }

/* Feed image */
.cat-feed-img {
  aspect-ratio: 1; background: var(--paper); border-radius: var(--r-tile);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; position: relative;
}
.cat-feed-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cat-feed-img.no-img::after {
  content: 'TP'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 56px; font-weight: 900; font-style: italic;
  color: var(--line); letter-spacing: -.04em;
}

/* Badge descuento (esquina izquierda) */
.cat-feed-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}

/* Botón favorito (esquina derecha) */
.cat-feed-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.85); display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--line);
  transition: background .2s; cursor: pointer;
}
.cat-feed-fav svg { width: 20px; height: 20px; }
.cat-feed-fav:hover { background: var(--paper); }
.cat-feed-fav.fav-on svg { fill: #ef4444; stroke: #ef4444; }

/* Info del producto */
.cat-feed-discount { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cat-feed-name {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3;
  margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cat-feed-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cat-feed-price { font-size: 17px; font-weight: 800; color: var(--ink); }
.cat-feed-pvpr { font-size: 12px; color: var(--muted); font-weight: 500; }
.cat-feed-price-old { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.cat-feed-promo { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* Specs y rating */
.cat-feed-specs { list-style: disc inside; margin: 0 0 8px; padding: 0; }
.cat-feed-specs li { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cat-feed-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.cat-feed-rating .star { width: 14px; height: 14px; color: var(--line); display: inline-flex; }
.cat-feed-rating .star.on { color: #f4b63f; }
.cat-feed-rating .star svg { width: 100%; height: 100%; }
.cat-feed-rating-count { font-size: 13px; color: var(--muted); }

/* Feed empty state */
.cat-feed-empty {
  text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px;
}
.cat-feed-empty a { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* Feed "cargar más" spinner */
.cat-feed-loading { text-align: center; padding: 24px; }
.cat-feed-loading::after {
  content: ''; display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--line); border-top-color: var(--ink);
  border-radius: 50%; animation: catSpin .7s linear infinite;
}
@keyframes catSpin { to { transform: rotate(360deg); } }

/* Hide grid elements when in feed mode */
.shop-layout.feed-mode #filters,
.shop-layout.feed-mode .shop-toolbar,
.shop-layout.feed-mode #shop-grid,
.shop-layout.feed-mode .shop-more,
.shop-layout.feed-mode .shop-notice { display: none !important; }

/* In feed mode, the shop-layout is single-column */
.shop-layout.feed-mode { display: block; }

/* Feed responsive — wide desktop: 2-column cards */
@media (min-width: 1024px) {
  .cat-feed { max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .cat-feed.active { display: grid; }
  .cat-feed-card { border-bottom: none; padding-bottom: 0; border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px; }
  .cat-feed-empty,
  .cat-feed-loading { grid-column: 1 / -1; }
  .cat-filters { flex-wrap: wrap; justify-content: flex-start; padding: 14px 24px; }
}

/* Feed responsive — tablet */
@media (min-width: 769px) and (max-width: 1023px) {
  .cat-feed { max-width: 680px; padding-inline: 0; }
  .cat-filters { flex-wrap: wrap; justify-content: flex-start; }
}

/* Feed responsive — small tablet / large phone */
@media (max-width: 768px) {
  .cat-feed { margin-top: 16px; gap: 20px; }
  .cat-feed-img img { max-width: 90%; max-height: 90%; }
}

/* Feed responsive — phone */
@media (max-width: 480px) {
  .cat-feed { padding-inline: 12px; gap: 16px; }
  .cat-feed-img { border-radius: var(--r-card); }
  .cat-feed-img img { max-width: 92%; max-height: 92%; }
  .cat-feed-name { font-size: 14px; }
  .cat-feed-price { font-size: 16px; }
  .cat-filter-chip { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 14px; }
  .cat-sort-select { min-height: 40px; }
  .cat-filters { padding: 10px 12px; gap: 8px; }
}

/* Feed responsive — narrow phone (320px) */
@media (max-width: 374px) {
  .cat-feed { padding-inline: 8px; }
  .cat-feed-badge { font-size: 11px; padding: 3px 10px; }
  .cat-feed-fav { width: 36px; height: 36px; }
  .cat-feed-fav svg { width: 18px; height: 18px; }
  .cat-feed-name { font-size: 13.5px; }
  .cat-feed-price { font-size: 15px; }
  .cat-filter-chip { font-size: 12px; padding: 6px 12px; }
  .cat-sort-select { font-size: 12px; padding: 6px 24px 6px 12px; }
}

