/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #000000;
  --navy-light: #1a1a1a;
  --ink: #111111;
  --paper: #ffffff;
  --white: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;

  --accent: #fc6204;      /* catálogo (naranja Lazer) */
  --accent-dark: #cc5200;
  --accent-soft: #fff1e6;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img, .product__image {
  max-width: 100%;
}

/* ===== Checkbox that drives the mode switch (no JS) ===== */
.mode-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* When checked -> LazerMayorista theme */
.mode-toggle-input:checked ~ .site {
  --accent: #ffc104;      /* mayorista (dorado Lazer) */
  --accent-dark: #cc9a00;
  --accent-soft: #fff8e1;
}

/* ===== Layout shell ===== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Barra para pasar de mayorista a detal (o viceversa) =====
   Oculta a pedido — se deja el CSS (en vez de borrar el HTML) por si se
   quiere reactivar más adelante, solo hay que quitar este display:none. */
.mode-switch-banner {
  display: none;
  background: var(--accent);
  text-align: center;
  padding: 8px 16px;
}

.mode-switch-banner a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.mode-switch-banner a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* Sin wrap acá: si el menú (8 categorías) no cabe junto al logo y la cuenta/
     carrito, el que se acomoda en varias líneas es el menú mismo (ver .nav
     más abajo) — el logo y la cuenta/carrito nunca se deben mover de la fila
     de arriba. Antes, al no caber los tres, el navegador empujaba la cuenta/
     carrito a su propia fila suelta, dejando un hueco vacío feo debajo. */
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo__image {
  height: 46px;
  width: auto;
  display: block;
}

.logo__tagline {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0.02em;
  display: none;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  /* Absorbe todo el achique: cuando no hay espacio para las 8 categorías en
     una sola línea, el menú pasa a varias líneas (crece hacia abajo) en vez
     de forzar al logo o a la cuenta/carrito a moverse. */
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  row-gap: 8px;
}

.nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

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

.nav a.nav--active {
  color: var(--accent);
  font-weight: 700;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__trigger {
  background: none;
  border: none;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s ease;
}

.nav__trigger:hover,
.nav__item--open .nav__trigger {
  color: var(--accent);
}

.nav__caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
}

.nav__item--open .nav__caret {
  transform: rotate(180deg);
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: auto;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  min-width: 190px;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav__item--open .nav__dropdown {
  display: flex;
}

.nav__dropdown--right {
  left: auto;
  right: 0;
}

.nav__dropdown a {
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav__dropdown-all {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px 6px 0 0;
  margin-bottom: 4px;
  padding-bottom: 9px !important;
}

.nav__dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .nav__item:hover .nav__dropdown {
    display: flex;
  }

  .nav__item:hover .nav__trigger {
    color: var(--accent);
  }
}

/* ===== Search bar ===== */
.search-bar {
  background: var(--navy-light);
  padding: 14px 24px;
}

.search-bar__inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.55;
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 999px;
  border: 1px solid #333333;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-bar__input::placeholder {
  color: var(--muted);
}

.search-bar__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-bar__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 60;
  text-align: left;
}

.search-results__label {
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.search-results__label:not(:first-child) {
  margin-top: 8px;
}

.search-results__cat {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.search-results__cat:hover {
  background: var(--accent-soft);
}

.search-results__cat mark {
  background: none;
  color: var(--accent-dark);
  text-decoration: underline;
  font-weight: 700;
}

.search-results__product {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
}

.search-results__product:hover {
  background: var(--accent-soft);
}

.search-results__product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.search-results__product-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.search-results__product-ref {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}

.search-results__product-info mark {
  background: none;
  color: var(--accent-dark);
  font-weight: 700;
}

.search-results__product-price {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.search-results__empty {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.search-empty {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.active-filter {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.active-filter[hidden] {
  display: none;
}

.active-filter span {
  font-size: 0.9rem;
  color: var(--muted);
}

.active-filter strong {
  color: var(--navy);
}

.active-filter__clear {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.active-filter__clear:hover {
  opacity: 0.85;
}

/* ===== Catalog ===== */
.catalog {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.category {
  margin-bottom: 48px;
}

.category__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.category__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.category__title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--cat-color, var(--accent));
  display: inline-block;
  transition: border-color 0.25s ease;
}

.category__pdf-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.category__pdf-btn:hover {
  opacity: 0.85;
}

.category__pdf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product:hover {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cat-color, var(--accent)) 35%, transparent);
  transform: translateY(-3px);
  border-color: var(--cat-color, var(--accent));
}

.product[hidden],
.category[hidden] {
  display: none;
}

.product__image {
  position: relative;
  height: 190px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
  transition: background 0.25s ease;
}

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

.product__image-fallback {
  font-size: 2.6rem;
}

.product__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 1;
}

.product__reference {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cat-color, var(--accent-dark));
  letter-spacing: 0.01em;
}

.product__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 44px;
}

.product__desc {
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -6px;
}

.product__thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__thumb--active {
  border-color: var(--accent);
  border-width: 2px;
}

.product__specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product__specs li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  width: fit-content;
}

