/* ===================================================================
   Valle Paraíso Bicicletería — styles.css
   Archetype: Mouse-Reactive Gradient (dark sports / youth brand)
   v=20260520
   =================================================================== */

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #04080f;
  --bg-2:         #060c1a;
  --bg-3:         #0a1228;
  --bg-card:      #07091e;
  --ink:          #eef2ff;
  --ink-soft:     rgba(238,242,255,0.72);
  --ink-mute:     rgba(238,242,255,0.38);
  --accent:       #e8001e;
  --accent-dark:  #b80018;
  --accent-dim:   rgba(232,0,30,0.12);
  --oferta:       #2fd06f;
  --oferta-dark:  #1faf57;
  --oferta-dim:   rgba(47,208,111,0.14);
  --oferta-ink:   #04140c;
  --line:         rgba(180,200,255,0.09);
  --line-strong:  rgba(180,200,255,0.18);
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp:   cubic-bezier(0.87, 0, 0.13, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius:       12px;
  --radius-sm:    6px;
}

html {
  font-size: 16px;
  overflow-x: clip;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 10vw, 9rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1rem; font-weight: 700; }

em { font-style: italic; color: var(--accent); }

p { line-height: 1.65; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Layout helpers ───────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 em { display: inline; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(232,0,30,0);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(232,0,30,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn--cart {
  background: var(--accent);
  color: #ffffff;
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

/* ── Reveal animations ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Defensive: reveal with data-split must never be invisible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navigation ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.3s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

/* En páginas claras (tienda / detalle de producto) la barra superior
   siempre es sólida: sus iconos son claros y desaparecerían sobre el
   fondo blanco cuando se está en el tope de la página. */
body.page-tienda .nav {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.nav-logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.nav-logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cart {
  position: relative;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cart:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-cart svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s, transform 0.2s var(--ease-bounce);
}

.cart-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.cart-badge.bump {
  animation: badgeBump 0.4s var(--ease-bounce);
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  border-radius: 2px;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Cuenta (icono + menú desplegable) ───────────────────────────── */
.nav-account { position: relative; display: flex; }

.nav-acc-btn {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-acc-btn:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.nav-acc-btn svg { width: 19px; height: 19px; }

.nav-acc-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
}
.nav-acc-initial {
  background: var(--accent);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.nav-acc-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 60;
}
.nav-account.is-open .nav-acc-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-acc-head {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.nav-acc-head strong { font-size: 0.92rem; color: var(--ink); }
.nav-acc-head span { font-size: 0.78rem; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-acc-menu a,
.nav-acc-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-acc-menu a:hover,
.nav-acc-menu button:hover { background: var(--bg-3); color: var(--ink); }
.nav-acc-menu button[data-acc-logout] { color: var(--accent); }
.nav-acc-sep { height: 1px; background: var(--line); margin: 0.3rem 0; }

/* Bloque de cuenta dentro del menú móvil */
.nav-mobile-acc {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  align-items: center;
}
.nav-mobile-acc a,
.nav-mobile-acc button {
  background: none; border: none;
  color: var(--ink-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  cursor: pointer;
}
.nav-mobile-acc button[data-acc-logout] { color: var(--accent); }
.nav-mobile-acc-head {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  margin-bottom: 0.5rem;
}
.nav-mobile-acc-head strong {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1.3rem; color: var(--ink);
}
.nav-mobile-acc-head span {
  font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--ink-mute);
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 5vw, 2.5rem) 2rem;
  transform: translateY(-120%);
  transition: transform 0.4s var(--ease-out);
  z-index: 890;
}

.nav-mobile.is-open { transform: translateY(0); }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.nav-mobile-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile-links a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}

.hero-img.is-ready { transform: scale(1.0); }

.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.55) 100%
  );
}

/* Mouse-reactive gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
  background:
    radial-gradient(circle 700px at var(--mx, 30%) var(--my, 60%),
      rgba(232,0,30,0.18) 0%, transparent 70%),
    radial-gradient(circle 500px at calc(var(--mx, 30%) + 20%) calc(var(--my, 60%) - 15%),
      rgba(0,40,200,0.12) 0%, transparent 60%);
  filter: blur(40px);
  transition: background 0.15s ease;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: calc(var(--nav-h) + 3rem) clamp(1rem, 7vw, 4rem) 6rem;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.7s var(--ease-out) 0.1s;
}

.hero-title .accent-line { color: var(--accent); display: block; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out) 0.2s, transform 0.6s var(--ease-out) 0.2s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out) 0.3s, transform 0.6s var(--ease-out) 0.3s;
}

.hero-content.is-ready .hero-eyebrow,
.hero-content.is-ready .hero-title,
.hero-content.is-ready .hero-sub,
.hero-content.is-ready .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: clamp(1rem, 7vw, 4rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollSlide 1.8s ease-in-out infinite;
}

@keyframes scrollSlide {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ── Stats ────────────────────────────────────────────────────────── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

/* ── Services ─────────────────────────────────────────────────────── */
.services {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-3);
}

.services .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services .section-header::before {
  content: "NUESTROS SERVICIOS";
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Featured products (index only) ──────────────────────────────── */
.featured {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-2);
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Product card (shared: featured, bicicletas, repuestos) ───────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  cursor: default;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
}

.product-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.product-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card-cat {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.product-card-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.product-card-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.btn-add-cart {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-add-cart:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(232,0,30,0.3);
}

.btn-add-cart svg { width: 14px; height: 14px; }

/* ── Products page ────────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: attr(data-bg-text);
  position: absolute;
  right: -2rem;
  bottom: -1.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(232,0,30,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.catalog {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(232,0,30,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #f7f8fa 0%, #eceef2 100%);
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #1a1d27;
  position: relative;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card.is-hidden {
  display: none;
}

/* ── Sección en construcción (catálogo vacío, p. ej. repuestos) ────── */
.catalog-construccion {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  max-width: 540px;
  margin: 1rem auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--bg-card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.catalog-construccion .cc-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(232, 0, 30, 0.08);
}

.catalog-construccion .cc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 0, 30, 0.1);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.catalog-construccion .cc-title {
  margin: 0;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  line-height: 1.15;
  color: var(--ink);
}

.catalog-construccion .cc-text {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  line-height: 1.55;
}

.catalog-construccion .cc-btn {
  margin-top: 0.4rem;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.catalog-construccion .cc-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ── Workshop (bicicletas page promo) ─────────────────────────────── */
.workshop-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workshop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.workshop-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.workshop-img img { width: 100%; height: 100%; object-fit: cover; }

.workshop-text h2 { margin-bottom: 1rem; }

.workshop-text p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* ── Location ─────────────────────────────────────────────────────── */
.location {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.location-info h2 { margin-bottom: 1.5rem; }

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.location-detail:last-of-type { border-bottom: none; }

.location-detail-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-detail-icon svg { width: 100%; height: 100%; }

.location-detail-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 0.2rem;
}

.location-detail p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.location-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.location-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.location-whatsapp svg { width: 18px; height: 18px; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg);
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 38ch;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
}

.contact-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.contact-social svg { width: 18px; height: 18px; }

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-mute); }

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,0,30,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  background: #25D366;
  border-color: #25D366;
  box-shadow: none;
}

