/* ══════════════════════════════════════════════
   LAS MELLIS — Estilos principales
   Colores: #00a8a8 (teal) | #fffdf8 (crema)
   Tipografía: Playfair Display + DM Sans
   ══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --teal:       #00a8a8;
  --teal-dark:  #007a7a;
  --teal-deep:  #006b6b;
  --teal-light: #e0f5f5;
  --cream:      #fffdf8;
  --dark:       #1a1a1a;
  --gray:       #6b6b6b;
  --gray-light: #f2f2ef;
  --border:     #e2e2da;
  --white:      #ffffff;
  --wa-green:   #17803f;  /* verde de WhatsApp oscurecido: texto blanco encima 5.0:1 */
  --wa-green-dark: #0f6a33;
  --amber:      #b45309;  /* Últimas unidades: 5.0:1 sobre blanco */
  --red:        #c53030;  /* Sin stock, Oferta, errores: 5.5:1 sobre blanco */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-product: 'Jost', 'DM Sans', system-ui, sans-serif;
  /* Escala de tamaños de letra: usar siempre uno de estos pasos */
  --fs-2xs:  .75rem;   /* 12px — insignias, contadores, notas mínimas */
  --fs-xs:   .85rem;   /* 13.6px — etiquetas, metadatos, texto secundario */
  --fs-sm:   .9rem;    /* 14.4px — texto chico, descripciones en tarjeta */
  --fs-base: 1rem;     /* 16px — texto corrido, botones, campos */
  --fs-md:   1.15rem;  /* 18.4px — subtítulos, destacados */
  --fs-lg:   1.4rem;   /* 22.4px — títulos chicos, logo */
  --fs-xl:   1.75rem;  /* 28px — títulos de bloque, nombre en ficha */
  --fs-2xl:  2.25rem;  /* 36px — títulos de página fijos */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* Íconos de interfaz (sprite /images/icons.svg): toman el tamaño y el color del texto */
.ico {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
  flex-shrink: 0;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.section__eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.section__sub {
  color: var(--gray);
  font-size: var(--fs-base);
  margin-bottom: 40px;
}
.section { padding: 80px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--teal-dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--white);
  margin-top: 8px;
}
.btn--whatsapp:hover { background: var(--wa-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,253,248,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo a { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.logo-sub {
  font-size: var(--fs-2xs);
  color: var(--gray);
  letter-spacing: .04em;
  margin-top: 2px;
}
.header__logo-img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.header__nav {
  display: flex;
  gap: 4px;
}
.header__nav a {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray);
  transition: all var(--transition);
}
.header__nav a:hover { color: var(--teal-dark); background: var(--teal-light); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--dark);
  background: var(--gray-light);
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--teal-light); color: var(--teal-dark); }
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: var(--fs-2xs);
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  display: none;
}
.cart-count.visible { display: flex; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: var(--fs-md);
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 420px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__promo { display: flex; flex-wrap: wrap; gap: 10px; }
.promo-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__img-placeholder {
  width: 420px; height: 480px;
  background: linear-gradient(135deg, var(--teal-light) 0%, #b2e5e5 100%);
  border-radius: 200px 200px 120px 120px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--teal-dark);
  font-weight: 600;
}
.hero__logo-img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 40px rgba(0,168,168,.2), 0 2px 12px rgba(0,0,0,.08);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-bar__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item__icon { font-size: var(--fs-xl); color: var(--teal-dark); display: inline-flex; }
.trust-item strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.trust-item small { font-size: var(--fs-xs); color: var(--gray); }

/* ── CATEGORIES ── */
.categories-section { background: var(--cream); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}
.category-card__icon { font-size: 2rem; margin-bottom: 10px; color: var(--teal-dark); line-height: 1; }
.category-card.active .category-card__icon { color: inherit; }
.category-card__name { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 600; }

/* ── CATALOG ── */
.catalog-section { background: var(--gray-light); }
.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--gray);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--teal-light) 0%, #d0eded 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__img-placeholder {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  font-size: var(--fs-sm);
  text-align: center;
  padding: 16px;
}
.product-card__badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card__body { padding: 16px; }
.product-card__name {
  font-family: var(--font-product);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card__desc {
  font-family: var(--font-product);
  font-size: var(--fs-sm);
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__variants {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.variant-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.variant-dot:hover { border-color: var(--teal); }
.variant-label {
  font-size: var(--fs-2xs);
  color: var(--gray);
  background: var(--gray-light);
  padding: 2px 8px;
  border-radius: 50px;
}
.product-card__cta {
  width: 100%;
  padding: 10px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.product-card__cta:hover {
  background: var(--teal-dark);
  color: var(--white);
}
.catalog-note {
  text-align: center;
  color: var(--gray);
  font-size: var(--fs-sm);
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── SIZE GUIDE ── */
.sizeguide-section { background: var(--white); }
.sizeguide-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sizeguide-tab {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}
.sizeguide-tab.active, .sizeguide-tab:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}
.sizeguide-panel { display: none; }
.sizeguide-panel.active { display: block; }
.sizeguide-panel h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  margin-bottom: 24px;
}
.sizeguide-table-wrap { margin-bottom: 24px; }
.sizeguide-table-wrap h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sizeguide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.sizeguide-table th {
  background: var(--teal-dark);
  color: var(--white);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
}
.sizeguide-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.sizeguide-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.sizeguide-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.sizeguide-table tr:nth-child(even) td { background: var(--teal-light); }
.sizeguide-tip {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-sm);
  color: var(--teal-dark);
  font-weight: 500;
}

/* ── ABOUT ── */
.about-section { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-title { margin-bottom: 20px; }
.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: var(--fs-base);
}
.about-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-list li {
  font-size: var(--fs-base);
  color: var(--dark);
  font-weight: 500;
}
.about-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-hours strong { font-size: var(--fs-sm); color: var(--teal-dark); margin-bottom: 4px; }
.about-hours span { font-size: var(--fs-sm); color: var(--gray); }
.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-img-placeholder {
  width: 400px; max-width: 100%; height: 440px;
  background: linear-gradient(135deg, var(--teal-light) 0%, #c5e9e9 100%);
  border-radius: 200px 200px 120px 120px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--teal-dark);
  text-align: center;
}
.about-badge {
  position: absolute;
  bottom: 32px; right: 0;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge__num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
}
.about-badge__txt { font-size: var(--fs-xs); opacity: .9; }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--teal-dark); }
.testimonials-section .section__title { color: var(--white); text-align: center; margin-bottom: 40px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.testimonial-text {
  font-size: var(--fs-base);
  color: var(--white);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}
.testimonial-name {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.8);
  font-weight: 600;
}

