/* Ciprés · Herrería, vivero y florería
   Colores tomados del logo, el banner y la papelería del negocio. */

:root {
  --paper: #fbfcfa;
  --paper-2: #f1f4ee;
  --ink: #0d2a1f;
  --muted: #4d6155;
  --forest: #06261b;          /* fondo del logo */
  --forest-2: #0b3527;
  --forest-3: #10402f;
  --sage: #a0bf83;            /* verde salvia del banner */
  --sage-soft: #e4ecdc;
  --orange: #c4561e;          /* naranja de la papelería */
  --star: #d49a1e;
  --line: rgb(13 42 31 / .09);

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --brand: "Bebas Neue", var(--display);

  --r-shell: 28px;
  --r-core: 22px;
  --wrap: 1240px;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.2vw, 5.9rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h3 { font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.15; }
em.accent { font-style: normal; color: var(--orange); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.lead { color: var(--muted); font-size: 1.18rem; max-width: 52ch; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: 128px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 20px; }

/* Grano de papel, fijo para no repintar al hacer scroll */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Etiqueta pequeña sobre algunos títulos */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(13 42 31 / .06);
  font: 600 11px/1.2 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.tag i { font-size: 14px; color: var(--orange); }

/* ---------- Botones con ícono anidado ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  border: 0;
  font: 600 .98rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--spring), background-color .4s var(--spring);
}
.btn .ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform .5s var(--spring);
}
.btn:hover .ico { transform: translate(2px, -1px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary .ico { background: rgb(255 255 255 / .12); }
.btn-primary:hover { background: var(--forest-3); }
.btn-soft { background: rgb(13 42 31 / .06); color: var(--ink); }
.btn-soft .ico { background: rgb(13 42 31 / .07); }
.btn-soft:hover { background: rgb(13 42 31 / .1); }
.btn-sage { background: var(--sage); color: var(--forest); }
.btn-sage .ico { background: rgb(6 38 27 / .1); }
.btn-sage:hover { background: #b2cf96; }
.btn-paper { background: var(--paper); color: var(--forest); }
.btn-paper .ico { background: rgb(6 38 27 / .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Doble marco (tarjetas e imágenes) ---------- */
.shell {
  padding: 6px;
  border-radius: var(--r-shell);
  background: rgb(13 42 31 / .035);
  border: 1px solid rgb(13 42 31 / .06);
}
.core {
  border-radius: var(--r-core);
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .7), 0 24px 60px -36px rgb(6 38 27 / .35);
  height: 100%;
}
.core > img { width: 100%; height: 100%; object-fit: cover; }
.dark .shell { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .08); }
.dark .core { background: var(--forest-2); box-shadow: inset 0 1px 1px rgb(255 255 255 / .08); }

/* ---------- Navegación flotante ---------- */
.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 30px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgb(251 252 250 / .78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgb(13 42 31 / .08);
  box-shadow: 0 14px 40px -18px rgb(6 38 27 / .28);
}
.wordmark {
  font: 400 1.85rem/1 var(--brand);
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--forest);
  padding-top: 3px;
}
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .3s var(--spring);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { padding: 5px 5px 5px 18px; font-size: .92rem; }
.nav .btn .ico { width: 34px; height: 34px; }

.menu-btn {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--forest);
  position: relative;
  cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  background: var(--paper);
  transition: transform .5s var(--spring), top .5s var(--spring);
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgb(251 252 250 / .9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 28px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--spring), visibility .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu a.big {
  display: block;
  font: 600 2.4rem/1.15 var(--display);
  letter-spacing: -.03em;
  text-decoration: none;
  padding: 6px 0;
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s var(--spring), transform .6s var(--spring);
}
.menu-open .menu a.big { opacity: 1; transform: none; }
.menu a.big:nth-child(2) { transition-delay: .05s; }
.menu a.big:nth-child(3) { transition-delay: .1s; }
.menu a.big:nth-child(4) { transition-delay: .15s; }
.menu a.big:nth-child(5) { transition-delay: .2s; }
.menu a.big:nth-child(6) { transition-delay: .25s; }
.menu a.big:nth-child(7) { transition-delay: .3s; }
.menu .btn { margin-top: 32px; align-self: flex-start; }