.form-submit:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.is-visible { display: block; }

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.form-success h4 { color: var(--accent); margin-bottom: 0.5rem; }

.form-success p { color: var(--ink-soft); font-size: 0.9rem; }

/* ── WhatsApp floating button ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
  color: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg { width: 28px; height: 28px; }

/* ── Cart Drawer ──────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  z-index: 960;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-close:hover { border-color: var(--accent); color: var(--accent); }
.cart-close svg { width: 16px; height: 16px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.cart-item-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.cart-item-cat {
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.qty-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  margin-top: 0.1rem;
  transition: color 0.2s;
  display: block;
  margin-left: auto;
}

.cart-item-remove:hover { color: #ff4040; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--ink-mute);
  flex: 1;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-empty p { font-size: 0.9rem; margin-top: 0.5rem; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cart-total-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.cart-total-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
}

.cart-checkout-hint {
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cart-checkout-hint svg { width: 14px; height: 14px; color: #25D366; }

/* Botón de WhatsApp (secundario) en el carrito */
.btn--whatsapp {
  background: #25D366;
  color: #062b16;
  width: 100%;
  justify-content: center;
  font-size: 0.94rem;
  padding: 0.8rem 1.5rem;
  margin-top: 0.55rem;
}
.btn--whatsapp:hover { box-shadow: 0 8px 24px rgba(37,211,102,0.28); }