/* ── CONTACT ── */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: var(--fs-lg);
}
.contact-item > span:first-child { margin-top: 1px; font-size: var(--fs-lg); line-height: 1; color: var(--teal-dark); }
.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-item strong { font-size: var(--fs-sm); }
.contact-item span, .contact-item a { font-size: var(--fs-sm); color: var(--gray); }
.contact-item a:hover { color: var(--teal-dark); }
.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
  background: var(--gray-light);
}
.contact-map iframe { width: 100%; height: 100%; }
.contact-map__cta {
  position: absolute;
  bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: var(--fs-xs);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .15s, box-shadow .15s;
}
.contact-map__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  color: var(--teal-dark);
}
@media (max-width: 768px) {
  .contact-map { height: 320px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand .logo-name { font-size: var(--fs-lg); margin-bottom: 12px; display: block; color: var(--teal); }
.footer__brand p { color: rgba(255,255,255,.6); font-size: var(--fs-sm); margin-bottom: 10px; }
.footer__ig { color: var(--teal); font-size: var(--fs-sm); font-weight: 600; }
.footer__ig:hover { color: #4dd9d9; }
.footer__links, .footer__info, .footer__promo {
  display: flex; flex-direction: column; gap: 8px;
}
.footer__links strong, .footer__info strong, .footer__promo strong {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.footer__links a, .footer__info span, .footer__promo span {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--teal); }
.footer__cuit { color: rgba(255,255,255,.4) !important; font-size: var(--fs-xs) !important; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom span { font-size: var(--fs-xs); color: rgba(255,255,255,.4); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.wa-float__tooltip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
  pointer-events: none;
  white-space: nowrap;
}
.wa-float__tooltip strong { display: block; font-size: var(--fs-sm); color: var(--dark); }
.wa-float__tooltip small { font-size: var(--fs-2xs); color: var(--gray); }
.wa-float:hover .wa-float__tooltip { opacity: 1; transform: translateY(0); }
.wa-float__btn {
  width: 56px; height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: pulse-wa 2.5s infinite;
  transition: transform var(--transition);
}
.wa-float__btn:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.3); }
  50%       { box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-sidebar__header h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
}
.cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  font-size: var(--fs-base);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-close:hover { background: var(--border); }
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--gray);
}
.cart-empty svg { margin: 0 auto 12px; opacity: .3; }
.cart-empty p { font-size: var(--fs-base); }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item__img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; }
.cart-item__name {
  font-family: var(--font-product);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item__variants {
  font-size: var(--fs-2xs);
  color: var(--gray);
  margin-bottom: 8px;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  color: var(--dark);
}
.qty-btn:hover { background: var(--teal-light); color: var(--teal-dark); }
.qty-num { font-size: var(--fs-sm); font-weight: 600; min-width: 20px; text-align: center; }
.cart-item__remove {
  color: var(--gray);
  font-size: var(--fs-xs);
  padding: 10px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}
.cart-item__remove:hover { color: var(--red); }

.cart-sidebar__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.cart-summary {
  margin-bottom: 16px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--gray);
  margin-bottom: 6px;
}
.cart-promo-note {
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--fs-xs);
  color: var(--teal-dark);
  font-weight: 500;
  margin-bottom: 14px;
}
.cart-wa-btn {
  width: 100%;
  padding: 14px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.cart-wa-btn:hover { background: var(--wa-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cart-clear-btn {
  width: 100%;
  padding: 10px;
  font-size: var(--fs-xs);
  color: var(--gray);
  margin-top: 8px;
  border-radius: 50px;
  transition: color var(--transition);
}
.cart-clear-btn:hover { color: var(--red); }

/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(860px, 95vw);
  max-height: 92vh;
  background: var(--white);
  border-radius: var(--radius);
  z-index: 301;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  display: flex;
}
.product-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  font-size: var(--fs-base);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: var(--white); }
.product-modal__content {
  display: flex;
  width: 100%;
  overflow: hidden;
}
/* ── Columna izquierda: imagen ── */
.modal-col-img {
  width: 360px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--teal-light), #c5e9e9);
}
/* ── Columna derecha: detalles ── */
.modal-col-details {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 28px 28px;
  display: flex;
  flex-direction: column;
}
.modal-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal-light), #c5e9e9);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--teal-dark);
}
.modal-name {
  font-family: var(--font-product);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin-bottom: 8px;
}
.modal-desc {
  font-family: var(--font-product);
  color: var(--gray);
  font-size: var(--fs-base);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-desc strong { color: var(--dark); font-weight: 500; }
.modal-desc em { font-style: italic; }
.modal-desc .md-list {
  margin: 8px 0 8px 4px;
  padding-left: 18px;
  list-style: disc;
}
.modal-desc .md-list li { margin-bottom: 4px; }
.modal-option-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition);
}
.size-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.size-btn.selected { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.modal-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.color-btn {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.color-btn:hover { border-color: var(--teal); }
.color-btn.selected { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-qty-row span { font-size: var(--fs-xs); font-weight: 600; }
.modal-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-light);
  border-radius: 50px;
  padding: 4px 8px;
}
.modal-qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  font-size: var(--fs-md);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-qty-btn:hover { background: var(--teal-light); color: var(--teal-dark); }
.modal-qty-num { font-size: var(--fs-base); font-weight: 700; min-width: 28px; text-align: center; }
.modal-add-btn {
  width: 100%;
  padding: 14px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.modal-add-btn:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.modal-add-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.modal-wa-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--wa-green);
  border: 1.5px solid var(--wa-green);
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.modal-wa-btn:hover { background: var(--wa-green); color: var(--white); }
.modal-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  margin-bottom: 10px;
  border: 1.5px solid #e1306c;
  border-radius: var(--radius);
  background: transparent;
  color: #e1306c;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all var(--transition);
}
.modal-video-btn:hover { background: #e1306c; color: var(--white); }
.modal-share-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px;
  margin-bottom: 10px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--teal-dark);
  font-size: var(--fs-sm); font-weight: 500;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
}
.modal-share-btn:hover { background: var(--teal-dark); color: #fff; }
.modal-validation {
  font-size: var(--fs-xs);
  color: var(--red);
  margin-bottom: 10px;
  display: none;
}
.modal-validation.show { display: block; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 100px; right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  z-index: 400;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--teal-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 120px 40px 60px; text-align: center; }
  .hero__sub { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__promo { justify-content: center; }
  .hero__visual { display: none; }
  .trust-bar__items { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Modal: vuelve a stacked en mobile */
  .product-modal { flex-direction: column; max-height: 95vh; overflow-y: auto; }
  .product-modal__content { flex-direction: column; overflow: visible; }
  .modal-col-img { width: 100%; aspect-ratio: 3 / 4; height: auto; }
  .modal-gallery { height: 100%; }
  .modal-col-details { overflow-y: visible; padding: 20px; }

  .header__nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 4px; z-index: 99; }
  .header__nav.open { display: flex; }
  .header__nav a { padding: 12px 16px; }
  .menu-btn { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 60px 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-sidebar { width: 100%; }
  .trust-bar__items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-header { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-bar__items { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════
   NUEVOS ESTILOS — Mejoras v2
   ══════════════════════════════════════════════ */

/* ── iOS ZOOM PREVENTION ── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
  /* Solo dentro del MODAL el botón se vuelve sticky/full-width.
     En la página de producto se mantiene normal para no tapar otros botones. */
  .product-modal .modal-add-btn {
    padding: 18px 14px;
    font-size: var(--fs-base);
    position: sticky;
    bottom: 0;
    border-radius: 0;
    margin: 16px -28px -28px;
    width: calc(100% + 56px);
  }
}

/* ── STOCK BADGES ── */
.badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: var(--fs-2xs); font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .05em;
  z-index: 2;
  pointer-events: none;
}
.badge--out { background: var(--red); color: #fff; }
.badge--low { background: var(--amber); color: #fff; }
.badge--new { background: var(--teal-dark); color: #fff; }
.badge--sale { background: var(--red); color: #fff; font-weight: 700; letter-spacing: .04em; }

/* Precio en oferta: tachado en gris + precio nuevo en teal grande */
.product-card__price--sale { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__price--sale del {
  color: var(--gray);
  text-decoration: line-through;
  font-size: var(--fs-xs);
  font-weight: 400;
}
.product-card__price--sale .price-now {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: var(--fs-base);
}

/* ── DISABLED / LOW SIZE BUTTONS ── */
.size-btn.disabled {
  opacity: .38;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}
.size-btn.low-stock { border-color: var(--amber); color: var(--amber); }
.size-btn.low-stock::after {
  content: '!';
  font-size: var(--fs-2xs);
  vertical-align: super;
  margin-left: 1px;
}

/* ── MODAL GALLERY ── */
.modal-gallery {
  position: relative;
  overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 0;
  margin-bottom: 0;
  background: var(--teal-light);
}
.modal-gallery__track {
  display: flex;
  height: 100%;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.modal-gallery__slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.modal-gallery__placeholder {
  min-width: 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--teal-dark);
}
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: var(--fs-lg); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 1;
  border: none; cursor: pointer;
  transition: background var(--transition);
}
.gallery-prev:hover, .gallery-next:hover { background: var(--white); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--transition);
}
.gallery-dot.active { background: var(--white); }

/* ── MODAL PRICE ── */
.modal-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.price-consult {
  font-size: var(--fs-sm);
  color: var(--gray);
  font-weight: 400;
  font-style: italic;
}
/* Precio por talle: "Desde $X" hasta que se elige un talle */
.price-from { font-size: .78em; font-weight: 500; color: var(--gray); }
.price-hint { font-size: .62em; font-weight: 400; color: var(--gray); }
.modal-price .price-old { font-size: .72em; font-weight: 400; color: var(--gray); margin-right: 6px; }

/* ── PRODUCT CARD PRICE ── */
.product-card__price {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

/* ── SIZE GUIDE LINK IN MODAL ── */
.modal-sizeguide-link {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--teal-dark);
  margin-bottom: 16px;
  text-decoration: underline;
  cursor: pointer;
}
.modal-sizeguide-link:hover { color: var(--teal-dark); }

/* ── CART IMPROVEMENTS ── */
.cart-item__price {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 4px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--fs-base);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}
.cart-continue-btn {
  width: 100%;
  padding: 10px;
  font-size: var(--fs-sm);
  color: var(--teal-dark);
  margin-bottom: 8px;
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-continue-btn:hover { background: var(--teal-light); }

/* ── CHECKOUT MODAL ── */
.checkout-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(480px, 95vw);
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  z-index: 310;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.checkout-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.checkout-modal__header { margin-bottom: 8px; }
.checkout-modal__header h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.checkout-modal__sub {
  color: var(--gray);
  font-size: var(--fs-sm);
  margin-bottom: 24px;
}
.checkout-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base); cursor: pointer;
  transition: background var(--transition);
}
.checkout-close:hover { background: var(--border); }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: var(--fs-xs); font-weight: 600; color: var(--dark); }
.form-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  width: 100%;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,168,168,.1);
}
.checkout-validation {
  font-size: var(--fs-xs);
  color: var(--red);
  margin-bottom: 8px;
  min-height: 18px;
}
.checkout-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 700;
  font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.checkout-submit-btn:hover { background: var(--wa-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── SUBCATEGORY FILTER ROW ── */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.filter-row--label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .06em;
  align-self: center;
  white-space: nowrap;
}
.filter-btn--sub {
  background: var(--white);
  border-color: var(--teal-light);
  color: var(--teal-dark);
  font-size: var(--fs-xs);
}
.filter-btn--sub.active, .filter-btn--sub:hover {
  background: var(--teal-deep);
  border-color: var(--teal-dark);
  color: var(--white);
}
.filter-btn--attr {
  font-size: var(--fs-xs);
  padding: 6px 14px;
}
.filter-clear {
  font-size: var(--fs-xs);
  color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  padding: 6px 4px;
  align-self: center;
}
.filter-clear:hover { color: var(--teal-dark); }

/* ── HOW IT WORKS SECTION ── */
.howto-section { background: var(--white); }
.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.howto-step { text-align: center; }
.howto-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-dark); color: var(--white);
  font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700;
  margin-bottom: 16px;
}
.howto-step__icon { font-size: var(--fs-xl); margin-bottom: 12px; display: block; color: var(--teal-dark); }
.howto-step strong { display: block; font-size: var(--fs-base); margin-bottom: 8px; font-weight: 600; }
.howto-step p { font-size: var(--fs-sm); color: var(--gray); line-height: 1.5; }
@media (max-width: 768px) {
  .howto-steps { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .howto-step { display: flex; align-items: flex-start; gap: 16px; }
  .howto-step__num { min-width: 52px; margin-bottom: 0; }
  .howto-step__content { flex: 1; }
}

/* ══════════════════════════════════════════════
   PÁGINAS DE CATEGORÍA
   ══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 88px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: var(--fs-xs);
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--teal-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--border); font-size: var(--fs-sm); }

/* ── Category hero (compacto) ── */
.cat-hero {
  padding: 20px 0 40px;
  background: var(--cream);
}
.cat-hero .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cat-hero__icon {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal-dark);
  display: inline-flex;
}
.cat-hero__icon:empty { display: none; }
.cat-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

