/* ============================================
   CIBA UNIFORMES CLÍNICOS — Design System 2026
   Estilo: Editorial Premium Healthcare
   Fuentes: Fraunces + Manrope
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────── */
:root {
  --teal-900: #053d3a;
  --teal-800: #075f5a;
  --teal-700: #0b807a;
  --teal-600: #0d9d96;
  --teal-400: #3dbdb6;
  --teal-100: #e0f7f6;
  --teal-50:  #f0fdfc;

  --navy-900: #0d1824;
  --navy-800: #1a2a40;
  --navy-700: #243654;

  --rose-600: #d11149;
  --rose-500: #e31d5a;

  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-400: #94a3b8;
  --neutral-600: #475569;
  --neutral-900: #0f172a;

  --white: #ffffff;
  --card-bg: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-teal: 0 8px 24px rgba(11,128,122,.22);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);

  --header-h: 72px;
  --z-header: 100;
  --z-cart: 200;
  --z-overlay: 190;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--neutral-900);
  background: var(--white);
  overflow-x: clip; /* clip (no hidden) para no romper position:sticky del hero */
}

/* ── Hero scroll-control (video frame-by-frame) ── */
.hero-video-scroll-container { isolation: isolate; }
.hero-video-sticky { isolation: isolate; }
#heroCanvas { will-change: contents; }
@media (max-width: 768px) {
  .hero-video-scroll-container { height: 240vh !important; }
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

/* ── Layout ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }

/* ── Header ──────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--neutral-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: -0.5px;
}

.search-wrap {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--neutral-900);
  background: var(--neutral-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(11,128,122,.12);
  background: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-600);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal-700);
  background: var(--teal-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--teal-700);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: var(--teal-800); transform: scale(1.05); }
.cart-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--rose-600);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  transform: scale(0);
  transition: transform var(--transition);
}
.cart-badge.show { transform: scale(1); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--neutral-600);
  transition: color var(--transition), background var(--transition);
}
.menu-btn:hover { color: var(--teal-700); background: var(--teal-50); }
.menu-btn svg { width: 22px; height: 22px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 24px;
  z-index: calc(var(--z-header) - 1);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.2s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 12px 16px; border-radius: var(--radius-md); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  position: absolute;
  width: 100%;
  height: 130%;
  top: -15%;
  left: 0;
  object-fit: cover;
  object-position: center top;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(9,45,43,0.82) 0%,
    rgba(9,45,43,0.55) 55%,
    rgba(9,45,43,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge span.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title em {
  font-style: italic;
  color: var(--teal-400);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-800); box-shadow: 0 10px 28px rgba(11,128,122,.32); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--teal-700);
  border: 2px solid var(--teal-700);
}
.btn-outline-dark:hover { background: var(--teal-700); color: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #1da855; transform: translateY(-1px); }

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}
.btn-full { width: 100%; }

/* ── Stats strip ─────────────────────────────── */
.stats-strip {
  background: var(--teal-700);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── About / Nosotros ────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-800);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-title span { color: var(--teal-700); }
.section-subtitle {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 32px;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 3px;
}
.feature-item p {
  font-size: 0.875rem;
  color: var(--neutral-600);
}

.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.badge-icon svg { width: 22px; height: 22px; }
.badge-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}
.badge-text span { font-size: 0.78rem; color: var(--neutral-600); }

/* ── Category Pills (Featured on home) ───────── */
.cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-600);
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

/* ── Product Grid ────────────────────────────── */
.products-section { background: var(--neutral-50); }

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.catalog-count {
  font-size: 0.85rem;
  color: var(--neutral-400);
  font-weight: 500;
}
.catalog-sort select {
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neutral-900);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

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

/* ── Product Card ─────────────────────────────── */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--neutral-200);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--teal-400);
}

.product-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--neutral-100);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-img img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-new { background: var(--teal-700); color: var(--white); }
.badge-sale { background: var(--rose-600); color: var(--white); }
.badge-premium { background: var(--navy-800); color: var(--white); }

