/* TRANSQUIM Market — Home */

:root {
  --primary: #003da7;
  --primary-dark: #002d7d;
  --white: #ffffff;
  --text: #222222;
  --text-muted: #666666;
  --bg: #f8f9fa;
  --accent: #f5a623;
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;
  --sale: #e53935;
  --prefooter: #333333;
  --footer-bg: #111111;
  --footer-text: #888888;
  --border: #dde1e6;
  --font: Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --header-h: auto;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section-pad { padding-block: 50px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Announcement ---- */

.announce {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---- Sticky chrome (header + nav) ---- */

.site-sticky {
  position: sticky;
  top: 0;
  z-index: 900; /* below quote modal (10000), above page content */
  background: var(--white);
}

/* ---- Main header ---- */

.site-header {
  position: relative;
  top: auto;
  z-index: auto;
  background: var(--white);
  transition: box-shadow 0.25s;
}

.site-sticky.is-scrolled .site-header,
.site-header.is-scrolled { box-shadow: none; }

.site-sticky.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.site-header__logo img { height: 50px; width: auto; }

.site-header__search {
  display: flex;
  width: 100%;
  max-width: 520px;
}

.site-header__search input {
  flex: 1;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.site-header__search button {
  width: 48px;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__search button svg { width: 20px; height: 20px; }

/* ---- Nav ---- */

.site-nav {
  background: var(--primary);
  color: var(--white);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  margin-left: auto;
}

.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.site-nav__bar {
  display: none;
  flex-direction: column;
  padding: 0 20px 16px;
  width: 100%;
}

.site-nav__bar.is-open { display: flex; }

.site-nav__bar a {
  color: var(--white);
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.site-nav__bar a:hover { text-decoration: underline; }

.site-nav__desktop {
  display: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  line-height: 1.2;
}

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); }

/*
 * Botón header: abre modal de cotización.
 * Clase PROPIA (no .btn-whatsapp) para no disparar click_whatsapp en GTM.
 * Estilo visual idéntico al verde WhatsApp.
 */
.btn.btn--quote,
button.btn--quote,
.btn--quote {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: none !important;
  border-radius: 6px;
  cursor: pointer;
  background: #25d366 !important;
  color: #ffffff !important;
  text-decoration: none;
  transition: background 0.2s;
}
.btn.btn--quote:hover,
button.btn--quote:hover,
.btn--quote:hover {
  background: #1da851 !important;
  color: #ffffff !important;
}
.btn--quote svg,
.btn--quote .btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #ffffff;
}

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }

.btn--outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--bg); }

.btn--consult {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-top: auto;
}

.btn--link {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  padding: 8px 0;
}

.btn--link:hover { text-decoration: underline; }

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #e09510; }

.btn--offer {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: var(--primary);
  color: var(--white);
  margin-top: auto;
}

.btn--offer:hover { background: #002a7a; }

/* ---- Hero carousel ---- */

.hero-wrap {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero__track {
  display: flex;
  transition: transform 0.6s ease;
}

.hero__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.hero__slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__arrow--prev { left: 15px; }
.hero__arrow--next { right: 15px; }

.hero__dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero__dot.is-active { background: var(--white); }

/* ---- Section titles ---- */

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-title--white { color: var(--white); }

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* ---- Brands ---- */

.brands { background: var(--white); }

.brands__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.brand-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.brand-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.brand-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.brand-card__name {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  background: var(--white);
}

.brand-card--soon {
  position: relative;
  cursor: not-allowed;
  pointer-events: none;
}

.brand-card--soon:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.brand-card__soon-img {
  filter: grayscale(100%) opacity(0.5);
}

.brand-card__soon-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #888;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ---- Featured products ---- */

.featured { background: var(--bg); }

.featured__cta,
.offers__cta {
  text-align: center;
  margin-top: 28px;
}

/* ---- Horizontal carousel ---- */

.h-carousel {
  position: relative;
  padding-inline: 44px;
}

.h-carousel__viewport {
  overflow: hidden;
}

.h-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}

.h-carousel__item {
  flex: 0 0 100%;
  padding: 0 8px;
  min-width: 0;
  box-sizing: border-box;
}

.h-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
}