/* ── Category card como <a> link ── */
a.category-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.category-card:hover {
  text-decoration: none;
}

/* ── CATEGORÍA CON FOTO (vidriera estilo Pintos) ── */
.category-card--photo {
  position: relative;
  padding: 0;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: none;
}
.category-card--photo .category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.20) 50%, rgba(0,0,0,.65) 100%);
  transition: background .25s;
}
.category-card--photo:hover .category-card__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.75) 100%);
}
.category-card--photo .category-card__name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  padding: 18px 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  width: 100%;
  text-align: left;
}
.category-card--photo:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ── Destacados section (homepage) ── */
.destacados-section { background: var(--white); }
.novedades-section { background: var(--cream); }

/* ── BANNER PROMOCIONAL DEL HOME ── */
.home-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  aspect-ratio: 16/6;
  margin: 0 0 60px;
  overflow: hidden;
}
.home-banner__link {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  text-decoration: none;
  color: #fff;
}
.home-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%);
}
.home-banner__text {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.home-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  line-height: 1.1;
}
.home-banner__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  margin: 0 0 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  max-width: 560px;
}
.home-banner__cta {
  display: inline-block;
  background: var(--teal-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-base);
  transition: transform .15s, background .15s;
  box-shadow: 0 4px 14px rgba(0,168,168,.4);
}
.home-banner__link:hover .home-banner__cta {
  background: var(--teal-deep);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .home-banner { aspect-ratio: 4/3; margin-bottom: 40px; }
  .home-banner__text { padding: 32px 24px; }
  .home-banner__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 100%);
  }
}

