/* =============================================================
   SPORT PRO — Hoja de estilos principal
   1. Variables y reset      6. Producto (tarjeta y detalle)
   2. Tipografía y botones   7. Carrito y buscador
   3. Header y navegación    8. Secciones de la home
   4. Animaciones            9. Footer
   5. Hero                  10. Responsive
   ============================================================= */

/* ---------- 1. VARIABLES Y RESET ---------- */
:root {
  --primary: #ff5a1f;
  --primary-dark: #e0430c;
  --ink: #111418;
  --accent: #00c2a8;

  --bg: #f2f2f3;
  --surface: #ffffff;
  --line: #e2e3e6;
  --muted: #6b7280;
  --text: #23262b;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, .06), 0 2px 8px rgba(17, 20, 24, .04);
  --shadow-md: 0 10px 30px rgba(17, 20, 24, .10);
  --shadow-lg: 0 24px 60px rgba(17, 20, 24, .18);

  --header-h: 74px;
  --wrap: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* clip (no hidden): corta cualquier desborde lateral sin volver a <html> un
   contenedor de scroll, que rompería el encabezado sticky. Es la red de
   seguridad para que ninguna animación futura mueva la página de lado. */
html { scroll-behavior: smooth; overflow-x: clip; }
html.no-scroll, body.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-sm { max-width: 900px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 2. TIPOGRAFÍA Y BOTONES ---------- */
h1, h2, h3, h4, .h-font {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 .4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(38px, 6.4vw, 78px); }
h2 { font-size: clamp(28px, 3.8vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); }

.section { padding: clamp(52px, 7vw, 96px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 6px 0 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--primary);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --btn-bg: var(--primary); }
.btn--primary::after { background: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light::after { background: var(--primary); }
.btn--light:hover { --btn-fg: #fff; }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--wa { --btn-bg: #25d366; --btn-fg: #06301a; }

/* Enlace con subrayado animado */
.link-u {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: right;
  transition: transform .38s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u .arw { display: inline-block; transition: transform .3s var(--ease); }
.link-u:hover .arw { transform: translateX(5px); }

/* ---------- 3. HEADER ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.announce__track { display: flex; gap: 0; white-space: nowrap; animation: marquee 26s linear infinite; }
.announce:hover .announce__track { animation-play-state: paused; }
.announce__item {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12.5px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  opacity: .92;
}
.announce__item::after { content: "★"; color: var(--primary); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .3s, background .3s;
}
.site-header.is-hidden { transform: translateY(-104%); }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(17, 20, 24, .09); }

.header-bar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transition: height .35s var(--ease);
}
.site-header.is-stuck .header-bar { height: 62px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__svg { display: block; flex: 0 0 auto; width: 214px; max-width: 100%; transition: width .35s var(--ease), transform .4s var(--ease); }
.logo__svg svg { width: 100%; height: auto; display: block; }
.logo__svg--chico { width: 172px; }
.site-header.is-stuck .logo__svg { width: 188px; }
.logo:hover .logo__svg { transform: translateY(-1px); }
.footer__logo .logo__svg { color: #fff; width: 244px; }
@media (max-width: 420px) { .logo__svg { width: 140px; } }
.logo__mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 19px; letter-spacing: .04em;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease);
}
.logo__mark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo:hover .logo__mark::before { transform: translateX(120%); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-size: 23px; letter-spacing: .06em; color: var(--ink); }
.logo__tag { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; justify-content: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px;
  font-family: var(--font-head); font-size: 17px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__item:hover > .nav__link::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; opacity: .55; }
.nav__item:hover .caret { transform: rotate(-135deg) translateY(-2px); }

.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 14px);
  width: min(880px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .38s var(--ease), visibility .3s;
}
.nav__item:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 6px); }
.mega__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--radius);
  transition: background .25s, transform .25s var(--ease);
}
.mega__link:hover { background: #f6f6f7; transform: translateX(4px); }
.mega__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mega__name { font-family: var(--font-head); font-size: 17px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.mega__desc { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mega__foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: background .25s, transform .25s var(--ease);
}
.icon-btn:hover { background: #eaebed; transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: 3px; right: 3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cart-count.is-on { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.45); } }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Barra de progreso de lectura */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--primary); width: 0; transition: width .1s linear; }

/* Menú móvil */
.drawer-menu {
  position: fixed; inset: 0 auto 0 0; width: min(400px, 88vw);
  background: var(--surface); z-index: 120;
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer-menu.is-open { transform: none; }
.drawer-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-menu__body { padding: 12px 22px 30px; }
.drawer-menu__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 22px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink);
  opacity: 0; transform: translateX(-16px);
}
.drawer-menu.is-open .drawer-menu__link { animation: slideIn .5s var(--ease) forwards; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.drawer-menu__sub { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.drawer-menu__sub.is-open { max-height: 620px; }
.drawer-menu__sub a { display: block; padding: 10px 0 10px 14px; font-size: 15px; color: var(--muted); border-left: 2px solid var(--line); }
.drawer-menu__sub a:hover { color: var(--primary); border-color: var(--primary); }
.drawer-menu__foot { margin-top: auto; padding: 22px; background: #f7f7f8; }

.overlay {
  position: fixed; inset: 0; background: rgba(10, 12, 15, .55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; z-index: 110;
  transition: opacity .4s, visibility .4s;
}
.overlay.is-on { opacity: 1; visibility: visible; }

/* ---------- 4. ANIMACIONES DE SCROLL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal="mask"]  { clip-path: inset(0 100% 0 0); transform: none; opacity: 1; transition: clip-path 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* En celular el desplazamiento de "entrada por la derecha" se acorta: 34px de
   un bloque que ya ocupa todo el ancho asoman fuera de la pantalla y la página
   se mueve de lado mientras el visitante hace scroll. */
@media (max-width: 700px) {
  [data-reveal="left"]  { transform: translateX(-16px); }
  [data-reveal="right"] { transform: translateX(16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Transición entre páginas: la actual se desvanece antes de cambiar */
.page-fade {
  position: fixed; inset: 0; z-index: 190; pointer-events: none;
  background: var(--bg); opacity: 0;
  transition: opacity .28s var(--ease);
}
.page-fade.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .page-fade { display: none; } }

/* Loader inicial */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { font-family: var(--font-head); font-size: 44px; letter-spacing: .3em; text-transform: uppercase; overflow: hidden; }
.loader__logo span { display: inline-block; animation: bounceIn .7s var(--ease) both; }
@keyframes bounceIn { from { opacity: 0; transform: translateY(70%) rotate(8deg); } }
.loader__bar { width: 180px; height: 3px; background: rgba(255, 255, 255, .18); margin: 18px auto 0; overflow: hidden; border-radius: 3px; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--primary); animation: loadbar 1.1s var(--ease) infinite; }
@keyframes loadbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* ---------- 5. HERO ---------- */
.hero { position: relative; height: clamp(520px, 82vh, 780px); overflow: hidden; background: var(--ink); }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-on { opacity: 1; visibility: visible; z-index: 2; }
.hero__bg { position: absolute; inset: 0; transform: scale(1.12); transition: transform 8s linear; }
.hero__slide.is-on .hero__bg { transform: scale(1); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 10, 13, .82) 0%, rgba(8, 10, 13, .52) 46%, rgba(8, 10, 13, .18) 100%); }
.hero__inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.hero__content { max-width: 660px; color: #fff; }
/* Los slides 2 en adelante usan .hero__titulo en vez de h1 (una sola h1 por
   página), pero deben verse exactamente igual. */
.hero__content h1,
.hero__content .hero__titulo { color: #fff; }
/* Especificidad a propósito: .hero__content p ya fija 17px y le ganaría. */
.hero__content .hero__titulo {
  font-family: var(--font-head); font-weight: 700; line-height: 1.02;
  letter-spacing: .02em; text-transform: uppercase;
  font-size: clamp(38px, 6.4vw, 78px);
  margin: 0 0 .4em; max-width: none;
}
.hero__content .eyebrow { color: #fff; }
.hero__content .eyebrow::before { background: var(--primary); }
.hero__content p { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 500px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero__slide.is-on .anim { animation: heroUp .9s var(--ease) both; }
.hero__slide.is-on .anim:nth-child(1) { animation-delay: .12s; }
.hero__slide.is-on .anim:nth-child(2) { animation-delay: .22s; }
.hero__slide.is-on .anim:nth-child(3) { animation-delay: .34s; }
.hero__slide.is-on .anim:nth-child(4) { animation-delay: .46s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } }

.hero__art { position: absolute; right: 2%; bottom: -4%; width: min(46%, 520px); z-index: 2; opacity: .96; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.hero__slide.is-on .hero__art { animation: artIn 1.1s var(--ease) .2s both; }
@keyframes artIn { from { opacity: 0; transform: translateX(60px) rotate(6deg); } }

/* La foto real de la prenda dentro del hero. Viene recortada sobre blanco,
   asi que se presenta como una tarjeta: bordes redondeados y la misma
   sombra que traia el dibujo. */
.hero__foto {
  display: block; width: 100%; height: auto;
  border-radius: 18px; background: #fff;
}

.hero__ui { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; }
.hero__ui-in { display: flex; align-items: center; gap: 16px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__dot i { display: block; height: 100%; width: 0; background: #fff; }
.hero__dot.is-on i { animation: dotFill var(--dur, 6s) linear forwards; }
@keyframes dotFill { to { width: 100%; } }
.hero__pause, .hero__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  transition: background .25s, transform .25s var(--ease);
}
.hero__pause:hover, .hero__arrow:hover { background: rgba(255, 255, 255, .18); transform: scale(1.08); }
.hero__arrows { margin-left: auto; display: flex; gap: 8px; }
.hero__count { color: rgba(255, 255, 255, .7); font-family: var(--font-head); letter-spacing: .18em; font-size: 14px; white-space: nowrap; }

/* Tira de beneficios */
.perks { background: var(--surface); border-bottom: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: 13px; align-items: center; padding: 20px 18px; border-right: 1px solid var(--line); transition: background .3s; }
.perk:last-child { border-right: 0; }
.perk:hover { background: #fafafb; }
.perk svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.6; flex: none; transition: transform .4s var(--ease); }
.perk:hover svg { transform: translateY(-3px) rotate(-6deg); }
.perk b { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 16px; letter-spacing: .05em; color: var(--ink); }
.perk span { font-size: 12.5px; color: var(--muted); }

/* ---------- 6. PRODUCTOS ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-grid--6 { grid-template-columns: repeat(3, 1fr); }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4; display: flex; align-items: flex-end;
  padding: 22px; color: #fff; isolation: isolate;
  background: var(--ink);
}
.cat-card__bg { position: absolute; inset: 0; z-index: -2; transition: transform .8s var(--ease); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 15, .05) 30%, rgba(10, 12, 15, .78) 100%);
  transition: background .5s;
}
.cat-card:hover .cat-card__bg { transform: scale(1.09) rotate(1.5deg); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(10, 12, 15, .18) 10%, rgba(10, 12, 15, .86) 100%); }
.cat-card__body { position: relative; transform: translateY(6px); transition: transform .45s var(--ease); width: 100%; }
.cat-card:hover .cat-card__body { transform: none; }
.cat-card h3 { color: #fff; margin-bottom: 4px; font-size: clamp(20px, 2vw, 27px); }
.cat-card p { font-size: 13px; color: rgba(255, 255, 255, .78); margin: 0 0 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; }
.cat-card:hover p { max-height: 60px; opacity: 1; }
.cat-card .link-u { font-size: 13px; }
.cat-card .link-u::after { background: #fff; }

/* Tarjeta de producto */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-card {
  /* relative: sin esto el corazón (absolute) se anclaba al carrusel y los de
     todas las tarjetas se encimaban en una sola esquina. Además su estado
     oculto, translateX(50px), se salía y movía la página de lado en celular. */
  position: relative;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.p-card__media { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: #f6f6f7; }
.p-card__media > svg, .p-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .45s; }
.p-card__alt { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-card__front { opacity: 0; transform: scale(1.04); }
.p-card:hover .p-card__alt { opacity: 1; transform: scale(1.04); }
.p-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.p-card__badge--dark { background: var(--ink); }
.p-card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  transform: translateY(120%); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.p-card:hover .p-card__quick { transform: none; opacity: 1; }
.p-card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transform: translateX(50px); opacity: 0;
  transition: transform .4s var(--ease) .05s, opacity .3s, background .25s;
}
.p-card:hover .p-card__fav { transform: none; opacity: 1; }
.p-card__fav svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.p-card__fav.is-on { background: var(--primary); }
.p-card__fav.is-on svg { stroke: #fff; fill: #fff; }
.p-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-card__cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.p-card__name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__name:hover { color: var(--primary); }
.p-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-card__price { font-family: var(--font-head); font-size: 24px; color: var(--ink); letter-spacing: .02em; }
.p-card__price small { font-size: 12px; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.p-card__swatches { display: flex; gap: 4px; }
.sw { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); }

/* Tarjeta "personaliza la tuya" — cierra cada categoría */
.p-card--diy { border: 1.5px dashed var(--line); background: var(--surface); }
.p-card--diy:hover { border-color: var(--primary); border-style: solid; }
.diy__media {
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fafafb, #f1f1f3);
}
.diy__glow {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  filter: blur(46px); opacity: .22;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.p-card--diy:hover .diy__glow { opacity: .4; transform: scale(1.25); }
.diy__ico { position: relative; display: grid; place-items: center; }
.diy__ico svg {
  width: 54px; height: 54px; stroke: var(--ink); fill: none; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), stroke .3s;
}
.p-card--diy:hover .diy__ico svg { transform: rotate(-8deg) scale(1.08); stroke: var(--primary); }
.diy__plus {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 22px; line-height: 1;
  transform: scale(.85); opacity: .9;
  transition: transform .4s var(--ease);
}
.p-card--diy:hover .diy__plus { transform: scale(1) rotate(90deg); }
.diy__title { color: var(--ink); }
.diy__txt { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }

/* Carrusel */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 12px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__nav { display: flex; gap: 8px; }
.cbtn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease), opacity .25s, border-color .25s;
}
.cbtn svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbtn:hover { background: var(--ink); border-color: var(--ink); transform: scale(1.06); }
.cbtn:hover svg { stroke: #fff; }
.cbtn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- 7. CARRITO, BUSCADOR, TOASTS ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw);
  background: var(--surface); z-index: 130;
  transform: translateX(100%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: #fafafb; }

.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: lineIn .45s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(22px); } }
.cart-line.is-out { animation: lineOut .35s var(--ease) forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(30px); height: 0; padding: 0; margin: 0; } }
.cart-line__img { width: 74px; height: 78px; border-radius: 6px; overflow: hidden; background: #f2f2f3; }
.cart-line__name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-line__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-line__price { font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.cart-line__unit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-line__off {
  background: rgba(18, 161, 80, .12); color: #0b7a3b; border-radius: 20px;
  padding: 1px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); transition: color .2s, transform .2s; }
.qty button:hover { color: var(--primary); transform: scale(1.2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-line__del { font-size: 11.5px; color: var(--muted); text-decoration: underline; margin-top: 8px; display: inline-block; }
.cart-line__del:hover { color: #d92d20; }
.cart-row--sm { font-size: 13px; color: var(--muted); margin-top: -2px; }
.cart-row--sm b { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--primary); }
.pay-mini { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 4px; }
.pay-chip {
  font-size: 11px; letter-spacing: .05em; padding: 4px 9px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .2s, color .2s;
}
.pay-chip:hover { border-color: var(--primary); color: var(--primary); }

/* Favoritos: rejilla angosta dentro del cajón */
.p-grid--favs { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 0 20px; }
.p-grid--favs .p-card__body { padding: 10px 11px 12px; }
.p-grid--favs .p-card__price { font-size: 19px; }
.p-grid--favs .p-card__cat { display: none; }

.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty svg[viewBox="0 0 24 24"] { stroke: var(--line); }
.cart-empty svg { width: 62px; height: 62px; stroke: var(--line); fill: none; stroke-width: 1.2; margin: 0 auto 14px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-row b { font-family: var(--font-head); font-size: 27px; color: var(--ink); }
.cart-tip {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px;
  background: rgba(18, 161, 80, .09); border: 1px solid rgba(18, 161, 80, .22);
  color: #0b5c30; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px;
}
.cart-tip svg { width: 15px; height: 15px; stroke: #0b7a3b; fill: none; flex: none; margin-top: 2px; }
.cart-tip b { color: #094a27; }
/* Aviso, no promoción: el de "diseño aparte" va en ámbar, no en verde */
.cart-tip--ojo { background: rgba(201, 162, 39, .12); border-color: rgba(201, 162, 39, .3); color: #6b5310; }
.cart-tip--ojo svg { stroke: #8a6d12; }
.cart-tip--ojo b { color: #5a4508; }
.cart-note { font-size: 12px; color: var(--muted); margin: 10px 0 14px; display: flex; gap: 8px; }
.cart-note svg { width: 15px; height: 15px; stroke: var(--primary); fill: none; flex: none; margin-top: 2px; }

/* Volar al carrito */
.fly {
  position: fixed; z-index: 140; width: 62px; height: 66px; border-radius: 8px;
  overflow: hidden; pointer-events: none; box-shadow: var(--shadow-md);
  transition: transform .85s cubic-bezier(.5, -0.2, .7, 1), opacity .85s;
}

/* Buscador */
.search {
  position: fixed; inset: 0 0 auto; z-index: 125;
  background: var(--surface); padding: 24px 0 30px;
  transform: translateY(-102%); transition: transform .5s var(--ease);
  box-shadow: var(--shadow-lg); max-height: 100vh; overflow-y: auto;
}
.search.is-open { transform: none; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search__bar svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; flex: none; }
.search__input { flex: 1; border: 0; outline: 0; background: none; font-family: var(--font-head); font-size: clamp(24px, 4vw, 40px); text-transform: uppercase; letter-spacing: .03em; }
.search__input::placeholder { color: #c9cacd; }
.search__hint { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.chip {
  padding: 7px 15px; border-radius: 40px; background: #f2f2f3;
  font-size: 12.5px; letter-spacing: .04em;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.chip:hover, .chip.is-on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.search__results { margin-top: 26px; }
.search__empty { color: var(--muted); padding: 20px 0; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 96px; z-index: 150; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 13px 17px; font-size: 13.5px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .45s var(--ease) both;
  max-width: 330px;
}
.toast.is-out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2.2; flex: none; }

/* Botones flotantes */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .35s var(--ease);
}
.float-wa:hover { transform: scale(1.09) rotate(6deg); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { to { transform: scale(1.7); opacity: 0; } }
.float-wa__tip {
  position: absolute; right: 68px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px;
  padding: 8px 13px; border-radius: 6px;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.float-wa:hover .float-wa__tip { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), background .25s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
.to-top:hover svg { stroke: #fff; }

/* ---------- 8. SECCIONES ---------- */
/* Franja marquesina grande */
.band { background: var(--ink); color: #fff; padding: 16px 0; overflow: hidden; }
.band__track { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.band__item { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: .04em; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.band__item i { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; display: inline-block; }
.band--outline .band__item { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }

/* Split promocional */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.split__art { position: relative; min-height: 400px; background: var(--ink); overflow: hidden; }
.split__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.split__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.split--rev .split__art { order: 2; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--font-head); font-size: 62px; line-height: 1; color: var(--line); transition: color .4s; }
.step:hover .step__n { color: var(--primary); }
.step h3 { margin: 6px 0 8px; font-size: 21px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.step:hover::after { transform: scaleX(1); }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat__n { font-family: var(--font-head); font-size: clamp(40px, 5.5vw, 68px); line-height: 1; color: var(--ink); }
.stat__t { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Telas */
.fabrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fabric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: background .35s, transform .35s var(--ease); }
.fabric:hover { background: var(--ink); transform: translateY(-4px); }
.fabric:hover h3, .fabric:hover p { color: #fff; }
.fabric h3 { font-size: 19px; margin-bottom: 6px; transition: color .3s; }
.fabric p { font-size: 13.5px; color: var(--muted); margin: 0; transition: color .3s; }
.fabric__bar { height: 4px; width: 42px; background: var(--primary); border-radius: 3px; margin-bottom: 14px; transition: width .45s var(--ease); }
.fabric:hover .fabric__bar { width: 100%; }

/* Formas de pago */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pay-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.pay-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.pay-card b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .07em; font-size: 18px; color: var(--ink); }
.pay-card span { font-size: 13px; color: var(--muted); }
.pay-ico { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; transition: transform .4s var(--ease); }
.pay-card:hover .pay-ico { transform: translateY(-2px) scale(1.08); }

.pay-flow { display: flex; align-items: stretch; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.pay-flow__step {
  flex: 1 1 240px; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 3px;
}
.pay-flow__step b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 17px; }
.pay-flow__step span:last-child { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pay-flow__pct { font-family: var(--font-head); font-size: 46px; line-height: 1; color: var(--primary); }
.pay-flow__arrow { display: grid; place-items: center; font-size: 26px; color: var(--line); flex: 0 0 auto; }

/* Testimonios */
.tst { position: relative; overflow: hidden; }
.tst__track { display: flex; transition: transform .6s var(--ease); }
.tst__item { min-width: 100%; padding: 0 4px; }
.tst__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 46px); text-align: center; }
.tst__stars { color: var(--primary); letter-spacing: .3em; margin-bottom: 14px; }
.tst__quote { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 30px); text-transform: none; line-height: 1.25; color: var(--ink); margin-bottom: 16px; }
.tst__who { font-size: 13px; color: var(--muted); }
.tst__who b { color: var(--ink); display: block; font-size: 15px; }
.tst__dots { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.tst__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s, width .3s; }
.tst__dot.is-on { background: var(--primary); width: 26px; border-radius: 6px; }

/* Reseñas: estrella vacía en gris para que se lea 4 de 5 y no solo "4" */
.tst__stars { font-size: 18px; }
.tst__foto {
  display: block; width: 128px; height: 128px; object-fit: cover;
  border-radius: 14px; margin: 0 auto 18px; border: 1px solid var(--line);
}
.tst__pie { text-align: center; margin-top: 20px; }

/* Acordeón */
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; text-align: left; font-family: var(--font-head); font-size: clamp(17px, 2vw, 21px); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); transition: color .25s; }
.acc__btn:hover { color: var(--primary); }
.acc__ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
.acc__ico::before { width: 12px; height: 2px; }
.acc__ico::after { width: 2px; height: 12px; }
.acc__item.is-open .acc__ico { background: var(--primary); border-color: var(--primary); transform: rotate(180deg); }
.acc__item.is-open .acc__ico::before, .acc__item.is-open .acc__ico::after { background: #fff; }
.acc__item.is-open .acc__ico::after { transform: scaleY(0); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__panel p { padding: 0 0 20px; color: var(--muted); max-width: 760px; margin: 0; }

/* Newsletter */
.news { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 62px); position: relative; overflow: hidden; }
.news h2 { color: #fff; }
.news p { color: rgba(255, 255, 255, .72); }
.news__form { display: flex; gap: 10px; max-width: 520px; margin-top: 18px; flex-wrap: wrap; }
.news__form input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff; outline: 0;
  transition: border-color .3s, background .3s;
}
.news__form input::placeholder { color: rgba(255, 255, 255, .45); }
.news__form input:focus { border-color: var(--primary); background: rgba(255, 255, 255, .12); }
.news__glow { position: absolute; width: 420px; height: 420px; right: -80px; top: -140px; background: radial-gradient(circle, var(--primary) 0%, transparent 62%); opacity: .35; animation: floaty 9s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translate(-30px, 40px) scale(1.15); } }

/* Videos del taller */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.video {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0ms);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.video:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.video__marco { background: #0d1014; aspect-ratio: 9 / 16; max-height: 560px; }
.video__marco video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__marco iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Perfil completo de TikTok, cuando no hay videos elegidos a mano */
.videos--perfil { display: block; }
.video-perfil {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; overflow: hidden;
}
.video-perfil .tiktok-embed { margin: 0 auto !important; }
.video-perfil__pie {
  margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.video-perfil__pie a { color: var(--primary); font-weight: 600; }
.video-perfil__pie a:hover { text-decoration: underline; }
.video--tiktok .tiktok-embed { margin: 0 auto !important; max-width: 100% !important; }
.video__pie { padding: 15px 16px 17px; }
.video__pie h3 { font-size: 19px; margin: 0 0 5px; }
.video__txt { font-size: 13.5px; color: var(--muted); margin: 0; }

.video-vacio {
  grid-column: 1 / -1; text-align: center;
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 62px) 24px;
}
.video-vacio__ico svg { width: 46px; height: 46px; stroke: var(--primary); fill: none; stroke-width: 1.4; margin: 0 auto 12px; }
.video-vacio h3 { font-size: clamp(21px, 3vw, 28px); margin: 0 0 8px; }
.video-vacio p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; font-size: 14.5px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post__art { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.post__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .post__art svg { transform: scale(1.07); }
.post__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 21px; margin: 0; }
.post p { font-size: 13.5px; color: var(--muted); margin: 0; }
.post .link-u { margin-top: auto; padding-top: 12px; font-size: 13px; }

/* ---------- CATÁLOGO ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(46px, 7vw, 82px) 0 clamp(38px, 6vw, 62px); position: relative; overflow: hidden; }
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: rgba(255, 255, 255, .72); max-width: 620px; margin: 0; }
.page-head__deco { position: absolute; right: -60px; top: -60px; width: 380px; height: 380px; border: 60px solid rgba(255, 255, 255, .04); border-radius: 50%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crumbs { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a:hover { color: #fff; }

.shop { display: grid; grid-template-columns: 258px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.filters h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.filters__group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters__group:last-of-type { border-bottom: 0; margin-bottom: 0; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 13.5px; color: var(--text); transition: color .2s; }
.fopt:hover { color: var(--primary); }
.fopt input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--line); border-radius: 4px; flex: none; position: relative; transition: background .25s, border-color .25s; }
.fopt input:checked { background: var(--primary); border-color: var(--primary); }
.fopt input:checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fopt span.count { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.range { width: 100%; accent-color: var(--primary); }
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.shop__count { font-size: 13.5px; color: var(--muted); }
.select { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; outline: 0; }
.p-grid--shop { grid-template-columns: repeat(3, 1fr); }
.p-grid .p-card { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.no-results { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }
.filters-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tagx { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 6px 12px; font-size: 12.5px; }
.tagx b { cursor: pointer; color: var(--muted); }
.tagx b:hover { color: #d92d20; }

/* ---------- DETALLE DE PRODUCTO ---------- */
.pd { display: grid; grid-template-columns: 1.08fr 1fr; gap: 44px; align-items: start; }
.pd__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd__main {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1; overflow: hidden; position: relative; cursor: zoom-in;
}
.pd__main svg, .pd__main img { width: 100%; height: 100%; transition: transform .4s var(--ease); }
.pd__main.is-zoom svg, .pd__main.is-zoom img { transform: scale(2); }
.pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumb { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 1; transition: border-color .25s, transform .25s var(--ease); }
.pd__thumb.is-on { border-color: var(--ink); }
.pd__thumb:hover { transform: translateY(-3px); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd__price { font-family: var(--font-head); font-size: 46px; color: var(--ink); line-height: 1; }
.pd__price small { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
/* Tabla de precios por volumen */
.vol {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 16px; background: var(--surface);
}
.vol__head {
  background: var(--ink); color: #fff; padding: 11px 15px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.vol__head b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .07em; font-size: 15px; }
.vol__head span { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.vol__tabla { width: 100%; border-collapse: collapse; }
.vol__tabla td { padding: 8px 15px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.vol__tabla td:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.vol__tabla td small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.vol__tabla tr:last-child td { border-bottom: 0; }
.vol__tabla tr:hover td { background: #fafafb; }
.vol--top td { background: var(--accent-soft, #fff6f2); color: var(--primary); }
.vol--top td:last-child { color: var(--primary); }
.vol--top:hover td { background: #ffeee7; }
/* Renglón que aplica a la cantidad elegida ahorita */
.vol__tabla tr.is-actual td { background: var(--ink); color: #fff; font-weight: 600; }
.vol__tabla tr.is-actual td small { color: rgba(255,255,255,.7); }
.vol__tabla tr.is-actual:hover td { background: var(--ink); }
.vol__nota { margin: 0; padding: 11px 15px; font-size: 12px; color: var(--muted); background: #fafafb; border-top: 1px solid var(--line); }

.opt-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--ink); margin: 22px 0 9px; display: flex; justify-content: space-between; }
.opt-label span { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 12.5px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); font-size: 13.5px; font-weight: 600; text-align: center;
  transition: all .25s var(--ease);
}
.size:hover { border-color: var(--ink); transform: translateY(-2px); }
.size.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt { width: 36px; height: 36px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .25s var(--ease); }
.color-opt:hover { transform: scale(1.12); }
.color-opt.is-on::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ink); border-radius: 50%; }
/* Muestra, no botón: los colores de una prenda ya fotografiada no se cambian */
.color-opt--fijo { display: inline-block; cursor: default; }
.color-opt--fijo:hover { transform: none; }
.pd__nota-color { font-size: 12.5px; color: var(--muted); margin: 9px 0 0; max-width: 46ch; }
.pd__actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.qty-lg { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty-lg button { width: 44px; height: 50px; font-size: 19px; color: var(--muted); transition: color .2s, background .2s; }
.qty-lg button:hover { color: var(--ink); background: #f4f4f5; }
.qty-lg span { min-width: 42px; text-align: center; font-weight: 700; }
.pd__meta { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; }
.pd__meta div { display: flex; gap: 10px; align-items: flex-start; }
.pd__meta svg { width: 17px; height: 17px; stroke: var(--primary); fill: none; stroke-width: 1.7; flex: none; margin-top: 2px; }
.custom-box { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 18px; margin-top: 22px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); outline: 0; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 90, 31, .13); }
.field textarea { min-height: 110px; resize: vertical; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.7; flex: none; }
.info-card b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-size: 17px; }
.info-card > div { min-width: 0; }   /* si no, el correo largo estira la tarjeta */
.info-card span, .info-card a { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.info-card a:hover { color: var(--primary); }

/* ---------- 9. FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(42px, 6vw, 72px) 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 16px; margin: 0 0 14px; }
.footer a { transition: color .25s, transform .25s var(--ease); display: inline-block; }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer li { margin-bottom: 9px; font-size: 13.5px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__logo .logo__mark { background: var(--primary); }
.footer__logo .logo__name { color: #fff; }
.footer__logo .logo__tag { color: rgba(255, 255, 255, .5); }
.footer p { font-size: 13.5px; max-width: 320px; }
.socials { display: flex; gap: 9px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; transition: background .3s, transform .3s var(--ease), border-color .3s; }
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
/* Sin wrap, las cuatro formas de pago empujaban el pie 14px de más y toda la
   página se movía de lado en celular. */
.pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay span { background: rgba(255, 255, 255, .1); border-radius: 4px; padding: 4px 9px; font-size: 11px; letter-spacing: .06em; }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .p-grid, .cat-grid, .steps, .fabrics, .pay-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel__track { grid-auto-columns: calc(33.333% - 11px); }
  .posts, .videos { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 220px 1fr; }
  .p-grid--shop { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-bar { grid-template-columns: auto 1fr auto; gap: 6px; }
  .logo { justify-self: center; }
  .logo__svg { width: 186px; }
  .site-header.is-stuck .logo__svg { width: 172px; }
  .pd { grid-template-columns: 1fr; gap: 26px; }
  .pd__gallery { position: static; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__art { order: 0; }
  .split__art { min-height: 280px; }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2n) { border-right: 0; }
  .perk:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__art { display: none; }
}

@media (max-width: 760px) {
  .p-grid, .cat-grid, .cat-grid--6, .steps, .fabrics, .stats, .posts, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-flow__arrow { display: none; }
  .carousel__track { grid-auto-columns: calc(60% - 8px); }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; overflow-y: auto; z-index: 128; border-radius: 16px 16px 0 0; transform: translateY(101%); transition: transform .45s var(--ease); }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .p-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { height: clamp(500px, 88vh, 640px); }
  .toasts { right: 12px; left: 12px; bottom: 88px; }
  .toast { max-width: none; }

  /* En celular el botón flotante de WhatsApp ya está abajo: el del
     encabezado sobra y es el que empujaba al carrito fuera de pantalla */
  .icon-btn--wa { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .burger { width: 38px; height: 38px; }
  .logo__svg { width: 164px; }
  .site-header.is-stuck .logo__svg { width: 154px; }
}

@media (max-width: 460px) {
  .p-grid, .cat-grid, .cat-grid--6, .fabrics, .posts, .videos { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: 78%; }
  .p-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .p-grid--shop .p-card__body { padding: 11px; }
  .p-card__price { font-size: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}