.product-quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}
.product-quick-add svg { width: 18px; height: 18px; }
.product-card:hover .product-quick-add {
  opacity: 1;
  transform: translateY(0);
}
.product-quick-add:hover { background: var(--teal-700); color: var(--white); }

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--neutral-400);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox — ver imagen en detalle */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: lbFade .2s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 94vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 18px; right: 28px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.product-img img { transition: transform .4s ease, opacity .2s ease; }

/* Checkout modal */
.checkout-modal {
  position: fixed; inset: 0;
  background: rgba(13,24,36,.6);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  opacity: 0; transition: opacity .2s ease;
}
.checkout-modal.open { opacity: 1; }
.checkout-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(12px); transition: transform .2s ease;
}
.checkout-modal.open .checkout-box { transform: translateY(0); }
.checkout-close {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--neutral-100); border: none;
  font-size: 1.5rem; line-height: 1; color: var(--neutral-600);
  cursor: pointer; transition: all var(--transition);
}
.checkout-close:hover { background: var(--neutral-200); color: var(--navy-800); }
.checkout-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-800); margin-bottom: 4px; }
.checkout-sub { color: var(--neutral-600); font-size: 0.9rem; margin-bottom: 22px; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-field { display: flex; flex-direction: column; gap: 5px; }
.ck-field.ck-col2 { grid-column: 1 / -1; }
.ck-field label { font-size: 0.78rem; font-weight: 600; color: var(--neutral-600); }
.ck-field input, .ck-field select, .ck-field textarea {
  padding: 11px 13px; border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 0.92rem; color: var(--neutral-900); background: var(--white);
  transition: border-color var(--transition);
}
.ck-field input:focus, .ck-field select:focus, .ck-field textarea:focus {
  outline: none; border-color: var(--teal-600);
}
.ck-summary {
  background: var(--neutral-50); border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md); padding: 16px; margin: 20px 0 16px;
}
.ck-error {
  background: #fff1f2; border: 1.5px solid #fecdd3; color: #be123c;
  padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.84rem; margin-bottom: 14px;
}
.ck-pay {
  background: #009ee3; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ck-pay:hover { background: #0089c7; }
.ck-pay:disabled { opacity: .7; cursor: default; }
[data-theme="dark"] .checkout-box { background: #161b27; }
[data-theme="dark"] .ck-field input,
[data-theme="dark"] .ck-field select,
[data-theme="dark"] .ck-field textarea { background: #0d1117; color: #e8eef7; border-color: #21283a; }
[data-theme="dark"] .ck-summary { background: #0d1117; border-color: #21283a; }
[data-theme="dark"] .checkout-close { background: #21283a; color: #a8b8d0; }
@media (max-width: 560px) {
  .ck-grid { grid-template-columns: 1fr; }
  .checkout-box { padding: 24px 18px; }
}

/* Color swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--teal-700);
}
.swatch[style*="#f0f0f0"],
.swatch[style*="#e0c8a0"],
.swatch[style*="#c09870"],
.swatch[style*="#e8d5b8"],
.swatch[style*="#78d0e0"],
.swatch[style*="#88c890"],
.swatch[style*="#f0a0b8"],
.swatch[style*="#c8a0d8"],
.swatch[style*="#a888c8"] {
  border: 2px solid var(--neutral-300, #cbd5e1);
}
.swatch-more {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 2px solid var(--neutral-200);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Size select */
.size-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.size-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.size-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neutral-600);
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  cursor: pointer;
  transition: all var(--transition);
}
.size-pill:hover { border-color: var(--teal-400); color: var(--teal-700); }
.size-pill.selected {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--neutral-100);
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-800);
}
.product-price-old {
  font-size: 0.85rem;
  color: var(--neutral-400);
  text-decoration: line-through;
  font-weight: 400;
}

.add-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--teal-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.add-cart-btn:hover { background: var(--teal-800); transform: scale(1.1); }
.add-cart-btn svg { width: 18px; height: 18px; }
.add-cart-btn.added {
  background: var(--rose-600);
  animation: pop 0.3s ease;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* no results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--neutral-400);
}
.no-results svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: .4; }
.no-results p { font-size: 1rem; font-weight: 500; }