/* ── Página de confirmación de pago (gracias.html) ─────────────────── */
.gracias-wrap {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}
.gracias-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.gracias-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.gracias-icon svg { width: 36px; height: 36px; }
.gracias-icon--load { background: var(--line); color: var(--ink-mute); }
.gracias-icon--ok   { background: rgba(37,211,102,.15); color: #25D366; border: 1px solid rgba(37,211,102,.3); }
.gracias-icon--pend { background: rgba(255,193,7,.15);  color: #f0b429; border: 1px solid rgba(255,193,7,.3); }
.gracias-icon--err  { background: rgba(232,0,30,.12);   color: var(--accent); border: 1px solid rgba(232,0,30,.25); }
.gracias-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: block;
  animation: spin-gracias 0.9s linear infinite;
}
@keyframes spin-gracias { to { transform: rotate(360deg); } }
.gracias-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.gracias-text {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}
.gracias-pedido {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}
.gracias-pedido-label { font-size: 0.72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.gracias-pedido-num   { font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.gracias-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.gracias-actions .btn { min-width: 160px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 32ch;
}

.footer-social { display: flex; gap: 0.6rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-col p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.footer-credits {
  font-size: 0.72rem;
  color: var(--ink-mute);
}

.footer-credits a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Toast notification ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 1000;
  background: var(--bg-3);
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Hero — estilo Celero full-bleed ─────────────────────────────── */

.hero {
  background: #000;
  min-height: 100vh;
  min-height: 100svh;
}

/* Foto bici fondo */
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 9s ease-out;
  filter: brightness(0.55);
}
.hero-img.is-ready { transform: scale(1); }

/* Tinte oscuro general */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.7) 100%),
    linear-gradient(to right,  rgba(0,0,0,0.5)  0%, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* Layout principal — todo centrado */
.hero-celero {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.5rem, 6vw, 5rem) 4rem;
  text-align: center;
}

/* Eyebrow top */
.hero-celero-top { text-align: center; }

/* Bloque central — frase + subtítulo + CTAs, centrados vertical y horizontalmente */
.hero-celero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
}

/* Frase gigante "RUEDA SIN LÍMITES" */
.hero-phrase {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  gap: clamp(0.4rem, 1.4vw, 1.25rem);
  line-height: 0.85;
  font-weight: 900;
}

/* Palabras sólidas (RUEDA / LÍMITES) */
.hero-word {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 11vw, 11rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 0.82;
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* RUEDA y LÍMITES entran primero, escalonadas */
.hero-word--a { transition-delay: 0.15s; }
.hero-word--b { transition-delay: 0.30s; }

/* "SIN" fantasma — contorno; entra ~1s después y subiendo desde abajo */
.hero-word-ghost {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 11vw, 11rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.45);
  text-stroke: 2px rgba(255,255,255,0.45);
  display: inline-block;
  opacity: 0;
  transform: translateY(72px);
  transition: opacity 0.7s var(--ease-out) 1s, transform 0.7s var(--ease-out) 1s;
}

/* Subtítulo centrado bajo la frase */
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out) 1s, transform 0.7s var(--ease-out) 1s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out) 1s, transform 0.7s var(--ease-out) 1s;
}

/* is-loaded dispara todas las animaciones del hero */
.hero.is-loaded .hero-word       { opacity: 1; transform: translateY(0); }
.hero.is-loaded .hero-word-ghost { opacity: 1; transform: translateY(0); }
.hero.is-loaded .hero-sub        { opacity: 1; transform: translateY(0); }
.hero.is-loaded .hero-ctas       { opacity: 1; transform: translateY(0); }

/* Eyebrow (reutiliza el existente) */
.hero-celero .hero-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.hero.is-loaded .hero-eyebrow { opacity: 1; transform: translateY(0); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 6vw, 5rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Category strips ──────────────────────────────────────────────── */
.cat-strips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cat-strip-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.cat-strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: brightness(0.6) saturate(0.8);
}

.cat-strip-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.45) saturate(0.7);
}

.cat-strip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem 2.25rem;
  background: linear-gradient(to top, rgba(4,8,15,0.88) 0%, rgba(4,8,15,0.2) 55%, transparent 100%);
}

.cat-strip-tag {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  display: block;
  transition: color 0.3s;
}

.cat-strip-overlay h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--ink);
  line-height: 1.1;
}