@media (max-width: 768px) {
  .breadcrumb { padding-top: 76px; font-size: var(--fs-xs); }
  .cat-hero { padding: 16px 0 28px; }
  .cat-hero__title { font-size: var(--fs-xl); }
  .cat-hero__icon { font-size: 2rem; }
}

/* ── Logo de texto en el header ── */
.header__logo-text {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header__logo-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: #111;
  letter-spacing: -0.01em;
}
.header__logo-sub {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-2xs);
  color: #111;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.header__logo-text:hover .header__logo-main,
.header__logo-text:hover .header__logo-sub {
  color: var(--teal-dark);
}

/* ── PROMO BANNER (carrusel infinito) ── */
.promo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  color: var(--white);
  height: 36px;
  padding: 0 44px 0 0;
  display: flex;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: .01em;
  overflow: hidden;
}
.promo-banner__text { display: inline-block; } /* legacy, por si queda */
.promo-banner__track {
  display: flex;
  width: max-content;
  animation: scroll-promo 38s linear infinite;
}
.promo-banner__seq {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.promo-banner__seq > span {
  padding: 0 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.promo-banner__seq > span + span::before {
  content: '·';
  margin-right: 20px;
  opacity: .55;
  font-weight: 700;
}
@keyframes scroll-promo {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.promo-banner:hover .promo-banner__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .promo-banner__track { animation: none; }
}
.promo-banner__close {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: var(--teal-deep); border: none; color: var(--white);
  width: 44px; height: auto;
  border-radius: 0;
  z-index: 2;
  cursor: pointer; opacity: .85;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base);
  transition: opacity .15s, background .15s;
}
.promo-banner__close:hover { opacity: 1; background: rgba(0,0,0,.18); }


/* Cuando el banner está visible, empuja el resto */
body:not(.promo-dismissed) .header { top: 36px; }
body:not(.promo-dismissed) .hero { padding-top: 156px; }
body:not(.promo-dismissed) .breadcrumb { padding-top: 116px; }
body.promo-dismissed .promo-banner { display: none; }

@media (max-width: 768px) {
  .promo-banner { font-size: var(--fs-2xs); height: 32px; padding: 0 36px 0 0; }
  .promo-banner__seq > span { padding: 0 14px; }
  .promo-banner__seq > span + span::before { margin-right: 14px; }
  .promo-banner__track { animation-duration: 30s; }
  .promo-banner__close { width: 24px; height: 24px; right: 6px; }
  body:not(.promo-dismissed) .header { top: 32px; }
  body:not(.promo-dismissed) .hero { padding-top: 132px; }
  body:not(.promo-dismissed) .breadcrumb { padding-top: 104px; }
}

/* ── PRODUCT PAGE (/producto/:id) ── */
.product-page {
  padding: 100px 0 60px;
  background: var(--cream);
  min-height: 60vh;
}
body:not(.promo-dismissed) .product-page { padding-top: 136px; }
@media (max-width: 768px) {
  .product-page { padding: 80px 0 40px; }
  body:not(.promo-dismissed) .product-page { padding-top: 112px; }
}
.product-page__layout {
  display: flex;
  gap: 36px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 480px;
}
.product-page__img {
  width: 50%;
  flex-shrink: 0;
  background: var(--teal-light);
  position: relative;
}
.product-page__img .modal-gallery { height: 100%; min-height: 480px; }
.product-page__details {
  flex: 1;
  padding: 32px 32px 32px 0;
  overflow-y: visible;
}
@media (max-width: 768px) {
  .product-page__layout { flex-direction: column; gap: 0; }
  .product-page__img { width: 100%; aspect-ratio: 3 / 4; }
  .product-page__img .modal-gallery { min-height: 0; }
  .product-page__details { padding: 24px; }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 16px 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--dark);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s, transform .25s;
  border: 1px solid var(--border);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner__text { flex: 1; line-height: 1.45; }
.cookie-banner__text a {
  color: var(--teal-dark);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner__btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.cookie-banner__btn:hover { color: var(--dark); border-color: var(--gray); }
.cookie-banner__btn--primary {
  background: var(--teal-dark);
  color: #fff;
  border-color: var(--teal-dark);
}
.cookie-banner__btn--primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-dark);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* ── LEGAL PAGE (Política de privacidad) ── */
.legal-page {
  padding: 100px 0 60px;
  background: var(--cream);
  min-height: 80vh;
}
body:not(.promo-dismissed) .legal-page { padding-top: 136px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--dark);
  margin: 20px 0 4px;
}
.legal-page h2 {
  font-size: var(--fs-md);
  color: var(--dark);
  margin: 28px 0 10px;
  font-weight: 600;
}
.legal-page p, .legal-page li {
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-page__date {
  color: var(--gray);
  font-size: var(--fs-xs);
  margin-bottom: 24px;
}
.legal-page ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.legal-page a { color: var(--teal-dark); text-decoration: underline; }

/* ── PÁGINA "SOBRE NOSOTRAS" ── */
.about-page-hero {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 100%);
  padding: 120px 24px 60px;
  text-align: center;
}
body:not(.promo-dismissed) .about-page-hero { padding-top: 156px; }
.about-page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 16px;
  line-height: 1.1;
}
.about-page-hero__sub {
  font-size: var(--fs-md);
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .about-page-hero { padding: 100px 20px 40px; }
  body:not(.promo-dismissed) .about-page-hero { padding-top: 132px; }
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-story__text p {
  margin-bottom: 14px;
  line-height: 1.7;
}
.about-story__img { aspect-ratio: 4/3; }
.about-img-placeholder--large {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  font-size: var(--fs-lg);
  text-align: center;
  padding: 32px;
}
@media (max-width: 768px) {
  .about-story__grid { grid-template-columns: 1fr; gap: 24px; }
}

.about-values { background: var(--cream); }
.section__title--center { text-align: center; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card__icon {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: var(--teal-dark);
  line-height: 1;
}
.value-card__title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.value-card__text {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.5;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }

.about-store__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-store__details { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.about-store__map {
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .about-store__grid { grid-template-columns: 1fr; gap: 24px; }
  .about-store__map { height: 280px; }
}

.about-cta-section { background: var(--teal-dark); color: var(--white); }
.about-cta { text-align: center; padding: 40px 0; }
.about-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.about-cta__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.about-cta-section .btn--primary {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}
.about-cta-section .btn--primary:hover { background: var(--cream); }
.about-cta-section .btn--outline {
  border-color: var(--white);
  color: var(--white);
}
.about-cta-section .btn--outline:hover {
  background: var(--white);
  color: var(--teal-dark);
}

/* ── STICKY CTA (mobile, producto page) ── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -6px 16px rgba(0,0,0,.10);
  z-index: 95;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sticky-cta__price {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--teal-dark);
  flex-shrink: 0;
}
.sticky-cta__btn {
  flex: 1;
  background: var(--teal-dark);
  color: #fff;
  border: none;
  padding: 13px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background .15s;
}
.sticky-cta__btn:hover { background: var(--teal-deep); }
@media (max-width: 768px) {
  .sticky-cta.show {
    display: flex;
    transform: translateY(0);
  }
  /* Espacio al pie cuando el sticky está activo (para que el footer no quede tapado) */
  body.has-sticky-cta { padding-bottom: 76px; }
  /* WhatsApp flotante se sube para no quedar tapado */
  body.has-sticky-cta .wa-float { bottom: 88px; }
  /* Install app button también se sube si está visible */
  body.has-sticky-cta .install-app-btn { bottom: 158px; }
}

/* ── NEWSLETTER (suscripción WhatsApp) ── */
.newsletter-section {
  padding: 48px 0;
  background: var(--cream);
}
.newsletter-card {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 24px rgba(0,168,168,.25);
  text-align: center;
}
.newsletter-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  margin-bottom: 8px;
}
.newsletter-card__sub {
  font-size: var(--fs-base);
  opacity: .9;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--fs-base);
  background: rgba(255,255,255,.95);
  color: var(--dark);
}
.newsletter-form input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.newsletter-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.newsletter-form__btn:hover { background: var(--wa-green-dark); transform: translateY(-1px); }
.newsletter-card__note {
  display: block;
  font-size: var(--fs-2xs);
  opacity: .8;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .newsletter-card { padding: 28px 20px; }
  .newsletter-card__title { font-size: var(--fs-lg); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form__btn { width: 100%; }
}

/* ── FAVORITOS ── */
.fav-btn {
  position: absolute;
  top: 10px; left: 10px;
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s, background .15s, color .15s;
}
.fav-btn:hover { background: #fff; transform: scale(1.1); color: var(--red); }
.fav-btn.is-fav { color: var(--red); background: #fff; }
.fav-btn svg { stroke: currentColor; fill: none; transition: fill .15s; }
.fav-btn.is-fav svg { fill: currentColor; animation: heart-pop .35s ease-out; }
@keyframes heart-pop {
  0%   { transform: scale(.7); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.fav-link {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  text-decoration: none;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.fav-link:hover { background: var(--teal-light); color: var(--teal-dark); }
.fav-link .cart-count { /* reusa estilos del cart-count */ }

.empty-favs {
  text-align: center;
  padding: 64px 24px;
  grid-column: 1 / -1;
}
.empty-favs__icon { font-size: 3.5rem; margin-bottom: 16px; color: var(--teal-dark); line-height: 1; }
.empty-favs__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--dark);
  margin-bottom: 8px;
}
.empty-favs__sub {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: var(--fs-base);
}

/* ── FAQ SECTION ── */
.faq-section { background: var(--cream); }
.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 22px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--teal-dark);
  transition: transform .25s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--teal-dark); }
.faq-answer {
  padding: 0 22px 18px;
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.6;
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ol, .faq-answer ul {
  padding-left: 20px;
  margin: 4px 0 8px;
}
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong { color: var(--dark); }
@media (max-width: 768px) {
  .faq-item summary { padding: 14px 18px; padding-right: 42px; font-size: var(--fs-sm); }
  .faq-item summary::after { right: 16px; }
  .faq-answer { padding: 0 18px 14px; font-size: var(--fs-xs); }
}

/* ── ERROR PAGE (404) ── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 40px 24px;
}
.error-page__inner {
  text-align: center;
  max-width: 480px;
}
.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.error-page__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.error-page__sub {
  font-size: var(--fs-base);
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.5;
}
.error-page__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.error-page__contact {
  font-size: var(--fs-sm);
  color: var(--gray);
}
.error-page__contact a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ── CART BUMP ANIMATION (al agregar al carrito) ── */
@keyframes cart-bump {
  0%   { transform: scale(1) rotate(0); }
  20%  { transform: scale(1.2) rotate(-12deg); }
  40%  { transform: scale(1.1) rotate(10deg); }
  60%  { transform: scale(1.18) rotate(-6deg); }
  80%  { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes cart-count-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.55); background: var(--teal-dark); }
  100% { transform: scale(1); }
}
.cart-btn.cart-bump > svg { animation: cart-bump .6s cubic-bezier(.36,.07,.19,.97); transform-origin: center; }
.cart-btn.cart-bump .cart-count { animation: cart-count-pop .45s cubic-bezier(.36,.07,.19,.97); }

/* ── INSTALL APP BUTTON ── */
.install-app-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--teal-dark);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,168,168,.45);
  z-index: 90;
  transition: transform .15s, box-shadow .15s;
}
.install-app-btn.show { display: inline-flex; }
.install-app-btn:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
  box-shadow: 0 8px 22px rgba(0,168,168,.5);
}
@media (max-width: 768px) {
  .install-app-btn {
    bottom: 90px;  /* above WhatsApp float */
    left: 16px;
    padding: 10px 14px;
    font-size: var(--fs-xs);
  }
  .install-app-btn span { display: none; }
}