.product__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product__color-tag {
  font-size: 0.7rem;
  background: var(--accent-soft);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== Price display (toggled purely with CSS) ===== */
.price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.price__catalogo {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.price__mayorista {
  display: none;
  flex-direction: column;
}

.price__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.price__min {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--accent-soft);
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}

.mode-toggle-input:checked ~ .site .price__catalogo {
  display: none;
}

.mode-toggle-input:checked ~ .site .price__mayorista {
  display: flex;
}

/* ===== Quantity control (order builder, LazerMayorista) ===== */
.qty-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
}

.qty-control label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1 1 100%;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

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

.qty-btn:active {
  transform: scale(0.92);
}

.qty-input {
  width: 48px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Antes esto era texto gris chiquito, tan discreto que un cliente real
   escribió "1" pensando en 1 UNIDAD sin notar que eran cajas de 4 — se hace
   una insignia con color, para que sea imposible pasarla por alto mientras
   se está escribiendo la cantidad. */
.qty-control__hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  flex: 1 1 100%;
  width: fit-content;
}

/* ===== Catálogo compacto en móvil (grid de 2 columnas, estilo Shopify) ===== */
@media (max-width: 600px) {
  .catalog {
    padding: 20px 14px 140px;
  }

  .category {
    margin-bottom: 30px;
  }

  .category__title {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

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

  .product {
    padding: 10px;
    gap: 6px;
    border-radius: 12px;
  }

  .product__image {
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: 2rem;
  }

  .product__badge {
    font-size: 0.6rem;
    padding: 2px 7px;
  }

  .product__name {
    font-size: 0.78rem;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product__reference {
    font-size: 0.95rem;
  }

  .product__desc {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product__specs li {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .price {
    margin-top: 4px;
    padding-top: 8px;
  }

  .price__catalogo,
  .price__amount {
    font-size: 1.02rem;
  }

  .price__min {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .qty-control label {
    font-size: 0.7rem;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
  }

  .qty-input {
    width: 40px;
    font-size: 0.85rem;
  }

  .qty-control__hint {
    font-size: 0.65rem;
  }
}

/* En pantallas muy angostas, 2 columnas hacen que el botón "+" de la
   columna derecha quede debajo del FAB flotante de WhatsApp. Se vuelve
   a 1 columna para que los controles no queden tapados. */
@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Floating order summary bar (pedido + pago, ambos modos) ===== */
.order-summary {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 15;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.order-summary__info strong {
  color: var(--accent);
}

.order-summary__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.order-summary__btn {
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.25s ease;
}

.order-summary__btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}

.order-summary__btn--catalog {
  background: var(--navy);
  color: var(--white);
}

.order-summary__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-summary__btn:not(:disabled):hover {
  opacity: 0.9;
}

/* ===== Printable order sheet (only visible while generating the PDF) ===== */
#printOrder {
  display: none;
}

.print-order__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.print-order__logo {
  height: 28px;
  width: auto;
}

.print-order__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.print-order__table th,
.print-order__table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.9rem;
}

.print-order__table td:nth-child(2),
.print-order__table td:nth-child(3),
.print-order__table td:nth-child(4) {
  text-align: right;
}

.print-order__table tfoot td {
  font-weight: 700;
  text-align: right;
}

.print-order__note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Printable full-catalog sheet (only visible while generating the PDF) ===== */
#printCatalog {
  display: none;
}

#printCatalog > p {
  margin: 2px 0;
  font-size: 0.75rem;
  color: var(--muted);
}

#printCatalog .print-order__header {
  margin-bottom: 5px;
  padding-bottom: 4px;
}