/* ---------- Portada ---------- */
.hero { padding: 160px 0 120px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  align-items: center;
}
.hero .lead { margin: 28px 0 38px; }
.where {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  color: var(--muted); font-size: 1rem; text-decoration: none;
}
.where i { color: var(--orange); font-size: 1.15rem; }
.where:hover { color: var(--ink); }
.hero .deco { position: absolute; left: -110px; bottom: -150px; width: 400px; opacity: .3; pointer-events: none; }

/* La firma del sitio: una foto vista a través de una celosía */
.lattice { position: relative; }
.lattice .core { position: relative; aspect-ratio: 4 / 3; }
.lattice .core.mix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: transparent; box-shadow: none; }
.lattice .core.mix img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-core); }
.lattice .veil {
  position: absolute; inset: -8%;
  background: var(--forest);
  -webkit-mask: url("/img/celosia.png") center / cover no-repeat;
  mask: url("/img/celosia.png") center / cover no-repeat;
  pointer-events: none;
}
.float-card {
  position: absolute; left: -32px; bottom: -28px;
  width: 250px;
}
.float-card .core { padding: 18px 20px; aspect-ratio: auto; }
.float-card .score { font: 600 2.6rem/1 var(--display); letter-spacing: -.04em; }
.float-card .stars { color: var(--star); display: flex; gap: 2px; margin: 6px 0 4px; }
.float-card p { font-size: .9rem; color: var(--muted); }
.float-card a { text-decoration: none; }

/* ---------- Portada: texto y una foto real grande ---------- */
.opener {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(90svh, 860px); padding: 0;
}
.opener-text {
  display: flex; align-items: center;
  padding: 140px 56px 72px max(16px, calc((100vw - var(--wrap)) / 2));
}
.opener h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); }
.opener .lead { margin: 26px 0 36px; }
.opener-photo { position: relative; overflow: hidden; border-bottom-left-radius: 40px; }
.opener-photo img { width: 100%; height: 100%; object-fit: cover; }
.stars-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.stars-line .stars { display: flex; gap: 2px; color: var(--star); }
.stars-line strong { color: var(--ink); }
.stars-line:hover { color: var(--ink); }
.opener + section { padding-top: 112px !important; }

/* ---------- Las cuatro puertas (bento) ---------- */
.doors {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.door { display: block; text-decoration: none; transition: transform .7s var(--spring); }
.door:hover { transform: translateY(-4px); }
.door .core { display: flex; flex-direction: column; }
.door .pic { overflow: hidden; }
.door .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--spring); }
.door:hover .pic img { transform: scale(1.04); }
.door .body { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 28px 28px; }
.door h3 { font-size: 2rem; margin-bottom: 8px; }
.door p { color: var(--muted); max-width: 40ch; }
.door .arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(13 42 31 / .06);
  font-size: 1.3rem;
  transition: transform .5s var(--spring), background-color .4s var(--spring);
}
.door:hover .arrow { transform: translate(3px, -3px); background: var(--sage); }
/* Las cuatro del mismo tamaño */
.door-a, .door-c { grid-column: 1 / 7; }
.door-b, .door-d { grid-column: 7 / 13; }
.door .pic { aspect-ratio: 16 / 10; }

/* ---------- Cinta de servicios ---------- */
.ticker { overflow: hidden; white-space: nowrap; padding: 26px 0; border-block: 1px solid var(--line); }
.ticker-track { display: inline-flex; gap: 48px; padding-right: 48px; }
.ticker-track span {
  font: 500 1.9rem/1 var(--display);
  letter-spacing: -.03em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 48px;
}
.ticker-track span i { font-size: 1.1rem; color: var(--orange); }

