/* Casa Singular — estilos
   Marca: negro grafito + gris azulado del logotipo + taupe cálido.
   Tipos: Anaheim (titulares) · Abhaya Libre (texto) — los mismos de la web original. */

:root {
  --ink: #0d141a;
  --graphite: #333536;
  --text: #56585e;
  --muted: #8a8c91;
  --steel: #c0ccd2;      /* círculo claro del logotipo */
  --steel-soft: #e6ecef;
  --taupe: #a69480;      /* acento cálido de la web original */
  --taupe-dark: #7d6c59;
  --paper: #ffffff;
  --cream: #f6f4f1;
  --line: rgba(13, 20, 26, .12);

  --f-head: "Anaheim", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Abhaya Libre", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 11vw, 140px);
  --radius: 4px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-t));
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--pad), var(--safe-l));
  padding-right: max(var(--pad), var(--safe-r));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-head);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h-xl { font-size: clamp(40px, 6.4vw, 84px); }
.h-lg { font-size: clamp(34px, 4.6vw, 60px); }
.h-md { font-size: clamp(26px, 2.6vw, 36px); }

.lead { font-size: clamp(19px, 1.4vw + 12px, 24px); line-height: 1.5; color: var(--text); }

/* ---------- Botones ---------- */
button, .btn, .filter, input, textarea { -webkit-appearance: none; appearance: none; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  font-family: var(--f-head);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }

@media (hover: hover) {
  .btn:hover { background: var(--taupe); border-color: var(--taupe); color: #fff; }
  .btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
}

/* ---------- Cabecera ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: var(--safe-t);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo { display: grid; }
.header__logo img {
  grid-area: 1 / 1;
  height: 30px;
  width: auto;
  transition: opacity .35s var(--ease);
}
.header__logo .logo-dark { opacity: 0; }
.header.is-solid .header__logo .logo-light,
body.menu-open .header__logo .logo-light { opacity: 0; }
.header.is-solid .header__logo .logo-dark,
body.menu-open .header__logo .logo-dark { opacity: 1; }
@media (max-width: 380px) { .header__logo img { height: 26px; } }
/* Fondo sólido (sin backdrop-filter): se ve igual y estable en Safari iOS,
   Chrome Android y los navegadores integrados de Instagram/Facebook. */
.header.is-solid {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-family: var(--f-head);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); } }
.header.is-solid .nav a { color: var(--ink); }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  margin-right: -10px;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 24px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease), top .3s var(--ease);
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.header.is-solid .burger span,
.header.is-solid .burger span::before,
.header.is-solid .burger span::after { background: var(--ink); }