.cat-strip-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(238,242,255,0.4);
  padding: 0.45rem 1rem;
  border-radius: 3px;
  display: inline-block;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  width: fit-content;
}

.cat-strip-card:hover .cat-strip-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cat-strip-card + .cat-strip-card {
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* ── Split banners ────────────────────────────────────────────────── */
.split-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-banner {
  position: relative;
  overflow: hidden;
  height: 500px;
  display: block;
  text-decoration: none;
}

.split-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: brightness(0.38) saturate(0.65);
}

.split-banner:hover img {
  transform: scale(1.04);
  filter: brightness(0.28) saturate(0.5);
}

.split-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem clamp(2rem, 5vw, 4rem);
}

.split-banner-eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.split-banner-text h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1;
}

.split-banner-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.split-banner + .split-banner {
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* ── Workshop — numbered services ─────────────────────────────────── */
.workshop-numbered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.75rem 0 2rem;
}

.workshop-service {
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.workshop-service:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 1.75rem;
}

.workshop-service:nth-child(even) {
  padding-left: 1.75rem;
  padding-right: 0;
}

.workshop-service:nth-last-child(-n+2) {
  border-bottom: none;
}

.workshop-service-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.workshop-service h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workshop-service p {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-strips { grid-template-columns: 1fr 1fr; }
  .split-banners { grid-template-columns: 1fr; }
  .split-banner { height: 380px; }
  .split-banner + .split-banner { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--line); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .cat-strips { grid-template-columns: 1fr; }
  .cat-strip-card { height: 280px; }
  .cat-strip-card:last-child { grid-column: auto; height: 280px; }
  .cat-strip-card + .cat-strip-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .split-banners { grid-template-columns: 1fr; }
  .split-banner { height: 340px; }
  .workshop-numbered { grid-template-columns: 1fr; }
  .workshop-service:nth-child(odd) { border-right: none; padding-right: 0; }
  .workshop-service:nth-child(even) { padding-left: 0; }
  .workshop-service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workshop-service:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-account { display: none; }

  .featured-grid { grid-template-columns: 1fr; }

  .workshop-inner { grid-template-columns: 1fr; }
  .workshop-img { order: -1; }

  .location-inner { grid-template-columns: 1fr; }
  .map-container { position: static; }

  .contact-inner { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > *:first-child { grid-column: auto; }

  .form-row { grid-template-columns: 1fr; }

  .featured-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.25rem 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ── Product catalog — real products from Excel ──────────────────── */
.prod-card {
  background: linear-gradient(160deg, #0c0e24 0%, #070a1c 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.prod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 2;
}

.prod-card:hover {
  border-color: rgba(232,0,30,0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(232,0,30,0.13), 0 4px 20px rgba(0,0,0,0.6);
}

.prod-card-img {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.5s var(--ease-out);
}

.prod-card:hover .prod-card-img img {
  transform: scale(1.05);
}

/* Placeholder when no image */
.prod-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
}

.prod-img-placeholder svg {
  width: 64px;
  height: 64px;
  color: #333;
}

.prod-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.prod-badge {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.prod-badge--encargo {
  background: rgba(10, 10, 10, 0.78);
  color: #7db1ff;
  border: 1px solid rgba(70, 140, 255, 0.55);
  backdrop-filter: blur(4px);
}

.prod-badge--oferta {
  background: var(--oferta);
  color: var(--oferta-ink);
  border: 1px solid var(--oferta-dark);
  box-shadow: 0 0 16px rgba(47, 208, 111, 0.45);
}

.prod-badge--casiagotado {
  background: rgba(10, 10, 10, 0.78);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.55);
  backdrop-filter: blur(4px);
}

.prod-badge--agotado {
  background: rgba(10, 10, 10, 0.78);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.55);
  backdrop-filter: blur(4px);
}

.prod-card-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.prod-card-meta {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.prod-card-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}

.prod-swatches {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
  outline: none;
}

.swatch-dot:hover {
  transform: scale(1.25);
}

.swatch-dot.is-active {
  border-color: var(--accent);
  transform: scale(1.2);
}

.swatch-dot.is-agotado,
.swatch-dot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
  transform: none !important;
  position: relative;
}
/* Tachado diagonal en swatches agotados */
.swatch-dot.is-agotado::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 43%, rgba(180,0,0,0.55) 43%, rgba(180,0,0,0.55) 57%, transparent 57%);
  pointer-events: none;
}