/* ---------- Bloque oscuro ---------- */
.dark { background: var(--forest); color: #eef2ea; }
.dark .lead, .dark .muted { color: #b3c3b1; }
.dark .tag { background: rgb(255 255 255 / .07); }
.dark .tag i { color: var(--sage); }
.together { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.together blockquote {
  margin: 0;
  font: 500 clamp(1.9rem, 3.4vw, 2.9rem)/1.15 var(--display);
  letter-spacing: -.03em;
}
.together blockquote em { font-style: normal; color: var(--sage); }
.together .lead { margin: 28px 0 36px; }
.cascade { position: relative; min-height: 560px; }
.cascade .shell { position: absolute; width: 64%; }
.cascade .one { top: 0; right: 0; transform: rotate(2.5deg); }
.cascade .two { bottom: 0; left: 0; transform: rotate(-2deg); }
.cascade .core { aspect-ratio: 4 / 3.3; }

/* ---------- CDMX ---------- */
.cdmx { padding: 0; position: relative; }
.cdmx > img { width: 100%; height: min(88vh, 780px); object-fit: cover; }
.cdmx-card {
  position: absolute; left: max(16px, calc((100% - var(--wrap)) / 2)); bottom: 56px;
  width: min(520px, calc(100% - 32px));
}
.cdmx-card .core { padding: 38px; background: rgb(251 252 250 / .94); }
.cdmx-card h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.cdmx-card .lead { margin-bottom: 28px; font-size: 1.08rem; }

/* ---------- Reseñas ---------- */
.reviews { display: grid; grid-template-columns: auto 1fr auto; gap: 64px; align-items: center; }
.reviews .big { font: 600 clamp(6rem, 13vw, 10rem)/.8 var(--display); letter-spacing: -.06em; color: var(--orange); }
.reviews .stars { color: var(--star); font-size: 1.5rem; display: flex; gap: 3px; margin-bottom: 14px; }
.reviews h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }

/* ---------- Notas ---------- */
.notes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.note-card { text-decoration: none; display: block; transition: transform .7s var(--spring); }
.note-card:hover { transform: translateY(-4px); }
.note-card .pic { aspect-ratio: 16 / 10; overflow: hidden; }
.note-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.note-card .body { padding: 24px 26px 28px; }
.note-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.note-card h3 { font-size: 1.45rem; }
.notes .n1 { grid-column: 1 / 8; grid-row: span 2; }
.notes .n1 .pic { aspect-ratio: 16 / 11.5; }
.notes .n1 h3 { font-size: 2rem; }
.notes .n2, .notes .n3 { grid-column: 8 / 13; }
.notes .n2 .pic, .notes .n3 .pic { display: none; }
.notes-all { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Visítanos ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: stretch; }
.facts { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.facts .ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-soft);
  font-size: 1.25rem; color: var(--forest);
}
.facts strong { display: block; font-weight: 600; }
.facts span, .facts a { color: var(--muted); }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--ink); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 460px; display: block; filter: saturate(.85); }
.map-link { position: relative; display: block; height: 100%; min-height: 460px; color: #fff; text-decoration: none; }
.map-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-link span {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--forest); font-weight: 600;
}

/* ---------- Páginas internas ---------- */
.page-hero { padding: 150px 0 96px; position: relative; overflow: hidden; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.page-hero .core { aspect-ratio: 4 / 4.2; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.catalog { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cat .core { display: flex; flex-direction: column; }
.cat .pic { aspect-ratio: 4 / 3.4; overflow: hidden; }
.cat .pic img { width: 100%; height: 100%; object-fit: cover; }
.cat .body { padding: 22px 24px 26px; }
.cat h3 { margin-bottom: 8px; }
.cat p { color: var(--muted); font-size: .98rem; }
.catalog .cat { grid-column: span 4; }
.catalog .cat.wide { grid-column: span 8; }
.catalog .cat.wide .pic { aspect-ratio: 16 / 8.4; }

.also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; padding: 0; }
.also li { padding: 10px 18px; border-radius: 999px; background: var(--sage-soft); font-weight: 500; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service .core { padding: 34px 34px 36px; }
.service .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-soft);
  font-size: 1.5rem; color: var(--forest);
  margin-bottom: 26px;
}
.dark .service .ic { background: rgb(160 191 131 / .14); color: var(--sage); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); }
.dark .service p { color: #b3c3b1; }
.service ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.dark .service li { color: #c9d4c7; }
.service li::before { content: ""; flex: 0 0 12px; height: 1.5px; background: var(--orange); transform: translateY(-4px); }
.dark .service li::before { background: var(--sage); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery .core { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: .92rem; color: var(--muted); margin: 12px 6px 0; }
.gallery .g-wide { grid-column: span 7; }
.gallery .g-narrow { grid-column: span 5; }
.gallery .g-third { grid-column: span 4; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 26px; }
.dark .steps li { border-color: rgb(255 255 255 / .3); }
.steps .num { font: 600 .9rem/1 var(--display); color: var(--orange); margin-bottom: 18px; display: block; }
.dark .steps .num { color: var(--sage); }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--muted); }
.dark .steps p { color: #b3c3b1; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  font: 600 1.15rem/1.35 var(--display);
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--orange); transition: transform .4s var(--spring); flex-shrink: 0; margin-top: 3px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 66ch; }

