:root {
  --ink: #14110f;
  --charcoal: #25211d;
  --muted: #756c62;
  --soft: #a99d90;
  --line: #ded5c9;
  --paper: #f8f4ed;
  --surface: #fffdf8;
  --porcelain: #fbfaf6;
  --sage: #647567;
  --moss: #323a30;
  --clay: #9d523a;
  --gold: #b99258;
  --blue: #dbe8e8;
  --rose: #ead3c8;
  --shadow-soft: 0 24px 60px rgba(20, 17, 15, 0.11);
  --shadow-card: 0 18px 34px rgba(20, 17, 15, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input {
  font: inherit;
}

button,
a,
select {
  min-height: 44px;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px) 14px clamp(172px, 14vw, 214px);
  border-bottom: 1px solid rgba(222, 213, 201, 0.72);
  background: rgba(248, 244, 237, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  position: absolute;
  top: 10px;
  left: clamp(18px, 4vw, 64px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(222, 213, 201, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 36px rgba(20, 17, 15, 0.16);
}

.brand img {
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 48px);
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: transform 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-action,
.button,
.site-footer a,
.product-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 760;
}

.header-action {
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(20, 17, 15, 0.18);
}

.eyebrow,
.filter-label {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.4vw, 7.4rem);
  line-height: 0.88;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.4vw, 4.8rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.button {
  min-width: 150px;
  padding: 0 20px;
  border: 1px solid var(--ink);
}

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

.button.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.catalog-hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 71px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 64px);
}

.catalog-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-image:  url("imagenes/muro-galeria-cemento-01.jpg");
  background-position: center;
  background-size: cover;
}

.catalog-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.18), rgba(20, 17, 15, 0.46));
  content: "";
}

.catalog-hero .eyebrow {
  color: #dec28e;
}