/* ── LIGHTBOX (zoom de imágenes) ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--fs-xl);
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.32);
}
.lightbox-close { top: 18px; right: 18px; font-size: var(--fs-md); }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .04em;
}
@media (max-width: 768px) {
  .lightbox-overlay { padding: 40px 8px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── RELATED PRODUCTS ── */
.related {
  margin-top: 48px;
}
.related:empty { display: none; }
.related__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 24px;
  text-align: center;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .related__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .related { margin-top: 32px; }
  .related__title { font-size: var(--fs-lg); }
  .related__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── SEARCH BUTTON ── */
.search-btn {
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.search-btn:hover { background: var(--teal-light); color: var(--teal-dark); }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 20px;
  overflow-y: auto;
}
.search-overlay.open { display: flex; }
.search-panel {
  background: var(--white);
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-panel__top {
  display: flex; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.search-panel__icon { color: var(--gray); flex-shrink: 0; }
.search-panel__input {
  flex: 1;
  border: none; outline: none;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--dark);
  background: transparent;
  padding: 4px 0;
}
.search-panel__input::placeholder { color: #6b6b6b; }
.search-panel__close {
  width: 32px; height: 32px;
  border: none; background: var(--gray-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: var(--fs-sm);
  transition: background .15s, color .15s;
}
.search-panel__close:hover { background: var(--border); color: var(--dark); }
.search-panel__results {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}
.search-panel__hint {
  text-align: center;
  color: var(--gray);
  font-size: var(--fs-sm);
  padding: 32px 16px;
}
.search-panel__count {
  font-size: var(--fs-xs);
  color: var(--gray);
  margin-bottom: 14px;
  font-weight: 500;
}
.search-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .search-overlay { padding: 16px 12px; }
  .search-panel__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-panel__results { padding: 14px; }
}

/* ── BOTÓN "FILTROS" + DRAWER ── */
.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}
.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.filters-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.filters-btn__count {
  display: none;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.filters-btn__count.visible { display: inline-flex; }

.filters-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.filters-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.filters-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.filters-drawer.open { transform: translateX(0); }
.filters-drawer__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.filters-drawer__header h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.filters-drawer__close {
  width: 36px; height: 36px;
  border: none;
  background: var(--gray-light);
  border-radius: 50%;
  font-size: var(--fs-base);
  cursor: pointer;
  color: var(--gray);
}
.filters-drawer__close:hover { background: var(--border); color: var(--dark); }
.filters-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filters-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.filters-drawer__footer .btn { flex: 1; padding: 12px; }

/* Filter row dentro del drawer: label arriba, pills abajo */
.filter-row--block {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  gap: 10px;
}
.filter-row--block .filter-row--label {
  font-size: var(--fs-xs);
  letter-spacing: .08em;
}
.filter-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

/* ── CATALOG SORT ── */
.catalog-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--gray);
}
.catalog-sort:empty { display: none; }
.catalog-sort__count { font-weight: 500; }
.catalog-sort__label {
  display: flex; align-items: center; gap: 8px;
  color: var(--dark);
  font-weight: 500;
}
.catalog-sort__select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: inherit;
  font-size: var(--fs-xs);
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s;
}
.catalog-sort__select:hover, .catalog-sort__select:focus {
  border-color: var(--teal);
  outline: none;
}