body.menu-open .burger span { background: transparent !important; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .burger { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: calc(var(--header-h) + var(--safe-t)) var(--pad) calc(40px + var(--safe-b));
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav a {
    color: var(--ink) !important;
    font-size: clamp(30px, 8vw, 42px);
    letter-spacing: .04em;
    padding: 10px 0;
    transform: translateY(14px);
    opacity: 0;
    transition: transform .45s var(--ease), opacity .45s var(--ease);
  }
  .nav a::after { display: none; }
  body.menu-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  body.menu-open .nav a { transform: none; opacity: 1; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .04s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .08s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .12s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .16s; }
  .header__logo { position: relative; z-index: 2; }
  .nav__extra { display: flex !important; }
}
.nav__extra {
  display: none;
  gap: 14px;
  margin-top: 28px;
}
.nav__extra a {
  font-size: 15px !important;
  letter-spacing: .12em !important;
  color: var(--taupe) !important;
}
body.menu-open, body.lb-open { overflow: hidden; }
/* Bloqueo de scroll real en iOS (overflow:hidden no basta en Safari/WebView) */
body.scroll-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
/* Navegadores integrados (Instagram, Facebook…): sin desplazamiento suave ni animación de portada */
.inapp { scroll-behavior: auto; }
.inapp .hero__media img { animation: none; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 16s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,20,26,.55) 0%, rgba(13,20,26,0) 28%),
    linear-gradient(0deg, rgba(13,20,26,.82) 0%, rgba(13,20,26,.25) 55%, rgba(13,20,26,.1) 100%);
}
.hero__content {
  padding-top: calc(var(--header-h) + var(--safe-t) + 40px);
  padding-bottom: calc(clamp(56px, 9vw, 110px) + var(--safe-b));
}
.hero .eyebrow { color: var(--steel); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__sub {
  margin: 22px 0 34px;
  font-size: clamp(18px, 1.3vw + 12px, 23px);
  color: rgba(255,255,255,.86);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .hero__ctas .btn { flex: 1 1 100%; } }
.hero__scroll {
  position: absolute;
  right: max(var(--pad), var(--safe-r));
  bottom: calc(40px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.75);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 56px; background: rgba(255,255,255,.5);
  animation: scrollLine 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Hero de sección (servicios) */
.band {
  position: relative;
  min-height: clamp(380px, 62vh, 620px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,20,26,.55); }
.band h1, .band h2 { color: #fff; max-width: 18ch; }
.band--top {
  min-height: clamp(460px, 72vh, 720px);
  min-height: clamp(460px, calc(var(--vh, 1vh) * 72), 720px);
  padding: calc(var(--header-h) + var(--safe-t) + 30px) 0 50px;
  align-items: flex-end;
}
.band--top::after { background: linear-gradient(180deg, rgba(13,20,26,.6) 0%, rgba(13,20,26,.35) 40%, rgba(13,20,26,.75) 100%); }
.quote--top { padding-top: calc(var(--sec) + var(--header-h) + var(--safe-t)); }

/* Página 404 */
.notfound { min-height: 100vh; min-height: calc(var(--vh, 1vh) * 100); display: flex; align-items: center; text-align: center; background: var(--cream); }
.notfound .brandmark { margin-bottom: 26px; }
.notfound p { margin: 18px auto 30px; max-width: 40ch; }
.band .eyebrow { color: var(--steel); }

/* ---------- Secciones ---------- */
.section { padding: var(--sec) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Marca: tira de 3 cuadrados */
.brandmark { display: inline-flex; gap: 6px; }
.brandmark i { width: 18px; height: 18px; background: var(--graphite); display: grid; place-items: center; border-radius: 2px; }
.brandmark i::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--steel); }
.brandmark i:last-child { background: var(--steel); }
.brandmark i:last-child::after { background: var(--graphite); }

/* ---------- Pilares (Singularidad al máximo) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.pillar {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--steel-soft); }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .pillar:hover .pillar__img img { transform: scale(1.05); } }
.pillar__body { padding: 26px 4px 0; }
.pillar__num { font-family: var(--f-head); font-size: 13px; letter-spacing: .2em; color: var(--taupe); }
.pillar h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 8px 0 12px; }
.pillar p { margin: 0; }

@media (max-width: 900px) {
  .pillars {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 8px;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
}
.swipe-hint {
  display: none;
  margin-top: 18px;
  font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) { .swipe-hint { display: block; } }

/* Mosaico intro */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.intro__media { position: relative; }
.intro__media .big { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.intro__media .small {
  position: absolute;
  width: 46%;
  right: -6%;
  bottom: -10%;
  aspect-ratio: 3 / 4; object-fit: cover;
  border: 8px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(13,20,26,.35);
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro__media { margin-bottom: 40px; }
  .intro__media .small { right: 0; bottom: -40px; width: 44%; border-width: 6px; }
}

/* ---------- Galería CTA ---------- */
.cta-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.cta-gallery__media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.cta-gallery__body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(48px, 7vw, 110px);
}
.cta-gallery__body h2 { color: #fff; margin-bottom: 16px; }
.cta-gallery__body p { color: rgba(255,255,255,.75); margin-bottom: 30px; }
.cta-gallery .eyebrow { color: var(--steel); }
@media (max-width: 800px) {
  .cta-gallery { grid-template-columns: 1fr; }
  .cta-gallery__media img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Quiénes somos ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about__photo { position: relative; }
.about__photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 1051 / 855; object-fit: cover; object-position: center 55%; }
.stat {
  display: flex; align-items: baseline; gap: 18px;
  margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat strong {
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(56px, 7vw, 92px); line-height: 1; color: var(--ink);
}
.stat span { font-family: var(--f-head); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--taupe); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Equipo */
.team-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: clamp(72px, 10vw, 120px) 0 36px;
}
.team-head p {
  margin: 0;
  font-family: var(--f-head); letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--taupe);
}
.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.member { display: flex; flex-direction: column; }
.member__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--steel-soft);
  margin-bottom: 16px;
}
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.02); transition: filter .6s var(--ease), transform 1s var(--ease); }
@media (hover: hover) { .member:hover .member__img img { filter: none; transform: scale(1.04); } }
.member h3 { font-size: 22px; margin-bottom: 2px; }
.member__role { font-size: 15px; color: var(--taupe); margin: 0 0 12px; }
.member__links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.member__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink);
  min-height: 40px;
}
.member__links svg { width: 15px; height: 15px; flex: none; color: var(--taupe); }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
/* Móvil: tarjeta horizontal (foto a la izquierda, datos a la derecha) */
@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; gap: 0; }
  .member {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }
  .member:last-child { border-bottom: 1px solid var(--line); }
  .member__img { grid-row: span 3; aspect-ratio: auto; height: 116px; margin: 0; }
  .member h3 { font-size: 21px; margin-top: 2px; }
  .member__role { margin-bottom: 4px; }
  .member__links a { font-size: 15px; min-height: 36px; }
}
@media (max-width: 359px) {
  .member { grid-template-columns: 78px 1fr; column-gap: 12px; }
  .member__img { height: 96px; }
  .member__links a { font-size: 14px; }
}

