/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  padding: 8px 0;

  color: #fff;
  background: var(--color-primary-dark);

  text-align: center;
  font-size: 0.85rem;
}

.topbar p {
  margin: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-lg);

  min-height: 82px;
}

.brand-name {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 850;
  white-space: nowrap;
}

.cart-button,
.header-action-button {
  border: 0;
  font-weight: 700;
}

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

.cart-button,
.header-action-button {
  min-width: 48px;
  height: 48px;
  padding: 0 11px;

  color: var(--color-primary);
  background: var(--color-surface);

  border-radius: var(--radius-sm);
  cursor: pointer;
}

.header-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-action-button .icon {
  width: 22px;
  height: 22px;
}

#cart-count {
  display: inline-grid;
  place-items: center;

  min-width: 23px;
  height: 23px;
  margin-left: 5px;

  color: #fff;
  background: var(--color-primary);

  border-radius: 50%;
  font-size: 0.75rem;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
  border-top: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);

  min-height: 44px;
}

.nav-inner a {
  display: flex;
  align-items: center;

  font-size: 0.9rem;
  font-weight: 650;
}

.nav-home {
  justify-content: center;
}

.nav-home .icon {
  width: 20px;
  height: 20px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-content {
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;

  color: var(--color-text-soft);

  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);

  margin-top: var(--space-lg);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 22px;

  border-radius: var(--radius-sm);

  font-weight: 750;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  color: #fff;
  background: var(--color-primary);
}

.button-secondary {
  color: var(--color-primary);
  background: #fff;

  border: 1px solid var(--color-border);
}


/* =========================================================
   IN-PAGE NAVIGATION
   ========================================================= */

/*
 * Compensa topbar + header sticky al navegar mediante #anclas.
 * Se deja espacio adicional para que el título no quede pegado
 * al encabezado.
 */
#categorias,
#destacados,
#novedades,
#marcas,
#contacto {
  scroll-margin-top: 135px;
}


/* =========================================================
   CATEGORIES CAROUSEL
   ========================================================= */

.category-carousel {
  position: relative;
}

.category-carousel-viewport {
  overflow: hidden;
}

.category-grid {
  --category-gap: 18px;
  --category-visible: 4.25;

  display: flex;
  gap: var(--category-gap);

  width: auto;
  padding: 4px 2px 14px;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;

  -webkit-overflow-scrolling: touch;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: flex;
  flex: 0 0
    calc(
      (min(1180px, calc(100vw - 48px)) -
      (var(--category-gap) * (var(--category-visible) - 1))) /
      var(--category-visible)
    );
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  scroll-snap-align: none;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.category-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;

  background: #f5f7f9;
}

.category-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 240ms ease;
}

.category-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 12px 14px 0;

  text-align: center;
}

.category-card-copy h3 {
  min-height: 0;
  margin: 0;
  padding: 0;

  color: var(--color-text);
  text-align: center;
  line-height: 1.2;

  transition: color 180ms ease;
}

.category-card-copy p {
  min-height: 0;
  margin: 7px 0 12px;

  color: var(--color-text-soft);
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.3;
}

.category-card-copy span {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  margin: auto -14px 0;
  padding: 0 14px;

  background: var(--color-primary);
  color: #fff;

  border-radius:
    0 0
    calc(var(--radius-md) - 1px)
    calc(var(--radius-md) - 1px);

  font-size: 0.86rem;
  font-weight: 800;

  transition:
    background 180ms ease,
    color 180ms ease,
    padding-left 180ms ease;
}

.category-cta-icon {
  width: 12px;
  height: 12px;
  margin-left: 8px;

  opacity: 1;
  filter: brightness(0) invert(1);

  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

/* Estado activo: hover, teclado o selección desde JS */

.category-card:hover,
.category-card:focus-visible,
.category-card.is-active {
  border-color: var(--color-primary);

  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.14);

  transform: translateY(-2px);
}

.category-card:hover .category-image img,
.category-card:focus-visible .category-image img,
.category-card.is-active .category-image img {
  transform: scale(1.025);
}

.category-card:hover .category-card-copy h3,
.category-card:focus-visible .category-card-copy h3,
.category-card.is-active .category-card-copy h3 {
  color: var(--color-primary);
}

.category-card:hover .category-card-copy span,
.category-card:focus-visible .category-card-copy span,
.category-card.is-active .category-card-copy span {
  background: var(--color-primary);
  color: #fff;

  padding-left: 22px;
}

.category-card:hover .category-cta-icon,
.category-card:focus-visible .category-cta-icon,
.category-card.is-active .category-cta-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
  transform: translateX(3px);
}


/* Flechas */

.category-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;
  padding: 0;

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;

  box-shadow: 0 6px 20px rgba(15, 35, 55, 0.16);

  color: var(--color-primary);
  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.category-carousel-arrow span {
  display: block;

  margin-top: -3px;

  font-size: 2rem;
  line-height: 1;
}

.category-carousel-prev {
  left: -22px;
}

.category-carousel-next {
  right: -22px;
}

.category-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.category-carousel-arrow:hover,
.category-carousel-arrow:focus-visible {
  background: var(--color-primary);
  color: #fff;

  transform: translateY(-50%) scale(1.06);
}


/* Desktop/notebook con mouse */

@media (hover: hover) and (pointer: fine) {

  .category-carousel-arrow {
    opacity: 0;
    visibility: hidden;
  }

  .category-carousel:hover .category-carousel-arrow:not(:disabled),
  .category-carousel:focus-within .category-carousel-arrow:not(:disabled) {
    opacity: 1;
    visibility: visible;
  }

}


/* Dispositivos táctiles */

@media (hover: none), (pointer: coarse) {

  .category-carousel-arrow {
    display: none;
  }

}


/* Tablet */

@media (max-width: 1100px) {
  .category-grid {
    --category-gap: 14px;
    --category-visible: 3.2;
  }

  .category-card {
    flex-basis:
      calc(
        (calc(100vw - 48px) -
        (var(--category-gap) * (var(--category-visible) - 1))) /
        var(--category-visible)
      );
  }

  .category-carousel-prev {
    left: 4px;
  }

  .category-carousel-next {
    right: 4px;
  }

}


/* Mobile */

@media (max-width: 600px) {
  .category-grid {
    --category-gap: 10px;
    --category-visible: 2.25;

    padding-bottom: 10px;

    scroll-behavior: auto;
    touch-action: pan-x pan-y;
  }

  .category-card {
    flex-basis:
      calc(
        (calc(100vw - 32px) -
        (var(--category-gap) * (var(--category-visible) - 1))) /
        var(--category-visible)
      );

    transform: none;
  }

  .category-image {
    aspect-ratio: 3 / 4;
  }

  .category-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 10px 10px 0;

    text-align: center;
  }

  .category-card-copy h3 {
    min-height: 0;
    margin: 0;
    padding: 0;

    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .category-card-copy p {
    min-height: 0;
    margin: 6px 0 10px;

    text-align: center;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .category-card-copy span {
    justify-content: center;

    min-height: 36px;
    margin: auto -10px 0;
    padding: 0 10px;

    background: var(--color-primary);
    color: #fff;

    font-size: 0.8rem;
  }

  .category-cta-icon {
    width: 11px;
    height: 11px;

    opacity: 1;
    filter: brightness(0) invert(1);
  }

  /*
   * Touch: sin estado persistente.
   * El CTA azul permanece como señal visual de acción.
   */
  .category-card:hover,
  .category-card:focus,
  .category-card:focus-visible,
  .category-card.is-active {
    border-color: var(--color-border);
    box-shadow: none;
    transform: none;
  }

  .category-card:hover .category-image img,
  .category-card:focus .category-image img,
  .category-card:focus-visible .category-image img,
  .category-card.is-active .category-image img {
    transform: none;
  }

  .category-card:hover .category-card-copy h3,
  .category-card:focus .category-card-copy h3,
  .category-card:focus-visible .category-card-copy h3,
  .category-card.is-active .category-card-copy h3 {
    color: var(--color-text);
  }

  .category-card:hover .category-card-copy span,
  .category-card:focus .category-card-copy span,
  .category-card:focus-visible .category-card-copy span,
  .category-card.is-active .category-card-copy span {
    padding-left: 10px;
    background: var(--color-primary);
    color: #fff;
  }

  .category-card:hover .category-cta-icon,
  .category-card:focus .category-cta-icon,
  .category-card:focus-visible .category-cta-icon,
  .category-card.is-active .category-cta-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: none;
  }

  .category-carousel-arrow {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  .category-carousel-viewport {
    scroll-behavior: auto;
  }

  .category-card,
  .category-image img,
  .category-card-copy h3,
  .category-card-copy span,
  .category-cta-icon {
    transition: none;
  }
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 250px)
  );
  gap: var(--space-md);

  min-height: 100px;
}

/* Home: muestra horizontal de productos.
   Scroll nativo, sin clones ni autoplay. */

.product-carousel {
  position: relative;
}

.product-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  padding: 0;

  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.96);

  border: 1px solid var(--color-border);
  border-radius: 50%;

  box-shadow: 0 4px 14px rgba(15, 35, 55, 0.14);

  font: inherit;
  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;
  transform: translateY(-50%);

  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.product-carousel-arrow img {
  display: block;
  width: 16px;
  height: 16px;
  filter: var(--filter-primary, none);
}

.product-carousel-prev {
  left: -16px;
}


.product-carousel-next {
  right: -16px;
}

.product-carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 35, 55, 0.20);
}

.product-carousel-arrow:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* Desktop/notebook con mouse */

@media (hover: hover) and (pointer: fine) {

  .product-carousel-arrow {
    opacity: 0;
    visibility: hidden;
  }

  .product-carousel:hover .product-carousel-arrow:not(:disabled),
  .product-carousel:focus-within .product-carousel-arrow:not(:disabled) {
    opacity: 1;
    visibility: visible;
  }

}


/* Dispositivos táctiles */

@media (hover: none), (pointer: coarse) {

  .product-carousel-arrow {
    display: none;
  }

}

.product-grid--home {
  --product-gap: 16px;
  display: flex;
  gap: var(--product-gap);

  width: auto;
  min-height: 0;
  padding: 4px 2px 12px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;

  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.product-grid--home::-webkit-scrollbar {
  display: none;
}

.product-grid--home .product-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (max-width: 1000px) {
  .product-grid--home {
    --product-gap: 14px;
  }

  .product-grid--home .product-card {
    flex-basis: 240px;
  }
}

@media (max-width: 600px) {
  .product-grid--home {
    --product-gap: 12px;
    padding-bottom: 10px;

    touch-action: pan-x pan-y;
  }

  .product-grid--home .product-card {
    flex: 0 0 min(80vw, 280px);
  }
}

.product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.12);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;

  display: block;
  overflow: hidden;

  aspect-ratio: 1 / 1;

  background: #f5f7f9;
}

.product-card-image > img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 240ms ease;
}

.product-card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image--empty > .product-card-placeholder-icon {
  width: clamp(54px, 25%, 78px);
  height: auto;

  object-fit: contain;
  opacity: 0.35;
}

.product-card:hover
  .product-card-image--empty
  > .product-card-placeholder-icon {
  transform: none;
}

.product-image-brand {
  position: absolute;
  top: 11px;
  right: 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: calc(100% - 22px);
  padding: 5px 9px;

  overflow: hidden;

  color: #fff;
  background: #111;
  border-radius: 999px;

  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card:hover .product-card-image > img {
  transform: scale(1.025);
}


.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 15px 16px 0;
}

.section-demo-note {
  max-width: 420px;
  margin: 5px 0 0;

  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.product-brand {
  margin: 0 0 5px;

  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 6px;

  min-height: 22px;
  margin: 0 0 7px;

  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
}

.product-status img {
  display: block;
  width: 17px;
  height: 17px;
}

/* Oferta */
.product-status--offer {
  color: #e66a00;
}

.product-status--offer img {
  filter:
    invert(45%)
    sepia(97%)
    saturate(2240%)
    hue-rotate(8deg)
    brightness(96%)
    contrast(101%);
}

/* Destacado */
.product-status--featured {
  color: #b77900;
}

.product-status--featured img {
  filter:
    invert(51%)
    sepia(93%)
    saturate(1065%)
    hue-rotate(5deg)
    brightness(90%)
    contrast(101%);
}

/* Nuevo */
.product-status--new {
  color: #087f8c;
}

.product-status--new img {
  filter:
    invert(39%)
    sepia(72%)
    saturate(1034%)
    hue-rotate(142deg)
    brightness(91%)
    contrast(94%);
}

.product-card h3 {
  min-height: 2.5em;
  margin: 0 0 8px;

  font-size: 1rem;
  line-height: 1.25;
}

.product-card h3 a {
  display: -webkit-box;
  overflow: hidden;

  color: var(--color-text);
  text-decoration: none;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-pricing {
  margin-top: 0;
}

.product-price-placeholder {
  display: block;

  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

.product-pricing--offer {
  width: 100%;
}

.product-price-line {
  display: flex;
  width: 100%;
  min-width: 0;

  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-price-old {
  flex: 0 0 auto;

  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-discount {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 8px;

  flex: 0 0 auto;
  align-items: center;

  color: #fff;
  background: #e91e63;
  border-radius: 5px;

  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-price-current {
  display: block;

  flex: 0 0 auto;

  color: var(--color-text);
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.05;
  white-space: nowrap;
}

.product-price-line .product-price-current {
  margin-left: auto;
}

.product-price-final {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  white-space: nowrap;
}

.product-final-label {
  flex: 0 0 auto;

  color: var(--color-text-muted);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.product-price-line .product-final-label {
  flex-basis: 100%;
  margin-top: -1px;
  text-align: right;
}

.product-payment {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;

  margin: 7px 0 10px;

  font-size: 0.76rem;
  line-height: 1.2;
}

.product-installments,
.product-transfer {
  display: flex;
  min-width: 0;

  align-items: center;
  gap: 7px;

  line-height: 1.2;
}

.product-installments {
  color: #07883f;
}

.product-transfer {
  color: #6f42c1;
}

.product-payment-icon {
  width: 17px;
  height: 17px;

  flex: 0 0 17px;
  object-fit: contain;
}

.product-installments .product-payment-icon {
  filter:
    invert(42%)
    sepia(87%)
    saturate(1265%)
    hue-rotate(101deg)
    brightness(87%)
    contrast(101%);
}

.product-transfer .product-payment-icon {
  filter:
    invert(31%)
    sepia(52%)
    saturate(1728%)
    hue-rotate(237deg)
    brightness(86%)
    contrast(89%);
}

.product-payment-copy {
  display: block;
  min-width: 0;
}

.product-installments-count,
.product-installments-price,
.product-transfer-price,
.product-transfer-label {
  display: inline;
}

.product-installments-price,
.product-transfer-price {
  font-weight: 800;
}

.product-transfer-label {
  font-weight: 500;
}

.product-card-action {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  margin: auto -16px 0;
  padding: 0 16px;

  background: var(--color-primary);

  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.product-card-action img {
  width: 11px;
  height: 11px;
  margin-left: 8px;

  filter: brightness(0) invert(1);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  color: #fff;
  background: var(--color-primary-dark);
}

.contact .eyebrow {
  color: var(--color-accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding-top: var(--space-xl);

  color: #fff;
  background: #091724;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-inner p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  padding-block: var(--space-lg);

  font-size: 0.85rem;
}

.modotech-link {
  color: #fff;
  font-weight: 700;
}


/* =========================================================
   WHATSAPP FLOATING CTA
   ========================================================= */

.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  color: inherit;
  text-decoration: none;
}

.whatsapp-icon {
  position: relative;
  z-index: 2;
  overflow: hidden;

  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;
  flex: 0 0 56px;

  background: #25D366;
  border-radius: 12px;

  box-shadow: var(--shadow-md);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-icon::after {
  content: "";

  position: absolute;
  inset: -45%;

  background:
    linear-gradient(
      115deg,
      transparent 38%,
      rgba(255, 255, 255, 0.20) 46%,
      rgba(255, 255, 255, 0.48) 50%,
      rgba(255, 255, 255, 0.20) 54%,
      transparent 62%
    );

  transform: translateX(-120%);

  animation:
    whatsapp-shimmer 5s ease-in-out infinite;

  pointer-events: none;
}

@keyframes whatsapp-shimmer {

  0%,
  62% {
    transform: translateX(-120%);
  }

  92%,
  100% {
    transform: translateX(120%);
  }

}

.whatsapp-icon img {
  display: block;

  width: 34px;
  height: 34px;

  filter:
    brightness(0)
    invert(1);
}

.whatsapp-prompt {
  position: absolute;
  right: 66px;
  z-index: 1;

  display: flex;
  align-items: center;

  width: max-content;
  height: 44px;
  padding: 0 16px;

  color: var(--color-text);
  background: #fff;

  border: 1px solid var(--color-border);
  border-radius: 10px;

  box-shadow: var(--shadow-md);

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transform: translateX(12px);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {

  .whatsapp-button:hover .whatsapp-prompt,
  .whatsapp-button:focus-visible .whatsapp-prompt {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .whatsapp-button:hover .whatsapp-icon,
  .whatsapp-button:focus-visible .whatsapp-icon {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

}

@media (max-width: 600px), (hover: none) {

  .whatsapp-button {
    right: 16px;
    bottom: 24px;

    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;

    border-radius: 11px;
  }

  .whatsapp-icon img {
    width: 31px;
    height: 31px;
  }

  .whatsapp-prompt {
    display: none;
  }

}


/* =========================================================
   BRANDS MARQUEE
   ========================================================= */


/* =========================================================
   CATALOG PAGE
   ========================================================= */

.catalog-page {
  background: var(--color-background);
}

.catalog-shop {
  padding-top: 32px;
}


/* Breadcrumb */

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 28px;

  color: var(--color-text-muted);
  font-size: 14px;
}

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


/* Header */

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;

  margin-bottom: 32px;
}

.catalog-header h1 {
  margin: 4px 0 6px;

  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.catalog-summary {
  margin: 0;
  color: var(--color-text-muted);
}


/* Ordenamiento */

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}

.catalog-sort label {
  font-size: 14px;
  font-weight: 700;
}

.catalog-sort select {
  min-height: 44px;
  padding: 0 38px 0 14px;

  color: var(--color-text);
  background: #fff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);

  font: inherit;
}


/* Control responsive de filtros */

.catalog-filter-toggle {
  display: none;
}


/* Layout */

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;

  align-items: start;
}


/* Sidebar */

.catalog-filters {
  padding: 22px;

  background: #fff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  position: sticky;
  top: 120px;
}

.filter-heading {
  display: flex;
  align-items: center;
  gap: 10px;

  padding-bottom: 16px;
  margin-bottom: 18px;

  border-bottom: 1px solid var(--color-border);
}

.filter-heading img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.filter-heading h2 {
  margin: 0;
  font-size: 20px;
}


/* Grupos */

.filter-group {
  padding-bottom: 20px;
  margin-bottom: 20px;

  border-bottom: 1px solid var(--color-border);
}

.filter-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 10px;

  font-size: 14px;
  cursor: pointer;
}

.filter-group input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;

  flex: 0 0 17px;

  accent-color: var(--color-primary);
}


/* Contenido */

.catalog-content {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 44px;
  margin-bottom: 16px;

  border-bottom: 1px solid var(--color-border);
}

.catalog-toolbar p {
  margin: 0;
  color: var(--color-text-muted);
}


/* Estado sin productos */

.catalog-empty {
  grid-column: 1 / -1;

  padding: 56px 24px;

  text-align: center;
  color: var(--color-text-muted);

  background: #fff;

  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.catalog-empty p {
  margin: 0;
}


/* Seguridad: los iconos del catálogo nunca usan tamaño intrínseco */

.catalog-page img[src*="/assets/icons/"] {
  max-width: 24px;
  max-height: 24px;
}


/* =========================================================
   ICON SYSTEM
   ========================================================= */

.icon {
  display: block;
  width: 20px;
  height: 20px;

  flex: 0 0 auto;

  object-fit: contain;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--md {
  width: 22px;
  height: 22px;
}

.icon--lg {
  width: 30px;
  height: 30px;
}

.icon--light {
  filter: brightness(0) invert(1);
}


/* =========================================================
   HEADER ICONS
   ========================================================= */

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* =========================================================
   CONTACT ICONS
   ========================================================= */

.contact-line,
.contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-title {
  margin-bottom: 12px;
}

.contact-title .icon,
.contact-line .icon {
  opacity: 0.9;
}




/* Email y enlaces de contacto */

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  color: #fff;
  text-decoration: underline;
}


/* =========================================================
   STICKY COMMERCIAL BAR + HEADER
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 110;
}

.site-header {
  top: 35px;
}


/* =========================================================
   COMMERCIAL INFORMATION FOOTER
   ========================================================= */

.footer-info {
  padding: 58px 0 48px;

  color: var(--color-text);
  background: #fff;

  border-top: 1px solid var(--color-border);
}

.footer-info-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.5fr)
    minmax(280px, 1.5fr)
    minmax(150px, 0.8fr)
    minmax(180px, 0.9fr);

  gap: 48px;
}

.footer-column {
  min-width: 0;
}

.footer-column h2,
.footer-column h3 {
  margin-top: 0;
}

.footer-column h2 {
  margin-bottom: 16px;

  color: var(--color-primary);
  font-size: 1.45rem;
}

.footer-column h3 {
  margin-bottom: 20px;

  font-size: 1rem;
  font-weight: 800;
}

.footer-description {
  max-width: 390px;
  margin-bottom: 22px;

  color: var(--color-text-soft);
  line-height: 1.7;
}


/* Empresa */

.footer-store-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--color-primary);

  font-weight: 750;
}

.footer-store-link:hover {
  text-decoration: underline;
}


/* Contacto */

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  color: var(--color-text-soft);
  line-height: 1.55;
}

.footer-contact-list .icon {
  margin-top: 3px;
  opacity: 0.75;
}

.footer-contact-list a {
  color: inherit;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}


/* Navegación */

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-primary);
}


/* =========================================================
   LEGAL FOOTER
   ========================================================= */

.site-footer {
  padding: 0;

  color: rgba(255, 255, 255, 0.72);
  background: #091724;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding-block: 20px;

  font-size: 0.82rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.modotech-link {
  color: #fff;
  font-weight: 700;
}


/* =========================================================
   BRANDS - COMPACT CORPORATE SECTION
   ========================================================= */

/* =========================================================
   HERO CAROUSEL
   Carrusel fotográfico responsive
   ========================================================= */

.hero-carousel {
  position: relative;
  isolation: isolate;

  display: block;
  min-height: 0;

  overflow: hidden;

  background: #dce9ee;
}




/* Slides */

.hero-slides {
  display: grid;
}

.hero-slide {
  position: relative;
  z-index: 1;

  grid-area: 1 / 1;

  display: flex;
  align-items: center;

  min-height: 420px;

  overflow: hidden;

  background-color: #dce9ee;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 450ms ease,
    visibility 450ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}

.hero-slide--general {
  background-image: url("/assets/hero/general.webp");
}

.hero-slide--bano {
  background-image: url("/assets/hero/bano.webp");
}

.hero-slide--cocina {
  background-image: url("/assets/hero/cocina.webp");
}


/*
 * Gradiente de contraste para mantener legible
 * el contenido sobre las fotografías.
 */

.hero-slide::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 32%,
      rgba(255, 255, 255, 0.78) 50%,
      rgba(255, 255, 255, 0.34) 68%,
      rgba(255, 255, 255, 0) 86%
    );
}


/* Contenido */

.hero-slide .hero-content {
  position: relative;
  z-index: 2;

  width: 100%;

  padding-left: 90px;
  padding-right: 90px;
}

.hero-slide .hero-copy {
  max-width: 620px;
  color: #0d2a40;
}

.hero-slide h1,
.hero-slide h2 {
  max-width: 620px;

  margin-top: 10px;
  margin-bottom: 18px;

  font-family: "Fira Sans", sans-serif;
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-slide .hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  min-height: 3em;

  color: #0d2a40;
}


@media (max-width: 600px) {

  .hero-slide .hero-copy > p:not(.eyebrow) {
    min-height: 0;
  }

}


/* Controles */

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 10;

  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;
  padding: 0;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid var(--color-border);
  border-radius: 50%;

  box-shadow: var(--shadow-sm);

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    background var(--transition),
    transform var(--transition);
}

.hero-control:hover,
.hero-control:focus-visible {
  background: #fff;

  transform: translateY(-50%) scale(1.05);
}

.hero-control img {
  width: 20px;
  height: 20px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}


/* Indicadores */

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 9px;

  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;

  background: rgba(13, 42, 64, 0.30);

  border: 0;
  border-radius: 50%;

  cursor: pointer;

  transition:
    width var(--transition),
    background var(--transition);
}

.hero-dot.is-active {
  width: 25px;

  background: var(--color-primary);

  border-radius: 999px;
}


/* Desktop con mouse */

@media (hover: hover) and (pointer: fine) {

  .hero-control {
    opacity: 0;
    visibility: hidden;
  }

  .hero-carousel:hover .hero-control,
  .hero-carousel:focus-within .hero-control {
    opacity: 1;
    visibility: visible;
  }

}


/* Tablet */

@media (max-width: 900px) {

  .hero-slide {
    min-height: 400px;
  }

  .hero-slide .hero-content {
    padding-left: 64px;
    padding-right: 64px;
  }

  .hero-control {
    width: 40px;
    height: 40px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

}


/* Mobile */

@media (max-width: 600px) {

  .hero-slide {
    min-height: 380px;
  }

  .hero-slide::after {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.86) 0%,
        rgba(255, 255, 255, 0.68) 62%,
        rgba(255, 255, 255, 0.25) 100%
      );
  }

  .hero-slide .hero-content {
    padding-left: 44px;
    padding-right: 44px;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
  }

  .hero-control {
    width: 34px;
    height: 34px;

    opacity: 1;
    visibility: visible;
  }

  .hero-control img {
    width: 16px;
    height: 16px;
  }

  .hero-prev {
    left: 7px;
  }

  .hero-next {
    right: 7px;
  }

}


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

  .hero-slide {
    transition: none;
  }

}

/* =========================================================
   UI REFINEMENT - PILLS + FLOATING WHATSAPP
   ========================================================= */


/* ---------------------------------------------------------
   Botones tipo píldora
   --------------------------------------------------------- */

.button {
  border-radius: 999px;
  padding-left: 26px;
  padding-right: 26px;
}


/* Botones del hero */

.hero-actions .button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 28px;

  border-radius: 999px;
}


/* =========================================================
   BRANDS - FULL WIDTH MARQUEE
   ========================================================= */

/*
 * La sección de marcas puede tener título contenido,
 * pero las cintas atraviesan todo el viewport.
 */

/* =========================================================
   BRANDS MARQUEE
   Dos filas continuas en sentidos opuestos.

   app.js mantiene cuatro grupos idénticos por track
   (1 original + 3 clones). Por eso cada animación recorre
   exactamente el 25% del track para producir un loop continuo.
   ========================================================= */

.brands {
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #fff8e7;
}


/* Título */

.brands .section-heading {
  margin: 0 0 12px;
  text-align: left;
}

.brands .section-heading > div {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;

  width: 100%;
  gap: 10px;
}

.brands .section-heading .eyebrow,
.brands .section-heading h2 {
  margin: 0;
}


/* Ventana edge-to-edge */

.brands-marquee {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  gap: 0;
  overflow: hidden;
}


/* Filas */

.brands-row {
  position: relative;

  width: 100%;
  overflow: hidden;
}


/* Track animado */

.brands-track {
  display: flex;

  width: max-content;

  transform: translate3d(0, 0, 0);
  will-change: transform;
}


/*
 * Cada grupo mide únicamente su contenido.
 * El padding-right mantiene exactamente la misma separación
 * entre el último logo de un grupo y el primero del siguiente.
 */

.brands-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  flex: 0 0 auto;
  width: max-content;

  gap: 20px;
  padding-right: 20px;
}


/* Marca */

.brands .brand-item {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  height: 68px;
  padding: 2px 6px;

  color: inherit;
  background: transparent;

  border: 0;
  border-radius: 0;
  box-shadow: none;

  text-decoration: none;
}


/* Logo */

.brands .brand-item img {
  display: block;

  width: auto;
  height: auto;

  max-width: 175px;
  max-height: 68px;

  object-fit: contain;

  transition: transform 180ms ease;
}

.brands .brand-item:hover img,
.brands .brand-item:focus-visible img {
  transform: scale(1.06);
}


/* Animación */

.brands-row-left .brands-track.is-ready {
  animation: brands-marquee-left 28s linear infinite;
}

.brands-row-right .brands-track.is-ready {
  animation: brands-marquee-right 28s linear infinite;
}

@keyframes brands-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-25%, 0, 0);
  }
}

@keyframes brands-marquee-right {
  from {
    transform: translate3d(-25%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}


/* Pausa durante interacción */

.brands-row:hover .brands-track,
.brands-row:focus-within .brands-track {
  animation-play-state: paused;
}


/* Mobile */

@media (max-width: 600px) {

  .brands {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .brands .section-heading {
    margin-bottom: 8px;
  }

  .brands .section-heading > div {
    gap: 7px;
  }

  .brands-group {
    gap: 20px;
    padding-right: 20px;
  }

  .brands .brand-item {
    height: 62px;
    padding: 2px 4px;
  }

  .brands .brand-item img {
    max-width: 125px;
    max-height: 52px;
  }

}


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

  .brands-track {
    animation: none;
    transform: none;
  }

}


/* =========================================================
   FOOTER - CONTACT & DIRECTIONS REFINEMENT
   ========================================================= */

/* Todo el footer comercial en negro */

.footer-info,
.footer-info .footer-column,
.footer-info .footer-column h2,
.footer-info .footer-column h3,
.footer-info .footer-description,
.footer-info .footer-store-link,
.footer-info .footer-contact-list li,
.footer-info .footer-contact-list a,
.footer-info .footer-links a {
  color: #000;
}

/* Iconos también negros */

.footer-info .icon {
  opacity: 1;
  filter: brightness(0);
}

/* Teléfonos fijos en una única línea */

.footer-phone-line {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-phone-separator {
  color: #000;
  font-weight: 700;
}

/* Cómo llegar */

.footer-links .footer-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto;
  margin-top: 8px;
  padding: 8px 14px;

  color: #000;

  border: 1px solid #000;
  border-radius: 999px;

  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-links .footer-directions .icon {
  width: 16px;
  height: 16px;
}

.footer-links .footer-directions:hover,
.footer-links .footer-directions:focus-visible {
  color: #fff;
  background: #000;

  transform: translateY(-1px);
}

.footer-links .footer-directions:hover .icon,
.footer-links .footer-directions:focus-visible .icon {
  filter: brightness(0) invert(1);
}

/* Mobile */

@media (max-width: 600px) {

  .footer-phone-line {
    flex-wrap: wrap;
    white-space: normal;
  }

}


/* =========================================================
   FOOTER - COMPANY ACTIONS
   ========================================================= */

.footer-company-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 18px;
}

.footer-company-action {
  min-height: 38px;
  padding: 8px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #000;
  background: #fff;

  border: 1px solid #000;
  border-radius: 999px;

  box-shadow: 0 3px 0 #000;

  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  transform: translateY(0);

  transition:
    transform 100ms ease,
    box-shadow 100ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.footer-company-action .icon {
  width: 16px;
  height: 16px;

  filter: brightness(0);
}

.footer-company-action:hover,
.footer-company-action:focus-visible {
  color: #fff;
  background: #000;
}

.footer-company-action:hover .icon,
.footer-company-action:focus-visible .icon {
  filter: brightness(0) invert(1);
}

.footer-company-action:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #000;
}

@media (max-width: 600px) {

  .footer-company-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-company-action {
    width: 100%;
    padding-inline: 10px;

    font-size: 0.9rem;
  }

}

/* =========================================================
   FOOTER - COLUMN DISTRIBUTION
   ========================================================= */

/*
 * Priorizamos ancho para Contacto.
 * Catálogo e Información se desplazan hacia la derecha.
 */

.footer-info-grid {
  grid-template-columns:
    minmax(240px, 1.2fr)
    minmax(430px, 2fr)
    minmax(130px, 0.7fr)
    minmax(180px, 0.9fr);

  column-gap: 38px;
}

/* Dirección en una sola línea en desktop */

.footer-contact-list li:first-child span {
  white-space: nowrap;
}

/* Horarios también en una sola línea por cada día */

.footer-contact-list li:last-child span {
  white-space: nowrap;
}

/* Mobile/tablet: no forzar líneas */

@media (max-width: 1100px) {

  .footer-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact-list li:first-child span,
  .footer-contact-list li:last-child span {
    white-space: normal;
  }

  .footer-phone-line {
    white-space: normal;
    flex-wrap: wrap;
  }
}



/* =========================================================
   CONTACT DIALOG
   ========================================================= */

.contact-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;

  color: #000;
  background: #fff;

  border: 0;
  border-radius: 18px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22);

  overflow: auto;
}

.contact-dialog::backdrop {
  background: rgba(9, 23, 36, 0.68);
  backdrop-filter: blur(3px);
}

.contact-dialog-panel {
  padding: 32px;
}


/* Header */

.contact-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 28px;
}

.contact-dialog-eyebrow {
  display: block;
  margin-bottom: 5px;

  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-dialog-header h2 {
  margin: 0 0 8px;

  color: #000;
  font-size: 1.8rem;
  line-height: 1.15;
}

.contact-dialog-header p {
  max-width: 520px;
  margin: 0;

  color: var(--color-text-soft);
  line-height: 1.55;
}


/* Close */

.contact-dialog-close {
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  padding: 0;

  background: #fff;

  border: 1px solid var(--color-border);
  border-radius: 50%;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    transform 100ms ease;
}

.contact-dialog-close:hover {
  background: #f3f5f6;
}

.contact-dialog-close:active {
  transform: translateY(2px);
}

.contact-dialog-close img {
  width: 18px;
  height: 18px;
}


/* Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form-field label {
  color: #000;
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;

  color: #000;
  background: #fff;

  border: 1px solid #cbd3d9;
  border-radius: 9px;

  font: inherit;

  outline: none;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 125px;
  padding: 12px 13px;

  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.08);
}


/* Select */

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap select {
  padding-right: 42px;

  appearance: none;
  cursor: pointer;
}

.contact-select-wrap img {
  position: absolute;
  top: 50%;
  right: 14px;

  width: 16px;
  height: 16px;

  pointer-events: none;

  transform: translateY(-50%);
}


/* Help */

.contact-form-help {
  color: var(--color-text-soft);
  font-size: 0.78rem;
}


/* Privacy */

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: #000;
  font-size: 0.85rem;
  line-height: 1.45;

  cursor: pointer;
}

.contact-privacy input {
  flex: 0 0 auto;

  width: 17px;
  min-height: 17px;
  height: 17px;
  margin-top: 2px;
}


/* Actions */

.contact-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding-top: 4px;
}

.contact-form-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 48px;

  white-space: nowrap;
}

@media (max-width: 420px) {

  .contact-form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.contact-cancel {
  color: #b42318;
  background: #fff;

  border: 1px solid #b42318;
}

.contact-cancel:hover,
.contact-cancel:focus-visible {
  color: #8f1c13;
  background: #fff7f6;
  border-color: #8f1c13;
}

.contact-form-status {
  min-height: 0;
  margin: 0;

  font-size: 0.88rem;
}


/* Mobile */

@media (max-width: 600px) {

  .contact-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);

    border-radius: 14px;
  }

  .contact-dialog-panel {
    padding: 22px 18px;
  }

  .contact-dialog-header {
    gap: 14px;
    margin-bottom: 22px;
  }

  .contact-dialog-header h2 {
    font-size: 1.55rem;
  }

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

}


/* =========================================================
   NAVIGATION - CONTACT TRIGGER
   ========================================================= */

.nav-contact-trigger {
  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;

  color: inherit;
  background: transparent;

  border: 0;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;

  cursor: pointer;
}

.nav-contact-trigger:hover,
.nav-contact-trigger:focus-visible {
  color: var(--color-primary);
}


/* Contact form - optional fields */

.contact-optional {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 400;
}


/* =========================================================
   CONTACT - WHATSAPP SUBMIT
   ========================================================= */

.contact-whatsapp-submit {
  gap: 9px;

  color: #fff;
  background: #128c4a;
  border-color: #128c4a;
}

.contact-whatsapp-submit:hover,
.contact-whatsapp-submit:focus-visible {
  color: #fff;
  background: #0f753e;
  border-color: #0f753e;
}

.contact-whatsapp-submit img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

/* =========================================================
   BRAND IDENTITY
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
}

/* Footer brand identity */
.footer-brand-logo {
  display: block;
  width: auto;
  height: 72px;
  max-width: 100%;
  margin-bottom: 16px;
}


/* =========================================================
   BENEFITS BAR
   ========================================================= */

.benefits-bar {
  --benefit-location: #0067e8;
  --benefit-quote: #7c3aed;
  --benefit-installments: #00a86b;
  --benefit-transfer: #f04418;

  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.benefits-grid {
  display: flex;
  gap: 10px;
  padding-block: 11px;
}

.benefit-item {
  --benefit-accent: var(--color-primary);
  --benefit-tint: rgba(0, 103, 232, 0.07);

  position: relative;

  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 14px 17px;

  flex: 1 1 0;
  align-items: center;
  gap: 13px;

  overflow: hidden;

  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 13px;

  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    flex 380ms cubic-bezier(0.25, 1, 0.5, 1),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.benefit-item[hidden] {
  display: none;
}

.benefit-item::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background: var(--benefit-accent);

  opacity: 0.8;

  transition:
    height 200ms ease,
    opacity 200ms ease;
}

.benefit-item--location {
  --benefit-accent: var(--benefit-location);
  --benefit-tint: rgba(0, 103, 232, 0.08);
}

.benefit-item--quote {
  --benefit-accent: var(--benefit-quote);
  --benefit-tint: rgba(124, 58, 237, 0.08);
}

.benefit-item--installments {
  --benefit-accent: var(--benefit-installments);
  --benefit-tint: rgba(0, 168, 107, 0.08);
}

.benefit-item--transfer {
  --benefit-accent: var(--benefit-transfer);
  --benefit-tint: rgba(240, 68, 24, 0.08);
}

.benefit-icon {
  position: relative;

  display: flex;
  width: 50px;
  height: 50px;

  flex: 0 0 50px;
  align-items: center;
  justify-content: center;

  background: var(--benefit-tint);
  border-radius: 14px;

  transform-origin: center;
}

.benefit-icon img {
  display: block;
  width: 30px;
  height: 30px;

  opacity: 0;

  pointer-events: none;
}

.benefit-icon::after {
  content: "";

  position: absolute;
  inset: 9px;

  background: var(--benefit-accent);

  -webkit-mask-image: var(--benefit-icon);
  mask-image: var(--benefit-icon);

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: contain;
  mask-size: contain;
}

.benefit-item--location .benefit-icon {
  --benefit-icon: url("/assets/icons/location.svg");
}

.benefit-item--quote .benefit-icon {
  --benefit-icon: url("/assets/icons/quote.svg");
}

.benefit-item--installments .benefit-icon {
  --benefit-icon: url("/assets/icons/credit-card.svg");
}

.benefit-item--transfer .benefit-icon {
  --benefit-icon: url("/assets/icons/discount.svg");
}

.benefit-copy {
  display: flex;
  min-width: 0;

  flex-direction: column;
  gap: 4px;
}

.benefit-label {
  display: block;

  color: var(--benefit-accent);

  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
}

.benefit-description {
  display: block;

  max-width: 235px;

  color: var(--color-text-soft);

  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;

  opacity: 0.78;
}

.benefit-item:hover,
.benefit-item:focus-visible,
.benefit-item.is-active {
  flex: 2.15 1 0;

  background: var(--benefit-tint);
  border-color: var(--benefit-accent);

  box-shadow: 0 9px 24px rgba(15, 35, 55, 0.09);

  transform: translateY(-1px);
}

.benefit-item:hover::before,
.benefit-item:focus-visible::before,
.benefit-item.is-active::before {
  height: 5px;
  opacity: 1;
}

.benefit-item:focus-visible {
  outline: 2px solid var(--benefit-accent);
  outline-offset: 2px;
}


/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

@keyframes benefit-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(1.28);
  }

  24% {
    transform: scale(1);
  }

  36% {
    transform: scale(1.18);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes benefit-message-in {
  from {
    opacity: 0;
    transform: translateX(44px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.benefit-icon::after {
  transform-origin: center;
}

.benefit-icon.is-pulsing::after {
  animation: benefit-heartbeat 820ms
    cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---------------------------------------------------------
   Detail
   --------------------------------------------------------- */

.benefit-detail {
  display: none;
}


/* =========================================================
   BENEFITS - TABLET / MOBILE
   ========================================================= */

@media (max-width: 1100px) {

  .benefits-grid {
    display: grid;
    grid-template-columns:
      repeat(var(--benefit-count, 4), minmax(0, 1fr));

    gap: 8px;

    padding: 9px 12px 0;
  }

  .benefit-item {
    min-height: 74px;
    padding: 9px 8px;

    flex-direction: column;
    gap: 5px;

    background: var(--benefit-tint);
    border: 1px solid transparent;
    border-radius: 18px;

    text-align: center;

    transform: none;

    transition:
      background 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease,
      transform 200ms ease;
  }

  .benefit-item::before {
    display: none;
  }

  .benefit-item + .benefit-item {
    border-left-width: 1px;
  }

  .benefit-item:hover,
  .benefit-item:focus-visible,
  .benefit-item.is-active {
    background: var(--benefit-tint);
    border-color: var(--benefit-accent);

    box-shadow:
      0 6px 18px rgba(15, 35, 55, 0.10);

    transform: translateY(-2px);
  }

  .benefit-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    background: transparent;
    border-radius: 0;
  }

  .benefit-icon::after {
    inset: 5px;
  }

  .benefit-copy {
    align-items: center;
    gap: 0;
  }

  .benefit-label {
    font-size: 0.76rem;
    line-height: 1.12;
    text-align: center;
  }

  .benefit-description {
    display: none;
  }

  .benefit-detail {
    --detail-accent: var(--color-primary);

    position: relative;

    grid-column: 1 / -1;

    min-height: 68px;
    margin-top: 1px;
    padding: 11px 10px;

    align-items: center;
    justify-content: space-between;
    gap: 16px;

    overflow: hidden;

    border-top: 1px solid var(--color-border);
  }

  .benefit-detail:not([hidden]) {
    display: flex;
  }

  .benefit-detail-copy {
    display: flex;
    min-width: 0;

    flex: 1 1 auto;
    align-items: center;

    animation: benefit-message-in 440ms
      cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-detail-title {
    display: none;
  }

  .benefit-detail-text {
    display: block;
    min-width: 0;

    color: var(--color-text);

    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    font-weight: 750;
    line-height: 1.25;

    white-space: nowrap;
  }

  .benefit-detail-action {
    flex: 0 0 auto;
  }

  .benefit-detail[data-benefit="location"] {
    --detail-accent: var(--benefit-location);
  }

  .benefit-detail[data-benefit="quote"] {
    --detail-accent: var(--benefit-quote);
  }

  .benefit-detail[data-benefit="installments"] {
    --detail-accent: var(--benefit-installments);
  }

  .benefit-detail[data-benefit="transfer"] {
    --detail-accent: var(--benefit-transfer);
  }

  .benefit-detail-link {
    display: inline-flex;
    min-width: 112px;
    min-height: 42px;
    padding: 0 20px;

    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--detail-accent);
    border: 1px solid var(--detail-accent);
    border-radius: 999px;

    box-shadow:
      0 5px 0 rgba(15, 35, 55, 0.16),
      0 8px 16px rgba(15, 35, 55, 0.12);

    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;

    transition:
      transform 120ms ease,
      box-shadow 120ms ease,
      filter 160ms ease;
  }

  .benefit-detail-link:hover {
    filter: brightness(0.96);

    transform: translateY(-1px);

    box-shadow:
      0 6px 0 rgba(15, 35, 55, 0.15),
      0 9px 18px rgba(15, 35, 55, 0.14);
  }

  .benefit-detail-link:active {
    transform: translateY(4px);

    box-shadow:
      0 1px 0 rgba(15, 35, 55, 0.14),
      0 3px 7px rgba(15, 35, 55, 0.10);
  }

  .benefit-detail-link:focus-visible {
    outline: 3px solid
      color-mix(
        in srgb,
        var(--detail-accent) 28%,
        transparent
      );

    outline-offset: 3px;
  }
}


.benefit-detail-action-icon {
  display: none;
}

/* =========================================================
   BENEFITS - PHONE
   ========================================================= */

@media (max-width: 600px) {

  .benefits-grid {
    grid-template-columns:
      repeat(var(--benefit-count, 4), minmax(0, 1fr));
    gap: 6px;

    width: 100%;
    padding: 9px 8px 0;
  }

  .benefit-item {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 7px 2px;

    border: 1px solid transparent;
    border-radius: 14px;
  }

  .benefit-item + .benefit-item,
  .benefit-item:nth-of-type(even) {
    border-left: 1px solid transparent;
  }

  .benefit-item.is-active {
    border-color: var(--benefit-accent);
  }

  .benefit-icon {
    width: 32px;
    height: 32px;

    flex-basis: 32px;
  }

  .benefit-label {
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .benefit-detail {
    min-height: 58px;
    padding: 8px 12px;

    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .benefit-detail-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .benefit-detail-text {
    width: auto;
    min-width: 0;

    font-size: 0.88rem;
    line-height: 1.2;

    white-space: nowrap;
  }

  .benefit-detail-action {
    flex: 0 0 auto;
    width: auto;
  }

  .benefit-detail-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;

    border-radius: 50%;

    font-size: 0;
  }

  .benefit-detail-action-icon {
    display: block;

    width: 21px;
    height: 21px;

    object-fit: contain;

    filter: brightness(0) invert(1);

    pointer-events: none;
  }
}


/* Labels responsive de beneficios */
.benefit-label-mobile {
  display: none;
}

@media (max-width: 600px) {

  .benefit-label-desktop {
    display: none;
  }

  .benefit-label-mobile {
    display: inline;
  }
}

/* Animación guiada del detalle de beneficios */
@media (max-width: 600px) {

  @keyframes benefit-detail-text-enter {
    0% {
      opacity: 0;
      transform: translateX(-120px);
    }

    12% {
      opacity: 1;
    }

    72% {
      opacity: 1;
      transform: translateX(6px);
    }

    88% {
      transform: translateX(-2px);
    }

    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes benefit-detail-action-release {
    0% {
      opacity: 0;
      transform: translateX(-72px) scale(0.84);
    }

    12% {
      opacity: 1;
    }

    78% {
      opacity: 1;
      transform: translateX(5px) scale(1);
    }

    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes benefit-detail-action-pulse {
    0%,
    100% {
      transform: scale(1);
    }

    35% {
      transform: scale(1.14);
    }

    65% {
      transform: scale(0.97);
    }
  }

  .benefit-detail:not([hidden])
    .benefit-detail-copy {
    animation: none;
  }

  .benefit-detail:not([hidden])
    .benefit-detail-text {
    animation:
      benefit-detail-text-enter
      520ms
      cubic-bezier(0.16, 1, 0.3, 1)
      both;
  }

  .benefit-detail:not([hidden])
    .benefit-detail-link {
    animation:
      benefit-detail-action-release
        430ms
        520ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both,
      benefit-detail-action-pulse
        340ms
        950ms
        ease-out
        1;
  }
}

/* =========================================================
   BENEFITS - MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .benefit-item,
  .benefit-detail-link {
    transition: none;
  }

  .benefit-icon.is-pulsing::after,
  .benefit-detail-copy,
  .benefit-detail-text,
  .benefit-detail-link {
    animation: none;
  }
}


/* =========================================================
   SEARCH DIALOG
   ========================================================= */

/* ---------------------------------------------------------
   Dialog
   --------------------------------------------------------- */

.search-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  padding: 0;

  color: var(--color-text);
  background: transparent;

  border: 0;
  overflow: visible;
}

.search-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}


/* ---------------------------------------------------------
   Panel
   --------------------------------------------------------- */

.search-dialog-panel {
  padding: 28px;

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;

  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.22);
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.search-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 22px;
}

.search-dialog-header .eyebrow {
  margin: 0 0 4px;
}

.search-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}


/* ---------------------------------------------------------
   Close
   --------------------------------------------------------- */

.search-dialog-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;

  width: 44px;
  height: 44px;
  padding: 0;

  color: var(--color-text);
  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: 50%;

  cursor: pointer;

  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
}

.search-dialog-close:hover,
.search-dialog-close:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}


/* ---------------------------------------------------------
   Search form inside dialog
   --------------------------------------------------------- */

.search-dialog .search {
  display: flex;
  width: 100%;
  margin: 0;
}

.search-dialog .search input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;

  color: var(--color-text);
  background: #fff;

  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);

  outline: none;

  font: inherit;
  font-size: 1rem;
}

.search-dialog .search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  min-width: 58px;
  padding: 0 18px;

  color: #fff;
  background: var(--color-primary);

  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

  cursor: pointer;
  font-weight: 700;
}

.search-dialog .search-button .icon {
  filter: brightness(0) invert(1);
}


/* ---------------------------------------------------------
   Header search trigger
   --------------------------------------------------------- */

.js-search-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.js-search-open:hover,
.js-search-open:focus-visible {
  color: var(--color-primary);
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .search-dialog {
    width: calc(100% - 24px);
  }

  .search-dialog-panel {
    padding: 20px;
    border-radius: 14px;
  }

  .search-dialog-header {
    gap: 16px;
    margin-bottom: 18px;
  }

  .search-dialog-close {
    width: 40px;
    height: 40px;
  }

  .search-dialog .search input {
    min-height: 50px;
    padding-inline: 14px;
  }

}

/* =========================================================
   HERO - MOBILE ALIGNMENT + SECONDARY BUTTON
   ========================================================= */

.hero-actions .button-secondary {
  color: #0d2a40;
  background: #fff;
  border: 1px solid #0d2a40;
}


/* =========================================================
   TOPBAR - SUBTLE DYNAMIC BACKGROUND
   ========================================================= */

.topbar {
  background:
    linear-gradient(
      120deg,
      #071521 0%,
      #0d2a40 28%,
      #101820 52%,
      #12384d 76%,
      #071521 100%
    );

  background-size: 300% 300%;
  animation: topbar-flow 16s ease-in-out infinite;
}

@keyframes topbar-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    animation: none;
    background-position: 50% 50%;
  }
}


/* =========================================================
   BUSINESS STATUS TOPBAR
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 110;

  padding: 0;

  color: #fff;
  background: #7f1d1d;

  transition: background-color var(--transition);
}

.topbar.is-open {
  background: #14532d;
}

.topbar.is-closed {
  background: #7f1d1d;
}

.topbar-status {
  min-height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.topbar-status img {
  width: 20px;
  height: 20px;

  filter: brightness(0) invert(1);
}

.site-header {
  top: 35px;
}

@media (max-width: 600px) {

  .topbar-status {
    min-height: 35px;

    font-size: 0.78rem;
  }

  .topbar-status img {
    width: 18px;
    height: 18px;
  }

}


/* Topbar - special dates marquee */

.topbar-status {
  overflow: hidden;
}

.topbar-track {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-group {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  white-space: nowrap;
}

.topbar-group img {
  flex: 0 0 auto;

  width: 20px;
  height: 20px;

  filter: brightness(0) invert(1);
}

/*
 * Sin fecha especial:
 * un único grupo centrado y sin movimiento.
 */
.topbar-status:not(.has-special-message) .topbar-track {
  width: 100%;
}


/*
 * Con fecha especial:
 * JS duplica el grupo y el track se desplaza exactamente
 * el ancho de uno de ellos.
 */
.topbar-status.has-special-message .topbar-track {
  width: max-content;

  justify-content: flex-start;

  animation: topbar-marquee 16s linear infinite;
}

.topbar-status.has-special-message .topbar-group {
  padding-right: 48px;
}

.topbar-status.has-special-message .topbar-special {
  display: inline-flex;
  align-items: center;
}

.topbar-status.has-special-message .topbar-special::before {
  content: "•";
  margin-right: 28px;

  opacity: 0.75;
}

@keyframes topbar-marquee {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}


/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

  .topbar-status.has-special-message .topbar-track {
    width: 100%;

    justify-content: center;
    animation: none;
  }

  .topbar-status.has-special-message
    .topbar-group[aria-hidden="true"] {
    display: none;
  }

}


@media (max-width: 600px) {

  .topbar-group {
    font-size: 0.78rem;
  }

  .topbar-group img {
    width: 18px;
    height: 18px;
  }

  .topbar-status.has-special-message .topbar-group {
    padding-right: 36px;
  }

  .topbar-status.has-special-message .topbar-special::before {
    margin-right: 22px;
  }

}


/* =========================================================
   FOOTER - FINAL SPACING REFINEMENT
   ========================================================= */

.footer-info {
  padding: 42px 0 36px;
}

.footer-info-grid {
  column-gap: 34px;
  row-gap: 32px;
}

.footer-description {
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-company-actions {
  margin-top: 14px;
}

.footer-column h3 {
  margin-bottom: 16px;
}

.footer-contact-list {
  gap: 11px;
}

.footer-contact-list li {
  line-height: 1.4;
}

.footer-links {
  gap: 10px;
}

.site-footer .footer-bottom {
  padding-block: 16px;
}


@media (max-width: 600px) {

  .footer-info {
    padding: 34px 0 30px;
  }

  .footer-info-grid {
    row-gap: 30px;
  }

  .site-footer .footer-bottom {
    padding-block: 18px;
  }

}


/* =========================================================
   FOOTER - MOBILE ACCORDION
   ========================================================= */

.footer-tab-icon,
.footer-accordion-chevron {
  display: none;
}

@media (max-width: 600px) {

  /* ---------------------------------------------------------
     Contenedor
     --------------------------------------------------------- */

  .footer-info {
    padding: 26px 0 20px;
  }

  .footer-info-grid {
    display: block;
  }

  /*
   * Neutraliza el antiguo layout móvil de responsive.css.
   */
  .footer-info-grid > .footer-column {
    grid-column: auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  /* ---------------------------------------------------------
     Marca y accesos rápidos
     --------------------------------------------------------- */

  .footer-company {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "description description";
    align-items: center;
    gap: 6px 12px;

    min-height: 0;
    margin: 0;
    padding: 0 0 8px;

    border-bottom: 1px solid var(--color-border);
  }

  .footer-company .footer-brand-logo {
    grid-area: logo;

    width: auto;
    height: 44px;
    max-width: 180px;
    margin: 0;
  }

  .footer-company .footer-description {
    grid-area: description;

    margin: 0;

    font-size: 0.92rem;
    line-height: 1.35;
  }

  .footer-company-actions {
    position: static;
    grid-area: actions;

    display: flex;
    gap: 8px;

    margin: 0;
  }

  .footer-company-action {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;

    border-radius: 13px;
  }

  .footer-company-action .icon {
    width: 20px;
    height: 20px;
  }

  .footer-company-action span {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
  }

  /* ---------------------------------------------------------
     Accordion
     --------------------------------------------------------- */

  .footer-company + .footer-contact {
    margin-top: 22px;
  }

  .footer-contact {
    margin: 0;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--color-border);
  }

  .footer-contact-title {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;

    min-height: 30px;
    margin: 0 0 10px;
    padding: 0;

    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
  }

  .footer-contact-title .footer-tab-icon {
    display: block;
    justify-self: center;
    align-self: center;
  }

  .footer-contact-content {
    margin: 0;
    padding: 0;
  }

  .footer-contact + .footer-accordion-item {
    margin-top: 12px;
  }

  .footer-accordion-item {
    display: block;

    margin-left: 0;
    margin-right: 0;
    padding: 0;

    border-bottom: 1px solid var(--color-border);
  }

  /*
   * Carril propio entre Información y el footer legal.
   * Evita que WhatsApp interfiera con los chevrons.
   */
  .footer-accordion-item:last-child {
    margin-bottom: 68px;
  }

  .footer-accordion-trigger {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    align-items: center;
    column-gap: 10px;

    box-sizing: border-box;
    width: 100%;
    height: 30px;
    min-height: 30px;

    margin: 0;
    padding: 0 4px;

    color: var(--color-text);

    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    text-align: left;

    cursor: pointer;
    user-select: none;
  }

  .footer-accordion-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
  }

  .footer-tab-icon {
    display: block;
    justify-self: center;
    align-self: center;

    width: 22px;
    height: 22px;
    margin: 0;

    object-fit: contain;
    filter: brightness(0);
    opacity: 0.82;
  }

  .footer-accordion-trigger > span:not(.footer-accordion-chevron) {
    align-self: center;
    margin: 0;
  }

  .footer-accordion-chevron {
    display: block;
    justify-self: center;
    align-self: center;

    width: 7px;
    height: 7px;
    margin: 0;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);
    transition: transform 180ms ease;
  }

  .footer-accordion-item.is-open .footer-accordion-trigger {
    color: var(--color-primary);
  }

  .footer-accordion-item.is-open .footer-accordion-chevron {
    transform: rotate(225deg);
  }

  /* Cerrado no participa del layout. */

  .footer-accordion-content {
    display: none;
    margin: 0;
    padding: 0;
  }

  .footer-accordion-item.is-open .footer-accordion-content {
    display: block;
  }

  .footer-accordion-item.is-open .footer-accordion-content > * {
    margin: 0;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  /* ---------------------------------------------------------
     Contacto
     --------------------------------------------------------- */

  .footer-contact-list {
    gap: 10px;
    margin: 0;
    padding-left: 0;
  }

  .footer-contact-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;

    min-width: 0;
    min-height: 28px;
    margin: 0;

    font-size: 0.94rem;
    line-height: 1.35;
  }

  .footer-contact-list li a,
  .footer-contact-list li span,
  .footer-phone-line,
  .footer-phone-line a {
    font-size: 0.94rem;
    line-height: 1.25;
  }

  .footer-contact-list .icon {
    width: 17px;
    height: 17px;
    margin: 0;
  }

  .footer-contact-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
  }

  .footer-contact-list li:first-child > span,
  .footer-phone-line a,
  #footer-whatsapp,
  .footer-contact-list li:nth-child(4) > a {
    min-width: 0;
    white-space: nowrap;
  }

  .footer-phone-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 2px;
  }

  .footer-phone-line a {
    min-height: 28px;
    white-space: nowrap;
  }

  .footer-phone-separator {
    flex: 0 0 auto;
    font-weight: 700;
    line-height: 1;
  }

  /* ---------------------------------------------------------
     Catálogo e Información
     --------------------------------------------------------- */

  .footer-links {
    gap: 7px;
    margin: 0;
  }

  .footer-links,
  .footer-links a {
    font-size: 0.94rem;
    line-height: 1.25;
  }

}

@media (prefers-reduced-motion: reduce) {

  .footer-accordion-chevron {
    transition: none;
  }

  .header-menu-dropdown:not([hidden]) > a,
  .header-menu-dropdown:not([hidden]) > .header-menu-contact {
    opacity: 1;
    transform: none;
    animation: none;
  }

}

/* Product brand logo */

/* =========================================================
   HEADER MENU
   Menú compacto desplegable del header.
   ========================================================= */

.header-menu {
  position: relative;
}

.header-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;

  width: min(260px, calc(100vw - 32px));
  padding: 8px;

  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;

  box-shadow: 0 12px 32px rgba(15, 35, 55, 0.16);
}

.header-menu-dropdown[hidden] {
  display: none;
}

/*
 * Entrada escalonada de las opciones del menú.
 * Se anima el estado visible existente, sin duplicar
 * el control open/closed que ya maneja JavaScript.
 */
.header-menu-dropdown:not([hidden]) > a,
.header-menu-dropdown:not([hidden]) > .header-menu-contact {
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  animation: header-menu-item-in 0.4s
    cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.header-menu-dropdown:not([hidden]) > :nth-child(1) {
  animation-delay: 0.04s;
}

.header-menu-dropdown:not([hidden]) > :nth-child(2) {
  animation-delay: 0.08s;
}

.header-menu-dropdown:not([hidden]) > :nth-child(3) {
  animation-delay: 0.12s;
}

.header-menu-dropdown:not([hidden]) > :nth-child(4) {
  animation-delay: 0.16s;
}

.header-menu-dropdown:not([hidden]) > :nth-child(5) {
  animation-delay: 0.20s;
}

@keyframes header-menu-item-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-menu-dropdown a,
.header-menu-contact {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 44px;
  padding: 10px 12px;

  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 8px;

  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
}

.header-menu-dropdown a:hover,
.header-menu-dropdown a:focus-visible,
.header-menu-contact:hover,
.header-menu-contact:focus-visible {
  color: var(--color-primary);
  background: #f5f7f9;
  outline: none;
}

.header-menu-button[aria-expanded="true"] {
  background: #eef3f7;
}

@media (max-width: 600px) {
  .header-menu-dropdown {
    position: fixed;
    top: var(--header-menu-top, 120px);
    right: 16px;
    left: 16px;

    width: auto;
    margin-top: 0;
    max-height: calc(100dvh - var(--header-menu-top, 120px) - 16px);
    overflow-y: auto;
  }
}

/* =========================================================
   PRODUCT STATUS + SHARE
   ========================================================= */

.product-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;

  min-height: 22px;
  margin: 0 0 7px;
}

.product-status-row .product-status {
  min-height: 0;
  margin: 0;
}

.product-commerce {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-commerce-pricing {
  flex: 1;
  min-width: 0;
}





/* =========================================================
   PRODUCT STATUS + SHARE - MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .product-status-row {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .product-status-row .product-status {
    flex: 0 0 auto;
    gap: 4px;
    white-space: nowrap;
    font-size: 0.66rem;
  }

  .product-status-row .product-status img {
    width: 16px;
    height: 16px;
  }

  .product-commerce {
    align-items: flex-end;
    gap: 6px;
  }

  .product-share {
    flex: 0 0 40px;
    align-self: flex-end;

    width: 40px;
    height: 40px;
    margin: 0 0 11px;
  }

  .product-share img {
    width: 22px;
    height: 22px;
  }
}

/* Home mobile: precios resistentes en cards angostas */
@media (max-width: 600px) {

  .product-grid--home .product-price-final {
    display: flex;
    width: 100%;
    min-width: 0;

    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;

    white-space: nowrap;
  }

  .product-grid--home .product-price-current {
    min-width: 0;

    flex: 0 1 auto;

    font-size: clamp(0.94rem, 4.9vw, 1.35rem);
    line-height: 1.08;

    white-space: nowrap;
  }

  .product-grid--home .product-final-label {
    flex: 0 0 auto;
    margin-left: auto;

    font-size: clamp(0.48rem, 2.15vw, 0.56rem);
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
  }

  .product-grid--home .product-price-reference {
    display: flex;
    width: 100%;
    min-width: 0;

    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
  }

  .product-grid--home .product-price-reference
    .product-discount {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .product-grid--home .product-price-old {
    min-width: 0;

    font-size: clamp(0.72rem, 3.6vw, 0.90rem);
  }

  .product-grid--home .product-discount {
    min-height: 24px;
    padding: 3px 7px;

    font-size: clamp(0.70rem, 3.25vw, 0.82rem);
  }
}

/* Home mobile: pricing ocupa todo el ancho; share fuera del flujo */
@media (max-width: 600px) {

  .product-grid--home .product-commerce {
    position: relative;

    display: block;
    width: 100%;
    min-width: 0;
  }

  .product-grid--home .product-commerce-pricing {
    width: 100%;
    min-width: 0;

    padding-right: 0;
  }

  .product-grid--home .product-payment {
    padding-right: 0;
  }
}

/* Precio anterior + descuento en una línea - mobile */
@media (max-width: 600px) {
  .product-price-reference {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
  }

  .product-price-old,
  .product-discount {
    flex: 0 0 auto;
    margin: 0;
  }

  .product-price-old {
    font-size: 0.90rem;
  }

  .product-discount {
    min-height: 26px;
    padding: 4px 11px;
    font-size: 0.84rem;
    line-height: 1.15;
  }
}

/* =========================================================
   PRODUCT DISCOUNT - FOIL EFFECT
   ========================================================= */

.product-discount {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      115deg,
      #e91e63 0%,
      #e91e63 28%,
      #7b1fa2 48%,
      #00796b 62%,
      #e91e63 82%,
      #e91e63 100%
    );

  background-size: 240% 100%;
  animation: discount-foil 4.5s ease-in-out infinite;
}

.product-discount::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      105deg,
      transparent 25%,
      rgba(255, 255, 255, 0.38) 47%,
      rgba(255, 255, 255, 0.12) 54%,
      transparent 72%
    );

  transform: translateX(-130%);
  animation: discount-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes discount-foil {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes discount-shine {
  0%,
  22% {
    transform: translateX(-130%);
  }

  55%,
  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-discount,
  .product-discount::after {
    animation: none;
  }
}

/* Más espacio útil dentro de la card - mobile */
@media (max-width: 600px) {
  .product-card-body {
    padding-right: 11px;
    padding-left: 9px;
  }
}

/* =========================================================
   PRODUCT CARD SYSTEM - UNIFIED
   Home + Tienda
   ========================================================= */

/* Carcasa */
.product-card {
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 3px 10px rgba(15, 35, 55, 0.06);
}

/* El estado PRODUCTO no aporta información comercial */
.product-status--product {
  display: none;
}

/* Imagen: misma proporción en todas las cards */
.product-grid--home .product-card-image,
.product-grid:not(.product-grid--home) .product-card-image {
  aspect-ratio: 4 / 3;
}

/* Cuerpo */
.product-grid--home .product-card-body,
.product-grid:not(.product-grid--home) .product-card-body {
  padding: 12px 16px 0;
}

/* Título: exactamente dos líneas reservadas */
.product-grid--home .product-card h3,
.product-grid:not(.product-grid--home) .product-card h3 {
  height: 2.5em;
  min-height: 2.5em;
  margin: 0 0 8px;

  overflow: hidden;

  font-size: 1rem;
  line-height: 1.25;
}

.product-grid--home .product-card h3 a,
.product-grid:not(.product-grid--home) .product-card h3 a {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Bloque comercial */
.product-commerce,
.product-commerce-pricing {
  display: block;
  width: 100%;
  min-width: 0;
}

.product-pricing {
  min-height: 62px;
  padding-top: 9px;

  border-top: 1px solid rgba(15, 35, 55, 0.08);
}

/* =========================================================
   PRECIO CON OFERTA
   ========================================================= */

.product-pricing--offer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-price-line {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas:
    "old discount offer offer"
    "current current . vat";

  width: 100%;
  min-width: 0;

  column-gap: 8px;
  row-gap: 5px;

  align-items: center;
}

.product-price-old {
  grid-area: old;

  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-discount {
  grid-area: discount;
  justify-self: start;

  min-height: 23px;
  padding: 3px 8px;
}

.product-price-offer-status {
  grid-area: offer;

  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;

  color: #e66a00;

  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.product-price-offer-status img {
  display: block;
  width: 15px;
  height: 15px;

  filter:
    invert(45%)
    sepia(97%)
    saturate(2240%)
    hue-rotate(8deg)
    brightness(96%)
    contrast(101%);
}

.product-pricing--offer .product-price-current {
  grid-area: current;

  margin: 0;

  font-size: 1.68rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.product-pricing--offer .product-final-label {
  grid-area: vat;

  align-self: center;
  justify-self: end;

  margin: 0;

  font-size: 0.60rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   PRECIO CONVENCIONAL
   Mismo sub-box, precio protagonista y centrado
   ========================================================= */

.product-pricing:not(.product-pricing--offer) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-pricing:not(.product-pricing--offer)
  .product-price-final {
  position: relative;

  display: flex;
  width: 100%;
  min-height: 52px;

  align-items: center;
  justify-content: flex-start;

  text-align: left;
}

.product-pricing:not(.product-pricing--offer)
  .product-price-current {
  margin: 0;

  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.product-pricing:not(.product-pricing--offer)
  .product-final-label {
  position: absolute;
  right: 0;
  top: 50%;

  margin: 0;

  color: var(--color-text-muted);
  font-size: 0.60rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  transform: translateY(-50%);
}

/* =========================================================
   BENEFICIOS
   ========================================================= */

.product-payment {
  display: flex;
  min-height: 54px;

  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;

  margin: 0 0 11px;
  padding-top: 9px;

  border-top: 1px solid rgba(15, 35, 55, 0.08);

  font-size: 0.79rem;
  line-height: 1.2;
}

.product-installments,
.product-transfer {
  display: flex;
  min-width: 0;

  align-items: center;
  gap: 8px;
}

.product-installments {
  color: #07883f;
}

.product-transfer {
  color: #6f42c1;
}


.product-payment-copy {
  min-width: 0;
  white-space: nowrap;
}

.product-installments-price,
.product-transfer-price {
  font-weight: 800;
}

.product-transfer-label {
  font-weight: 500;
}

/* Remate inferior común */
.product-card-action {
  min-height: 14px;
  height: 14px;

  margin: auto -16px 0;
  padding: 0;

  overflow: hidden;

  background: var(--color-primary);

  font-size: 0;
  line-height: 0;
}

.product-card-action img {
  display: none;
}

/* =========================================================
   TIENDA MOBILE - carrusel de cards 280px
   ========================================================= */

@media (max-width: 600px) {
  .product-grid:not(.product-grid--home) {
    display: flex;
    gap: 12px;

    width: auto;
    min-height: 0;
    padding: 4px 2px 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;

    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-grid:not(.product-grid--home)::-webkit-scrollbar {
    display: none;
  }

  .product-grid:not(.product-grid--home)
    .product-card {
    flex: 0 0 min(80vw, 280px);

    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* Product card: beneficios comerciales */
.product-card .product-payment {
  padding-right: 0;

  font-size: 0.90rem;
  line-height: 1.25;
}

.product-card .product-payment-copy {
  width: 100%;
}

.product-card .product-installments,
.product-card .product-transfer {
  gap: 8px;
}


.product-card .product-installments-price,
.product-card .product-transfer-price {
  font-weight: 850;
}