/* ── ADVISOR / "AYUDAME A ELEGIR" ── */
.cat-guidance{padding:24px 0 8px}
.cat-guidance__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px;background:var(--cream);border:1px solid var(--border);border-radius:16px}
.cat-guidance h2{margin:0 0 5px;line-height:1.25;font-family:var(--font-serif);font-size:var(--fs-lg);color:var(--dark)}
.cat-guidance p{margin:0;color:var(--gray);font-size:var(--fs-sm)}
.filter-row--model{background:var(--teal-light);padding:12px;border-radius:12px;margin-top:6px}
.advisor{max-width:960px;margin:0 auto;padding:150px 20px 80px}
body:not(.promo-dismissed) .advisor{padding-top:186px}
@media(max-width:768px){body:not(.promo-dismissed) .advisor{padding-top:178px}}
.advisor__head{text-align:center;max-width:680px;margin:0 auto 32px}
.advisor__head h1{font-family:var(--font-serif);font-size:clamp(2rem,6vw,3.2rem);line-height:1.15;margin:0 0 12px}
.advisor__head p{color:var(--gray);line-height:1.65}
.advisor__card{background:var(--white);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow-md);padding:34px;overflow:hidden}
.advisor__progress{height:5px;background:var(--gray-light);border-radius:999px;margin-bottom:34px;overflow:hidden}
.advisor__progress span{display:block;height:100%;width:25%;background:var(--teal);border-radius:999px;transition:width .25s}
.advisor__question{text-align:center}
.advisor__question h2,.advisor__results h2{font-family:var(--font-serif);font-size:var(--fs-xl);line-height:1.2;color:var(--dark);margin-bottom:24px}
.advisor__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:700px;margin:auto}
.advisor__options button{border:1px solid var(--border);background:var(--white);padding:18px 16px;border-radius:12px;font:inherit;font-weight:600;color:var(--dark);cursor:pointer;transition:.18s}
.advisor__options button:hover{border-color:var(--teal);background:var(--teal-light);transform:translateY(-1px)}
.advisor__results>p{color:var(--gray);line-height:1.6}
.advisor__products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}
.advisor__reason{font-size:var(--fs-2xs);color:var(--teal-dark);font-weight:600;margin:0 0 7px}
.advisor__actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}
@media(max-width:768px){
 .cat-guidance__inner{flex-direction:column;align-items:flex-start}
 .cat-guidance__inner .btn{width:100%;justify-content:center}
 .advisor{padding:115px 14px 48px}
 .advisor__card{padding:22px 16px}
 .advisor__options{grid-template-columns:1fr}
 .advisor__products{grid-template-columns:1fr 1fr;gap:10px}
}
@media(max-width:480px){.advisor__products{grid-template-columns:1fr}.advisor__head h1{font-size:var(--fs-2xl)}}
.search-panel__understood{margin:0 0 12px;padding:10px 12px;background:var(--teal-light);border-radius:9px;color:var(--teal-dark);font-size:var(--fs-xs)}
.search-no-results{text-align:center;padding:18px}