.h-carousel__arrow:hover { background: var(--primary-dark); }

.h-carousel__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.h-carousel__arrow--prev { left: 0; }
.h-carousel__arrow--next { right: 0; }

.h-carousel__end-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 280px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  transition: box-shadow 0.2s, background 0.2s;
}

.h-carousel__end-card:hover {
  box-shadow: var(--shadow-lg);
  background: #eef3fc;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.product-card:hover { box-shadow: var(--shadow-lg); }

.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--sale);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-card__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-card__img {
  position: relative;
  width: 100%;
  height: 180px;
  background: #ffffff;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
}

.product-card__name {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
}

.product-card__prices {
  margin-bottom: 12px;
  font-size: 14px;
}

.product-card__old {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.product-card__sale {
  color: var(--sale);
  font-weight: 700;
  font-size: 16px;
}

.product-card__price {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.product-card__wholesale-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

/* ---- Ofertas y Rebajas ---- */

.offers { background: var(--bg); }

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.offer-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.offer-card__img {
  position: relative;
  width: 100%;
  height: 180px;
  background: #ffffff;
  overflow: hidden;
}

.offer-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.offer-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
}

.offer-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.offer-card__before {
  font-size: 13px;
  color: #888888;
  margin-bottom: 4px;
}

.offer-card__before span {
  text-decoration: line-through;
}

.offer-card__now {
  font-size: 14px;
  margin-bottom: 6px;
}

.offer-card__now strong {
  color: var(--sale);
  font-size: 20px;
}

.offer-card__save {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---- Differenciadores carousel ---- */

.diff {
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.diff__viewport {
  overflow: hidden;
  margin-top: 24px;
}

.diff__track {
  display: flex;
  transition: transform 0.5s ease;
}

.diff__slide {
  flex: 0 0 100%;
  padding: 0 10px;
  text-align: center;
}

.diff__slide span {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.diff__slide p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 280px;
  margin-inline: auto;
}

/* ---- Location ---- */

.location { background: var(--white); }

.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.location__info p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.location__info .btn { margin-top: 16px; }

.location__map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
}

/* ---- Newsletter ---- */

.newsletter { background: var(--bg); text-align: center; }

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin-inline: auto;
}

.newsletter__form input {
  padding: 12px 16px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}

/* ---- Cotización B2B ---- */

.cotizacion {
  background: linear-gradient(180deg, #e8eef8 0%, var(--bg) 100%);
  position: relative;
}

.cotizacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.cotizacion__card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px 36px;
  border: 1px solid var(--border);
}

.cotizacion__header {
  text-align: center;
  margin-bottom: 28px;
}

.cotizacion__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 61, 167, 0.1);
  color: var(--primary);
  border-radius: 50%;
}

.cotizacion__icon svg {
  width: 30px;
  height: 30px;
}

.cotizacion__subtitle {
  margin-bottom: 0;
  max-width: 520px;
  margin-inline: auto;
}

.cotizacion__form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  text-align: left;
}

.cotizacion__form input,
.cotizacion__form select,
.cotizacion__form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cotizacion__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23003da7' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.cotizacion__form input::placeholder,
.cotizacion__form textarea::placeholder {
  color: #999999;
}

.cotizacion__form input:focus,
.cotizacion__form select:focus,
.cotizacion__form textarea:focus {
  border-color: var(--primary-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 61, 167, 0.12);
}

.cotizacion__form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.cotizacion__form .btn {
  width: 100%;
  margin-top: 4px;
}

.cotizacion__form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

.cotizacion__form-status.is-error {
  color: var(--sale);
}

.cotizacion__form-status.is-success {
  color: #2e7d32;
}

.cotizacion__form-status.is-info {
  color: var(--primary);
}