/* ── Cart Sidebar ─────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: var(--z-cart);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-overlay.open .cart-sidebar { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--neutral-200);
  flex-shrink: 0;
}
.cart-head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
}
.cart-count-label {
  font-size: 0.8rem;
  color: var(--neutral-400);
  margin-left: 8px;
}
.close-cart {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.close-cart:hover { color: var(--navy-800); background: var(--neutral-100); }
.close-cart svg { width: 20px; height: 20px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--neutral-400);
  gap: 12px;
  padding: 40px 20px;
}
.cart-empty svg { width: 56px; height: 56px; opacity: .3; }
.cart-empty p { font-weight: 500; font-size: 1rem; }
.cart-empty small { font-size: 0.85rem; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  animation: slideInRight 0.2s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-img {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--neutral-200);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--neutral-400);
  margin-bottom: 10px;
  line-height: 1.4;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--neutral-200);
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background var(--transition);
  cursor: pointer;
}
.qty-btn:hover { background: var(--teal-100); color: var(--teal-700); }
.qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
  min-width: 20px;
  text-align: center;
}
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
}
.remove-item {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.remove-item:hover { color: var(--rose-600); background: #fff0f3; }
.remove-item svg { width: 16px; height: 16px; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--neutral-600);
}
.cart-row.total {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  padding-top: 12px;
  border-top: 1.5px solid var(--neutral-200);
}

/* ── WhatsApp float ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 150;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Catalog Page Filter Bar ─────────────────── */
.filter-bar {
  padding: 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

/* ── Catalog Hero (sub-page) ─────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-800) 100%);
  padding: calc(var(--header-h) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(11,128,122,.3) 0%, transparent 60%);
}
.cat-hero .container { position: relative; z-index: 2; }
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.cat-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto;
}

/* Search bar on catalog */
.catalog-search {
  max-width: 480px;
  margin: 24px auto 0;
  position: relative;
}
.catalog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 50px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: background var(--transition);
  border: 1.5px solid rgba(255,255,255,.2);
}
.catalog-search input::placeholder { color: rgba(255,255,255,.5); }
.catalog-search input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--teal-400); }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  margin: 16px 0 24px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social:hover { background: var(--teal-700); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-400); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--teal-400); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.35); }

/* ── Toast ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--navy-800);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  transform: translateX(120%);
  transition: transform var(--transition);
}
.toast.show { transform: translateX(0); }
.toast svg { width: 18px; height: 18px; color: var(--teal-400); flex-shrink: 0; }

/* ── Contacto ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--teal-700);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--white);
}
.contact-info-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
.contact-info-card p {
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.6);
  margin-bottom: 2px;
}
.contact-detail span {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  border: 1.5px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--neutral-900);
  background: var(--neutral-50);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(11,128,122,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .search-wrap { display: none; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat-item { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .contact-info-card, .contact-form-card { padding: 32px 24px; }
  .hero-content { padding: 60px 0; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; gap: 8px; }
  .product-name { font-size: 0.95rem; }
  .product-price { font-size: 1.1rem; }
  .hero-title { font-size: 2rem; }
  .cart-sidebar { width: 100vw; }
}

/* ── Utility ──────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.hidden { display: none !important; }
.text-teal { color: var(--teal-700); }
.bg-neutral { background: var(--neutral-50); }

/* ══════════════════════════════════════════════
   TEMA OSCURO
   ══════════════════════════════════════════════ */