/* ══════════════════════════════════════════════
   CATÁLOGO — estructura (layout)
   Prioridad: los productos. Arriba solo lo justo para elegir;
   la tarjeta se lee foto → nombre → precio → talles.
   ══════════════════════════════════════════════ */

/* Tarjeta */
.product-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price { font-weight: 700; margin-bottom: 6px; }
.product-card__price .price-from { font-size: var(--fs-2xs); }
.product-card__sizes {
  font-size: var(--fs-xs);
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}
.product-card__sizes-more { color: var(--teal-dark); font-weight: 600; }
/* El corazón se ve de 36px pero se toca en 44px */
.fav-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }

/* Ayuda para elegir: versión corta solo en celular */
.cat-guidance__short { display: none; }

/* Una sola barra: Filtros · cantidad · Ordenar */
.catalog-toolbar {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 12px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.catalog-toolbar .catalog-sort {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .cat-hero { padding: 4px 0 12px; }
  .cat-hero__icon { font-size: var(--fs-xl); }

  .cat-guidance { padding: 0 0 4px; }
  .cat-guidance__inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 24px;  /* el recuadro también es .container: recupera el margen lateral */
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
  }
  .cat-guidance__text { display: none; }
  .cat-guidance__short {
    display: block;
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--dark);
  }
  .cat-guidance__inner .btn {
    width: auto;
    margin-left: auto;
    padding: 0 16px;
    min-height: 44px;
    font-size: var(--fs-sm);
    white-space: nowrap;
  }

  .catalog-section { padding-top: 12px; }

  /* Filas de filtros: una línea que se desliza de costado */
  .filter-row {
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -24px 8px;
    padding: 2px 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row--model { margin: 6px 0 8px; padding: 10px 12px; }
  .filter-btn--sub { flex-shrink: 0; min-height: 44px; white-space: nowrap; }

  .catalog-toolbar { margin: 8px 0 14px; gap: 10px; }
  .filters-btn { min-height: 44px; }
  .catalog-sort__label-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .catalog-sort { gap: 8px; min-width: 0; }
  .catalog-sort__count { white-space: nowrap; }
  .catalog-sort__label { min-width: 0; margin-left: auto; }
  .catalog-sort__select { min-height: 44px; width: 100%; max-width: 150px; text-overflow: ellipsis; }
}

@media (max-width: 600px) {
  .product-card__body { padding: 10px 12px 12px; }
  .product-card__name { font-size: var(--fs-sm); margin-bottom: 4px; }
  .product-card__desc,
  .product-card__cta { display: none; }
  .product-card__sizes { margin-bottom: 0; }
}