.cotizacion__form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .cotizacion__card {
    padding: 40px 40px 44px;
  }

  .cotizacion__form {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .cotizacion__form .cotizacion__full {
    grid-column: 1 / -1;
  }
}

/* ---- Quote CTA block (opens wizard modal) ---- */

.cotizacion-cta {
  background: linear-gradient(180deg, #e8eef8 0%, var(--bg) 100%);
}

.cotizacion-cta__card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
}

.cotizacion-cta__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cotizacion-cta__subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---- Quote wizard modal (always fixed overlay) ---- */

body.qm-open {
  overflow: hidden !important;
}

.qm-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
}

.qm-overlay.is-open {
  display: flex !important;
}

.qm-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 24px;
}

.qm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.qm-close:hover {
  color: var(--text);
}

.qm-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-right: 28px;
}

.qm-progress {
  margin-bottom: 18px;
}

.qm-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.qm-dot {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s;
}

.qm-dot.is-active {
  background: var(--primary);
}

.qm-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.qm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}

.qm-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.qm-field input,
.qm-field select,
.qm-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
}

.qm-field input:focus,
.qm-field select:focus,
.qm-field textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(0, 61, 167, 0.12);
}

.qm-field textarea {
  resize: vertical;
  min-height: 96px;
}

.qm-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.qm-summary {
  min-height: 110px;
}

.qm-summary-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.qm-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 14px;
}

.qm-summary dt {
  font-weight: 700;
  color: var(--primary);
}

.qm-summary dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.qm-error {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sale);
}

.qm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.qm-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.qm-btn--primary {
  background: var(--primary);
  color: var(--white);
}

.qm-btn--primary:hover {
  background: var(--primary-dark);
}

.qm-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.qm-btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.qm-btn--ghost:hover {
  background: var(--bg);
}

.qm-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 1100;
  background: #2e7d32;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}

.qm-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Thanks page ---- */

.thanks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.thanks-page__header-wa {
  width: 100%;
  max-width: 320px;
}

.thanks-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

.thanks-page__content {
  width: 100%;
  max-width: 540px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px 28px 40px;
  border: 1px solid var(--border);
}

.thanks-page__success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
  border-radius: 50%;
}

.thanks-page__success-icon svg {
  width: 36px;
  height: 36px;
}

.thanks-page__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.thanks-page__subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 420px;
  margin-inline: auto;
}

.thanks-page__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.thanks-page__actions .btn {
  width: 100%;
}

