/* Roxy Decoraciones — landing
   Paleta derivada del logo (tinta marrón casi negra) y de las piezas (cal, piedra, rojo colonial).
   Criterios apple-design: respuesta inmediata al presionar, materiales translúcidos solo en capas flotantes
   (barra, menú, barra fija móvil), movimiento sin rebote y preferencias del sistema respetadas. */

:root {
  color-scheme: light;

  /* Paleta v2: fondo casi blanco cálido; tintas en marrón espresso (familia del logo), nunca negro */
  --bg: #FDFCFA;           /* fondo principal */
  --surface: #F6F2EC;      /* secciones alternas (piedra clara) */
  --card: #FFFFFF;
  --ink: #3B2F29;          /* títulos y botón principal — 12,6:1 sobre fondo */
  --ink-hero: #4A3C34;     /* título del hero, más suave sobre la foto */
  --ink-2: #62574F;        /* texto — 6,8:1 */
  --ink-3: #766B64;        /* notas y leyendas — 5,0:1 */
  --accent: #9E5539;       /* terracota (piezas rojo colonial) — 5,4:1 */
  --accent-soft: #F5E9E2;
  --line: #ECE5DC;
  --line-soft: rgba(59, 47, 41, .08);

  /* Material translúcido (capas flotantes) */
  --glass: rgba(253, 252, 250, .76);
  --glass-edge: rgba(255, 255, 255, .6);
  --glass-blur: blur(20px) saturate(180%);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.75rem, 1.4rem + 5.4vw, 6.4rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.2rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-micro: .75rem;

  --radius-xl: 28px;
  --radius: 20px;
  --radius-sm: 12px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section-y: clamp(72px, 9vw, 128px);

  /* Curvas: salida fuerte para entradas; "drawer" (amortiguada, sin rebote) para lo que se desplaza */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.25; }
h4 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

/* Cortes de línea: nunca una palabra o un trozo corto de frase solo en la última línea.
   Títulos y textos cortos se equilibran (líneas de largo parejo); los textos largos usan "pretty". */
h1, h2, h3, h4, summary,
.hero__lead, .section__lead, .card__body p, .step p, .visit__note, .cta__panel p,
.sizes__intro p, .footer__brand p, .footer__contact p, .gallery__item figcaption, .catalog__more,
.line__title p, .visit__video figcaption { text-wrap: balance; }
.faq details p { text-wrap: balance; }   /* hasta 6 líneas se equilibra; más largas usan la unión de las últimas palabras (main.js) */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px 0 22px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn img { width: 22px; height: 22px; flex: none; }
/* Respuesta al presionar, no al soltar */
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 10px 24px -14px rgba(59, 47, 41, .6); }
.btn--glass {
  min-height: 44px; padding: 0 18px 0 14px; gap: 8px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.btn--glass img { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px;
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease, opacity 100ms ease;
}
.link-arrow:active { opacity: .6; }
.link-arrow span { display: inline-block; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #4E3F37; }
  .btn--glass:hover { background: #fff; }
  .link-arrow:hover { color: var(--accent); }
  .link-arrow:hover span { transform: translateX(3px); }
}

/* ---------- Navegación (material translúcido) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: box-shadow 240ms ease;
}
/* Borde de desplazamiento: sombra suave en vez de una línea dura */
.nav[data-scrolled="true"] { box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -22px rgba(59, 47, 41, .3); }
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: block; transition: opacity 100ms ease; }
.nav__brand:active { opacity: .6; }
.nav__brand img { height: 60px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: none; }
.nav__links a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); white-space: nowrap;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav__links a:not(.btn):hover { color: var(--ink); } }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 600 .9rem/1 var(--font);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.nav__toggle:active { transform: scale(.96); transition-duration: 100ms; }
.nav__toggle-bars, .nav__toggle-bars::before {
  display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 240ms var(--ease-drawer);
}
.nav__toggle-bars::before { content: ""; position: absolute; top: 5px; }
.nav__toggle-bars { transform: translateY(-2.5px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 1079px) {
  /* El menú nace desde el botón que lo abre (arriba a la derecha) */
  .nav__links[data-open="true"] {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 12px; right: 12px; top: calc(var(--nav-h) - 4px);
    padding: 10px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--glass-edge), 0 24px 48px -20px rgba(59, 47, 41, .3);
    transform-origin: top right;
    animation: menu-in 240ms var(--ease-out);
  }
  .nav__links[data-open="true"] a:not(.btn) {
    display: flex; align-items: center; justify-content: center;
    min-height: 50px; font-size: 1.05rem; color: var(--ink); border-radius: var(--radius-sm);
    transition: background-color 100ms ease;
  }
  .nav__links[data-open="true"] a:not(.btn):active { background: var(--surface); }
  .nav__links[data-open="true"] .nav__cta { margin-top: 8px; min-height: 50px; background: var(--ink); color: #fff; box-shadow: none; }
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-6px); } }

