/* Circuitos: catálogo limpio inspirado en la referencia aprobada. */
.hero-new,
.comotrabajamos,
.benefits-section,
.process-banner {
  display: none !important;
}

.catalogo {
  padding: 128px clamp(18px, 5vw, 64px) 80px;
  background: #faf6f0;
}

.circuitos-title,
.catalogo-header,
.circuitos-grid {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.circuitos-title {
  margin-bottom: 30px;
  text-align: center;
}

.circuitos-title :is(h1, h2) {
  margin: 0;
  color: var(--charcoal);
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.circuitos-title > span {
  width: 46px;
  height: 1px;
  display: block;
  margin: 14px auto 0;
  background: var(--terracota);
}

.catalogo-header {
  display: none;
}

.circuitos-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.circ-card,
.circ-card.featured,
.circ-card:hover {
  height: 300px;
  min-height: 300px;
  position: relative;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  grid-column: auto;
  gap: 20px;
  padding: 14px;
  border: 1px solid rgba(91, 65, 48, 0.07);
  border-radius: 17px;
  background: #fffdfa;
  box-shadow: 0 6px 20px rgba(87, 62, 47, 0.07);
  overflow: hidden;
  cursor: default;
  transform: none;
}

.circ-card:hover {
  box-shadow: 0 10px 26px rgba(87, 62, 47, 0.1);
  transform: translateY(-1px);
}

.circ-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  display: block;
  border: 0;
  border-radius: 13px;
  background: #f5f0e9;
  overflow: hidden;
}

.circ-carousel,
.circ-carousel-track,
.circ-carousel-slide {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.circ-carousel {
  background: #f5f0e9;
}

.circ-carousel-slide {
  padding: 0;
  background: #f5f0e9;
}

.circ-image-link {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.circ-img img,
.circ-carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  padding: 0;
  background: #f5f0e9;
  object-fit: contain;
  transform: none;
}

.circ-carousel-slide:first-child img {
  object-fit: cover;
}

.circ-card:hover .circ-img img {
  transform: none;
}

.circ-wish {
  display: none !important;
}

.circ-detail-link {
  display: none !important;
}

.circ-detail-link.detail-action {
  width: 100%;
  min-height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--terracota);
  border-radius: 6px;
  background: transparent;
  color: var(--terracota-dark);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.circ-detail-link.detail-action:hover {
  border-color: var(--terracota-dark);
  background: rgba(196, 113, 74, 0.08);
  color: var(--terracota-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.circ-detail-link.detail-action:active {
  transform: scale(0.96);
}

.circ-carousel-arrow {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(160, 84, 56, 0.18);
  background: rgba(255, 253, 250, 0.94);
  color: var(--terracota-dark);
  opacity: 1;
  pointer-events: auto;
  font-size: 17px;
  box-shadow: 0 3px 10px rgba(44, 40, 34, 0.13);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.circ-card:hover .circ-carousel-arrow,
.circ-card:focus-within .circ-carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.circ-carousel-arrow.prev {
  left: 8px;
}

.circ-carousel-arrow.next {
  right: 8px;
}

.circ-carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  transform: translateY(-50%);
  box-shadow: none;
}

.circ-carousel-dots {
  bottom: 8px;
  gap: 4px;
}

.circ-carousel-dot {
  width: 5px;
  height: 5px;
  background: rgba(160, 84, 56, 0.3);
}

.circ-carousel-dot.active {
  background: var(--terracota);
}

.circ-carousel-dot[aria-current="true"] {
  cursor: default;
  transform: scale(1.25);
}

.circ-body {
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 54px 0;
  background: transparent;
}

.circ-cat {
  display: none;
}

.circ-name::after,
.circ-custom,
.circ-btn,
.circ-masinfo-btn,
.circ-masinfo-panel {
  display: none;
}

.circ-name,
.circ-card.featured .circ-name {
  min-height: 0;
  display: -webkit-box;
  margin: 0;
  color: var(--charcoal);
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: pretty;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.circ-name a:hover {
  color: var(--terracota-dark);
}

.circ-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  color: #746a62;
  font-size: 12px;
  line-height: 1.35;
  text-wrap: pretty;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.circ-features {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  color: #746a62;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  line-height: 1.16;
  list-style: none;
  overflow: hidden;
  -webkit-line-clamp: unset;
}

.circ-features li {
  position: relative;
  display: block;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.circ-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--terracota-dark);
}

.circ-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  gap: 0;
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid rgba(44, 40, 34, 0.11);
}

.circ-footer > div:first-child,
.circ-footer .circ-precio-off {
  min-width: 0;
  display: block;
  text-align: left;
}

.circ-footer > div:first-child {
  padding-right: 18px;
}

.circ-footer .circ-precio-off {
  padding-left: 18px;
  border-left: 1px solid rgba(44, 40, 34, 0.1);
  color: var(--terracota);
}

.circ-precio-label,
.circ-footer .circ-precio-off small {
  min-height: 0;
  display: block;
  margin: 0 0 5px;
  color: #7c7168;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.circ-precio,
.circ-card.featured .circ-precio {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.circ-footer .circ-precio-off {
  font-family: "Playfair Display", serif;
  font-size: clamp(27px, 2.9vw, 31px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 0.92;
  white-space: nowrap;
}

.circ-precio {
  color: var(--charcoal);
}

.circ-footer .circ-precio-off small {
  color: #7c7168;
}

.circ-btns-row {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.circ-btns-row > * {
  width: 100%;
}

.circ-add {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--terracota);
  border-radius: 6px;
  background: var(--terracota);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.circ-add svg {
  display: none;
}

.circ-add:hover {
  border-color: var(--terracota-dark);
  background: var(--terracota-dark);
  transform: none;
}

.circ-add:focus-visible,
.circ-detail-link:focus-visible,
.circ-image-link:focus-visible,
.circ-name a:focus-visible {
  outline: 3px solid rgba(196, 113, 74, 0.42);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .catalogo {
    padding-right: 18px;
    padding-left: 18px;
  }

  .circuitos-grid {
    max-width: 720px;
    gap: 11px;
  }

  .circuitos-title {
    max-width: 720px;
  }

  .circ-card,
  .circ-card.featured,
  .circ-card:hover {
    height: 238px;
    min-height: 238px;
    grid-template-columns: 203px minmax(0, 1fr);
    gap: 15px;
    padding: 11px;
    border-radius: 14px;
  }

  .circ-img {
    border-radius: 11px;
  }

  .circ-body {
    padding: 5px 5px 45px 0;
  }

  .circ-name,
  .circ-card.featured .circ-name {
    font-size: clamp(20px, 3.1vw, 24px);
  }

  .circ-desc {
    margin-top: 5px;
    font-size: 10px;
    -webkit-line-clamp: 1;
  }

  .circ-features {
    display: block;
    margin-top: 5px;
    font-size: 8.5px;
    line-height: 1.08;
    -webkit-line-clamp: unset;
  }

  .circ-footer {
    padding-top: 7px;
  }

  .circ-footer > div:first-child {
    padding-right: 12px;
  }

  .circ-footer .circ-precio-off {
    padding-left: 12px;
  }

  .circ-precio,
  .circ-card.featured .circ-precio {
    font-size: clamp(17px, 2.5vw, 20px);
  }

  .circ-footer .circ-precio-off {
    font-size: clamp(21px, 3vw, 24px);
  }

  .circ-btns-row {
    right: 5px;
  }

  .circ-detail-link.detail-action {
    min-height: 35px;
    font-size: 10.5px;
  }

  .circ-add {
    min-height: 35px;
    font-size: 10.5px;
  }
}

@media (max-width: 620px) {
  .catalogo {
    padding: 118px 14px 56px;
  }

  .circuitos-title {
    margin-bottom: 22px;
  }

  .circuitos-title :is(h1, h2) {
    font-size: clamp(27px, 7.5vw, 30px);
  }

  .circuitos-title > span {
    width: 42px;
    margin-top: 11px;
  }

  .circuitos-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .circ-card,
  .circ-card.featured,
  .circ-card:hover {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 9px;
    border-radius: 14px;
    box-shadow: 0 4px 13px rgba(87, 62, 47, 0.065);
  }

  .circ-img {
    width: 100%;
    height: auto;
    align-self: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .circ-carousel-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    opacity: 1;
    pointer-events: auto;
    font-size: 22px;
  }

  .circ-carousel-arrow.prev {
    left: 6px;
  }

  .circ-carousel-arrow.next {
    right: 6px;
  }

  .circ-carousel-dots {
    bottom: 2px;
    display: flex;
    gap: 0;
  }

  .circ-body {
    height: auto;
    position: static;
    padding: 16px 6px 6px;
  }

  .circ-name,
  .circ-card.featured .circ-name {
    font-size: clamp(20px, 5.8vw, 23px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
  }

  .circ-desc {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .circ-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .circ-features[data-count="8"],
  .circ-features[data-count="9"] {
    font-size: 14px;
  }

  .circ-features li {
    padding-left: 11px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .circ-footer {
    width: 100%;
    height: auto;
    position: static;
    margin: 16px 0 0;
    padding: 13px 0 0;
    box-sizing: border-box;
  }

  .circ-footer > div:first-child {
    padding-right: 10px;
  }

  .circ-footer .circ-precio-off {
    padding-left: 12px;
  }

  .circ-precio-label,
  .circ-footer .circ-precio-off small {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.25;
  }

  .circ-precio,
  .circ-card.featured .circ-precio {
    font-size: clamp(19px, 5.3vw, 22px);
    letter-spacing: -0.035em;
  }

  .circ-footer .circ-precio-off {
    font-size: clamp(21px, 6vw, 25px);
    letter-spacing: -0.04em;
  }

  .circ-btns-row {
    position: static;
    grid-column: 1 / -1;
    gap: 6px;
    margin-top: 12px;
  }

  .circ-detail-link.detail-action {
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
  }

  .circ-add {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  .circ-carousel-dot {
    width: 44px;
    height: 44px;
    position: relative;
    background: transparent;
  }

  .circ-carousel-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    inset: 50% auto auto 50%;
    border-radius: 50%;
    background: rgba(160, 84, 56, 0.4);
    transform: translate(-50%, -50%);
  }

  .circ-carousel-dot.active {
    background: transparent;
  }

  .circ-carousel-dot.active::after {
    background: var(--terracota);
    transform: translate(-50%, -50%) scale(1.25);
  }

  .circ-carousel-dot[aria-current="true"] {
    transform: none;
  }
}

@media (max-width: 340px) {
  .catalogo {
    padding-right: 10px;
    padding-left: 10px;
  }

  .circ-card,
  .circ-card.featured,
  .circ-card:hover {
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 8px;
  }

  .circ-body {
    padding: 0;
  }

  .circ-name,
  .circ-card.featured .circ-name {
    font-size: 20px;
  }

  .circ-desc {
    font-size: 14px;
  }

  .circ-features {
    grid-template-columns: minmax(0, 1fr);
    font-size: 14px;
  }

  .circ-features[data-count="8"],
  .circ-features[data-count="9"] {
    font-size: 14px;
  }

  .circ-precio,
  .circ-card.featured .circ-precio {
    font-size: 19px;
  }

  .circ-footer .circ-precio-off {
    font-size: 21px;
  }

  .circ-footer {
    height: auto;
    margin-top: 14px;
    padding-bottom: 0;
  }

  .circ-add {
    min-height: 44px;
    font-size: 13px;
  }

  .circ-btns-row {
    right: 0;
    gap: 5px;
  }

  .circ-detail-link.detail-action {
    min-height: 44px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circ-card,
  .circ-card:hover,
  .circ-add,
  .circ-carousel-arrow {
    transition: none;
    transform: none;
  }
}

/* Catálogo de escritorio: misma jerarquía visual que los productos con precio de Descanso.
   Las tarjetas compactas de móvil se conservan en las reglas de hasta 620 px. */
@media (min-width: 621px) {
  .circuitos-title,
  .catalogo-header,
  .circuitos-grid {
    max-width: 1260px;
  }

  .circuitos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .circ-card,
  .circ-card.featured,
  .circ-card:hover {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(82, 63, 47, 0.1);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 38px rgba(78, 55, 37, 0.09);
    overflow: hidden;
    transform: none;
  }

  .circ-card:hover {
    box-shadow: 0 20px 48px rgba(78, 55, 37, 0.13);
    transform: translateY(-3px);
  }

  .circ-img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 0;
    background: #e7ded1;
  }

  .circ-carousel,
  .circ-carousel-track,
  .circ-carousel-slide {
    height: 100%;
    min-height: 0;
  }

  .circ-carousel,
  .circ-carousel-slide,
  .circ-img img,
  .circ-carousel-slide img {
    background: #e7ded1;
  }

  .circ-img img,
  .circ-carousel-slide img,
  .circ-carousel-slide:first-child img {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0;
    object-fit: cover;
  }

  .circ-body {
    min-height: 202px;
    height: auto;
    position: static;
    flex: 1;
    padding: 20px 20px 22px;
  }

  .circ-name,
  .circ-card.featured .circ-name {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .circ-features {
    display: none;
  }

  .circ-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(44, 40, 34, 0.12);
  }

  .circ-footer > div:first-child {
    padding-right: 0;
  }

  .circ-footer .circ-precio-off {
    padding-left: 0;
    border-left: 0;
  }

  .circ-precio-label,
  .circ-footer .circ-precio-off small {
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .circ-precio,
  .circ-card.featured .circ-precio,
  .circ-footer .circ-precio-off {
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
  }

  .circ-precio {
    color: var(--terracota);
  }

  .circ-footer .circ-precio-off {
    color: #5f806c;
  }

  .circ-btns-row {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
  }

  .circ-add,
  .circ-detail-link.detail-action {
    min-height: 42px;
    border-radius: 22px;
    font-size: 11px;
    font-weight: 700;
  }

  .circ-add {
    border: 0;
    background: var(--terracota);
  }

  .circ-add:hover {
    border-color: transparent;
    background: var(--terracota-dark);
    transform: none;
  }

  .circ-detail-link.detail-action {
    border-color: var(--charcoal);
    color: var(--charcoal);
  }

  .circ-detail-link.detail-action:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: #fff;
    transform: none;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .circuitos-grid {
    max-width: 720px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