@media (min-width: 520px) {
  .thanks-page__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .thanks-page__actions .btn {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 768px) {
  .thanks-page__content {
    padding: 56px 48px 48px;
  }

  .thanks-page__header-wa {
    width: auto;
    max-width: none;
  }
}

/* ---- Product search (header) ---- */

.site-header__search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: 400px;
  overflow-y: auto;
  min-width: 320px;
  margin-top: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.search-result-marca {
  font-size: 12px;
  color: var(--text-muted);
}

.search-result-precio {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-left: auto;
  white-space: nowrap;
}

.search-no-results {
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ---- Product catalog page ---- */

.catalog-hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.catalog-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.catalog-hero__subtitle {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 560px;
  margin-inline: auto;
}

.catalog-brand {
  background: var(--white);
}

.catalog-brand--alt {
  background: var(--bg);
}

.catalog-brand__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-brand__title {
  margin-bottom: 0;
  text-align: left;
}

.catalog-brand__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.catalog-brand__link:hover {
  text-decoration: underline;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.catalog-grid .product-card {
  height: 100%;
}

.catalog-bioflux {
  background: var(--bg);
  text-align: center;
}

.catalog-bioflux .section-subtitle {
  margin-bottom: 28px;
}

.catalog-bioflux__card {
  max-width: 320px;
  margin-inline: auto;
}

.catalog-bioflux__card .brand-card--soon {
  display: block;
  width: 100%;
}

@media (min-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Highlights ---- */

.highlights {
  background: var(--primary);
  color: var(--white);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-item {
  text-align: center;
}

.highlight-item span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.highlight-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.highlight-item p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

/* ---- Pre-footer ---- */

.prefooter {
  background: var(--prefooter);
  color: var(--white);
}

.prefooter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.prefooter__logo img {
  height: 45px;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.prefooter__desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.prefooter h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

.prefooter ul li { margin-bottom: 8px; }

.prefooter ul a {
  font-size: 14px;
  opacity: 0.9;
}

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

.prefooter__social {
  display: flex;
  gap: 14px;
}

.prefooter__social a {
  color: var(--white);
  transition: color 0.2s;
}

.prefooter__social a:hover { color: var(--accent); }

.prefooter__social svg { width: 28px; height: 28px; }

/* ---- Footer ---- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--white); }

/* ---- Responsive ---- */

@media (min-width: 480px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .diff__slide { flex: 0 0 33.333%; }

  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .site-header__search {
    flex: 1;
    max-width: 480px;
    margin-inline: 24px;
  }

  .site-nav__toggle { display: none; }

  .site-nav__bar {
    display: none !important;
  }

  .site-nav__desktop {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 20px;
    flex-wrap: wrap;
  }

  .site-nav__desktop a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
  }

  .site-nav__desktop a:hover { text-decoration: underline; }

  .brands__grid { grid-template-columns: repeat(3, 1fr); }

  .diff__slide { flex: 0 0 33.333%; }

  .location__grid { grid-template-columns: 1fr 1fr; }
  .location__map iframe { height: 350px; }

  .newsletter__form { flex-direction: row; }
  .newsletter__form input { flex: 1; }
  .newsletter__form .btn { flex-shrink: 0; }

  .highlights__grid { grid-template-columns: repeat(4, 1fr); }

  .prefooter__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .prefooter__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 479px) {
  .brands__grid { grid-template-columns: 1fr; }
}

/* ---- Brand pages ---- */

.breadcrumb {
  background: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__sep { margin: 0 8px; color: var(--text-muted); }

.brand-banner {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 350px;
}

.brand-intro {
  padding-block: 32px;
  text-align: center;
}

.brand-intro__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.brand-intro__wholesale-note {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #25d366;
  font-weight: 600;
}

.brand-intro__desc {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.brand-filters {
  background: var(--bg);
  padding: 16px 20px;
  border-block: 1px solid var(--border);
}

.brand-filters__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.brand-filter {
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.brand-filter:hover { background: #eef3fc; }

.brand-filter.is-active {
  background: var(--primary);
  color: var(--white);
}

.brand-products {
  padding-block: 40px;
}

@media (max-width: 768px) {
  .brand-banner {
    /* Natural height at 390px ≈ 159px; cap lower so mobile crop is intentional */
    max-height: 110px;
    object-fit: cover;
    object-position: center;
  }

  .brand-intro {
    padding-block: 16px;
  }

  .brand-products {
    padding-block: 20px;
  }

  .brand-products__grid {
    align-items: start;
  }
}

.brand-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.brand-product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.brand-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--sale);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.brand-product-card__badge--soldout {
  background: #888888;
}

.brand-product-card__badge--medal {
  background: #f5a623;
  font-size: 10px;
}

.brand-product-card__img {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.brand-product-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.brand-product-card .btn--consult,
.brand-product-card .btn--wa-product,
.brand-product-card > button {
  margin-top: auto;
}

.brand-product-card__sku {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.brand-product-card__prices {
  margin-bottom: 10px;
  font-size: 14px;
}

.brand-product-card__old {
  color: #888888;
  text-decoration: line-through;
  margin-right: 6px;
}

.brand-product-card__sale {
  color: var(--sale);
  font-weight: 700;
  font-size: 16px;
}

.brand-product-card__price {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.brand-product-card__table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.brand-product-card__table th,
.brand-product-card__table td {
  border: 1px solid var(--border);
  padding: 4px 6px;
  text-align: center;
}

.brand-product-card__table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--primary);
}

.btn--wa-product {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  margin-top: auto;
}

.btn--wa-product:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.brand-wholesale-cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.brand-wholesale-cta__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.brand-wholesale-cta__subtitle {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 520px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .brand-products__grid { grid-template-columns: repeat(4, 1fr); }
}

.brand-highlights {
  background: #eef3fc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
}

.brand-highlights p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .brand-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brand-product-card__note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.brand-product-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.brand-product-card__badge--off {
  background: var(--primary);
}

.brand-products__grid--lg {
  max-width: 800px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

.brand-product-card--lg {
  text-align: center;
  align-items: center;
  padding: 20px;
}

.brand-product-card--lg .brand-product-card__img {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin-inline: auto;
}

.brand-packs {
  background: var(--bg);
  padding: 40px 20px;
}

.brand-packs__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.brand-packs__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.brand-packs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin-inline: auto;
}

.brand-pack-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.brand-pack-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.brand-pack-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.brand-howto {
  background: var(--white);
  padding: 40px 20px;
}

.brand-howto__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 28px;
}

.brand-howto__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.brand-howto__step {
  text-align: center;
}

.brand-howto__step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.brand-howto__step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.brand-howto__footnote {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .brand-products__grid--lg { grid-template-columns: repeat(2, 1fr); }
  .brand-packs__grid { grid-template-columns: repeat(2, 1fr); }
  .brand-howto__steps { grid-template-columns: repeat(3, 1fr); }
  .brand-apps__grid { grid-template-columns: repeat(3, 1fr); }
  .brand-compare__grid { grid-template-columns: repeat(2, 1fr); }
}

.brand-apps {
  background: var(--white);
  padding: 50px 20px;
}

.brand-apps__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.brand-apps__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-inline: auto;
}

.brand-apps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin-inline: auto;
}

.brand-app-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.brand-app-card__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.brand-app-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.brand-app-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.brand-compare {
  background: var(--bg);
  padding: 40px 20px;
}

.brand-compare__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.brand-compare__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 520px;
  margin-inline: auto;
}

.brand-compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin-inline: auto;
}

.brand-compare__col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.brand-compare__col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  text-align: center;
}

.brand-compare__col ul {
  list-style: none;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.brand-compare__col li {
  padding: 6px 0;
  padding-left: 1.2em;
  position: relative;
}

.brand-compare__col li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---- About / Nosotros page ---- */

.about-hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.about-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  max-width: 560px;
  margin-inline: auto;
}

.about-section {
  padding: 60px 20px;
}

.about-section--white { background: var(--white); }
.about-section--gray { background: var(--bg); }
.about-section--primary {
  background: var(--primary);
  color: var(--white);
}

.about-section__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-section__title--center {
  text-align: center;
  margin-bottom: 12px;
}

.about-section--primary .about-section__title {
  color: var(--white);
}

.about-section__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.about-section__text--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.about-section--primary .about-section__text {
  color: var(--white);
  opacity: 0.95;
}

.about-history__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-stat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.about-stat__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.about-stat__number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.about-stat__label {
  font-size: 13px;
  color: #888888;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--container);
  margin-inline: auto;
}

.about-value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-value-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.about-value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-brands .brands__grid {
  margin-top: 28px;
}

.about-brands .brand-card__soon-img {
  filter: grayscale(50%);
}

.about-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.about-contact__info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-contact__info p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.about-contact__info .btn {
  margin-top: 16px;
}

.about-contact__map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: var(--radius);
}

.about-newsletter {
  background: var(--white);
  padding: 50px 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .about-history__grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: repeat(3, 1fr); }
  .about-contact__grid { grid-template-columns: 1fr 1fr; }
  .about-brands .brands__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .about-brands .brands__grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .about-brands .brands__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Help / Ayuda page ---- */

.help-hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.help-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.help-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  opacity: 0.95;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.5;
}

.help-quick-contact {
  background: var(--bg);
  padding: 40px 20px;
}

.help-quick-contact__title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}

