/* =========================================================
   Boceto Imagen & Espacio — hoja de estilos
   Paleta según el Logo Book (Dari Be Studio); tipografía Montserrat (SIL OFL)
   ========================================================= */

/* Montserrat variable permite ajustar el grosor sin simular negritas. */
@font-face {
  font-family: "Montserrat"; src: url("../fonts/montserrat-variable-latin-ext.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; src: url("../fonts/montserrat-variable-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1e100e;
  --brown: #7d4c2f;
  --olive: #7c775e;
  --olive-dark: #5f5b47;
  --taupe: #beb5a5;
  --cream: #ebe4d4;
  --paper: #f5f1ea;
  --white: #fffdf9;
  --line: rgba(30, 16, 14, .14);
  --line-light: rgba(235, 228, 212, .22);
  --wa: #1f7a4d;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(.82rem, .8rem + .1vw, .875rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .75vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 4.2rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --max: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-weight: 450; font-size: var(--step-0);
  line-height: 1.65; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding: 0; margin: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brown);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: var(--step-1); font-weight: 450; line-height: 1.55; max-width: 60ch; }
.muted { color: rgba(30, 16, 14, .72); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brown); color: var(--white); }
.btn--primary:hover { background: #6a3f26; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(125, 76, 47, .08); }
.on-dark .btn--ghost:hover { background: rgba(235, 228, 212, .1); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17633e; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; color: var(--brown); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(245, 241, 234, .92); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header--dark { background: rgba(30, 16, 14, .9); color: var(--cream); }
.site-header--dark.is-scrolled { border-bottom-color: var(--line-light); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 34px; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__word { width: 108px; height: 17px; }
.brand__tag { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; line-height: 1; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav__toggle-sub {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: 999px;
  text-decoration: none; font-size: .92rem; font-weight: 500; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav__toggle-sub:hover { background: rgba(125, 76, 47, .09); }
.site-header--dark .nav a:hover, .site-header--dark .nav__toggle-sub:hover { background: rgba(235, 228, 212, .1); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .btn { margin-left: .6rem; padding: .6rem 1.15rem; min-height: 42px; font-size: .88rem; font-weight: 700; }
.nav .btn:hover { background: #6a3f26; }
.has-sub { position: relative; }
.nav__toggle-sub svg { width: 12px; height: 12px; transition: transform .25s; }
.has-sub.is-open .nav__toggle-sub svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; padding: .5rem;
  background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(30,16,14,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.has-sub.is-open .subnav, .has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: .7rem .9rem; border-radius: 12px; }
.subnav a:hover { background: var(--paper) !important; }
.subnav small { font-size: .78rem; color: rgba(30,16,14,.65); font-weight: 450; }
.subnav strong { font-weight: 700; font-size: .92rem; }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.site-header--dark .menu-btn { border-color: var(--line-light); }
.menu-btn span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: .25s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--paper); color: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav__toggle-sub { font-size: 1.35rem; font-weight: 700; padding: 1rem 0; border-radius: 0; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
  .nav a:hover, .nav__toggle-sub:hover { background: none !important; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 .5rem; display: none; min-width: 0; }
  .has-sub.is-open .subnav { display: block; }
  .has-sub:hover .subnav { transform: none; }
  .subnav a { padding: .8rem 0 .8rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 1.5rem 0 0; min-height: 54px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (inicio) ---------- */
.on-dark { background: var(--ink); color: var(--cream); }
.on-dark .eyebrow { color: var(--taupe); }
.on-dark .muted { color: rgba(235, 228, 212, .75); }
.on-olive { background: var(--olive); color: var(--white); }
.on-olive .eyebrow { color: var(--cream); }
.on-cream { background: var(--cream); }

.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 5vw, 7rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; font-weight: 300; display: block; }
.hero .lead { color: rgba(235, 228, 212, .85); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__places { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.hero__places li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__places li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brown); }

.b-frame { position: relative; aspect-ratio: 3004 / 3386; width: min(100%, 540px); margin-inline: auto; }
.b-mask {
  position: absolute; inset: 0; background: #3a2a24;
  -webkit-mask: url("../b-silueta.svg") center / contain no-repeat; mask: url("../b-silueta.svg") center / contain no-repeat;
}
.b-mask img { width: 100%; height: 100%; object-fit: cover; }
.b-frame__badge {
  position: absolute; left: 0; bottom: 6%; background: var(--cream); color: var(--ink); border-radius: 14px;
  padding: .75rem 1rem; font-size: .8rem; line-height: 1.35; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); max-width: 220px;
}
.b-frame__badge strong { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: .2rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .b-frame { width: min(78%, 360px); }
  .hero__places { margin-top: 1.8rem; }
}

/* ---------- Página interior: cabecera ---------- */
.page-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: end; }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem); margin-bottom: 1.2rem; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--taupe); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); margin-bottom: 1.6rem; color: rgba(30,16,14,.65); }
.on-dark .crumbs { color: rgba(235,228,212,.7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Bloques ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { max-width: 46ch; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stat { border-top: 1px solid var(--line); padding-top: 1rem; }
.stat strong { display: block; font-size: var(--step-3); line-height: 1; margin-bottom: .4rem; }
.stat span { font-size: var(--step--1); color: rgba(30,16,14,.7); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat { display: flex; align-items: baseline; gap: 1rem; } .stat strong { min-width: 3.6ch; } }

.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--taupe); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo-stack { position: relative; }
.photo-stack .photo--small { position: absolute; right: -4%; bottom: -8%; width: 44%; aspect-ratio: 1; border: 6px solid var(--paper); border-radius: 22px; }
@media (max-width: 860px) { .photo-stack .photo--small { right: 4%; } }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(30,16,14,.45); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--taupe); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__num { font-size: var(--step--1); font-weight: 700; color: var(--brown); letter-spacing: .12em; }
.card__body h3 { font-size: var(--step-2); margin: 0 0 .2rem; }
.card__body p { margin: 0 0 1rem; color: rgba(30,16,14,.75); }
.card__body .link-arrow { margin-top: auto; }

/* Destacados (iconos) */
.highlights { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.highlight img { width: 64px; height: 64px; margin-bottom: 1rem; }
.highlight h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.highlight p { font-size: .92rem; margin: 0; opacity: .85; }
@media (max-width: 1000px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .highlights { grid-template-columns: 1fr; } .highlight { display: grid; grid-template-columns: 56px 1fr; gap: 0 1rem; } .highlight img { width: 56px; height: 56px; grid-row: span 2; } }

/* Tira de fotos */
.strip { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 0; height: clamp(180px, 28vw, 360px); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr 1fr; height: 200px; } .strip img:last-child { display: none; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.on-cream .step, .step--light { border-top-color: var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; color: var(--taupe); margin-bottom: .8rem; }
.on-cream .step::before { color: var(--brown); }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; margin: 0; opacity: .82; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Galería */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.filters button {
  min-height: 42px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .9rem;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--taupe); border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .85rem; padding: .5rem .2rem 0; color: rgba(30,16,14,.72); }
.gallery--compact { columns: 3 220px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 10, 8, .94); display: none; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: min(100%, 1400px); width: auto; border-radius: 10px; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1.2rem; text-align: center; color: var(--cream); font-size: .92rem; padding-inline: 4rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(30,16,14,.6); color: var(--cream); cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Listas de características */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { margin: 0; font-size: .95rem; color: rgba(30,16,14,.75); }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.checklist li { position: relative; padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 16px; height: 9px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg); }
.on-dark .checklist li { border-bottom-color: var(--line-light); }
.on-dark .checklist li::before { border-color: var(--taupe); }

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.2rem 0; margin: 0; color: rgba(30,16,14,.78); }

/* Cita / valores */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value { border-radius: var(--radius); padding: 1.6rem 1.4rem; background: rgba(255,253,249,.08); border: 1px solid var(--line-light); }
.value h3 { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.value p { margin: 0; font-size: .93rem; opacity: .85; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Llamado a la acción */
.cta-band { border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: .6rem; max-width: 20ch; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }
.cta-band__b { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 300px; opacity: .08; color: var(--cream); pointer-events: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.offices { display: grid; gap: .8rem; margin-top: 1.8rem; }
.office { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: rgba(255,253,249,.06); border: 1px solid var(--line-light); }
.office strong { display: block; }
.office span { font-size: .9rem; opacity: .8; }
.office .btn { min-height: 44px; padding: .55rem 1rem; font-size: .85rem; flex: none; }
.contact-lines { margin-top: 1.6rem; display: grid; gap: .5rem; font-size: .95rem; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.contact-lines a:hover { border-bottom-color: currentColor; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.form h3 { font-size: var(--step-2); margin-bottom: .3rem; }
.form > p { color: rgba(30,16,14,.7); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1px solid rgba(30,16,14,.22); background: var(--paper);
  font-size: 1rem; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown); background: #fff; box-shadow: 0 0 0 3px rgba(125,76,47,.15); }
.field--error input, .field--error select, .field--error textarea { border-color: #a3372b; }
.field__error { font-size: .8rem; color: #a3372b; min-height: 0; }
.form__note { font-size: .82rem; color: rgba(30,16,14,.62); margin: .8rem 0 0; }
.form .btn { width: 100%; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand svg.f-mark { width: 64px; height: 72px; color: var(--cream); margin-bottom: 1rem; }
.footer-brand svg.f-word { width: 150px; height: 23px; margin-bottom: .5rem; }
.footer-brand p { color: rgba(235,228,212,.72); font-size: .92rem; max-width: 32ch; margin-top: 1rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1.1rem; }
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.site-footer a { text-decoration: none; color: rgba(235,228,212,.9); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(235,228,212,.6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; }
.wa-float__btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .25s var(--ease);
}
.wa-float__btn:hover { transform: scale(1.06); }
.wa-float__btn svg { width: 30px; height: 30px; }
.wa-menu {
  position: absolute; right: 0; bottom: 74px; width: min(300px, calc(100vw - 32px)); background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 1rem; box-shadow: 0 30px 60px -20px rgba(30,16,14,.45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease);
}
.wa-float.is-open .wa-menu { opacity: 1; visibility: visible; transform: none; }
.wa-menu p { font-size: .88rem; margin: 0 0 .6rem; color: rgba(30,16,14,.72); }
.wa-menu a { display: flex; justify-content: space-between; align-items: center; padding: .8rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.wa-menu a:hover { background: var(--paper); }
.wa-menu a span { font-weight: 450; font-size: .8rem; color: rgba(30,16,14,.6); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound svg { width: 120px; height: 135px; margin: 0 auto 1.5rem; color: var(--brown); }

/* ---------- Ajustes ---------- */
.brand svg, .footer-brand svg, .cta-band__b, .notfound svg { fill: currentColor; }
.nav .btn--primary { background: var(--brown); color: var(--white); }
.nav .btn--primary[aria-current] { font-weight: 700; }
ol.steps, ol.checklist { list-style: none; padding: 0; margin: 0; }
.strip { grid-template-rows: 100%; overflow: hidden; }
.strip img { min-height: 0; }
.on-white { background: var(--white); }
ol.crumbs { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.cta-band__b { width: 380px; height: 430px; right: -90px; bottom: -190px; opacity: .07; }
@media (max-width: 820px) { .cta-band__b { width: 240px; height: 270px; right: -70px; bottom: -110px; } }
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-header--dark { background: var(--ink); }
}
@media (max-width: 960px) {
  .nav > a.btn { border-radius: 999px; justify-content: center; border-bottom: 0; padding: 1rem; font-size: 1.05rem; }
  body.menu-open .wa-float { display: none; }
}
.office__ig { display: block; margin-top: .2rem; font-size: .85rem; color: var(--taupe); text-decoration: none; }
.office__ig:hover { color: var(--cream); text-decoration: underline; }

/* Galería compacta en cuadrícula */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery figure { margin: 0; }
.gallery button { aspect-ratio: 4 / 3; border-radius: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; } .gallery button { border-radius: 10px; } }
.gallery-more { display: flex; justify-content: center; margin-top: 1.6rem; }
.gallery-more button[hidden] { display: none; }
.no-js .gallery figure[hidden] { display: block; }
.contact-grid > * { min-width: 0; }
.office { flex-wrap: wrap; }
.office > div { min-width: 0; }
.office__ig { overflow-wrap: anywhere; }

/* Los dos renders se muestran completos, juntos en escritorio. */
.page-hero__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.render-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: center; margin-bottom: 1.5rem; }
.render-pair figure { margin: 0; min-width: 0; }
.render-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 640px) { .render-pair { grid-template-columns: minmax(0, 1fr); } }