.cta-band .core {
  background: var(--forest);
  color: #eef2ea;
  padding: 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-band p { color: #b3c3b1; margin-top: 14px; max-width: 52ch; }
.cta-band .veil {
  position: absolute; right: -60px; top: -40px; width: 380px; height: 460px;
  background: rgb(160 191 131 / .12);
  -webkit-mask: url("/img/celosia.png") center / cover no-repeat;
  mask: url("/img/celosia.png") center / cover no-repeat;
  pointer-events: none;
}
.cta-band .core > div, .cta-band .core > .btn { position: relative; }

/* ---------- Trabajos realizados ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
  font: 500 .95rem/1 var(--body); cursor: pointer;
  transition: background-color .3s var(--spring), color .3s var(--spring);
}
.chip:hover { background: rgb(13 42 31 / .05); }
.chip.is-on { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.projects, .projects-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.project { display: block; text-decoration: none; min-width: 0; }
.project[hidden] { display: none; }
.project .main { aspect-ratio: 4 / 3.4; overflow: hidden; }
.project .main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--spring); }
a.project:hover .main img { transform: scale(1.03); }
.project .thumbs { display: flex; gap: 6px; padding: 8px 8px 0; overflow-x: auto; }
.thumb {
  flex: 0 0 auto; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  opacity: .55; outline-offset: 2px; transition: opacity .3s var(--spring);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-on { opacity: 1; }
.thumb.is-on { outline: 2px solid var(--orange); }
.project .main { position: relative; cursor: zoom-in; }
a.project .main { cursor: pointer; }
.project .count {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgb(6 38 27 / .78); color: #fff; font-size: .85rem; font-weight: 600;
}
.thumb.extra { display: none; }
.more {
  flex: 0 0 auto; width: 56px; height: 56px; border: 0; border-radius: 10px;
  background: var(--sage-soft); color: var(--forest); font: 600 .95rem/1 var(--body); cursor: pointer;
}
.more:hover { background: var(--sage); }

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(4 20 14 / .96); color: #fff;
}
.viewer[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.viewer::backdrop { background: rgb(4 20 14 / .8); }
.viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 0 24px; min-width: 0; }
.viewer img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 12px; }
.viewer figcaption { font-size: .95rem; color: #c9d4c7; text-align: center; padding: 0 12px; }
.viewer button {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .1); color: #fff; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; justify-self: center;
}
.viewer button:hover { background: rgb(255 255 255 / .2); }
.viewer .v-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
@media (max-width: 720px) {
  .viewer[open] { grid-template-columns: 1fr; }
  .viewer .v-prev, .viewer .v-next { position: absolute; bottom: 20px; }
  .viewer .v-prev { left: 20px; }
  .viewer .v-next { right: 20px; }
  .viewer figure { padding-bottom: 90px; }
}

.project .body { padding: 18px 22px 24px; }
.project .cat-label { font-size: .82rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.project h3 { font-size: 1.35rem; margin-bottom: 8px; }
.project .body p:last-child { color: var(--muted); font-size: .97rem; }

/* ---------- Notas (artículo) ---------- */
.article { padding: 150px 0 40px; }
.article-head { max-width: 820px; margin: 0 auto 48px; }
.article-head .meta { color: var(--muted); font-size: .95rem; margin-top: 22px; }
.article h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.article .cover { max-width: 1040px; margin: 0 auto 64px; }
.article .cover .core { aspect-ratio: 16 / 8.5; }
.prose { max-width: 700px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.9rem; margin: 56px 0 18px; }
.prose h3 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.2em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 600; }
.prose a { color: var(--forest); text-decoration-color: var(--orange); text-underline-offset: 4px; }
.prose .box {
  background: var(--sage-soft);
  border-radius: var(--r-core);
  padding: 28px 30px;
  margin: 40px 0;
}
.prose .box p:last-child { margin-bottom: 0; }

/* ---------- Pie de página ---------- */
footer.site { background: var(--forest); color: #c9d4c7; padding: 96px 0 120px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand .wordmark { color: var(--paper); font-size: 4.6rem; display: block; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
footer.site h4 { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--paper); }
.socials { display: grid; gap: 14px; }
.social-row { display: grid; grid-template-columns: 80px auto auto; align-items: center; gap: 10px; justify-content: start; }
.social-row span { color: #c9d4c7; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .16);
  font-size: 1.3rem; color: #eef2ea;
  transition: background-color .3s var(--spring), border-color .3s var(--spring);
}
.social-row a:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.foot-bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; color: #8fa596; }

.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 30;
  display: none;
  box-shadow: 0 14px 34px -10px rgb(2 15 10 / .5);
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--out), transform 1s var(--out); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .ticker-track { animation: slide 46s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }

  @supports (animation-timeline: view()) {
    .lattice .veil, .cta-band .veil {
      animation: drift linear both;
      animation-timeline: view();
    }
    @keyframes drift { from { transform: translateY(-4%) rotate(-1deg); } to { transform: translateY(4%) rotate(1deg); } }
  }
}