.help-contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
}

.help-contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.help-contact-card__icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.help-contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222222;
}

.help-contact-card p {
  font-size: 15px;
  color: #888888;
  margin-bottom: 8px;
}

.help-contact-card .btn {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
}

.help-policies {
  background: var(--white);
  padding: 50px 20px;
}

.help-policies__subtitle {
  text-align: center;
  color: #888888;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.help-accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

.help-accordion__item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
}

.help-accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.help-accordion__title {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  line-height: 1.4;
}

.help-accordion__arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: #888888;
  transition: transform 0.3s ease;
}

.help-accordion__item.is-open .help-accordion__arrow {
  transform: rotate(180deg);
}

.help-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.help-accordion__item.is-open .help-accordion__panel {
  grid-template-rows: 1fr;
}

.help-accordion__panel-inner {
  overflow: hidden;
}

.help-accordion__content {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
}

.help-accordion__content p {
  margin-bottom: 12px;
}

.help-accordion__content p:last-child {
  margin-bottom: 0;
}

.help-accordion__content ul {
  margin: 8px 0 12px;
  padding-left: 1.25em;
}

.help-accordion__content li {
  margin-bottom: 6px;
}

.help-accordion__content a {
  color: var(--primary);
  word-break: break-all;
}

