:root {
  color-scheme: light;
  --ink: #172d29;
  --muted: #52625d;
  --green: #173f37;
  --paper: #f8f9f6;
  --line: #dce4df;
  --hero-background: #f2f5ef;
  --hero-photo: url('imagenes/portada-solar.webp');
  --shell: 75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

:root[data-portada="2"] {
  --hero-background: #f6f3ee;
  --hero-photo: url('imagenes/portada-cocina.webp');
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9c4a18;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1;
  padding: .65rem 1rem;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(var(--shell), calc(100% - 3rem));
  margin-inline: auto;
}

.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-content,
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 3vw, 2rem);
}

.header-content {
  min-height: 4.6rem;
  justify-content: space-between;
}

.header a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.header a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .28em;
}

.brand {
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  font-weight: 750;
  line-height: 1.2;
}

.header nav {
  flex-shrink: 0;
  font-size: .9rem;
  font-weight: 650;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--hero-background);
}

.hero-image {
  aspect-ratio: 7 / 5;
  border-radius: 1rem;
  background: #e1e9df var(--hero-photo) center / cover no-repeat;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 5vw, 5rem);
}

h1,
h2 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -.045em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.85rem, 5.15vw, 4.75rem);
  line-height: 1.03;
}

.hero p {
  max-width: 36ch;
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-weight: 700;
  text-decoration: none;
}

.button-outline {
  gap: .5rem;
  border-color: #9bafa4;
  background: #fff;
  color: var(--green);
}

.button-outline:hover {
  background: #e5eee8;
}

.whatsapp-icon {
  display: none;
}

[data-portada="2"] .whatsapp-icon {
  display: block;
  flex: none;
}

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

.button-dark:hover {
  background: #28574c;
}

.button-dark:focus-visible {
  outline-color: #9c4a18;
}

.image-clip {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-clip img {
  position: absolute;
  top: 0;
  inset-inline: 0;
  display: block;
  width: 100%;
  height: auto;
}

.mattress {
  aspect-ratio: 1024 / 699;
}

.mattress img {
  transform: translateY(-15.5%);
}

.products,
.orders {
  scroll-margin-top: 1rem;
}

.products {
  padding-block: clamp(2.9rem, 6vw, 5rem) 2rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-bottom: 1.55rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.section-heading span,
.image-note {
  color: var(--muted);
  font-size: .875rem;
}

.catalog-filters:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 18rem);
  gap: .8rem 1rem;
}

.catalog-filters label {
  display: grid;
  gap: .35rem;
  font-size: .875rem;
  font-weight: 650;
}

.catalog-filters input,
.catalog-filters select {
  min-width: 0;
  min-height: 2.9rem;
  padding: .65rem .8rem;
  border: 1px solid #bac8c0;
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
}

.catalog-filters select {
  appearance: none;
  padding-right: 2.4rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--green) 50%) right 1.1rem center / .32rem .32rem no-repeat,
    linear-gradient(135deg, var(--green) 50%, transparent 50%) right .78rem center / .32rem .32rem no-repeat,
    #fff;
}

.catalog-filters :is(input, select):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.catalog-results {
  margin: .8rem 0 1.1rem;
  color: var(--muted);
  font-size: .875rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
}

.product:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.product-photo {
  display: grid;
  align-items: center;
  justify-items: center;
  aspect-ratio: 1024 / 699;
}

.photo-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-photo {
  background: #faf3e9;
}

.tv {
  aspect-ratio: 1024 / 512;
}

.tv img {
  transform: translateY(-14.3%);
}

.flyer-crop img {
  width: var(--flyer-width, 100%);
  inset-inline-start: var(--flyer-left, 0);
  inset-inline-end: auto;
  transform: translateY(var(--flyer-top));
}

.milexus-photo {
  background: #e1ddd5;
}

.milexus {
  width: 88%;
  aspect-ratio: 700 / 545;
  --flyer-width: 160.3%;
  --flyer-left: -2.9%;
  --flyer-top: -28%;
}

.royal-photo {
  background: #ede3d3;
}

.royal {
  width: 45%;
  aspect-ratio: 550 / 815;
  --flyer-width: 204%;
  --flyer-left: -5.45%;
  --flyer-top: -22.4%;
}

.jmd-photo {
  background: #221f20;
}

.jmd {
  aspect-ratio: 941 / 644;
  --flyer-top: -27.1%;
}

.ecoflow-photo {
  background: #07192a;
}

.ecoflow {
  width: 63%;
  aspect-ratio: 600 / 625;
  --flyer-width: 187%;
  --flyer-left: -7.5%;
  --flyer-top: -22.5%;
}

.rudenkov-photo {
  background: #cfe5f5;
}

.rudenkov {
  width: 79%;
  aspect-ratio: 766 / 653;
  --flyer-width: 146.5%;
  --flyer-left: -23.5%;
  --flyer-top: -29%;
}

.longi-photo {
  background: #dbe5da;
}

.longi {
  width: 76%;
  aspect-ratio: 666 / 591;
  --flyer-width: 180%;
  --flyer-left: -3%;
  --flyer-top: -27.3%;
}

.cookware-photo {
  background: #f4e6d4;
}

.cookware {
  aspect-ratio: 1024 / 645;
  --flyer-top: -22.8%;
}

.miramar-photo {
  background: #eadcca;
}

.miramar {
  width: 60%;
  aspect-ratio: 525 / 573;
  --flyer-width: 135.05%;
  --flyer-left: -24.76%;
  --flyer-top: -29.31%;
}

.washer-photo {
  background: #cbd7db;
}