.prod-tallas {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.talla-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.talla-btn:hover:not(.is-unavail) {
  border-color: var(--accent);
  color: var(--accent);
}

.talla-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.talla-btn.is-unavail {
  opacity: 0.28;
  cursor: not-allowed;
  text-decoration: line-through;
}

.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.prod-price {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.prod-price .cop-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  line-height: 1;
}

.prod-price .price-val {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(232,0,30,0.35);
}

/* Precio anterior (tachado) cuando hay oferta */
.prod-price .price-old {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: rgba(238, 242, 255, 0.55);
}

.btn-add-prod {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-add-prod:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-encargo {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 245, 32, 0.3);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}

.btn-encargo:hover {
  background: var(--accent-dim);
}

.prod-card.is-hidden {
  display: none;
}

@media (max-width: 600px) {
  .prod-card-name { font-size: 0.95rem; }
  .prod-price .price-val { font-size: 1.15rem; }
  .btn-add-prod, .btn-encargo { padding: 0.4rem 0.65rem; font-size: 0.72rem; }
}

/* ── Catálogo claro (look tienda) — overrides sobre fondo claro ───── */
.catalog .filter-btn {
  border-color: rgba(15, 20, 30, 0.16);
  color: rgba(15, 20, 30, 0.62);
}
.catalog .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.catalog .filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.catalog .prod-card {
  background: #ffffff;
  border: 1px solid rgba(15, 20, 30, 0.09);
  box-shadow: 0 1px 2px rgba(15, 20, 30, 0.05), 0 10px 28px rgba(15, 20, 30, 0.05);
}
.catalog .prod-card:hover {
  border-color: rgba(232, 0, 30, 0.35);
  box-shadow: 0 14px 40px rgba(15, 20, 30, 0.12), 0 4px 16px rgba(232, 0, 30, 0.10);
}
.catalog .prod-card-img {
  border-bottom: 1px solid rgba(15, 20, 30, 0.07);
}
.catalog .prod-card-meta { color: #8a909b; }
.catalog .prod-card-name { color: #12151f; }
.catalog .prod-card-footer { border-top: 1px solid rgba(15, 20, 30, 0.08); }
.catalog .prod-price .cop-label { color: #9aa0aa; }
.catalog .prod-price .price-val { text-shadow: none; }

.catalog .talla-btn {
  border-color: rgba(15, 20, 30, 0.18);
  color: rgba(15, 20, 30, 0.7);
}
.catalog .talla-btn:hover:not(.is-unavail) {
  border-color: var(--accent);
  color: var(--accent);
}
.catalog .talla-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.catalog .btn-encargo { border-color: rgba(232, 0, 30, 0.35); }
.catalog .prod-badge--encargo { border-color: rgba(70, 140, 255, 0.55); }

/* Tarjeta del catálogo enlazada a su página de detalle */
.prod-card-link { display: block; text-decoration: none; color: inherit; }
.prod-card-name-link { text-decoration: none; color: inherit; cursor: pointer; }
.prod-card-name-link:hover .prod-card-name { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════
   PÁGINA DE DETALLE DE PRODUCTO (PDP) — tema claro tipo tienda
   ════════════════════════════════════════════════════════════════════ */
.pdp {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
  color: #12151f;
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(1.25rem, 3vw, 2.5rem)) 0 clamp(3rem, 7vw, 6rem);
}
.pdp-inner { width: min(1180px, 92vw); margin: 0 auto; }

/* Carga / no encontrado */
.pdp-loading, .pdp-notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: clamp(3rem, 10vw, 7rem) 1rem; color: #5c6470;
}
.pdp-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(15, 20, 30, 0.12); border-top-color: var(--accent);
  animation: pdp-spin 0.8s linear infinite;
}
@keyframes pdp-spin { to { transform: rotate(360deg); } }
.pdp-notfound h2 { font-family: var(--font-head, "Barlow Condensed", sans-serif); font-size: 2rem; color: #12151f; margin-bottom: .25rem; }
.pdp-notfound .btn-volver {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem;
  padding: .7rem 1.3rem; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}

/* Volver / Breadcrumb */
.pdp-back { display: inline-flex; align-items: center; gap: .4rem; color: #8a909b; text-decoration: none; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.pdp-back:hover { color: var(--accent); }
.pdp-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .82rem; color: #8a909b; margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.pdp-breadcrumb a { color: #8a909b; text-decoration: none; }
.pdp-breadcrumb a:hover { color: var(--accent); }
.pdp-breadcrumb .sep { opacity: .5; }
.pdp-breadcrumb .current { color: #12151f; font-weight: 600; }

/* Layout */
.pdp-layout { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 880px) {
  .pdp-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .pdp-info { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
}

/* Galería */
.pdp-gallery { display: flex; flex-direction: column; gap: .9rem; }
.pdp-main-wrap {
  position: relative; background: #fff; border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 20, 30, 0.04), 0 18px 40px rgba(15, 20, 30, 0.06);
}
.pdp-main-img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .25s ease; }
.pdp-badges {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}
.pdp-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 999px; background: #fff; color: #1f63d6;
  border: 1px solid rgba(70, 140, 255, 0.55);
}
.pdp-badge--oferta {
  background: var(--oferta); color: var(--oferta-ink); border: 1px solid var(--oferta-dark);
  box-shadow: 0 4px 14px rgba(47, 208, 111, 0.4);
}
.pdp-badge--casiagotado {
  background: rgba(10, 10, 10, 0.72); color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.55);
}
.pdp-badge--agotado {
  background: rgba(10, 10, 10, 0.72); color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.pdp-badge--local {
  background: rgba(10, 10, 10, 0.72); color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.4);
}
.pdp-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; height: 68px; border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0;
  background: #fff; border: 1px solid rgba(15, 20, 30, 0.12);
  display: flex; align-items: center; justify-content: center; transition: border-color .15s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Columna de información */
.pdp-meta { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #8a909b; font-weight: 600; }
.pdp-title {
  font-family: var(--font-head, "Barlow Condensed", sans-serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.05; color: #12151f;
  margin: .35rem 0 .6rem; text-transform: uppercase; letter-spacing: .01em;
}
.pdp-price-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.pdp-price { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--accent); letter-spacing: .01em; }
.pdp-price .cop { font-size: .7rem; font-weight: 700; color: #9aa0aa; letter-spacing: .08em; margin-right: .15rem; }
.pdp-price .pdp-price-old {
  font-size: .95rem; font-weight: 600; color: #9aa0aa;
  text-decoration: line-through; margin: 0 .35rem 0 .1rem;
}
.pdp-price .pdp-price-now { color: var(--accent); font-weight: 800; }
.pdp-price.is-oferta { display: inline-flex; align-items: baseline; gap: .1rem; }
.pdp-availability { font-size: .85rem; margin: .35rem 0 1.25rem; display: flex; align-items: center; gap: .45rem; }
.pdp-availability .dot { width: 9px; height: 9px; border-radius: 50%; }
.pdp-availability.in-stock { color: #1a7a3a; } .pdp-availability.in-stock .dot { background: #1a7a3a; }
.pdp-availability.out-stock { color: #b07400; } .pdp-availability.out-stock .dot { background: #d39000; }
.pdp-availability.low-stock { color: #b45309; } .pdp-availability.low-stock .dot { background: #d97706; }

.pdp-block { margin-bottom: 1.25rem; }
.pdp-block-label { font-size: .8rem; font-weight: 700; color: #3a414d; margin-bottom: .5rem; display: block; }
.pdp-block-label .sel { color: #8a909b; font-weight: 500; }

/* Muestras de color */
.pdp-swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.pdp-swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(15, 20, 30, 0.18); transition: transform .12s ease;
}
.pdp-swatch:hover:not(:disabled):not(.is-agotado) { transform: scale(1.08); }
.pdp-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.pdp-swatch.is-agotado,
.pdp-swatch:disabled {
  opacity: 0.28; cursor: not-allowed; filter: grayscale(1); transform: none !important;
  position: relative;
}
.pdp-swatch.is-agotado::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(135deg, transparent 43%, rgba(180,0,0,0.55) 43%, rgba(180,0,0,0.55) 57%, transparent 57%);
  pointer-events: none;
}

/* Tallas */
.pdp-tallas { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdp-talla {
  min-width: 48px; padding: .55rem .8rem; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid rgba(15, 20, 30, 0.18); color: #3a414d;
  font-weight: 600; font-size: .9rem; transition: all .12s ease;
}
.pdp-talla:hover:not(.is-unavail) { border-color: var(--accent); color: var(--accent); }
.pdp-talla.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pdp-talla.is-unavail { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Cantidad */
.pdp-qty { display: inline-flex; align-items: center; border: 1px solid rgba(15, 20, 30, 0.18); border-radius: 8px; overflow: hidden; }
.pdp-qty-btn { width: 42px; height: 42px; background: #fff; border: 0; cursor: pointer; font-size: 1.2rem; color: #3a414d; display: flex; align-items: center; justify-content: center; }
.pdp-qty-btn:hover { background: #f1f3f6; color: var(--accent); }
.pdp-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.pdp-qty-val { min-width: 44px; text-align: center; font-weight: 700; color: #12151f; }

/* Acciones */
.pdp-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.pdp-actions-row { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .pdp-actions-row { flex-direction: row; align-items: stretch; } .pdp-qty { flex: 0 0 auto; } }
.pdp-add, .pdp-encargo {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
  cursor: pointer; text-decoration: none; border: 0;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.pdp-add { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(232, 0, 30, 0.25); }
.pdp-add:hover { background: var(--accent-dark, #b80018); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(232, 0, 30, 0.32); }
.pdp-add svg { width: 20px; height: 20px; }
.pdp-encargo { background: #128c7e; color: #fff; box-shadow: 0 8px 24px rgba(18, 140, 126, 0.22); }
.pdp-encargo:hover { background: #0e7064; transform: translateY(-1px); }
.pdp-encargo svg { width: 20px; height: 20px; fill: currentColor; }

/* Enlace «Consultar por WhatsApp» secundario (debajo del botón de agregar) */
.pdp-wa-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .85rem 1.4rem; border-radius: var(--radius);
  border: 1.5px solid rgba(18, 140, 126, 0.5); background: rgba(18, 140, 126, 0.08);
  font-weight: 700; font-size: .95rem; color: #0e7064; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pdp-wa-secondary svg { width: 18px; height: 18px; fill: #128c7e; flex-shrink: 0; transition: fill .18s ease; }
.pdp-wa-secondary:hover { background: #128c7e; border-color: #128c7e; color: #fff; }
.pdp-wa-secondary:hover svg { fill: #fff; }

/* Acordeones */
.pdp-accordions { margin-top: 2rem; border-top: 1px solid rgba(15, 20, 30, 0.1); }
.pdp-acc { border-bottom: 1px solid rgba(15, 20, 30, 0.1); }
.pdp-acc-head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; font-weight: 700; font-size: .98rem; color: #12151f;
}
.pdp-acc-head .chev { transition: transform .2s ease; color: #8a909b; flex: 0 0 auto; }
.pdp-acc.is-open .chev { transform: rotate(180deg); }
.pdp-acc-body { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.pdp-acc.is-open .pdp-acc-body { max-height: 600px; }
.pdp-acc-body-inner { padding: 0 0 1.15rem; color: #4a515c; font-size: .92rem; line-height: 1.65; }
.pdp-spec { display: flex; gap: .6rem; padding: .25rem 0; margin: 0; }
.pdp-spec dt { min-width: 120px; color: #8a909b; font-weight: 600; }
.pdp-spec dd { color: #2a313c; margin: 0; }

/* Relacionados */
.pdp-related { margin-top: clamp(3rem, 7vw, 5rem); }
.pdp-related h2 {
  font-family: var(--font-head, "Barlow Condensed", sans-serif); text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem); color: #12151f; margin-bottom: 1.25rem; letter-spacing: .01em;
}
.pdp-related-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pdp-rel-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(15, 20, 30, 0.09);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.pdp-rel-card:hover { border-color: rgba(232, 0, 30, 0.35); box-shadow: 0 14px 34px rgba(15, 20, 30, 0.1); transform: translateY(-2px); }
.pdp-rel-img { position: relative; aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(15, 20, 30, 0.07); }
.pdp-rel-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pdp-rel-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: .56rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .45rem; border-radius: 999px;
  background: var(--oferta); color: var(--oferta-ink); border: 1px solid var(--oferta-dark);
}
.pdp-rel-body { padding: .8rem .9rem 1rem; }
.pdp-rel-name { font-weight: 600; font-size: .9rem; color: #12151f; line-height: 1.25; margin-bottom: .35rem; }
.pdp-rel-price { color: var(--accent); font-weight: 800; font-size: .95rem; }
.pdp-rel-old { color: #9aa0aa; font-weight: 600; text-decoration: line-through; margin-right: .25rem; }
.pdp-rel-now { color: var(--accent); font-weight: 800; }

/* ── Reduced motion — only gate intrusive effects ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; }
  .hero-img { transition: none; }
}

/* ── Cursor personalizado — punto + anillo ────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;                       /* oculto hasta el primer movimiento */
  transition: opacity 0.25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }

/* Solo en dispositivos con mouse real */
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px;
  background: #fff;
  border-radius: 50%;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

/* Sobre elementos interactivos el anillo crece */
.cursor.is-interactive .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px;
}

/* Oculta el cursor nativo cuando el personalizado está activo */
.has-cursor,
.has-cursor a,
.has-cursor button { cursor: none; }

/* Conserva un cursor usable en campos de texto */
.has-cursor input,
.has-cursor textarea,
.has-cursor select { cursor: auto; }

/* ── Pantalla de carga / transición entre páginas ─────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;                 /* por encima de todo, incluso el cursor */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
  backdrop-filter: blur(20px) saturate(118%);
  opacity: 1;
  transition: opacity 0.55s var(--ease-out);
  /* Respaldo por CSS: si el JS no corre, se oculta sola */
  animation: splashAutoHide 0.4s linear 4.5s forwards;
}
.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo que titila lentamente */
.splash-logo {
  width: clamp(120px, 17vw, 190px);
  height: auto;
  animation: splashPulse 2.1s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { opacity: 0.22; transform: scale(0.96); }
  50%      { opacity: 0.92; transform: scale(1.04); }
}

@keyframes splashAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ===================================================================
   Guía de Tallas — PDP (producto.js · sizeGuideBodyHtml)
   Componente condicional: rin 12/16/20/24 = infantil · rin 29 = adulto
   Tema claro (light), coherente con el acordeón .pdp-acc del PDP.
   =================================================================== */

/* Columna izquierda: galería + guía de tallas */
.pdp-left { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* Guía de tallas — tarjeta debajo de las fotos (columna izquierda) */
.pdp-sg {
  padding: 1.1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}
.pdp-sg-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.pdp-sg-title svg { color: #94a3b8; }

/* Contenedor principal */
.sg-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── Cabecera de columnas ─────────────────────────────────────── */
.sg-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.7fr;   /* 3 col: Rin 12–24 */
  padding: 0.48rem 0.8rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
}
.sg-head--2col {
  grid-template-columns: 1fr 1.5fr;          /* 2 col: Rin 29 */
}
.sg-hcell {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
}

/* ── Cuerpo de filas ──────────────────────────────────────────── */
.sg-body {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.sg-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.7fr;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.14s ease;
}
.sg-row:last-child { border-bottom: none; }
.sg-row:hover { background: #f8fafc; }

/* Variante 2 columnas (Rin 29) */
.sg-row--2col               { grid-template-columns: 1fr 1.5fr; }
.sg-body--2col .sg-row      { grid-template-columns: 1fr 1.5fr; }

/* Fila destacada = la del rin/talla del producto actual */
.sg-row--active {
  background: rgba(232, 0, 30, 0.05);
  border-left: 3px solid #e8001e;
  padding-left: calc(0.8rem - 3px);  /* compensa el borde */
}
.sg-row--active .sg-cell--key {
  color: #e8001e;
  font-weight: 700;
}

/* ── Celdas ───────────────────────────────────────────────────── */
.sg-cell {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.sg-cell--key {
  font-weight: 600;
  color: #1e293b;
  gap: 0.25rem;
}
.sg-cell--extra {
  font-size: 0.82rem;
  color: #64748b;
}
.sg-cod {
  font-size: 0.78rem;
  font-weight: 400;
  color: #94a3b8;
}

/* ── Aviso aclaratorio ────────────────────────────────────────── */
.sg-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #78350f;
}
.sg-disclaimer p { margin: 0; }
.sg-disc-ico {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #d97706;
}

/* Responsive: en móvil las celdas de texto largo pueden comprimirse */
@media (max-width: 400px) {
  .sg-cell--extra { display: none; }          /* oculta "Edad aprox." en pantallas muy pequeñas */
  .sg-head { grid-template-columns: 1fr 1.5fr; }
  .sg-row  { grid-template-columns: 1fr 1.5fr; }
}