/* Fixed margin so the 4-row grid height below is a reliable fit, regardless of
   the browser's own "print margins" setting. */
@page {
  size: letter;
  margin: 10mm;
}

.print-catalog__page {
  margin-top: 14px;
}

.print-catalog__page:first-child {
  margin-top: 0;
}

.print-catalog__page:not(:last-child) {
  page-break-after: always;
  break-after: page;
}

.print-catalog__category-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  margin-bottom: 3px;
}

.print-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Cada fila es su propia grilla (ver buildCatalogPrintSheet) — esto le pone
   de vuelta el espacio vertical entre una fila y la siguiente. */
.print-catalog__grid + .print-catalog__grid {
  margin-top: 6px;
}

.print-catalog__item {
  display: flex;
  flex-direction: column;
  height: 276px;
  background: var(--white);
  border-radius: 10px;
  padding: 2px;
  break-inside: avoid;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.print-catalog__image {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 2px;
  min-height: 0;
}

.print-catalog__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.print-catalog__icon {
  font-size: 2rem;
}

.print-catalog__info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.print-catalog__reference {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-catalog__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1px;
}

.print-catalog__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f97316;
}

/* ===== Checkout modal (formulario de pedido) ===== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.checkout-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- Header con pasos --- */
.checkout-v2__header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.checkout-v2__heading h2 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.checkout-v2__heading .checkout-modal__subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.checkout-step__badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334155;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.checkout-step__label {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.checkout-step--active .checkout-step__badge,
.checkout-step--done .checkout-step__badge {
  background: #c9a35b;
  color: var(--navy);
}

.checkout-step--active .checkout-step__label,
.checkout-step--done .checkout-step__label {
  color: #c9a35b;
  font-weight: 600;
}

.checkout-step__line {
  width: 28px;
  height: 1px;
  background: #475569;
}

.checkout-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Cuerpo: sidebar + formulario --- */
.checkout-v2__body {
  display: flex;
  overflow-y: auto;
}

.checkout-v2__sidebar {
  background: #f4efe4;
  padding: 24px;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-v2__sidebar-title {
  font-size: 0.95rem;
  color: var(--navy);
}

.checkout-v2__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-v2__item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkout-v2__item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.checkout-v2__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-v2__item-name {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}

.checkout-v2__item-name span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.checkout-v2__item-price {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 700;
}

.checkout-v2__total {
  border-top: 1px solid #e4dcc9;
  padding-top: 14px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.checkout-v2__total strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.checkout-v2__note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.checkout-v2__main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.checkout-modal__subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.checkout-fieldset[hidden] {
  display: none;
}

.checkout-fieldset__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 18px 0 12px;
}

.checkout-fieldset__title:first-child {
  margin-top: 0;
}

.checkout-signin {
  margin-bottom: 16px;
}

/* Mismo motivo que en .account-menu [hidden]: .checkout-signin__btn usa
   display:flex, lo que por sí solo pisa el [hidden] por defecto del navegador. */
.checkout-signin [hidden] {
  display: none !important;
}

.checkout-signin__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.checkout-signin__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.checkout-signin__signed-in {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.85rem;
}

.checkout-signin__signed-in[hidden] {
  display: none;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option input {
  accent-color: var(--accent-dark);
}

.payment-option:has(input:checked) {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
}

.checkout-form__payment-note {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--navy);
}

.checkout-form__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.checkout-form__submit {
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.checkout-form__submit:hover {
  opacity: 0.9;
}

.checkout-form__back {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkout-form__back:hover {
  color: var(--navy);
}

.checkout-done {
  text-align: center;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.checkout-done__icon {
  font-size: 2.6rem;
}

.checkout-done h4 {
  font-size: 1.1rem;
  color: var(--navy);
}

.checkout-done p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 380px;
}

.checkout-done .checkout-form__submit {
  margin-top: 10px;
}

.print-order__customer {
  margin: 10px 0;
  font-size: 0.9rem;
}

.print-order__customer p {
  margin: 2px 0;
}

@media print {
  .checkout-modal {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .checkout-v2__body {
    flex-direction: column;
  }

  .checkout-v2__sidebar {
    width: auto;
  }

  .checkout-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    gap: 6px;
  }

  .checkout-step__line {
    width: 14px;
  }
}

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

/* ===== Carrito ===== */
.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #334155;
  background: var(--navy-light);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-toggle__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Cuenta de cliente (Google) ===== */
.account-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* Los botones de acá adentro se muestran con display:flex, lo que por sí solo
   pisa el [hidden] por defecto del navegador (una regla con clase le gana a
   una regla de atributo del navegador). Esta línea garantiza que ocultarlos
   desde JS (accountSignInBtn.hidden = true, etc.) siempre funcione. */
.account-menu [hidden] {
  display: none !important;
}

.account-menu__signin {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: var(--navy-light);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.account-menu__signin:disabled {
  opacity: 0.6;
  cursor: default;
}

.account-menu__google-icon {
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.account-menu__account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #334155;
  background: var(--navy-light);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.account-menu__signin:hover {
  background: #2a3b52;
}

.account-menu__account:hover {
  border-color: var(--accent);
}

.account-menu__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}

.account-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.account-menu__dropdown[hidden] {
  display: none;
}

.account-menu__dropdown-name {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.account-menu__dropdown button {
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

.account-menu__dropdown button:hover {
  background: var(--paper);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  justify-content: flex-end;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cart-drawer__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.25);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__header h2 {
  font-size: 1.05rem;
  color: var(--navy);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 30px;
}

.cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.cart-item__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item__price {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item__units {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

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

.cart-item__qty span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 14px;
  text-align: center;
}

.cart-item__side {
  text-align: right;
  flex-shrink: 0;
}

.cart-item__subtotal {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-item__remove {
  margin-top: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.6;
}

.cart-item__remove:hover {
  opacity: 1;
}

.cart-drawer__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.cart-drawer__total strong {
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-drawer__actions .order-summary__btn {
  width: 100%;
}

.cart-drawer__clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

.cart-drawer__clear:hover {
  color: #b91c1c;
}

@media print {
  .cart-drawer,
  .cart-toggle {
    display: none !important;
  }
}

/* ===== Vista ampliada de producto (se abre al hacer click en una tarjeta) ===== */
.product {
  cursor: pointer;
}

.product .qty-control,
.product .product__thumbs {
  cursor: default;
}

.product .qty-input {
  cursor: text;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal[hidden] {
  display: none;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.product-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 28px;
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 1;
}

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

.product-modal__image {
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-modal__image .product__image-fallback {
  font-size: 3.5rem;
}

.product-modal__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-modal__thumbs[hidden] {
  display: none;
}

.product-modal__reference {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cat-color, var(--accent-dark));
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.product-modal__name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-modal__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.product-modal__info .product__specs {
  margin-bottom: 10px;
}

.product-modal__info .product__colors {
  margin-bottom: 10px;
}

/* El modal vive fuera de .site, así que no le llega el selector hermano que muestra/oculta
   catálogo vs. mayorista en las tarjetas — acá el modo lo controla JS con el atributo [hidden]. */
.product-modal .price__catalogo {
  display: block;
}

.product-modal .price__mayorista {
  display: flex;
}

.product-modal .price__catalogo[hidden],
.product-modal .price__mayorista[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .product-modal__panel {
    padding: 20px;
  }

  .product-modal__body {
    grid-template-columns: 1fr;
  }

  .product-modal__image {
    height: 220px;
  }
}

@media print {
  .product-modal {
    display: none !important;
  }
}

/* ===== Modal "Mis pedidos" ===== */
.orders-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.orders-modal[hidden] {
  display: none;
}

.orders-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.orders-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 28px;
}

.orders-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}

.orders-modal__panel h2 {
  margin: 0 0 16px;
  color: var(--navy);
}

.orders-modal__loading,
.orders-modal__empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.orders-modal__loading[hidden],
.orders-modal__empty[hidden] {
  display: none;
}

.orders-modal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Modal de "completa tus datos" — reusa la misma base de .orders-modal, pero
   el formulario necesita más ancho que la lista de pedidos para que las
   grillas de 2 columnas (checkout-grid-2) no queden apretadas. */
.profile-modal__panel {
  max-width: 640px;
}

.profile-modal__intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.orders-modal__order {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.orders-modal__order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.orders-modal__order-items {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--navy);
}

.orders-modal__order-total {
  font-weight: 700;
  color: var(--navy);
}

/* ===== Toast de confirmación ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 60;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast[hidden] {
  display: none;
}

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

@media print {
  .toast {
    display: none !important;
  }
}

/* ===== Aviso de cookies (aviso legal) ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--navy);
  color: #e2e8f0;
  padding: 18px 20px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__content {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner__content h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 6px;
}

.cookie-banner__content p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.cookie-banner__prefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.cookie-pref {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: #cbd5e1;
  cursor: pointer;
}

.cookie-pref input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.cookie-pref strong {
  color: var(--white);
  display: block;
  font-size: 0.78rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid #475569;
}

.cookie-btn--ghost {
  background: transparent;
  color: #e2e8f0;
}

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

.cookie-btn--primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.cookie-banner__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: underline;
}

.cookie-banner__link:hover {
  color: var(--accent);
}

@media print {
  .cookie-banner {
    display: none !important;
  }
}

/* ===== Floating social bar (WhatsApp + redes sociales) ===== */
.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 96px;
  z-index: 25;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top[hidden] {
  display: none;
}

.social-fab {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #111820;
  padding: 12px 8px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: bottom 0.25s ease;
}

.social-fab__toggle {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.social-fab__extra {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-fab__extra.social-fab__extra--open {
  display: flex;
}

.social-fab__divider {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.social-fab__item {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-fab__item svg {
  width: 19px;
  height: 19px;
}

.social-fab__item:hover {
  transform: scale(1.08);
}

.social-fab__item--whatsapp {
  width: 46px;
  height: 46px;
  background: #25d366;
}

.social-fab__item--whatsapp svg {
  width: 24px;
  height: 24px;
}

.social-fab__item--facebook:hover { background: #1877f2; }
.social-fab__item--google:hover { background: #ffffff; color: #4285f4; }
.social-fab__item--instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-fab__item--tiktok:hover { background: #010101; }
.social-fab__item--youtube:hover { background: #ff0000; }

/* Tooltip on hover */
.social-fab__item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: #111820;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.social-fab__item:hover::before {
  opacity: 1;
}

@media (max-width: 1120px) {
  .social-fab {
    right: 12px;
    bottom: 92px;
    gap: 8px;
    padding: 10px 6px;
  }

  .social-fab__item {
    width: 34px;
    height: 34px;
  }

  .social-fab__item--whatsapp {
    width: 42px;
    height: 42px;
  }

  .social-fab__item::before {
    display: none;
  }
}

@media print {
  .social-fab {
    display: none;
  }
}

@media print {
  body:not(.printing-order) #printOrder {
    display: none;
  }

  body:not(.printing-catalog) #printCatalog {
    display: none;
  }

  body.printing-order .mode-toggle-input,
  body.printing-order .site,
  body.printing-catalog .mode-toggle-input,
  body.printing-catalog .site {
    display: none !important;
  }

  body.printing-catalog #printCatalog {
    display: block !important;
  }

  body.printing-order #printOrder {
    display: block !important;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 32px 24px;
}

.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer__social {
  color: #94a3b8;
}

.footer__copy {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #64748b;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .logo__tagline {
    display: inline;
  }
}

@media (max-width: 1200px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .logo__image {
    height: 34px;
  }

  .logo__tagline {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 6px;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--navy-light);
    padding: 8px 14px;
    border-radius: 999px;
  }

  .nav__trigger {
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--navy-light);
    padding: 8px 14px;
    border-radius: 999px;
  }

  .nav__dropdown {
    min-width: 170px;
  }
}