@media (min-width: 1080px) {
  .nav__toggle { display: none; }
  :root { --nav-h: 92px; }
  .nav__links { display: flex; align-items: center; gap: 28px; }
  .nav__brand img { height: 78px; }
}

/* ---------- Hero: foto completa de fondo, semitranslúcida, con velo suave para el texto ----------
   La foto cubre todo el hero. Como es vertical, main.js calcula el encuadre según la proporción de
   cada pantalla para que el macetero principal se vea entero (nunca cortado arriba).
   El velo usa un degradado con muchos pasos (curva suave): no deja líneas ni bordes marcados. */
.hero { padding: 6px 10px 0; }
.hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100svh - var(--nav-h) - 12px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.hero__photo { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 70%;          /* móvil: la foto entera; se ven los cubos de adelante */
  opacity: .82;
  filter: saturate(.95) sepia(.06) contrast(1.03);
}
/* Móvil: el velo va de arriba (texto) hacia abajo (maceteros), en una curva suave */
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(246, 242, 236, .94) 0%,
    rgba(246, 242, 236, .92) 28%,
    rgba(246, 242, 236, .86) 42%,
    rgba(246, 242, 236, .74) 52%,
    rgba(246, 242, 236, .56) 60%,
    rgba(246, 242, 236, .36) 67%,
    rgba(246, 242, 236, .19) 74%,
    rgba(246, 242, 236, .07) 82%,
    rgba(246, 242, 236, 0) 90%);
}