.help-cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.help-cta__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.help-cta__text {
  font-size: 15px;
  opacity: 0.95;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.help-cta .btn {
  font-size: 16px;
  padding: 14px 28px;
}

@media (min-width: 768px) {
  .help-contact-cards { grid-template-columns: repeat(3, 1fr); }
  .help-accordion { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Product detail page (master template) ---- */

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.product-detail__media {
  display: flex;
  justify-content: center;
}

.product-detail__img {
  display: block;
}

.product-detail__brand {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.product-detail__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #222222;
  margin-bottom: 8px;
  line-height: 1.25;
}

.product-detail__sku {
  font-size: 13px;
  color: #888888;
  margin-bottom: 16px;
}

.product-detail__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.product-detail__price-old {
  font-size: 16px;
  color: #888888;
  text-decoration: line-through;
}

.product-detail__price-sale {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--sale);
}

.product-detail__savings {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-detail__hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

.product-detail__desc {
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
}

.product-detail__features {
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
}

.product-detail__features li {
  margin-bottom: 6px;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.product-extra {
  background: var(--bg);
  padding: 40px 20px;
}

.product-extra__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 28px;
}

.product-extra__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-extra__col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 12px;
}

.product-extra__col ul {
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
}

.product-extra__col li {
  margin-bottom: 6px;
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-lg);
}

.related-card__img {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.related-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--sale);
  margin-bottom: 12px;
}

.related-card .btn {
  margin-top: auto;
}

.product-cta {
  background: var(--primary);
  padding: 40px 20px;
  text-align: center;
}