.catalog-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.catalog-hero .button.light {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.catalog-hero .button.dark {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.hero-copy p,
.page-hero p {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 0.72fr;
  grid-template-rows: 1fr 0.72fr;
  gap: 18px;
  min-height: 560px;
  padding: 28px;
  border: 1px solid rgba(222, 213, 201, 0.86);
  background: linear-gradient(180deg, #fdfbf6 0%, #ece3d7 100%);
  box-shadow: var(--shadow-soft);
}

.gallery-wall {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  background: #ebe1d5;
  overflow: hidden;
}

.gallery-wall::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
}

.gallery-wall span {
  display: block;
  width: 56%;
  aspect-ratio: 5 / 7;
  border: 10px solid #171311;
  background: radial-gradient(circle at 32% 28%, #f2c36f 0 12%, transparent 13%), linear-gradient(138deg, #15110f 0 22%, #9d523a 23% 48%, #f1e7d9 49% 66%, #647567 67% 100%);
  box-shadow: 0 20px 28px rgba(20, 17, 15, 0.22);
}

.gallery-wall.large {
  grid-row: span 2;
  background-image: url("imagenes/sala1.jpg");
  background-position: center;
  background-size: cover;
}

.gallery-wall.large::before {
  background: linear-gradient(180deg, transparent 0 68%, rgba(20, 17, 15, 0.18) 100%);
}

.gallery-wall.large span {
  display: none;
}

.gallery-wall.tall {
  background-image: url("imagenes/sala2.jpg");
  background-position: center;
  background-size: cover;
}

.gallery-wall.wide {
  background-image: url("imagenes/sala3.jpg");
  background-position: center;
  background-size: cover;
}

.gallery-wall.tall span,
.gallery-wall.wide span {
  display: none;
}


.catalog-image-strip {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1fr;
  gap: 14px;
  padding: clamp(28px, 5vw, 72px);
  background: #14110f;
}

.catalog-image-strip img {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 46vw;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.catalog-image-strip img:nth-child(2) {
  margin-top: 42px;
}
.catalog-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 280px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(248, 244, 237, 0.9), rgba(248, 244, 237, 0.78)), url("imagenes/muro-galeria-cemento-02.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 26px;
  padding: 24px;
  border: 1px solid rgba(222, 213, 201, 0.84);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(12px);
}

.filter-panel h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.filter-group {
  display: grid;
  gap: 10px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.segmented button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.segmented button:hover,
.segmented button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.catalog-facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.catalog-facts div {
  display: grid;
  gap: 4px;
  padding: 17px;
  background: #fff;
}

.catalog-facts strong {
  color: var(--moss);
}

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

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.toolbar p {
  margin-bottom: 0;
}

.sort-control {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-control select {
  width: 174px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(222, 213, 201, 0.9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-visual {
  min-height: 250px;
  padding: 22px;
  background: linear-gradient(135deg, var(--room-a), var(--room-b));
}


.product-photo {
  padding: 0;
  background: #14110f;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.room-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 206px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.22);
}

.room-scene::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  background: rgba(255, 255, 255, 0.46);
  content: "";
}

.frame {
  position: relative;
  z-index: 1;
  width: var(--frame-w);
  aspect-ratio: var(--ratio);
  padding: 8px;
  background: #15110f;
  box-shadow: 0 18px 24px rgba(20, 17, 15, 0.25);
}

.art {
  width: 100%;
  height: 100%;
  background: var(--art);
}

.triptych {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 92%;
  aspect-ratio: 1.65;
}

.triptych .frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.shelf {
  position: absolute;
  right: 7%;
  bottom: 18px;
  width: 24%;
  height: 5px;
  background: rgba(20, 17, 15, 0.28);
}

.product-copy {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span,
.values-row span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 740;
}

.product-copy h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.product-copy p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.price {
  font-size: 1.12rem;
  font-weight: 850;
}

.product-bottom a {
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  background: var(--moss);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: #fff;
}

.page-hero {
  background: linear-gradient(90deg, var(--paper) 0%, #fdfbf7 100%);
}

.page-hero.personal-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(20, 17, 15, 0.76), rgba(20, 17, 15, 0.28)), url("imagenes/muro-galeria-cemento-03.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero.personal-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.16), rgba(20, 17, 15, 0.42));
  content: "";
}

.page-hero.personal-hero .eyebrow {
  color: #dec28e;
}

.page-hero.personal-hero p {
  color: rgba(255, 255, 255, 0.84);
}


.page-hero.advice-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(20, 17, 15, 0.78), rgba(20, 17, 15, 0.38)), url("imagenes/pared-ladrillo-galeria-color.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero.advice-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.18), rgba(20, 17, 15, 0.46));
  content: "";
}

.page-hero.advice-hero .eyebrow {
  color: #dec28e;
}

.page-hero.advice-hero p {
  color: rgba(255, 255, 255, 0.84);
}
.personal-hero h1,
.advice-hero h1 {
  max-width: 12ch;
}

.composition-preview,
.advice-panel {
  min-height: 480px;
  border: 1px solid var(--line);
  background: #fdfbf6;
  box-shadow: var(--shadow-soft);
}

.composition-preview {
  position: relative;
  overflow: hidden;
}

.composition-preview::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 70%, rgba(185, 146, 88, 0.18) 70% 100%);
  content: "";
}

.preview-frame {
  position: absolute;
  border: 10px solid #15110f;
  box-shadow: 0 18px 26px rgba(20, 17, 15, 0.24);
}

.preview-frame.one {
  top: 14%;
  left: 15%;
  width: 34%;
  aspect-ratio: 5 / 7;
  background: linear-gradient(145deg, #9d523a, #f2dfc9 48%, #647567);
}

.preview-frame.two {
  top: 21%;
  right: 14%;
  width: 29%;
  aspect-ratio: 5 / 7;
  background: linear-gradient(180deg, #dbe8e8 0 40%, #b99258 41% 56%, #25211d 57% 100%);
}

.preview-frame.three {
  right: 18%;
  bottom: 16%;
  width: 46%;
  aspect-ratio: 10 / 7;
  background: radial-gradient(circle at 50% 36%, #fff0bd 0 15%, transparent 16%), linear-gradient(180deg, #c7b18a, #323a30);
}


.interior-gallery,
.interior-showcase {
  display: grid;
  gap: 14px;
}

.interior-gallery img,
.interior-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-gallery {
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 1fr 1fr;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
}

.feature-gallery img {
  min-height: 0;
  border-radius: 6px;
}

.feature-gallery img:first-child {
  grid-row: span 2;
}

.interior-showcase {
  grid-template-columns: 1.1fr 0.9fr 1fr;
  padding: clamp(28px, 5vw, 72px);
  background: #efe7dc;
}

.interior-showcase img {
  min-height: 360px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.interior-showcase img:nth-child(2) {
  margin-top: 42px;
}
.process-section,
.size-section,
.guidance-section,
.promise-section {
  padding: clamp(54px, 7vw, 100px) clamp(18px, 5vw, 72px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.process-grid,
.guidance-grid,
.size-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.process-grid article,
.guidance-grid article,
.size-grid article {
  min-height: 230px;
  padding: 28px;
  background: #fffdf8;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.size-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  color: #fff;
  background-image: linear-gradient(90deg, rgba(20, 17, 15, 0.84), rgba(20, 17, 15, 0.58)), url("imagenes/muro-galeria-cemento-02.jpg");
  background-position: center;
  background-size: cover;
}

.size-section .eyebrow {
  color: #dec28e;
}

.size-section .size-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.size-section .size-copy h2 {
  color: #fff;
}

.size-section .size-grid article {
  color: var(--ink);
}

.size-grid article {
  min-height: 160px;
}

.size-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.size-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.advice-panel {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.advice-panel p {
  color: var(--ink);
  font-weight: 760;
}

.advice-panel ol {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.promise-section {
  max-width: 100%;
  color: #fff;
  background: var(--ink);
}

.promise-section h2,
.promise-section p {
  max-width: 900px;
}

.promise-section .eyebrow {
  color: var(--gold);
}

.promise-section p {
  color: #d9d1c8;
}

.promise-section .button {
  margin-top: 14px;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.site-footer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.site-footer a {
  border: 1px solid var(--line);
  padding: 0 14px;
}

.detail-button,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  color: #fff;
  background: var(--moss);
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.detail-button:hover,
.cart-button:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

body.modal-open {
  overflow: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.detail-modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.62);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 34px));
  overflow: hidden;
  border: 1px solid rgba(222, 213, 201, 0.88);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(20, 17, 15, 0.34);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  min-height: 44px;
  border: 1px solid rgba(222, 213, 201, 0.86);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.modal-image {
  min-height: 540px;
  background: #14110f;
}

.modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  overflow-y: auto;
}

.modal-content h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.modal-content p {
  margin-bottom: 0;
}

.detail-sizes {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.size-options {
  display: grid;
  gap: 9px;
}

.size-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.size-option span {
  color: var(--muted);
  font-weight: 760;
}

.size-option.active,
.size-option:hover {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.size-option.active span,
.size-option:hover span {
  color: rgba(255, 255, 255, 0.78);
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

.cart-button {
  min-height: 48px;
  padding: 0 18px;
}

.cart-toast {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: 24px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: var(--moss);
  box-shadow: 0 18px 42px rgba(20, 17, 15, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    min-height: 78px;
    padding: 10px 16px 10px 140px;
  }

  .brand {
    top: 8px;
    left: 16px;
    padding: 7px;
  }

  .brand img {
    max-width: 104px;
    max-height: 104px;
  }

  .main-nav {
    grid-column: 1;
    justify-content: start;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    font-size: 0.88rem;
  }

  .main-nav a {
    min-height: 36px;
    white-space: nowrap;
  }

  .header-action {
    align-self: center;
    min-height: 40px;
    padding-inline: 18px;
  }

  .catalog-hero,
  .page-hero,
  .catalog-layout,
  .section-intro,
  .size-section {
    grid-template-columns: 1fr;
  }

  .catalog-hero,
  .page-hero {
    min-height: auto;
  }

  .hero-gallery,
  .composition-preview,
  .advice-panel,
  .feature-gallery {
    min-height: 420px;
  }

  .interior-showcase,
  .feature-gallery,
  .catalog-image-strip {
    grid-template-columns: 1fr;
  }

  .feature-gallery img:first-child {
    grid-row: auto;
  }

  .interior-showcase img:nth-child(2),
  .catalog-image-strip img:nth-child(2) {
    margin-top: 0;
  }

  .filter-panel {
    position: static;
  }

  .guidance-grid,
  .size-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
  }

  .modal-image {
    min-height: 320px;
    max-height: 46vh;
  }
}

@media (max-width: 560px) {
  .catalog-hero,
  .page-hero,
  .catalog-image-strip,
  .catalog-layout,
  .process-section,
  .size-section,
  .guidance-section,
  .promise-section,
  .site-footer {
    padding-inline: 16px;
  }

  .site-header {
    padding: 8px 12px 8px 118px;
  }

  .brand {
    top: 8px;
    left: 12px;
    padding: 6px;
  }

  .brand img {
    max-width: 88px;
    max-height: 88px;
  }

  .main-nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }


  h1 {
    max-width: 12ch;
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    padding: 16px;
  }

  .gallery-wall {
    min-height: 190px;
  }

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

  .product-visual {
    min-height: 218px;
    padding: 16px;
  }

  .product-photo {
    padding: 0;
  }

  .product-photo img {
    min-height: 240px;
  }


.room-scene {
    min-height: 186px;
  }

  .product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .product-bottom a,
  .product-bottom button,
  .button,
  .sort-control select {
    width: 100%;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-button {
    width: 100%;
  }

  .modal-content h2 {
    max-width: 100%;
    font-size: 2.15rem;
  }

  .composition-preview,
  .advice-panel,
  .feature-gallery {
    min-height: 360px;
  }

  .interior-showcase img,
  .feature-gallery img,
  .catalog-image-strip img {
    min-height: 240px;
    height: auto;
  }
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 82px);
  color: #fff;
  background-image: linear-gradient(90deg, rgba(20, 17, 15, 0.84), rgba(20, 17, 15, 0.46)), url("imagenes/pared-ladrillo-galeria-gris.png");
  background-position: center;
  background-size: cover;
}

.admin-hero .eyebrow {
  color: #dec28e;
}

.admin-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(10px);
}

.admin-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.admin-stats span {
  color: rgba(255, 255, 255, 0.74);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(280px, 0.64fr);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(34px, 5vw, 72px);
  background: var(--porcelain);
}

.product-form,
.admin-preview,
.admin-products {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-card);
}

.product-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.form-heading h2,
.admin-products-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.product-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.product-form textarea {
  resize: vertical;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions.compact {
  justify-content: end;
}

.button.danger {
  border-color: rgba(157, 82, 58, 0.38);
  color: var(--clay);
}

.admin-preview {
  align-self: start;
  overflow: hidden;
}

.admin-preview img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  background: var(--ink);
}

.admin-preview div {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.admin-preview span {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-preview h3,
.admin-preview p {
  margin: 0;
}

.admin-preview strong {
  font-size: 1.3rem;
}

.admin-products {
  margin: 0 clamp(18px, 5vw, 72px) clamp(54px, 7vw, 96px);
  overflow: hidden;
}

.admin-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}

.admin-product-cell img {
  width: 68px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink);
}

.admin-product-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.table-actions button[data-delete] {
  color: var(--clay);
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-products-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-actions.compact {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .admin-hero,
  .admin-layout {
    padding-inline: 16px;
  }

  .admin-stats,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .admin-preview img {
    min-height: 260px;
  }

  .admin-products {
    margin-inline: 16px;
  }
}

/* Compact product configuration */
.admin-hero {
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 48px);
}

.admin-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(260px, 0.52fr);
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(18px, 3vw, 34px);
}

.product-form {
  gap: 10px;
  padding: clamp(14px, 2.4vw, 20px);
}

.product-form label {
  gap: 5px;
}

.product-form input,
.product-form select,
.product-form textarea {
  padding: 9px 11px;
}

.size-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.size-toggle-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.size-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.size-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.size-toggle:has(input:checked) {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.admin-preview img {
  min-height: 240px;
}

.admin-preview div {
  gap: 7px;
  padding: 14px;
}

.admin-table th,
.admin-table td {
  padding: 11px;
}

@media (max-width: 560px) {
  .size-toggle-group {
    grid-template-columns: 1fr;
  }
}
/* Extra compact configuration form */
.admin-hero {
  padding: 18px clamp(16px, 4vw, 42px);
}

.admin-hero p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-stats article {
  padding: 10px 12px;
}

.admin-stats strong {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.admin-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(230px, 0.42fr);
  gap: 14px;
  padding: 14px clamp(16px, 3vw, 28px);
}

.product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 12px;
  align-content: start;
}

.form-heading,
.product-form > input[type="hidden"],
.product-form > label:nth-of-type(2),
.size-toggle-group,
.product-form > label:last-of-type,
.admin-actions {
  grid-column: 1 / -1;
}

.product-form label {
  gap: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.product-form input,
.product-form select,
.product-form textarea {
  min-height: 32px;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 0.9rem;
}

.product-form textarea {
  min-height: 54px;
  max-height: 72px;
}

.size-toggle-group {
  gap: 6px;
}

.size-toggle-group legend {
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.size-toggle {
  min-height: 32px;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 0.86rem;
}

.size-toggle input {
  width: 14px;
  height: 14px;
}

.admin-preview img {
  min-height: 170px;
  max-height: 220px;
}

.admin-preview div {
  gap: 5px;
  padding: 10px 12px;
}

.admin-preview h3 {
  font-size: 1rem;
}

.admin-preview p {
  font-size: 0.86rem;
  line-height: 1.42;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
}

.admin-product-cell {
  grid-template-columns: 52px 1fr;
  gap: 8px;
}

.admin-product-cell img {
  width: 52px;
  height: 42px;
}

.table-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .product-form {
    grid-template-columns: 1fr;
  }
}
.admin-preview img {
  object-fit: contain;
  background: #f1ebe2;
}
.admin-preview img {
  min-height: 320px;
  max-height: 420px;
}

@media (max-width: 900px) {
  .admin-preview img {
    min-height: 280px;
  }
}
@media (min-width: 901px) {
  .admin-layout {
    grid-template-columns: minmax(320px, 50%) minmax(320px, 1fr);
  }
}
/* Category configuration */
.category-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 28px) 14px;
}

.category-manager {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-card);
}

.category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.category-head .eyebrow {
  margin: 0;
}

.category-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.category-add input,
.category-item input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  color: var(--ink);
  background: #fff;
}

.category-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}

.category-item button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  font-size: 0.86rem;
}

.category-item button[data-delete-category] {
  color: var(--clay);
}

@media (max-width: 900px) {
  .category-config {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .category-item,
  .category-add {
    grid-template-columns: 1fr;
  }
}
#detail-title {
  font-size: 40px;
}
.cart-section {
  padding: clamp(34px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--porcelain);
}

.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 760;
}

.cart-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  background: #fff;
}

.cart-empty[hidden],
.cart-summary[hidden] {
  display: none;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(20, 17, 15, 0.05);
}

.cart-item img {
  width: 78px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink);
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-item strong {
  white-space: nowrap;
}

.cart-item button {
  min-height: 36px;
  border: 1px solid rgba(157, 82, 58, 0.32);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--clay);
  background: #fff;
  cursor: pointer;
}

.cart-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.cart-summary span {
  color: var(--muted);
  font-weight: 760;
}

.cart-summary strong {
  font-size: 1.35rem;
}

@media (max-width: 760px) {
  .cart-heading,
  .cart-summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cart-heading {
    display: grid;
  }

  .cart-item {
    grid-template-columns: 68px 1fr;
  }

  .cart-item strong,
  .cart-item button {
    grid-column: 2;
  }

  .cart-summary .button,
  .cart-summary button {
    width: 100%;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 22px rgba(20, 17, 15, 0.08);
}

.cart-link:hover {
  border-color: var(--ink);
}

.cart-link span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 900px) {
  .header-actions {
    align-self: center;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 8px;
  }

  .cart-link {
    width: 40px;
    min-height: 40px;
  }
}
.menu-toggle {
  display: none;
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    min-height: 66px;
    padding: 8px 12px 8px 104px;
  }

  .brand {
    top: 7px;
    left: 12px;
    padding: 5px;
  }

  .brand img {
    max-width: 76px;
    max-height: 76px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 46px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.94);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header .main-nav {
    display: none;
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
    margin-top: 6px;
    border: 1px solid rgba(222, 213, 201, 0.86);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 34px rgba(20, 17, 15, 0.12);
  }

  .site-header.menu-open .main-nav {
    display: grid;
    gap: 4px;
  }

  .main-nav a {
    min-height: 38px;
    padding: 0 10px;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .cart-link {
    width: 38px;
    min-height: 38px;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .main-nav {
    padding-left: 20px;
  }
}
@media (max-width: 700px) {
  .menu-toggle {
    justify-self: start;
    flex-shrink: 0;
  }

  .header-actions {
    justify-self: end;
    min-width: max-content;
  }
}