.hero__content {
  width: 100%; max-width: 560px;
  padding: clamp(28px, 6svh, 56px) 20px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.eyebrow--chip {
  color: var(--ink-hero);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(59, 47, 41, .06);
  font-size: .68rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
.hero__title { font-size: clamp(2.6rem, 1.4rem + 6vw, 4rem); letter-spacing: -0.035em; line-height: 1.02; color: var(--ink-hero); }
.hero__line { display: block; }
.hero__lead { font-size: var(--fs-lead); color: #554941; max-width: 34ch; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.hero__actions .btn { width: 100%; max-width: 360px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: none; }

@media (max-width: 359px) {
  .eyebrow--chip { white-space: normal; text-wrap: balance; letter-spacing: .08em; }
}

@media (min-width: 900px) and (orientation: landscape) {
  .hero { padding: 8px 16px 0; }
  .hero__frame {
    flex-direction: row; align-items: center;
    min-height: min(calc(100svh - var(--nav-h) - 16px), 980px);
  }
  .hero__photo img { object-position: 50% 60%; opacity: .85; }   /* encuadre elegido por la clienta: árboles arriba y la fila de cubos */
  /* Escritorio: velo de izquierda (texto) a derecha (maceteros), en una curva suave */
  .hero__veil {
    background: linear-gradient(90deg,
      rgba(246, 242, 236, .95) 0%,
      rgba(246, 242, 236, .92) 18%,
      rgba(246, 242, 236, .86) 30%,
      rgba(246, 242, 236, .75) 39%,
      rgba(246, 242, 236, .6) 47%,
      rgba(246, 242, 236, .42) 54%,
      rgba(246, 242, 236, .25) 61%,
      rgba(246, 242, 236, .11) 69%,
      rgba(246, 242, 236, .03) 78%,
      rgba(246, 242, 236, 0) 86%);
  }
  .hero__content {
    max-width: none;
    width: min(48%, 640px);
    margin-left: max(calc((100% - var(--max)) / 2 + var(--gutter)), clamp(28px, 5vw, 80px));
    padding: clamp(24px, 5svh, 64px) 0;
    align-items: flex-start; text-align: left;
    gap: clamp(14px, 2.6svh, 26px);
  }
  .hero__title { font-size: min(var(--fs-display), 12svh); }
  .hero__line { white-space: nowrap; }
  .hero__lead { max-width: 40ch; }
  .hero__actions { flex-direction: row; align-items: center; gap: 22px; width: auto; }
  .hero__actions .btn { width: auto; }
  .hero__facts {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    font-size: .85rem; font-weight: 500; color: var(--ink-2);
  }
  .hero__facts li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
}

/* Entrada del hero: una sola vez, en cascada; la foto "se asienta" */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__in { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
  /* La foto aparece con un fundido (sin escalar: nunca se ve recortada ni "salta") */
  .js .hero__photo img { animation: photo-in 1000ms var(--ease-out) both 100ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes photo-in { from { opacity: 0; } }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--stone { background: var(--surface); }
.section--tight { padding-top: calc(var(--section-y) * .6); }
.section__head {
  max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.section__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 58ch; }

/* ---------- Catálogo en dos líneas: maceteros y jardineras (principal) y el resto ---------- */
.line { max-width: var(--max); margin: 0 auto; }
.line + .line { margin-top: clamp(56px, 7vw, 96px); }
.line__head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: clamp(20px, 3vw, 28px);
  text-align: center;
}
.line__title { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.line__title h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.022em; line-height: 1.15; }
.line__title p { color: var(--ink-2); }
@media (min-width: 900px) {
  .line__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
  .line__title { align-items: flex-start; }
}

/* Tipos de maceteros: una foto (o un mosaico de tres) por tipo; toda la tarjeta es el enlace.
   El alto de las fotos sale del ancho de UNA columna (unidades cqw del contenedor .types): así una
   tarjeta ancha y una simple de la misma fila quedan con fotos del mismo alto, alineadas.
   Orden del HTML pensado para que la grilla no deje huecos:
   escritorio (3 col.)  → 1 1 1 · [2] 1 · 1 [2]      móvil (2 col.) → [2] · 1 1 · [2] · 1 1 · [2]      */
.types {
  --cols: 2; --g: 12px; --ratio: 1;
  container-type: inline-size;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--g);
}
.type { display: flex; min-width: 0; }
.type--span { grid-column: span 2; }
.type__link {
  flex: 1;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.type__link:active { transform: scale(.98); transition-duration: 100ms; }
.type__media {
  display: block; overflow: hidden; background: var(--surface);
  height: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols) * var(--ratio));
}
.type__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transition: transform 700ms var(--ease-out);
}

/* Mosaico de tres fotos: cada celda recorta su foto (el zoom al pasar el mouse no invade las vecinas) */
.type__media--mosaic { display: grid; gap: 3px; background: var(--card); }
.mosaic__cell { position: relative; display: block; overflow: hidden; min-width: 0; min-height: 0; background: var(--surface); }
.mosaic__cell img { position: absolute; inset: 0; }

.type__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 10px 12px;
  text-align: center;
}
.type__name { font-size: .98rem; }
.type__meta { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; text-wrap: balance; }
.type__cta {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .85rem; font-weight: 600;
  transition: color 200ms ease;
}
.type__cta span { display: inline-block; transition: transform 200ms var(--ease-out); }

/* Móvil: las tarjetas anchas ocupan la fila entera; su foto mide 2/3 del ancho de alto.
   El mosaico es 1 foto grande + 2 pequeñas (todas casi cuadradas). */
@media (max-width: 699px) {
  .type--span-m { grid-column: span 2; }
  .type--span .type__media, .type--span-m .type__media { height: calc((100cqw - 3px) * 2 / 3); }
  .type__media--mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .mosaic__cell:first-child { grid-row: span 2; }
  .mosaic__cell img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
}
/* Tablet y escritorio: 3 columnas; el mosaico son tres paneles iguales, del alto de la fila */
@media (min-width: 700px) {
  .types { --cols: 3; --g: 16px; --ratio: .85; }
  .type__media--mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .type__body { align-items: flex-start; gap: 4px; padding: 16px 18px 16px; text-align: left; }
  .type__name { font-size: 1.1rem; }
  .type__meta { font-size: .9rem; }
  .type__cta { font-size: .92rem; }
}
@media (min-width: 1000px) { .types { --g: 20px; } }
@media (hover: hover) and (pointer: fine) {
  .type__link:hover .type__media img { transform: scale(1.03); }
  .type__link:hover .type__cta { color: var(--accent); }
  .type__link:hover .type__cta span { transform: translateX(3px); }
}

/* ---------- Catálogo: tarjetas ---------- */
.catalog {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  text-align: center;
}
.card__media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 22px 14px;
}
.card__body p { color: var(--ink-2); max-width: 44ch; }
.card__body .link-arrow { margin-top: auto; }

