/* =========================================================
   KROM Uruguay — Sitio corporativo
   Estilo: moderno, profesional, minimalista
   Un único stylesheet para todas las páginas.
   Paleta y tipografías centralizadas en :root (fácil de cambiar).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #0E0E10;
  --ink-2: #1B1B20;
  --paper: #FFFFFF;
  --surface: #F5F5F4;
  --surface-2: #ECECE9;
  --line: #E2E2DE;
  --muted: #6B6B73;
  --muted-2: #8A8A90;

  /* Marca KROMA */
  --brand: #E1251B;         /* rojo del logo */
  --brand-strong: #B71A16;  /* rojo oscuro para hover */
  --brand-soft: #FCE7E5;
  --slate: #454A54;         /* gris grafito del logo */

  /* Formas */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;
  --pad-x: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  /* Tipografía */
  --font-head: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(14, 14, 16, .06), 0 1px 3px rgba(14, 14, 16, .08);
  --shadow-md: 0 10px 30px -12px rgba(14, 14, 16, .18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 14, 16, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Fotos: sin arrastrar ni menú "Guardar imagen" al mantener presionado en iPhone */
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--paper); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }
.center.measure, .center .measure { margin-inline: auto; }

/* ---------- Eyebrow / encabezados de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
}
.section--ink .eyebrow { color: var(--muted-2); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: .9rem; }
.section--ink .section-head p { color: #C9C9CE; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), opacity .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--brand { --btn-bg: var(--brand); --btn-fg: #fff; border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.section--ink .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.link-arrow:hover { border-color: var(--brand); gap: .75rem; }
.link-arrow::after { content: "\2192"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(14,14,16,.02), var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  height: 72px;
}

/* Sin logo: menú centrado, "Pedir presupuesto" a la derecha (desktop) */
@media (min-width: 781px) {
  .site-header .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-header__inner > .nav { display: contents; }
  .site-header__inner .nav__links { grid-column: 2; justify-self: center; }
  .site-header__inner .nav > .btn { grid-column: 3; justify-self: end; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .14em;
}
.brand__logo { height: 34px; width: auto; display: block; }
.site-footer .brand__logo { height: 30px; filter: brightness(0) invert(1); }
.brand__name { white-space: nowrap; }
.site-footer .brand__name { font-size: 1.15rem; letter-spacing: .12em; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
  position: relative;
  padding-block: .35rem;
  transition: color .16s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Hero con foto de fondo a todo el ancho */
.hero--image {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(90vh, 780px);
  padding-block: clamp(4rem, 12vw, 8rem);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  z-index: -2;
}
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.62) 40%, rgba(10,10,12,.18) 68%, rgba(10,10,12,0) 100%),
    linear-gradient(0deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,0) 40%);
}
.hero--image .hero__copy { max-width: 40rem; }
.hero--image .eyebrow { color: rgba(255,255,255,.78); }
.hero--image .hero__lead { color: rgba(255,255,255,.9); }
.hero--image .hero__meta dt { color: #fff; }
.hero--image .hero__meta dd { color: rgba(255,255,255,.72); }
.hero--image .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.hero--image .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }

@media (max-width: 700px) {
  .hero--image { min-height: 0; }
  .hero--image::after {
    background: linear-gradient(0deg, rgba(10,10,12,.9) 0%, rgba(10,10,12,.55) 55%, rgba(10,10,12,.35) 100%);
  }
}
.hero__title { margin-top: 1.3rem; }
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
}
.hero__actions { margin-top: 3.2rem; }
.hero__meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(.8rem, 2vw, 1.8rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 0; }
.hero__meta dt {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, .55rem + 1.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.hero__meta dd { color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) {
  .hero__meta { flex-wrap: wrap; }
  .hero__meta dt, .hero__meta dd { white-space: normal; }
}

/* ---------- Media placeholders (reemplazar por fotos reales) ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-2);
  background-image:
    repeating-linear-gradient(45deg, rgba(14,14,16,.045) 0 12px, transparent 12px 24px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.media img,
.media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { background: #0E0E10; }
.media__tag {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .45rem .9rem;
  color: var(--muted);
  text-align: center;
  max-width: 80%;
}
.media--16x9 { aspect-ratio: 16 / 10; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature ---------- */
.feature {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.section--surface .feature { background: var(--paper); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 1.1rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; }
a.feature { display: block; text-decoration: none; color: inherit; }

/* ---------- Carrusel "peek" (instalaciones reales) ---------- */
.peek { position: relative; max-width: 1600px; margin-inline: auto; padding: 1.5rem var(--pad-x) .5rem; }
.peek__track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.5rem 26vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.peek__track::-webkit-scrollbar { display: none; }
.peek__slide {
  flex: 0 0 auto;
  width: min(58vw, 620px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  background: #0E0E10;
  opacity: .4;
  transform: scale(.84);
  filter: saturate(.65);
  transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}
.peek__slide.is-active { opacity: 1; transform: scale(1); filter: saturate(1); box-shadow: var(--shadow-lg); }
.peek__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.peek__btn {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.peek__btn:hover { background: var(--surface-2); }
.peek__btn:active { transform: translateY(-50%) scale(.94); }
.peek__btn--prev { left: clamp(.25rem, 2vw, 1.5rem); }
.peek__btn--next { right: clamp(.25rem, 2vw, 1.5rem); }
.peek__dots { display: flex; justify-content: center; gap: .5rem; margin-top: .5rem; }
.peek__dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.peek__dots span.is-active { background: var(--brand); transform: scale(1.35); }
@media (max-width: 780px) {
  .peek__track { padding-inline: 10vw; }
  .peek__slide { width: 78vw; }
}
@media (max-width: 620px) {
  .peek__btn { display: none; }
}
.feature p { color: var(--muted); margin-top: .5rem; font-size: .97rem; }

/* ---------- Product card ---------- */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .media { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { font-size: 1.2rem; }
.card__body p { color: var(--muted); font-size: .95rem; }
.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  font-size: .82rem;
  color: var(--muted-2);
  font-family: var(--font-head);
}
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Card oscura — para renders de baldosa PVC sobre fondo negro */
.card--dark { background: #121316; border-color: #24262B; color: #EDEDEF; }
.card--dark .media { background: #121316; border-color: #24262B; }
.card--dark .card__body p { color: #A7A8AD; }
.card--dark .card__meta { color: #8A8B90; }
.card--dark .tag { background: #1E2024; border-color: #30323A; color: #C7C8CC; }
.card--dark .link-arrow { color: #fff; }

/* ---------- Swatches de color ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 88px; }
.swatch__chip {
  width: 64px; height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(14,14,16,.12);
  box-shadow: var(--shadow-sm);
}
.swatch span { font-size: .8rem; color: var(--muted); font-family: var(--font-head); }

/* Fila de colores compacta dentro de las tarjetas de producto */
.swatch-row { display: flex; align-items: center; gap: .55rem; }
.swatch-row__label {
  font-family: var(--font-head);
  font-size: .82rem;
  color: var(--muted-2);
  margin-right: .1rem;
}
.swatch-row .dot {
  width: 22px; height: 22px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(128, 128, 128, .45);
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.swatch-row .dot:hover { transform: translateY(-1px); }
.swatch-row .dot.is-active { box-shadow: 0 0 0 2px var(--brand); }
.swatch-row .dot--negro    { background: #1b1c1e; border-color: rgba(200, 200, 200, .35); }
.swatch-row .dot--gris     { background: #bcc0c2; }
.swatch-row .dot--amarillo { background: #f2d21a; }
.card--dark .swatch-row__label { color: #8A8B90; }

/* ---------- Visor de baldosa PVC (foto completa + color + vistas) ---------- */
.pvc-viewer__stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #0E0E10;
  border: 1px solid #24262B;
  border-radius: var(--radius);
}
.pvc-viewer__img {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .15s var(--ease);
}
.pvc-viewer__thumbs {
  display: flex;
  gap: .4rem;
  margin-top: .6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3d44 transparent;
}
.pvc-picker { margin-top: 1.1rem; display: grid; gap: .7rem; }
.pvc-tex {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  padding: .38rem .85rem;
  border-radius: var(--radius-pill);
  background: #1E2024;
  border: 1px solid #30323A;
  color: #C7C8CC;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pvc-tex:hover { border-color: #4a4d55; }
.pvc-tex.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pvc-viewer__thumbs::-webkit-scrollbar { height: 5px; }
.pvc-viewer__thumbs::-webkit-scrollbar-thumb { background: #3a3d44; border-radius: 999px; }
.pvc-thumb {
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid #2c2e34;
  border-radius: 8px;
  overflow: hidden;
  background: #141519;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color .15s var(--ease);
}
.pvc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvc-thumb:hover { border-color: #4a4d55; }
.pvc-thumb.is-active { border-color: var(--brand); }

/* ---------- Visor de accesorios (foto grande + tira de fotos) ---------- */
.acc-viewer { border-bottom: 1px solid var(--line); }
.acc-viewer__stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #fff;
}
.acc-viewer__img {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .15s var(--ease);
}
.acc-viewer__thumbs {
  display: flex;
  gap: .4rem;
  padding: .55rem .7rem .7rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfcfd3 transparent;
}
.acc-viewer__thumbs::-webkit-scrollbar { height: 5px; }
.acc-viewer__thumbs::-webkit-scrollbar-thumb { background: #cfcfd3; border-radius: 999px; }
.acc-thumb {
  flex: 0 0 44px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.acc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.acc-thumb:hover { border-color: var(--muted-2); }
.acc-thumb.is-active { border-color: var(--brand); }

/* ---------- Visor de baldosa META (foto grande + paleta) ---------- */
.meta-viewer__stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #0E0E10;
  border: 1px solid #24262B;
  border-radius: var(--radius);
}
.meta-viewer__img {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .15s var(--ease);
}
.meta-viewer__cap {
  margin-top: .7rem;
  font-family: var(--font-head);
  font-size: .85rem;
  color: #c7c8cc;
}
.meta-viewer__hint { color: #8a8b90; }

.meta-palette__lead {
  color: #A7A8AD;
  max-width: 46rem;
  margin: .6rem 0 1.4rem;
}
.meta-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .8rem;
}
.meta-swatch {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #2c2e34;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0E0E10;
  color: #c7c8cc;
  cursor: pointer;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.meta-swatch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.meta-swatch__name {
  padding: .5rem .3rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}
.meta-swatch:hover { border-color: #4a4d55; transform: translateY(-2px); }
.meta-swatch.is-active { border-color: var(--brand); }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 3vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 10, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lb-in .18s var(--ease);
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig {
  margin: 0;
  flex: 0 1 1100px;
  min-width: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
/* La caja de la foto sale del ancho disponible y de la proporción de la foto
   (--ar, la pone el JS antes de mostrarla), no del tamaño de la imagen cargada:
   en Safari, al pasar a la foto siguiente, a veces quedaba del tamaño de una miniatura. */
.lightbox__img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 1 / 1);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__cap {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .16); }
.lightbox__nav { width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; }
.lightbox__nav:active { transform: scale(.92); }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 42px; height: 42px;
  font-size: 1.5rem;
}
@media (max-width: 620px) {
  .lightbox { gap: .25rem; padding: 1rem .5rem; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* Grilla de colores META (fotos de producto) */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.color-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0E0E10;
}
.color-grid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.color-grid figcaption {
  padding: .55rem .7rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
  text-transform: capitalize;
}

/* ---------- Pasos ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.5rem; }
.step + .step { margin-top: 2rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -.15rem;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin-top: .35rem; }
.section--ink .step p { color: #C9C9CE; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { border-left: 2px solid var(--brand); padding-left: 1.1rem; }
.stat dt {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.stat dd { color: var(--muted); font-size: .92rem; }
.section--ink .stat dd { color: #C9C9CE; }

/* ---------- Testimonios ---------- */
.quote {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.quote blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.quote figcaption {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.quote figcaption strong { color: var(--ink); font-family: var(--font-head); }
.quote--featured {
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
}
.quote--featured blockquote { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.55rem); }
.quote--featured figcaption { display: inline-block; }

/* ---------- Split (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

/* Variante: la imagen/video ocupa todo el ancho y alto de la columna,
   en vez de una proporción fija (usada en "Cómo funciona") */
.split--media-fill { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
.split--media-fill .split__media { height: 100%; }
.split--media-fill .split__media .media { height: 100%; aspect-ratio: auto; min-height: 380px; }

.split__list { margin-top: 1.5rem; }
.split__list li {
  position: relative;
  padding-left: 1.9rem;
  margin-top: .8rem;
  color: var(--muted);
}
.split__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 12px; height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #C9C9CE; margin-top: 1rem; margin-inline: auto; max-width: 50ch; }
.cta-band .btn-row { margin-top: 2rem; }

/* ---------- Formularios ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .45rem;
}
.field .req { color: var(--brand); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,14,16,.08);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.form-status {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status[data-state="ok"] { display: block; background: #EAF7EE; border: 1px solid #BEE6C9; color: #1B6B33; }
.form-status[data-state="error"] { display: block; background: #FDECEC; border: 1px solid #F5C2C2; color: #A32020; }

/* ---------- Info de contacto ---------- */
.info-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .info-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.info-list .info-ico svg { width: 18px; height: 18px; }
.info-list strong { font-family: var(--font-head); display: block; font-size: .95rem; }
.info-list span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin-top: .8rem; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { margin-top: 1rem; }
.page-hero p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C9CE; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer__brand .brand { color: #fff; }
.footer__brand .brand__mark { background: #fff; color: var(--ink); }
.footer__brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer__col h4 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.footer__col li + li { margin-top: .6rem; }
.footer__col a,
.footer__col li > span { font-size: .95rem; }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted-2);
}
.social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
}
.social a:hover { background: rgba(255,255,255,.08); }
.social svg { width: 17px; height: 17px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.15rem;
  background: #25D366;
  color: #04310f;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  transition: transform .18s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 20px; height: 20px; }

/* ---------- Animación de entrada ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* CTA band: entra desenfocada y se enfoca al aparecer en viewport */
.cta-band[data-reveal] { opacity: 1; transform: none; }
.cta-band[data-reveal] > .container {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.03);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease);
}
.cta-band[data-reveal].is-visible > .container { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cta-band[data-reveal] > .container { opacity: 1; filter: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav__links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0; right: 0;
    top: 72px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--pad-x) 1.25rem;
  }
  /* display:block -> toda la fila es tocable. Como link "en línea", el relleno no
     ocupaba lugar y la zona tocable de cada opción pisaba la de arriba
     (en el iPhone, tocar "Inicio" abría "Productos"). */
  .nav[data-open="true"] .nav__links a {
    display: block;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav[data-open="true"] .nav__links a:active { color: var(--brand); }
  .nav[data-open="true"] .btn {
    display: inline-flex;
  }
  .nav[data-open="true"] .nav__links a[aria-current="page"]::after { display: none; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero__meta { gap: 1.2rem; }
}