/* Catálogo sin resultados */
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; }
.catalog-empty__title { font-size: var(--fs-md); font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.catalog-empty__text { color: var(--gray); margin-bottom: 20px; }
.catalog-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.catalog-empty__actions .btn--whatsapp { margin-top: 0; }

/* ══ Último paso del pedido ══ */
.checkout-modal { padding: 28px 24px 24px; width: min(520px, 95vw); }
.checkout-recap {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
}
.checkout-recap summary { cursor: pointer; font-weight: 600; color: var(--dark); }
.checkout-recap ul { list-style: none; margin-top: 8px; display: grid; gap: 4px; }
.checkout-recap li { display: flex; justify-content: space-between; gap: 12px; color: var(--gray); }
.checkout-group { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.checkout-group legend { font-size: var(--fs-sm); font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.choice:hover { border-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal-dark); background: var(--teal-light); }
.choice input { accent-color: var(--teal-dark); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.choice__body { display: flex; flex-direction: column; gap: 2px; }
.choice__label { font-weight: 600; color: var(--dark); }
.choice__note { font-size: var(--fs-xs); color: var(--gray); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.choice.is-disabled:hover { border-color: var(--border); }
.checkout-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.checkout-total__label { font-weight: 600; color: var(--dark); }
.checkout-total__off { color: var(--teal-dark); font-size: var(--fs-xs); margin-left: 6px; }
.checkout-total__value { font-size: var(--fs-md); font-weight: 700; color: var(--teal-dark); }
.checkout-total__value del { font-size: var(--fs-sm); font-weight: 400; color: var(--gray); margin-right: 6px; }
.checkout-next { font-size: var(--fs-xs); color: var(--gray); text-align: center; margin-top: 10px; line-height: 1.5; }
.checkout-close { width: 40px; height: 40px; top: 12px; right: 12px; }


/* ══ Ronda 3: foco, estructura del último paso, filtros ══ */
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.form-field input:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; border-color: var(--teal-dark); }
.catalog-sort__select:focus { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--teal-dark); color: var(--white);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }
.qty-btn::after { content: ''; position: absolute; inset: -4px; }
.form-field input::placeholder { color: #8a8a8a; font-style: italic; }
[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; border-radius: var(--radius-sm); }
fieldset[aria-invalid="true"] { padding: 6px; }

/* Último paso: encabezado y pie fijos, el medio se desplaza */
.checkout-modal { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.checkout-head { padding: 24px 24px 4px; }
.checkout-head h3 { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; margin: 0 40px 8px 0; }
.checkout-head .checkout-modal__sub { margin-bottom: 12px; }
#checkoutForm { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.checkout-scroll { overflow-y: auto; padding: 4px 24px 8px; flex: 1; min-height: 0; }
.checkout-footer { padding: 12px 24px 18px; border-top: 1px solid var(--border); background: var(--white); }
.checkout-footer .checkout-total { border: 0; padding: 0 0 8px; margin: 0; }
.checkout-footer .checkout-validation { min-height: 0; margin-bottom: 8px; }
.checkout-footer .checkout-validation:empty { display: none; }
.checkout-footer .checkout-submit-btn { margin-top: 0; }
.checkout-footer .checkout-next { margin-top: 8px; }

/* Filtros */
.catalog-active { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.catalog-active:empty { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 14px;
  border-radius: 999px; border: 1.5px solid var(--teal-dark);
  background: var(--teal-light); color: var(--teal-deep);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.active-chip:hover { background: var(--white); }
/* El cajón no se desliza de costado: los botones se acomodan en varias líneas */
.filters-drawer .filter-row {
  flex-wrap: wrap; overflow: visible; margin: 0 0 8px; padding: 0;
  -webkit-mask-image: none; mask-image: none;
}
.filters-drawer .filter-btn--attr { min-height: 40px; padding: 8px 14px; }
.filter-row__group { display: grid; gap: 6px; width: 100%; margin-bottom: 12px; }
.filter-row__group-label { font-size: var(--fs-2xs); font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.filters-drawer__close { min-width: 44px; min-height: 44px; }

/* Catálogo: menos aire arriba en compu para ver productos antes */
.cat-hero { padding-bottom: 24px; }
.cat-guidance { padding-top: 16px; }
.catalog-section { padding: 32px 0 60px; }

@media (max-width: 768px) {
  /* Con tan poco ancho, las etiquetas de cada fila ocupan lugar que es de los botones */
  #catalogFilters .filter-row:not(.filter-row--model) > .filter-row--label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .checkout-head { padding: 20px 20px 2px; }
  .checkout-scroll { padding: 4px 20px 8px; }
  .checkout-footer { padding: 10px 20px 16px; }
}

.filters-drawer__footer .btn--primary { flex: 1; white-space: nowrap; }


/* ══ Ronda 4: primera pantalla con productos y accesibilidad ══ */
.drawer-scope { display: none; }
.active-chip--mobile { display: none; }
.form-field input::placeholder { color: #6b6b6b; }

/* Foco visible en todo: anillo oscuro por fuera (se ve sobre botones turquesa y sobre fondo claro) */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible,
.btn:focus-visible, .filter-btn:focus-visible, .filter-btn.active:focus-visible, .active-chip:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 2px;
}
.footer a:focus-visible, .footer button:focus-visible, .promo-banner button:focus-visible,
.promo-banner a:focus-visible, .cookie-banner button:focus-visible { outline-color: var(--white); }
.skip-link:focus-visible { outline: 3px solid var(--white); outline-offset: 0; }

/* El panel de filtros va por encima del aviso de cookies */
.filters-drawer-overlay { z-index: 259; }
.filters-drawer { z-index: 260; }

@media (max-width: 768px) {
  /* Tipo y modelo se eligen dentro del panel: arriba solo quedan categoría y subcategoría */
  #catalogFilters .filter-row--tipo, #catalogFilters .filter-row--model { display: none; }
  .drawer-scope { display: flex; }
  .active-chip--mobile { display: inline-flex; }
  .active-chip { min-height: 44px; }

  /* Botones táctiles de 44px */
  .search-btn, .fav-link { width: 44px; height: 44px; }
  .header__actions { gap: 4px; }
  .header__logo a { min-height: 44px; justify-content: center; }
  .breadcrumb a { position: relative; }
  .breadcrumb a::after { content: ''; position: absolute; inset: -12px -8px; }
  .footer__links a, .footer__info a, .footer__ig { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links, .footer__info { gap: 0; }
  .cart-close, .checkout-close { width: 44px; height: 44px; }
  .cart-item__remove { display: inline-flex; align-items: center; min-height: 44px; }
  .cart-clear-btn, .cart-continue-btn { min-height: 44px; }
  .filters-drawer .filter-btn--attr { min-height: 44px; }
}
@media (min-width: 769px) {
  .catalog-active:not(:has(.active-chip:not(.active-chip--mobile))) { display: none; }
}

/* Ronda 4 (ajustes): franja, aire arriba y ayuda en una línea en celular */
@media (max-width: 768px) {
  .promo-banner__close { width: 44px; height: auto; right: 0; }
  .cat-hero { padding: 2px 0 8px; }
}
@media (max-width: 480px) {
  .cat-guidance__short { display: none; }
  .cat-guidance__inner { padding: 6px; margin: 0 16px; }
  .cat-guidance__inner .btn { width: 100%; justify-content: center; margin: 0; }
}


/* ══ Ronda 5: último paso, cierre y detalles ══ */
.checkout-modal { max-height: min(90vh, var(--vvh, 90vh)); }
.checkout-modal.is-typing .checkout-next { display: none; }
.checkout-modal.is-typing .checkout-head .checkout-modal__sub { display: none; }
.choice.is-disabled { opacity: 1; background: var(--gray-light); }
.choice.is-disabled .choice__label { color: #6b6b6b; }
.choice.is-disabled .choice__note { color: #6b6b6b; }
.origin-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-choice { flex: 1 1 140px; position: relative; }
.chip-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--white);
  font-weight: 600; color: var(--dark); transition: all var(--transition);
}
.chip-choice:hover span { border-color: var(--teal); }
.chip-choice input:checked + span { border-color: var(--teal-dark); background: var(--teal-light); color: var(--teal-deep); }
.chip-choice input:focus-visible + span { outline: 3px solid var(--dark); outline-offset: 2px; }
.checkout-total__note { flex-basis: 100%; font-size: var(--fs-xs); color: var(--gray); }
.cart-total-note { font-size: var(--fs-xs); color: var(--gray); margin: -6px 0 8px; }
.checkout-sent__lead { font-size: var(--fs-md); margin-bottom: 12px; }
.checkout-sent__text { color: var(--gray); margin-bottom: 10px; }
.checkout-footer--stack { display: grid; gap: 10px; }
.checkout-footer--stack .btn { width: 100%; justify-content: center; min-height: 48px; }
.search-panel__alt { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }
