/* Circuitos · selector claro sobre paisaje, referencia de Nicolás 2026-09-02. */
body {
  background: #f3ece3;
}

.circuitos-showcase,
.circuitos-products-catalog {
  --circuit-paper: #f8f4ed;
  --circuit-paper-soft: #f2ece3;
  --circuit-ink: #28251f;
  --circuit-muted: #565048;
  --circuit-olive: #667047;
  --circuit-olive-soft: #afb183;
  --circuit-terracotta: #c6754f;
  --circuit-shadow: rgba(77, 60, 43, 0.16);
  color: var(--circuit-ink);
}

.circuitos-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(280px, 33vw, 390px) 0 clamp(24px, 3vw, 40px);
  background: #d8cfbf;
  scroll-margin-top: 104px;
}

.circuitos-showcase-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  background: #f3ece3;
}

.circuitos-showcase-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  object-position: center top;
}

.circuitos-showcase::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.07) 0%, rgba(244, 237, 226, 0.04) 35%, rgba(244, 237, 226, 0.27) 76%, rgba(243, 236, 227, 0.92) 100%),
    radial-gradient(ellipse 55% 22% at 50% 38%, rgba(248, 242, 232, 0.18), transparent 75%);
  content: "";
  pointer-events: none;
}

.circuitos-showcase::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(243, 236, 227, 0.68));
  content: "";
  pointer-events: none;
}

.circuitos-showcase-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 0 auto;
}

.circuitos-choice-head {
  display: block;
  max-width: none;
  margin: 0 auto clamp(38px, 5.6vw, 61px);
  padding: 0 20px;
  text-align: center;
}

.circuitos-choice-kicker {
  display: none;
}

.circuitos-choice-head h1 {
  max-width: none;
  margin: 0;
  color: #fff8ed;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 6.1vw, 63px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(24, 29, 18, 0.85), 0 5px 18px rgba(24, 29, 18, 0.65);
  white-space: nowrap;
}

.circuitos-choice-head h1 > span {
  display: inline;
}

.circuitos-choice-head h1::after {
  display: block;
  width: clamp(38px, 5.2vw, 54px);
  height: 2px;
  margin: clamp(18px, 2.6vw, 26px) auto 0;
  border-radius: 999px;
  background: var(--circuit-terracotta);
  content: "";
}

.circuitos-modes {
  display: grid;
  width: min(86.5vw, 960px);
  max-width: 960px;
  margin: 0 auto;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.circuitos-mode,
.circuitos-mode.circuitos-mode-products,
.circuitos-mode.circuitos-mode-design,
.circuitos-mode:hover,
.circuitos-mode.active {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 0.55;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 14% 8% 14%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10% / 5.5%;
  appearance: none;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.7), transparent 46%),
    rgba(249, 246, 239, 0.97);
  color: var(--circuit-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 clamp(10px, 2.2vw, 22px) clamp(22px, 4.5vw, 44px) var(--circuit-shadow);
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}

.circuitos-mode:hover {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 clamp(14px, 2.7vw, 28px) clamp(28px, 5.4vw, 54px) rgba(77, 60, 43, 0.22);
  transform: translateY(-5px);
}

.circuitos-mode:active {
  transform: translateY(1px) scale(0.988);
}

.circuitos-mode.active {
  border-color: color-mix(in srgb, var(--mode-accent) 62%, white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 0 0 1px color-mix(in srgb, var(--mode-accent) 46%, transparent),
    0 clamp(12px, 2.4vw, 25px) clamp(24px, 5vw, 50px) rgba(77, 60, 43, 0.2);
}

.circuitos-mode-project {
  --mode-accent: #737c52;
  --mode-button-fill: #667047;
}

.circuitos-mode-products {
  --mode-accent: #c6754f;
  --mode-button-fill: #ad6040;
}

.circuitos-mode-design {
  --mode-accent: #4d4941;
  --mode-button-fill: #46433b;
}

.circuitos-mode-icon {
  display: grid;
  width: 48cqw;
  height: 48cqw;
  flex: 0 0 auto;
  margin: 0 auto 16cqw;
  place-items: center;
  border-radius: 50%;
  background: #e8e8d5;
  color: #53603b;
}

.circuitos-mode-products .circuitos-mode-icon {
  background: #f4dfd2;
  color: #bd6844;
}

.circuitos-mode-design .circuitos-mode-icon {
  background: #ece6dc;
  color: #3f3b35;
}

.circuitos-mode-icon svg {
  width: 57%;
  height: 57%;
}

.circuitos-mode-content {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
}

.circuitos-mode strong,
.circuitos-mode-products strong,
.circuitos-mode-design strong {
  display: block;
  margin: 0;
  color: #292720;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(11.5px, 13.225cqw, 33.35px);
  font-weight: 620;
  letter-spacing: -0.038em;
  line-height: 1.18;
  text-transform: uppercase;
}

.circuitos-mode strong > span {
  display: block;
}

.circuitos-mode-project strong > span:last-child {
  color: #59653c;
}

.circuitos-mode small {
  display: block;
  min-height: 29cqw;
  max-width: 94%;
  margin: 17cqw auto 0;
  color: #3f3b35;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(8.05px, 7.475cqw, 18.4px);
  font-weight: 430;
  letter-spacing: -0.012em;
  line-height: 1.52;
  text-wrap: pretty;
}

.circuitos-mode-rule {
  display: none;
}

.circuitos-mode-cta,
.circuitos-mode-products .circuitos-mode-cta,
.circuitos-mode-design .circuitos-mode-cta,
.circuitos-mode:hover .circuitos-mode-cta,
.circuitos-mode.active .circuitos-mode-cta {
  display: inline-flex;
  width: 100%;
  min-height: clamp(24px, 18.5cqw, 52px);
  margin: auto auto 0;
  align-items: center;
  justify-content: center;
  gap: 7cqw;
  padding: 2.5cqw 5cqw;
  border: 1.5px solid var(--mode-button-fill);
  border-radius: 999px;
  background: var(--mode-button-fill);
  color: #fffdf8;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(6.9px, 5.9225cqw, 16.1px);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circuitos-mode:hover .circuitos-mode-cta {
  background: color-mix(in srgb, var(--mode-button-fill) 90%, #161410);
  border-color: color-mix(in srgb, var(--mode-button-fill) 90%, #161410);
}

.circuitos-mode-cta b {
  display: inline-grid;
  width: 8.5cqw;
  height: 8.5cqw;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  font-size: clamp(10px, 7.5cqw, 22px);
  font-weight: 320;
  line-height: 1;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circuitos-mode:hover .circuitos-mode-cta b {
  transform: translateX(2px);
}

.circuitos-mode:focus-visible,
.circuitos-mode-design:focus-visible {
  outline: 3px solid #8f4e32;
  outline-offset: 4px;
}

.circuitos-project-panel {
  margin: clamp(46px, 7vw, 78px) 20px 0;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: clamp(24px, 3vw, 34px);
  background: rgba(248, 244, 237, 0.96);
  box-shadow: 0 22px 52px rgba(73, 56, 39, 0.16);
}

.catalogo.circuitos-products-catalog {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(28px, 3vw, 40px) clamp(18px, 4.8vw, 52px) 80px;
  background:
    radial-gradient(ellipse 34% 14% at 9% 0%, rgba(255, 255, 255, 0.58), transparent 75%),
    linear-gradient(180deg, #f3ece3 0%, #f5efe7 100%);
  scroll-margin-top: 104px;
}

.circuitos-products-catalog .circuitos-title {
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.circuitos-products-catalog .circuitos-title :is(h1, h2) {
  color: #211f1a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1;
}

.circuitos-products-catalog .circuitos-title > span {
  width: clamp(38px, 5vw, 52px);
  height: 2px;
  margin-top: clamp(12px, 1.8vw, 18px);
  border-radius: 999px;
  background: var(--circuit-terracotta);
}

.circuitos-products-catalog .category-switch {
  display: grid;
  width: min(100%, 650px);
  max-width: 650px;
  min-height: 60px;
  margin: 0 auto 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(235, 224, 212, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    0 10px 28px rgba(81, 63, 45, 0.09);
}

.circuitos-products-catalog .category-switch button,
.circuitos-products-catalog .category-switch button[aria-selected="true"] {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #342f28;
  box-shadow: none;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circuitos-products-catalog .category-switch button[aria-selected="true"] {
  background: #aeb080;
  color: #fffdf8;
  box-shadow: 0 7px 18px rgba(82, 84, 48, 0.19);
}

.circuitos-products-catalog .category-switch button:active {
  transform: scale(0.985);
}

.circuitos-products-catalog .category-switch button:focus-visible {
  outline: 2px solid #5d633e;
  outline-offset: 2px;
}

.circuitos-products-catalog .category-switch svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.cw-fab {
  width: clamp(58px, 7.4vw, 74px);
  height: clamp(58px, 7.4vw, 74px);
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(16px, 3vw, 32px);
  background: #c96837;
  box-shadow: 0 16px 35px rgba(150, 76, 35, 0.31);
}

.cw-fab svg {
  width: clamp(27px, 3.5vw, 35px);
  height: clamp(27px, 3.5vw, 35px);
}

.cw-badge {
  top: -4px;
  right: -4px;
  min-width: clamp(22px, 2.8vw, 28px);
  height: clamp(22px, 2.8vw, 28px);
  border-radius: 999px;
  background: #24221e;
  font-size: clamp(10px, 1.3vw, 13px);
}

@media (max-width: 900px) {
  .circuitos-showcase {
    padding-top: clamp(225px, 34vw, 285px);
  }

  .circuitos-project-panel {
    margin-inline: 16px;
  }
}

@media (max-width: 700px) {
  .circuitos-showcase {
    padding: clamp(174px, 46vw, 236px) 0 clamp(20px, 6vw, 26px);
    scroll-margin-top: 102px;
  }

  .circuitos-showcase-backdrop img {
    height: auto;
    object-position: center top;
  }

  .circuitos-showcase::before {
    background:
      linear-gradient(180deg, rgba(249, 245, 237, 0.05) 0%, rgba(247, 240, 230, 0.1) 32%, rgba(243, 236, 227, 0.34) 70%, rgba(243, 236, 227, 0.93) 100%),
      radial-gradient(ellipse 70% 19% at 50% 35%, rgba(250, 246, 238, 0.18), transparent 78%);
  }

  .circuitos-choice-head {
    margin-bottom: clamp(24px, 7.7vw, 40px);
    padding: 0 16px;
  }

  .circuitos-choice-head h1 {
    font-size: clamp(29px, 7.2vw, 40px);
    line-height: 1.02;
  }

  .circuitos-choice-head h1::after {
    width: clamp(30px, 9vw, 42px);
    margin-top: clamp(12px, 4.2vw, 18px);
  }

  .circuitos-modes {
    width: 91.5vw;
    max-width: none;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(7px, 2.3vw, 12px);
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .circuitos-mode,
  .circuitos-mode.circuitos-mode-products,
  .circuitos-mode.circuitos-mode-design {
    aspect-ratio: 0.53;
    border-radius: 11% / 6%;
    padding: 14% 7% 13%;
  }

  .circuitos-mode:hover {
    transform: none;
  }

  .circuitos-mode-icon {
    width: 47cqw;
    height: 47cqw;
    margin-bottom: 14cqw;
  }

  .circuitos-mode strong,
  .circuitos-mode-products strong,
  .circuitos-mode-design strong {
    font-size: calc(clamp(10.35px, 12.65cqw, 14.95px) + 1.15px);
  }

  .circuitos-mode small {
    min-height: 32cqw;
    max-width: 100%;
    margin-top: 14cqw;
    font-size: calc(clamp(7.36px, 7.0725cqw, 9.775px) + 1.15px);
    line-height: 1.43;
  }

  .circuitos-mode-cta,
  .circuitos-mode-products .circuitos-mode-cta,
  .circuitos-mode-design .circuitos-mode-cta {
    min-height: clamp(24px, 20cqw, 32px);
    gap: 4cqw;
    padding: 2cqw 3cqw;
    font-size: calc(clamp(6.325px, 5.98cqw, 8.05px) + 1.15px);
  }

  .circuitos-mode:hover .circuitos-mode-cta,
  .circuitos-mode.active .circuitos-mode-cta {
    font-size: calc(clamp(6.9px, 5.9225cqw, 16.1px) + 1.15px);
  }

  .circuitos-mode-cta b {
    width: 9cqw;
    height: 9cqw;
    font-size: clamp(9px, 7.4cqw, 12px);
  }

  .circuitos-project-panel {
    margin: 38px 10px 0;
    padding: 24px 12px;
    border-radius: 20px;
  }

  .catalogo.circuitos-products-catalog {
    padding: clamp(26px, 7vw, 32px) 14px 72px;
    scroll-margin-top: 102px;
  }

  .circuitos-products-catalog .circuitos-title {
    margin-bottom: 18px;
  }

  .circuitos-products-catalog .circuitos-title :is(h1, h2) {
    font-size: clamp(31px, 8.6vw, 38px);
  }

  .circuitos-products-catalog .circuitos-title > span {
    width: 38px;
    margin-top: 12px;
  }

  .circuitos-products-catalog .category-switch {
    width: min(100%, 520px);
    min-height: 48px;
    margin-bottom: 14px;
    gap: 3px;
    padding: 4px;
  }

  .circuitos-products-catalog .category-switch button,
  .circuitos-products-catalog .category-switch button[aria-selected="true"] {
    min-height: 40px;
    gap: 6px;
    padding: 0 5px;
    font-size: clamp(9px, 2.65vw, 12px);
  }

  .circuitos-products-catalog .category-switch svg {
    width: clamp(17px, 5vw, 22px);
    height: clamp(17px, 5vw, 22px);
  }
}

@media (max-width: 350px) {
  .circuitos-mode,
  .circuitos-mode.circuitos-mode-products,
  .circuitos-mode.circuitos-mode-design {
    aspect-ratio: 0.47;
  }

  .circuitos-mode small {
    font-size: 8.28px;
  }

  .circuitos-mode-cta,
  .circuitos-mode-products .circuitos-mode-cta,
  .circuitos-mode-design .circuitos-mode-cta {
    font-size: 7.13px;
  }

  .circuitos-products-catalog .category-switch button,
  .circuitos-products-catalog .category-switch button[aria-selected="true"] {
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circuitos-mode,
  .circuitos-mode-cta,
  .circuitos-mode-cta b,
  .circuitos-products-catalog .category-switch button {
    transition: none;
  }
}

/* La referencia conserva una sola columna de productos en tablet. */
@media (min-width: 621px) and (max-width: 1100px) {
  .circuitos-products-catalog .circuitos-grid {
    width: 100%;
    max-width: 898px;
    grid-template-columns: minmax(0, 1fr);
  }

  .circuitos-products-catalog .circ-card,
  .circuitos-products-catalog .circ-card.featured,
  .circuitos-products-catalog .circ-card:hover {
    border-radius: clamp(18px, 2.8vw, 28px);
  }
}