/* ---------- Tableta ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav { gap: 14px; }
  .hero-grid, .page-hero .hero-grid, .together, .visit { grid-template-columns: 1fr; gap: 56px; }
  .float-card { left: 16px; bottom: 16px; }
  .cascade { min-height: 520px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .catalog .cat { grid-column: span 6; }
  .projects, .projects-teaser { grid-template-columns: 1fr 1fr; }
  .catalog .cat.wide { grid-column: span 12; }
  .reviews { grid-template-columns: auto 1fr; }
  .reviews .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .hero, .page-hero, .article { padding-top: 112px; }
  .hero { padding-bottom: 72px; }
  .nav .btn { display: none; }
  .nav { padding: 5px 5px 5px 20px; width: 100%; justify-content: space-between; }
  .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
  .float-card { position: relative; left: auto; bottom: auto; width: auto; margin-top: 14px; }
  .doors, .notes, .catalog, .gallery { grid-template-columns: 1fr; }
  .doors > *, .notes > *, .catalog > *, .gallery > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .door .body { padding: 22px; }
  .door h3 { font-size: 1.7rem; }
  .notes .n2 .pic, .notes .n3 .pic { display: block; }
  .notes-all, .services, .steps, .projects, .projects-teaser { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .cascade { min-height: 0; display: grid; gap: 16px; }
  .cascade .shell { position: static; width: 100%; transform: none; }
  .cdmx > img { height: 440px; }
  .cdmx-card { position: static; width: auto; margin: -72px 12px 0; }
  .cdmx-card .core { padding: 26px; }
  .reviews { grid-template-columns: 1fr; gap: 22px; }
  .map-frame { min-height: 340px; }
  .cta-band .core { grid-template-columns: 1fr; padding: 36px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-brand .wordmark { font-size: 3.6rem; }
  .wa-float { display: inline-flex; }
  .hero .deco { width: 240px; left: -70px; bottom: -90px; }
  .prose { font-size: 1.05rem; }
}

@media (max-width: 900px) {
  .opener { grid-template-columns: 1fr; min-height: 0; }
  .opener-text { padding: 116px 16px 36px; }
  .opener-photo { aspect-ratio: 4 / 4.4; margin: 0 16px; border-radius: var(--r-core); }
}