.product-cta__link {
  display: inline-block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.product-cta__link:hover {
  opacity: 0.9;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .product-detail__grid { grid-template-columns: 1fr 1fr; }
  .product-extra__grid { grid-template-columns: repeat(3, 1fr); }
  .product-related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Product pages - generated template */
.breadcrumb { padding: 12px 20px; font-size: 14px; color: #888; background: #f8f9fa; }
.breadcrumb .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: #003da7; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.producto-detalle { padding: 40px 0; }
.producto-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .producto-grid {
    grid-template-columns: 1fr;
    /* Was inheriting gap: 48px as row-gap between .producto-imagen and .producto-info */
    gap: 16px;
  }
}

.producto-imagen {
  position: relative;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
}

.producto-imagen > img {
  width: 100%;
  height: 100%;
  max-height: 548px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Must come AFTER base .producto-imagen — otherwise min-height: 580px wins on mobile */
@media (max-width: 768px) {
  .producto-imagen {
    min-height: 0;
    padding: 12px;
  }

  .producto-imagen > img {
    height: auto;
    max-height: 280px;
  }
}

.badge-rebaja,
.badge-agotado-imagen {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.badge-rebaja { background: #d93025; }
.badge-agotado-imagen { background: #888; }

.badge-marca { background: #003da7; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; display: inline-block; }
.producto-info h1 { font-size: 28px; color: #222; margin: 12px 0 4px; }
.sku { color: #888; font-size: 13px; margin: 0 0 16px; }
.precio-antes { color: #888; font-size: 16px; margin: 0; }
.precio-ahora { color: #e53935; font-size: 32px; font-weight: 700; margin: 4px 0 8px; }
.badge-ahorro { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 4px; font-size: 13px; display: inline-block; margin-bottom: 8px; }

.producto-wholesale-hint {
  font-size: 14px;
  color: #25d366;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}
.badge-agotado { background: #888; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 14px; display: inline-block; margin-bottom: 16px; }
.descripcion { color: #444; line-height: 1.7; margin: 16px 0; }
.caracteristicas { list-style: none; padding: 0; margin: 0 0 20px; }
.caracteristicas li { padding: 4px 0; color: #333; }
.caracteristicas li::before { content: "✓ "; color: #003da7; font-weight: 700; }

.badge-medalla-oro,
.badge-medalla-plata,
.badge-medalla-bronce {
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}
.badge-medalla-oro { background: #f5a623; }
.badge-medalla-plata { background: #aaa; }
.badge-medalla-bronce { background: #cd7f32; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1da851; }

/*
 * Bajo el precio: abre modal (NO WhatsApp / NO click_whatsapp).
 * Clase PROPIA — mismo look que .btn-whatsapp, selector separado.
 */
button.btn-quote-wholesale,
.btn-quote-wholesale {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  background: #25d366 !important;
  color: #ffffff !important;
  padding: 14px 24px;
  border: none !important;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
button.btn-quote-wholesale:hover,
.btn-quote-wholesale:hover {
  background: #1da851 !important;
  color: #ffffff !important;
}
.btn-quote-wholesale svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #ffffff;
}
.btn-agotado { width: 100%; padding: 14px; background: #ccc; color: #666; border: none; border-radius: 8px; font-size: 16px; cursor: not-allowed; margin-bottom: 12px; }
.btn-volver { display: block; text-align: center; padding: 12px 24px; border: 2px solid #003da7; color: #003da7; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.btn-volver:hover { background: #003da7; color: #fff; }

.info-adicional { background: #f8f9fa; padding: 40px 0; }
.info-adicional h2 { text-align: center; color: #003da7; margin-bottom: 32px; }
.info-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 768px) { .info-grid-3 { grid-template-columns: 1fr; } }
.info-grid-3 h3 { color: #003da7; margin-bottom: 12px; }
.info-grid-3 p { color: #444; line-height: 1.8; margin: 0 0 4px; }

.relacionados { background: #fff; padding: 40px 0; }
.relacionados h2 { text-align: center; color: #003da7; margin-bottom: 32px; }
.relacionados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .relacionados-grid { grid-template-columns: repeat(2, 1fr); } }
.relacionado-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 16px; text-align: center; transition: box-shadow 0.2s; }
.relacionado-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.relacionado-card img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 10px; }
.relacionado-card h4 { font-size: 14px; color: #222; margin: 0 0 6px; }
.relacionado-card .precio { color: #e53935; font-weight: 700; margin: 0 0 12px; }
.btn-ver-producto { display: block; background: #003da7; color: #fff; padding: 8px; border-radius: 6px; text-decoration: none; font-size: 13px; }

.tabla-precios {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}
.tabla-precios th,
.tabla-precios td {
  border: 1px solid #d9e3f8;
  padding: 8px 10px;
  text-align: left;
}
.tabla-precios thead th {
  background: #003da7;
  color: #fff;
}
.tabla-precios tbody tr:nth-child(even) {
  background: #f3f7ff;
}

.producto-cta {
  background: #003da7;
  padding: 40px 0;
  text-align: center;
}

.btn-primario {
  display: inline-block;
  background: #003da7;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
}
.producto-cta .btn-primario {
  background: transparent;
  border: 2px solid #fff;
}