.washer {
  width: 64%;
  aspect-ratio: 925 / 990;
  --flyer-width: 121.3%;
  --flyer-left: -10.6%;
  --flyer-top: -16.65%;
}

.pot-photo {
  background: #315456;
}

.pot {
  aspect-ratio: 941 / 645;
  --flyer-top: -24.46%;
}

.fryer-photo {
  background: #06333f;
}

.fryer {
  width: 61%;
  aspect-ratio: 608 / 680;
  --flyer-width: 184.54%;
  --flyer-left: -84.54%;
  --flyer-top: -28.82%;
}

.delta-pro-photo {
  background: #10232d;
}

.delta-pro {
  width: 87%;
  aspect-ratio: 972 / 675;
  --flyer-width: 115.43%;
  --flyer-left: -7.72%;
  --flyer-top: -21.25%;
}

.infinisolar-photo {
  background: #343331;
}

.infinisolar {
  width: 61%;
  aspect-ratio: 580 / 628;
  --flyer-width: 176.55%;
  --flyer-top: -18.6%;
}

.nevera-rudenkov-photo {
  background: #0d2b48;
}

.nevera-rudenkov {
  width: 31%;
  aspect-ratio: 456 / 978;
  --flyer-width: 246.05%;
  --flyer-left: -141.23%;
  --flyer-top: -25.68%;
}

.olla-presion-saco-photo {
  background: #ded1ba;
}

.olla-presion-saco {
  width: 96%;
  aspect-ratio: 941 / 665;
  --flyer-top: -26.32%;
}

.ventilador-industrial-royal-photo {
  background: #edf3f7;
}

.ventilador-industrial-royal {
  width: 95%;
  aspect-ratio: 1122 / 800;
  --flyer-top: -21.11%;
}

.ventilador-techo-photo {
  background: #eee9e0;
}

.ventilador-techo {
  width: 97%;
  aspect-ratio: 1024 / 716;
  --flyer-top: -17.58%;
}

.ecoflow-delta-3-max-photo {
  background: #e2e4e3;
}

.ecoflow-delta-3-max {
  width: 59%;
  aspect-ratio: 512 / 589;
  --flyer-width: 200%;
  --flyer-left: -100%;
  --flyer-top: -13.80%;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.category {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}

.product-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .9rem;
}

.product-title h3,
.price {
  margin: 0;
  font-size: clamp(1.16rem, 1.7vw, 1.4rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.price {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.description {
  flex: 1;
  margin: .65rem 0 1.05rem;
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  position: relative;
  flex: 0 0 1rem;
  height: 1rem;
}

summary span::before,
summary span::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: .85rem;
  height: 2px;
  background: currentColor;
  content: "";
}

summary span::after {
  transform: rotate(90deg);
}

details[open] summary span::after {
  display: none;
}

details ul {
  margin: .15rem 0 .3rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

details li + li {
  margin-top: .35rem;
}

.product-contact {
  display: inline-flex;
  align-self: flex-start;
  min-height: 2.75rem;
  align-items: center;
  margin-top: .55rem;
  padding: .55rem .9rem;
  border: 1px solid #cadcd2;
  border-radius: .6rem;
  background: #edf5f0;
  color: var(--green);
  font-weight: 680;
  text-decoration: none;
}

.product-contact:hover {
  background: #e0eee6;
}

.image-note {
  margin: .85rem 0 0;
}

.orders {
  margin-block: 1.4rem 3rem;
  padding: clamp(1.4rem, 5vw, 2.7rem);
  border-radius: 1.2rem;
  background: #e5eee8;
}

.orders p {
  max-width: 55ch;
  margin: .65rem 0 0;
  color: var(--muted);
}

.orders .button {
  margin-top: 1rem;
}

.phone {
  font-weight: 650;
  white-space: nowrap;
  text-underline-offset: .15em;
}

@media (max-width: 68rem) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding-block: 2.25rem 1.5rem;
  }

  .hero-image {
    aspect-ratio: 3 / 2;
  }

  h1 {
    font-size: clamp(2.55rem, 10vw, 3.7rem);
  }
}

@media (max-width: 35rem) {
  .catalog-filters:not([hidden]),
  .products-grid {
    grid-template-columns: 1fr;
  }
}

[data-portada="2"] .header {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  margin-top: 1rem;
  border: 0;
  background: transparent;
}

[data-portada="2"] .header-content {
  min-height: 3.8rem;
  padding: .3rem clamp(.8rem, 2.5vw, 1.6rem);
  border: 1px solid #ffffffc7;
  border-radius: .85rem;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 .4rem 1.6rem rgb(23 45 41 / 12%);
}

[data-portada="2"] .hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

[data-portada="2"] .hero-image {
  order: -1;
  min-height: clamp(24rem, 38vw, 34rem);
  aspect-ratio: auto;
  border-radius: 0;
  background-position: center 54%;
}

[data-portada="2"] .hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: .95rem clamp(2rem, 7vw, 6rem);
  width: min(var(--shell), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

[data-portada="2"] h1 {
  grid-row: span 2;
  max-width: 18ch;
  font-size: clamp(2.45rem, 4.2vw, 3.75rem);
  text-wrap: balance;
}

[data-portada="2"] .hero p {
  align-self: end;
  margin: 0;
}

@media (max-width: 46rem) {
  [data-portada="2"] .hero-image {
    min-height: clamp(17.5rem, 64vw, 25rem);
  }

  [data-portada="2"] .hero-copy {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }

  [data-portada="2"] h1 {
    grid-row: auto;
  }
}