[data-theme="dark"] {
  --white: #0d1117;
  --card-bg: #161b27;
  --neutral-50:  #0d1117;
  --neutral-100: #161b27;
  --neutral-200: #21283a;
  --neutral-400: #6b7a99;
  --neutral-600: #a8b8d0;
  --neutral-900: #e8eef7;
  --teal-50:  #062220;
  --teal-100: #0a3330;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

[data-theme="dark"] .header {
  background: rgba(13,17,23,0.95);
  border-bottom-color: #21283a;
}

[data-theme="dark"] .mobile-nav {
  background: #0d1117;
  border-bottom-color: #21283a;
}

[data-theme="dark"] .product-card {
  background: #161b27;
  border-color: #21283a;
}

[data-theme="dark"] .search-input {
  background: #161b27;
  color: #e8eef7;
  border-color: #21283a;
}
[data-theme="dark"] .search-input::placeholder { color: #6b7a99; }

[data-theme="dark"] .cart-sidebar {
  background: #0d1117;
}

[data-theme="dark"] .filter-bar {
  background: #0d1117;
  border-bottom-color: #21283a;
}

[data-theme="dark"] .stat-item {
  background: rgba(22,27,39,.6);
}

[data-theme="dark"] .feature-item {
  background: #161b27;
  border-color: #21283a;
}

[data-theme="dark"] .cat-card {
  background: #161b27 !important;
  border-color: #21283a !important;
}

[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .contact-info-card {
  background: #161b27;
  border-color: #21283a;
}

[data-theme="dark"] .select-sort {
  background: #161b27;
  color: #e8eef7;
  border-color: #21283a;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #0d1117;
  color: #e8eef7;
  border-color: #21283a;
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: #6b7a99; }

[data-theme="dark"] .cart-overlay {
  background: rgba(0,0,0,.7);
}

[data-theme="dark"] .cart-totals {
  border-top-color: #21283a;
}

[data-theme="dark"] .cart-row {
  border-bottom-color: #21283a;
}

/* ── Texto negro → blanco en modo oscuro ─────── */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .about-desc,
[data-theme="dark"] .feature-item p { color: #a8b8d0; }

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] .product-name,
[data-theme="dark"] .product-price,
[data-theme="dark"] .cart-item-name,
[data-theme="dark"] .stat-num,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .feature-item h4,
[data-theme="dark"] .badge-text strong,
[data-theme="dark"] .section-title,
[data-theme="dark"] .about-label,
[data-theme="dark"] .contact-info-title,
[data-theme="dark"] .contact-info-value { color: #e8eef7; }

[data-theme="dark"] .nav-link { color: #a8b8d0; }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--teal-400); }

[data-theme="dark"] .product-meta,
[data-theme="dark"] .product-art,
[data-theme="dark"] .cart-item-meta,
[data-theme="dark"] .size-label { color: #6b7a99; }

/* Hardcoded colors en inline styles de tarjetas de categoría */
[data-theme="dark"] .cat-card h3 { color: #e8eef7 !important; }
[data-theme="dark"] .cat-card p  { color: #6b7a99 !important; }

/* Botón "Vaciar" carrito */
[data-theme="dark"] .cart-head h3 { color: #e8eef7; }

/* Size y color swatches labels */
[data-theme="dark"] .size-btn { color: #a8b8d0; border-color: #21283a; }
[data-theme="dark"] .size-btn:hover,
[data-theme="dark"] .size-btn.selected { color: #fff; }

/* Footer links */
[data-theme="dark"] .footer-link { color: #6b7a99; }
[data-theme="dark"] .footer-link:hover { color: var(--teal-400); }

[data-theme="dark"] .cat-hero {
  background: linear-gradient(135deg, #062220 0%, #0d1117 100%);
}

[data-theme="dark"] .bg-neutral {
  background: #0d1117;
}

[data-theme="dark"] body {
  background: #0d1117;
  color: #e8eef7;
}

/* ── Toggle buttons (tema e idioma) ─────────────── */
.theme-toggle, .lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--neutral-200);
  background: transparent;
  color: var(--neutral-600);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.lang-toggle {
  width: auto;
  padding: 0 12px;
  font-family: var(--font-body);
}
.theme-toggle:hover, .lang-toggle:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--teal-50);
}

/* ── Hero brand logo ────────────────────────────── */
.hero-brand-logo {
  width: 420px;
  max-width: 75%;
  margin-bottom: 36px;
  filter: brightness(0) invert(1) drop-shadow(0 6px 20px rgba(0,0,0,0.6));
  opacity: 1;
}