/* ---------- Historia ---------- */
.timeline { position: relative; display: grid; gap: clamp(48px, 7vw, 96px); }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.18);
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.tl__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.tl__num {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--taupe);
  color: var(--taupe);
  font-family: var(--f-head); font-size: 20px;
}
.tl__year { font-family: var(--f-head); font-size: clamp(44px, 5vw, 68px); color: #fff; line-height: 1; margin-bottom: 14px; }
.tl__text p { color: rgba(255,255,255,.78); margin: 0; }
.tl__text p strong { color: #fff; font-weight: 600; }
.tl:nth-child(even) .tl__media { order: 2; }
@media (max-width: 800px) {
  .timeline::before { left: 25px; }
  .tl { grid-template-columns: 1fr; gap: 22px; padding-left: 70px; }
  .tl:nth-child(even) .tl__media { order: 0; }
  .tl__num { left: 25px; top: 0; transform: translate(-50%, 0); width: 46px; height: 46px; font-size: 18px; }
}

/* ---------- Servicios: proceso ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--f-head); font-size: 56px; line-height: 1; color: var(--steel); margin-bottom: 18px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 17px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
  .step__n { font-size: 42px; grid-row: span 2; }
}

/* Tarjetas de categorías */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(56px, 8vw, 96px);
}
.cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,20,26,.85), rgba(13,20,26,0) 60%); }
.cat__body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.cat h3 { color: #fff; font-size: clamp(24px, 2.2vw, 32px); }
.cat p { margin: 6px 0 0; font-size: 16px; color: rgba(255,255,255,.82); }
@media (hover: hover) { .cat:hover img { transform: scale(1.06); } }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .cats { gap: 10px; }
  .cat { aspect-ratio: 3 / 4.2; }
  .cat::after { background: linear-gradient(0deg, rgba(13,20,26,.92) 0%, rgba(13,20,26,.55) 45%, rgba(13,20,26,0) 75%); }
  .cat__body { left: 14px; right: 14px; bottom: 14px; }
  .cat h3 { font-size: 21px; }
  .cat p { font-size: 14px; line-height: 1.35; }
}

/* Bloques de servicio en detalle */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 11vw, 150px); }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.feature__tag {
  position: absolute; top: 20px; left: 20px;
  background: #fff; color: var(--ink);
  font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px;
}
.feature h3 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: .02em; margin-bottom: 22px; }
.feature h3 small { display: block; font-size: .45em; letter-spacing: .24em; color: var(--taupe); margin-top: 8px; }
.feature p { font-size: clamp(18px, 1.1vw + 12px, 21px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media img { aspect-ratio: 4 / 4.3; }
}

/* ---------- Galería ---------- */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  touch-action: manipulation;
}
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter sup { font-size: 10px; margin-left: 4px; opacity: .6; }

/* Rejilla (no columnas CSS): las columnas impiden la carga diferida de
   imágenes en Chrome Android y dan fallos de pintado en Safari iOS. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative;
  display: block;
  height: 0;
  padding-top: 125%;          /* proporción 4:5 sin depender de aspect-ratio */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-soft);
  cursor: zoom-in;
}
.tile figure { position: absolute; inset: 0; margin: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  font-family: var(--f-head); font-size: 14px; letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(0deg, rgba(13,20,26,.75), rgba(13,20,26,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  text-align: left;
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.04); }
  .tile:hover figcaption { opacity: 1; transform: none; }
}
@media (hover: none) { .tile figcaption { opacity: 1; transform: none; padding: 30px 10px 10px; font-size: 13px; line-height: 1.3; } }
.tile.is-hidden { display: none; }

.gallery-more { text-align: center; margin-top: 34px; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,14,18,.97);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.lb__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + var(--safe-t)) max(16px, var(--safe-r)) 10px max(16px, var(--safe-l));
  color: rgba(255,255,255,.8);
  font-family: var(--f-head); font-size: 14px; letter-spacing: .08em;
}
.lb__caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__count { color: var(--taupe); margin-right: 10px; }
.lb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 max(12px, var(--safe-l)); }
.lb__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.lb__stage img.is-loading { opacity: .25; }
.lb__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  transition: background .2s;
  flex: none;
}
.lb__btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .lb__btn:hover { background: rgba(255,255,255,.18); } }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: max(16px, var(--safe-l)); }
.lb__next { right: max(16px, var(--safe-r)); }
.lb__bottom { height: calc(18px + var(--safe-b)); }
@media (max-width: 700px) {
  .lb__nav { top: auto; bottom: calc(14px + var(--safe-b)); transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .lb__bottom { height: calc(80px + var(--safe-b)); }
}

/* ---------- Presupuesto / contacto ---------- */
.quote {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.quote__bg { position: absolute; inset: 0; z-index: -2; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,20,26,.9) 0%, rgba(13,20,26,.7) 55%, rgba(13,20,26,.45) 100%); }
.quote__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.quote h1, .quote h2 { color: #fff; }
.quote .eyebrow { color: var(--steel); }
.quote__info p { color: rgba(255,255,255,.8); }
.quote__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.quote__list a, .quote__list div {
  display: flex; align-items: center; gap: 14px;
  min-height: 52px;
  color: #fff;
  font-size: 19px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: 8px 0;
  word-break: break-word;
}
.quote__list small { display: block; font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.quote__list svg { width: 20px; height: 20px; flex: none; color: var(--taupe); }

.form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.form h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 6px; }
.form > p { color: var(--text); margin-bottom: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-family: var(--f-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 17px;   /* ≥16px evita el zoom automático en iOS */
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.field.is-error input, .field.is-error textarea { border-color: #c0392b; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form__note a { text-decoration: underline; }
@media (max-width: 900px) { .quote__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row, .form__actions { grid-template-columns: 1fr; } }

/* Ubicación */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.info-block { padding: 24px 0; border-top: 1px solid var(--line); }
.info-block:last-of-type { border-bottom: 1px solid var(--line); }
.info-block small { display: block; font-family: var(--f-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 6px; }
.info-block p { margin: 0; color: var(--ink); font-size: 20px; }
.info-block a { display: inline-flex; align-items: center; min-height: 44px; }
.map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-soft);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 24px;
  background:
    linear-gradient(rgba(230,236,239,.88), rgba(230,236,239,.88)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(13,20,26,.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(13,20,26,.06) 38px 39px);
}
.map__pin { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.map__pin svg { width: 26px; height: 26px; }
.map__placeholder p { margin: 0; color: var(--ink); font-size: 19px; }
.map__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(64px, 9vw, 110px) 0 calc(30px + var(--safe-b)); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo img { height: 34px; width: auto; }
.footer__claim { margin: 22px 0 0; max-width: 32ch; font-size: 17px; }
.footer h4 { font-family: var(--f-head); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer li a, .footer li span { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 17px; }
@media (hover: hover) { .footer li a:hover { color: var(--steel); } }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff;
  transition: background .25s, border-color .25s;
}
.socials svg { width: 19px; height: 19px; }
@media (hover: hover) { .socials a:hover { background: var(--taupe); border-color: var(--taupe); } }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px;
  padding-top: 26px; font-size: 15px;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__bottom a { color: rgba(255,255,255,.7); min-height: 40px; display: inline-flex; align-items: center; }
/* Deja sitio al botón flotante de WhatsApp al final de la página */
@media (max-width: 900px) { .footer { padding-bottom: calc(96px + var(--safe-b)); } }
@media (hover: hover) { .footer__bottom a:hover { color: #fff; } }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(18px, var(--safe-r));
  bottom: calc(18px + var(--safe-b));
  z-index: 40;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), opacity .3s;
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; right: max(14px, var(--safe-r)); bottom: calc(14px + var(--safe-b)); } .wa-float svg { width: 27px; height: 27px; } }
.wa-float:active { transform: scale(.92); }
body.menu-open .wa-float, body.lb-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Página legal ---------- */
.legal-hero { padding: calc(var(--header-h) + var(--safe-t) + clamp(50px, 8vw, 100px)) 0 clamp(40px, 6vw, 70px); background: var(--cream); }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.legal { max-width: 820px; }
.legal section { padding-top: 30px; }
.legal section + section { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 60px; }
.legal h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 30px; }
.legal h3 { font-size: 22px; margin: 34px 0 12px; letter-spacing: .02em; }
.legal p, .legal li { font-size: 18px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--taupe-dark); text-decoration: underline; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 1em; }
.legal dt { font-family: var(--f-head); color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.js .reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