.tags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tags li {
  font-size: .8rem; font-weight: 500; color: var(--ink-2);
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;              /* una etiqueta nunca se parte en dos líneas */
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.03); }
}

@media (min-width: 640px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .catalog { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { text-align: left; }
  .card__body { align-items: flex-start; }
  .tags { justify-content: flex-start; }
}

.catalog__more {
  max-width: var(--max); margin: 28px auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  color: var(--ink-2); font-size: .95rem; text-align: center;
}
.catalog__more .social-instagram { color: var(--ink); font-weight: 600; }
@media (max-width: 699px) { .catalog__more { flex-direction: column; gap: 0; } }

/* Logos oficiales de redes (recursos/redes): Instagram y WhatsApp */
.social-instagram, .wa-line {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  color: var(--ink-2); font-weight: 500; font-size: .92rem; text-decoration: none;
  transition: color 200ms ease;
}
.wa-line { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.social-instagram img, .wa-line img { display: block; width: 26px; height: 26px; border-radius: 7px; transition: transform 200ms var(--ease-out); }
.social-instagram:active img, .wa-line:active img { transform: scale(.92); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .social-instagram:hover { color: var(--ink); }
  .social-instagram:hover img, .wa-line:hover img { transform: scale(1.08); }
}

/* ---------- Medidas: control segmentado ---------- */
.sizes {
  max-width: 980px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.segmented {
  --n: 4; --i: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(var(--n), 1fr);
  width: min(100%, 560px);
  padding: 4px;
  border-radius: 999px;
  background: rgba(59, 47, 41, .06);
}
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(59, 47, 41, .07), 0 4px 12px -4px rgba(59, 47, 41, .16);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 320ms var(--ease-drawer);
}
.segmented button {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 6px;
  border: 0; background: none; border-radius: 999px;
  font: 600 .88rem/1 var(--font); letter-spacing: -0.005em;
  color: var(--ink-2);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.segmented button[aria-selected="true"] { color: var(--ink); }
@media (max-width: 359px) { .segmented button { font-size: .8rem; padding: 0 2px; } }
.segmented button:active { transform: scale(.96); transition-duration: 100ms; }

.sizes__panel {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.sizes__intro { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sizes__intro h3 { font-size: 1.35rem; }
.sizes__intro p { color: var(--ink-2); max-width: 52ch; }
.sizes__list {
  list-style: none; margin: 0; padding: 0;
  width: 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.sizes__list li {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 500; font-size: .92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sizes__panel .table-wrap { max-width: 520px; }
@media (min-width: 700px) { .sizes__list { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .sizes__panel { animation: panel-in 260ms var(--ease-out); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Tablas ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; text-align: left; font-variant-numeric: tabular-nums; }
.specs th, .specs td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.specs tbody tr:last-child th, .specs tbody tr:last-child td { border-bottom: 0; }
.specs thead th { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg); }
.specs tbody th { font-weight: 600; }
.specs td { color: var(--ink-2); }

/* ---------- Construcción: título, fotos (general + sin fierro / con fierro) y tabla ----------
   Móvil: título → fotos → tabla (orden de lectura). Escritorio: fotos a la izquierda; título y
   tabla a la derecha, centrados en bloque respecto de las fotos. */
.build {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 28px;
  text-align: center;
}
.build__head, .build__body { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.build__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 640px; justify-self: center; }   /* en tablet no ocupa toda la pantalla */
.build__main {
  grid-column: 1 / -1;
  display: block; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.build__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.build__detail { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.build__detail img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--surface);
}
.build__detail figcaption { font-size: .85rem; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
@media (min-width: 900px) {
  .build {
    grid-template-columns: .9fr 1.1fr;
    grid-template-areas: "media head" "media body";
    column-gap: clamp(40px, 6vw, 88px); row-gap: 20px;
    text-align: left;
  }
  .build__media { grid-area: media; align-self: center; }
  .build__head { grid-area: head; align-self: end; align-items: flex-start; }
  .build__body { grid-area: body; align-self: start; align-items: flex-start; }
  .build .tags { justify-content: flex-start; }
}

/* ---------- Galería ---------- */
.gallery {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.gallery__item { margin: 0; }
.gallery__item picture { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.8; background: var(--bg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); text-align: center; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery__item:nth-child(2) { transform: translateY(32px); }
  .gallery__item figcaption { text-align: left; }
}

/* ---------- Pasos: tres tarjetas conectadas, cada una con su acción ---------- */
.steps {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--max);
  display: grid; gap: 14px;
  counter-reset: none;
  position: relative;
}
.step {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 24px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-2); max-width: 34ch; }
.step__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.step__action { margin-top: auto; padding-top: 6px; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  /* Línea que une los números de los tres pasos */
  .steps::before {
    content: ""; position: absolute; z-index: 1; pointer-events: none;
    top: 52px; left: 68px; right: calc((100% - 40px) / 3 - 68px);
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
    opacity: .35;
  }
  .step { align-items: flex-start; text-align: left; padding: 32px 28px 22px; }
  .step__num { position: relative; z-index: 2; box-shadow: 0 0 0 6px var(--card); }
}

/* ---------- Visítanos: texto, video del patio y mapa ---------- */
.visit {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 32px;
  text-align: center;
}
.visit__text { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.visit__address { font-style: normal; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.visit__hours { margin-top: -6px; font-size: 1rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.visit__hours span { display: block; color: var(--ink-2); font-weight: 400; }
.visit__note { color: var(--ink-2); max-width: 44ch; }
.visit__note strong { color: var(--ink); font-weight: 600; }
.visit__actions { display: flex; flex-direction: column; align-items: center; }
.visit__map { border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); min-height: 320px; }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

.visit__video { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visit__video figcaption { font-size: .9rem; color: var(--ink-2); text-align: center; }
.clip {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #DAD4CB;
  box-shadow: 0 30px 60px -30px rgba(59, 47, 41, .45), 0 2px 6px rgba(59, 47, 41, .08);
}
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Botón de pausa: material translúcido sobre el video */
.clip__toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 6px 16px -6px rgba(0, 0, 0, .35);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.clip__toggle:active { transform: scale(.92); transition-duration: 100ms; }
.clip__icon { width: 20px; height: 20px; fill: currentColor; }
.clip__icon--pause { display: none; }
.clip[data-playing="true"] .clip__icon--play { display: none; }
.clip[data-playing="true"] .clip__icon--pause { display: block; }

@media (min-width: 900px) {
  .visit { grid-template-columns: 1fr auto; align-items: center; gap: clamp(32px, 5vw, 72px); text-align: left; }
  .visit__text { align-items: flex-start; justify-content: center; }
  .visit__actions { align-items: flex-start; }
  .visit__map { grid-column: 1 / -1; }
  .visit__map, .visit__map iframe { min-height: 380px; }
  .clip { width: 280px; }
}
@media (min-width: 1150px) {
  .visit { grid-template-columns: 1fr auto 1.1fr; align-items: stretch; gap: clamp(28px, 3.5vw, 48px); }
  .visit__map { grid-column: auto; }
  .visit__map, .visit__map iframe { min-height: 100%; }
  .visit__video { justify-content: center; }
}

/* ---------- FAQ ---------- */
.faq { max-width: var(--max); margin: 0 auto; display: grid; gap: 8px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0;
  font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.01em;
  text-align: left;
  -webkit-user-select: none; user-select: none;
  transition: opacity 100ms ease;
}
.faq summary:active { opacity: .6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat,
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 240ms var(--ease-drawer);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 65ch; text-align: left; }
.faq details a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: rise 260ms var(--ease-out); }
}
@media (min-width: 900px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .section__head--left { margin: 0; align-items: flex-start; text-align: left; position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- CTA final ---------- */
.cta__panel {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta__logo { width: 170px; height: auto; mix-blend-mode: multiply; margin-bottom: 4px; }
.cta__panel p { color: var(--ink-2); max-width: 46ch; }
.cta__panel .btn { margin-top: 8px; }
.cta__phone { font-size: .92rem; }
.cta__phone a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 28px; }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 32px;
  text-align: center; justify-items: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand img { height: 88px; width: auto; mix-blend-mode: multiply; }
.footer__brand p, .footer__contact p { color: var(--ink-2); font-size: .92rem; max-width: 36ch; }
.footer__links { display: flex; flex-direction: column; }
.footer__links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--ink); } }
.footer__contact { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.footer__legal { max-width: var(--max); margin: 40px auto 0; font-size: .8rem; color: var(--ink-3); text-align: center; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; text-align: left; justify-items: start; }
  .footer__brand, .footer__contact { align-items: flex-start; }
  .footer__links a { justify-content: flex-start; }
  .footer__legal { text-align: left; }
}

/* ---------- Barra fija móvil (material translúcido) ---------- */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 -1px 0 var(--line-soft);
    transform: translateY(110%);
    transition: transform 380ms var(--ease-drawer);
    pointer-events: none;
  }
  .dock .btn { width: 100%; }
  .dock[data-visible="true"] { transform: translateY(0); pointer-events: auto; }
  body { padding-bottom: 76px; }
}

/* ---------- Revelado al hacer scroll (solo bajo el primer pantallazo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal[data-in="true"] { opacity: 1; transform: none; }
  .js .gallery__item.reveal[data-in="true"]:nth-child(2) { transform: translateY(32px); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
  .js .gallery__item.reveal[data-in="true"]:nth-child(2) { transform: none; }
}

/* Notebooks bajos: el hero completo cabe en la primera pantalla */
@media (min-width: 900px) and (orientation: landscape) and (max-height: 760px) {
  .hero__facts { display: none; }
  .hero__content { gap: 12px; }
  .hero__title { font-size: min(var(--fs-display), 10.5svh); }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 620px) {
  .hero__lead { font-size: 1rem; max-width: 42ch; }
  .eyebrow--chip { padding: 5px 10px; }
}

/* ---------- Preferencias del sistema ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: opacity 300ms ease; }
  .segmented__thumb, .dock { transition: opacity 200ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .dock, .nav__links[data-open="true"], .clip__toggle { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #BDB1A5; --ink-2: #4A3F38; --ink-hero: var(--ink); --glass: var(--bg); }
}

/* ---------- Páginas por producto (maceteros, vírgenes y figuras, bases) ----------
   Encabezado: texto + foto (móvil: texto arriba, foto abajo). Mismos colores, radios y botones que la portada. */
.page-hero { padding: 6px 10px 0; }
.page-hero__frame {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
}
.page-hero__text {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: clamp(24px, 5vw, 64px) 20px clamp(28px, 5vw, 56px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem); letter-spacing: -0.035em; line-height: 1.04; color: var(--ink-hero); text-wrap: balance; }
.page-hero__lead { font-size: var(--fs-lead); color: #554941; max-width: 44ch; }
.page-hero__media { display: block; aspect-ratio: 4 / 3; background: var(--line); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

@media (min-width: 900px) {
  .page-hero { padding: 8px 16px 0; }
  .page-hero__frame { grid-template-columns: 1.05fr .95fr; min-height: min(620px, calc(100svh - var(--nav-h) - 16px)); }
  .page-hero__text { align-items: flex-start; justify-content: center; text-align: left; padding: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 64px) clamp(32px, 5vw, 72px) clamp(28px, 5vw, 80px); gap: 20px; }
  .page-hero .crumbs, .page-hero .facts { justify-content: flex-start; }
  .page-hero .hero__actions { flex-direction: row; align-items: center; gap: 22px; width: auto; }
  .page-hero .hero__actions .btn { width: auto; }
  .page-hero__media { aspect-ratio: auto; height: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero__media img { animation: photo-in 1000ms var(--ease-out) both 100ms; }
}

/* Bloque de texto + foto; --rev pone la foto a la izquierda en escritorio */
.split { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split__text { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 0; }
.split__text p { color: var(--ink-2); max-width: 58ch; }
.split__text p strong { color: var(--ink); font-weight: 600; }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3.4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.split .tags { justify-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
  .split__text { align-items: flex-start; text-align: left; }
  .split .tags { justify-content: flex-start; }
  .split--rev .split__media { order: -1; }
}

/* Lista con viñeta terracota (usos, consejos) */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.points li { position: relative; padding-left: 20px; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.points li strong { color: var(--ink); font-weight: 600; }

/* Tarjetas con dos enlaces (ver página + cotizar) */
.card__links { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.card__body .card__links .link-arrow { margin-top: 0; }
@media (min-width: 1000px) { .card__links { justify-content: flex-start; } }
.card__body h3 { font-size: var(--fs-h3); }
.catalog--two { max-width: 920px; }
@media (min-width: 1000px) { .catalog--two { grid-template-columns: repeat(2, 1fr); } }
.tags.tags--center { justify-content: center; margin-top: 24px; }
.sizes__panel .points { max-width: 520px; width: 100%; }
.build__body .card__links { margin-top: 0; }
@media (min-width: 900px) { .build__body .card__links { justify-content: flex-start; } }
