@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f3ee; --paper-2: #ebe8e1; --card: #fffefb; --ink: #14202b; --ink-2: #3e4a55; --mute: #5b6570;
  --line: #dcdfe1; --blue: #234239; --blue-2: #2f5a4d; --sun: #f0d6a8; --terra: #8a4f12; --terra-soft: #f0d6a8; --star: #8a4f12; --wa: #25d366; --wa-ink: #04210f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem); --max: 1240px; --nav-h: 5.75rem; --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + .5rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; } img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, blockquote, dl { margin: 0; } ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
a, button, input, select, textarea { touch-action: manipulation; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; margin-top: .6rem; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38rem; margin-top: 1.1rem; }
section { padding-block: clamp(5rem, 13vw, 9.5rem); }
.pending { background: #fff3bf; color: #5c4400; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: 0 1.4rem; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s; }
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: var(--paper); }
.btn--blue:hover { background: var(--blue-2); }
.btn--ghost { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(12 20 28 / .28); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }

/* Cabecera */
.hdr { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); display: flex; align-items: center; transition: background-color .35s, box-shadow .35s, color .35s; color: #fff; }
.hdr.is-solid { background: rgb(245 243 238 / .97); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: block; flex: none; background: #fff; border-radius: 10px; padding: .15rem .35rem; box-shadow: 0 1px 6px rgb(12 20 28 / .18); }
.logo img { display: block; height: 4.7rem; width: auto; }
.hdr .btn { min-height: 2.5rem; padding: 0 1.05rem; font-size: .9rem; }
.hdr__end { display: flex; align-items: center; gap: .5rem; }
/* Selector de idioma: un select nativo con aspecto de píldora. */
.hdr .lang { display: block; color: inherit; }
.lang select { appearance: none; -webkit-appearance: none; font: 600 .85rem/1 var(--sans); color: inherit; letter-spacing: .06em; cursor: pointer;
  min-height: 2.5rem; padding: 0 1.7rem 0 .8rem; border-radius: 999px; border: 1px solid currentColor; background: transparent no-repeat right .6rem center / .7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
.lang option { color: var(--ink); background: var(--card); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Secciones: en móvil, fila de pestañas deslizable bajo el logo; en escritorio, en línea. */
.nav { display: flex; gap: 1.8rem; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .85; transition: opacity .25s, background-color .25s, color .25s, border-color .25s; } .nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
@media (max-width: 899px) {
  :root { --nav-h: 7.6rem; }
  .hdr { align-items: stretch; padding-top: .55rem; }
  .logo img { height: 3.6rem; }
  .hdr .wrap { flex-wrap: wrap; row-gap: .5rem; align-content: start; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .55rem; gap: .45rem; font-size: .88rem;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: .42rem .9rem; border-radius: 999px; opacity: 1; border: 1px solid rgb(255 255 255 / .4); background: rgb(12 20 28 / .38); }
  .hdr.is-solid .nav a { border-color: var(--line); background: var(--card); }
  .nav a[aria-current="page"], .hdr.is-solid .nav a[aria-current="page"] { text-decoration: none; background: var(--blue); border-color: var(--blue); color: var(--paper); }
}

/* Portada */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: clip; padding: 0; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .band__media picture { display: block; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12) translate3d(-1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 20 28 / .55) 0%, rgb(12 20 28 / .08) 26%, rgb(12 20 28 / .4) 50%, rgb(12 20 28 / .9) 100%); }
@media (min-width: 761px) { .hero::after { background: linear-gradient(90deg, rgb(12 20 28 / .55) 0%, rgb(12 20 28 / 0) 65%), linear-gradient(180deg, rgb(12 20 28 / .55) 0%, rgb(12 20 28 / .08) 26%, rgb(12 20 28 / .4) 50%, rgb(12 20 28 / .9) 100%); } }
.hero h1, .hero p, .hero__note { text-shadow: 0 1px 18px rgb(12 20 28 / .4); }
.hero__body { position: relative; z-index: 1; padding-block: 0 clamp(3.5rem, 10vh, 6rem); }

.hero h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(2.7rem, 11vw, 7rem); line-height: .96; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; font-weight: 300; color: var(--terra-soft); }
.hero p.hero__sub { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.2; max-width: 30rem; margin-top: 1.2rem; color: rgb(255 255 255 / .92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 2.2rem; display: flex; gap: .6rem 1.2rem; flex-wrap: wrap; font-size: .9rem; color: rgb(255 255 255 / .85); }
.hero__note span::before { content: "✓ "; color: var(--terra-soft); }
.hero__note .star::before { content: "★ "; }
.hero .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.04em; } .hero .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero .line:nth-child(2) > span { animation-delay: .12s; }
.hero p.hero__sub, .hero__cta, .hero__note { animation: fade 1.2s var(--ease) .35s both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

/* Aparición al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .06s; } .js .reveal[data-delay="2"] { transition-delay: .12s; } .js .reveal[data-delay="3"] { transition-delay: .18s; }

/* Servicios */
.services { display: grid; gap: 1px; margin-top: 3.5rem; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.service { background: var(--card); padding: 2rem 1.6rem 2.2rem; }
.service svg { width: 2.6rem; height: 2.6rem; color: var(--blue); }
.service h3 { font-family: var(--serif); font-weight: 450; font-size: 1.6rem; margin-top: 1.4rem; letter-spacing: -.01em; line-height: 1.15; }
.service p { color: var(--ink-2); margin-top: .5rem; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* Bandas con parallax */
.band { position: relative; height: clamp(26rem, 75vh, 46rem); overflow: clip; color: #fff; display: grid; align-items: center; padding: 0; }
.band { view-timeline: --band; }
.band__media { position: absolute; inset: -14% 0; }
/* Parallax con animación ligada al scroll: la mueve el compositor, sin JavaScript. Sin soporte, la banda queda fija. */
@supports (animation-timeline: view()) {
  .band__media { will-change: transform; animation: parallax linear both; animation-timeline: --band; animation-range: cover; }
  @keyframes parallax { from { transform: translate3d(0, 10%, 0); } to { transform: translate3d(0, -10%, 0); } }
}
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgb(12 20 28 / .45); }
.band blockquote { position: relative; z-index: 1; font-family: var(--serif); font-weight: 350; font-size: clamp(2rem, 6.5vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; max-width: 15ch; }
.band cite { display: block; margin-top: 1.4rem; font: 500 .85rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; font-style: normal; opacity: .85; }

/* Trabajos: antes y después */
.ba-pair { display: grid; gap: .8rem; margin-top: 3.5rem; }
@media (min-width: 760px) { .ba-pair { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.ba-pair figure { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair .tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; background: rgb(12 20 28 / .62); color: #fff; }
.ba-pair .tag--after { background: var(--terra); }
/* El «después» se descubre con una cortina al entrar en pantalla. */
.js .wipe picture { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) .25s; }
.js .wipe.is-in picture { clip-path: inset(0 0 0 0); }
.ba-caption { margin-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; font-size: .95rem; color: var(--ink-2); }
.ba-caption strong { font-family: var(--serif); font-weight: 450; font-size: 1.3rem; color: var(--ink); }

/* Galería */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 3rem; }
.gallery figure { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem .9rem .8rem; color: #fff; font-size: .88rem; line-height: 1.35; background: linear-gradient(transparent, rgb(12 20 28 / .75)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; } }

/* Por qué elegirnos */
.why { background: var(--blue); color: var(--paper); }
.why .eyebrow { color: var(--terra-soft); } .why .h2 { max-width: 16ch; }
.why__grid { display: grid; gap: 2.6rem; margin-top: 3.5rem; counter-reset: why; }
.why__item { border-top: 1px solid rgb(245 243 238 / .25); padding-top: 1.5rem; }
.why__item::before { counter-increment: why; content: "0" counter(why); font: 500 .85rem/1 var(--sans); letter-spacing: .18em; color: var(--terra-soft); }
.why__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; margin-top: 1rem; }
.why__item p { margin-top: .7rem; opacity: .85; max-width: 24rem; }
@media (min-width: 860px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Opiniones */
.reviews { display: grid; gap: 1.2rem; margin-top: 3.5rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1.6fr; align-items: stretch; } }
.score { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; }
.score b { font-family: var(--serif); font-weight: 300; font-size: clamp(4.5rem, 18vw, 7.5rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score .stars { color: var(--star); letter-spacing: .15em; font-size: 1.3rem; }
.score span { color: var(--ink-2); }
.score a { margin-top: auto; padding-top: 1rem; font-size: .92rem; color: var(--blue); font-weight: 600; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: 1.2rem; }
.review .stars { color: var(--star); letter-spacing: .15em; font-size: 1.05rem; }
.review blockquote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; }
.review footer { margin-top: auto; font-size: .92rem; color: var(--mute); }
.review footer b { color: var(--ink); font-weight: 600; }

/* Zona */
.zone__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .zone__grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.towns { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.towns li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .45rem .95rem; font-size: .95rem; }
.towns li:first-child { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map a { position: absolute; left: .7rem; top: .7rem; background: var(--card); padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; text-decoration: none; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }

/* Presupuesto */
.quote { background: var(--paper-2); }
.quote__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .85rem .95rem; width: 100%; min-height: 3.1rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 7.5rem; resize: vertical; }
form .btn { width: 100%; margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--mute); }
.contact { margin-top: 2.2rem; display: grid; gap: 1rem; font-size: 1.02rem; }
.contact dt { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.contact dd { margin: .15rem 0 0; }

/* Pie */

/* Botón flotante de WhatsApp */
.fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; box-shadow: 0 10px 28px rgb(12 20 28 / .28); transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.06); } .fab svg { width: 1.9rem; height: 1.9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .wipe picture { clip-path: none; }
}

/* ===== Multipágina ===== */

/* Portada de páginas interiores */
.page-hero { position: relative; min-height: clamp(26rem, 68svh, 40rem); display: grid; align-items: end; color: #fff; overflow: clip; padding: 0; }
.page-hero .hero__media img { animation-duration: 18s; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 20 28 / .55) 0%, rgb(12 20 28 / .15) 35%, rgb(12 20 28 / .85) 100%); }
.page-hero .hero__body { padding-block: 0 clamp(2.5rem, 7vh, 4.5rem); }
.page-hero .crumb { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-soft); animation: fade 1s var(--ease) both; }
.page-hero .crumb a { text-decoration: none; opacity: .85; } .page-hero .crumb a:hover { opacity: 1; }
.page-hero h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(2.8rem, 10vw, 6rem); line-height: .98; letter-spacing: -.03em; margin-top: .7rem; animation: rise-soft 1s var(--ease) .05s both; }
.page-hero p { max-width: 36rem; margin-top: 1rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: rgb(255 255 255 / .9); animation: fade 1.1s var(--ease) .25s both; text-shadow: 0 1px 14px rgb(12 20 28 / .4); }
@keyframes rise-soft { from { opacity: 0; transform: translateY(24px); } }

/* Encabezado de sección con enlace a la derecha */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.link-more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--blue-2); text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: .15rem; }
.link-more:hover { color: var(--blue); }
.link-more svg { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); } .link-more:hover svg { transform: translateX(3px); }
.service { position: relative; transition: background-color .3s; }
.service:hover { background: #fff; }
.service .more { display: inline-flex; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--blue-2); text-decoration: none; }
.service .more::after { content: ""; position: absolute; inset: 0; }

/* Trabajos destacados (inicio) */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 3rem; }
.featured .work a { aspect-ratio: 4 / 5; }
.featured .work picture { display: block; height: 100%; }
.featured .work img { height: 100%; object-fit: cover; }
@media (min-width: 900px) { .featured { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

/* Tarjeta de trabajo (con zoom) */
.work { position: relative; margin: 0; }
.work a { display: block; position: relative; border-radius: 16px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.work img { width: 100%; transition: transform 1.1s var(--ease); }
.work a:hover img { transform: scale(1.04); }
.work a::after { content: ""; position: absolute; top: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgb(255 255 255 / .9) center / 1.1rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a56' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease); }
.work a:hover::after, .work a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .work a::after { opacity: .92; transform: none; width: 1.9rem; height: 1.9rem; } }
.work figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem .9rem .8rem; color: #fff; font-size: .86rem; line-height: 1.35; background: linear-gradient(transparent, rgb(12 20 28 / .78)); border-radius: 0 0 16px 16px; pointer-events: none; }

/* Página de trabajos: filtros y mosaico */
.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 2.2rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) .3rem; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; font: 600 .92rem/1 var(--sans); padding: .75rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.filters button span { font-weight: 500; opacity: .6; margin-left: .25rem; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.6rem; }
.masonry .work { margin: 0; }
.masonry .work[hidden] { display: none; }
@media (min-width: 760px) { .masonry { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1150px) { .masonry { grid-template-columns: repeat(4, 1fr); } }

/* Visor de fotos */
html.lb-open { overflow: hidden; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #080c12; color: #fff; overscroll-behavior: contain; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .3s var(--ease); }
.lb::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: max(.6rem, env(safe-area-inset-top)) 1rem .6rem; font-size: .9rem; color: rgb(255 255 255 / .75); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 .5rem; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transition: opacity .25s, transform .35s var(--ease); }
.lb__cap { padding: .8rem 1.2rem max(1rem, env(safe-area-inset-bottom)); text-align: center; font-size: .95rem; color: rgb(255 255 255 / .88); min-height: 3.2rem; }
.lb button { font: inherit; color: #fff; background: rgb(255 255 255 / .1); border: 0; border-radius: 50%; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.lb button:hover { background: rgb(255 255 255 / .2); }
.lb button svg { width: 1.3rem; height: 1.3rem; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb__prev { left: .6rem; } .lb__next { right: .6rem; }
@media (max-width: 759px) { .lb__prev, .lb__next { top: auto; bottom: .4rem; transform: none; background: rgb(255 255 255 / .14); } }

/* Servicios (página) */
.svc-rows { display: grid; gap: clamp(4rem, 10vw, 7rem); }
.svc-row { display: grid; gap: 1.8rem; align-items: center; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.svc-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.svc-row__media picture { height: 100%; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__media--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: var(--sun); }
.svc-row__media--icon svg { width: 34%; height: auto; }
.svc-row .num { font: 600 .8rem/1 var(--sans); letter-spacing: .2em; color: var(--terra); }
.svc-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; margin-top: .7rem; }
.svc-row p { color: var(--ink-2); margin-top: .9rem; max-width: 34rem; }
.ticks { margin-top: 1.2rem; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .6rem; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 1.2rem; height: 1.2rem; margin-top: .25rem; border-radius: 50%; background: var(--sun) center / .75rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231e3a56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.svc-row .link-more { margin-top: 1.5rem; }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1.1fr 1fr; gap: 4rem; } .svc-row:nth-child(even) .svc-row__media { order: 2; } }

/* Cómo trabajamos */
.steps { display: grid; gap: 2rem; margin-top: 3.5rem; counter-reset: step; }
.step { border-top: 1px solid rgb(245 243 238 / .25); padding-top: 1.4rem; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sun); color: var(--blue); font: 700 1rem/1 var(--sans); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 1rem; line-height: 1.15; }
.step p { margin-top: .6rem; opacity: .85; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Llamada final */
.cta { background: var(--paper-2); text-align: center; }
.cta .h2 { margin-inline: auto; max-width: 18ch; }
.cta p { margin: 1.1rem auto 0; max-width: 34rem; color: var(--ink-2); font-size: 1.1rem; }
.cta .hero__cta { justify-content: center; }
.cta .eyebrow { color: var(--terra); }

/* Contacto */
.phones { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 640px) { .phones { grid-template-columns: 1fr 1fr; } }
.phone { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .3rem; }
.phone small { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.phone a.num { font-family: var(--serif); font-size: 1.75rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.phone .row { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.phone .btn { min-height: 2.6rem; font-size: .9rem; padding: 0 1rem; }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--blue); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* Pie (multipágina) */
footer.site { color: var(--mute); padding-block: 4rem calc(5.5rem + env(safe-area-inset-bottom)); font-size: .92rem; }
footer.site a { color: var(--ink-2); }
.ft-grid { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ft-logo { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; width: 12.5rem; }
.ft-logo img { width: 100%; height: auto; }
.ft-grid p { margin-top: 1rem; max-width: 22rem; }
.ft-grid h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.ft-grid ul { display: grid; gap: .5rem; margin: 0; }
.ft-grid a { text-decoration: none; } .ft-grid a:hover { text-decoration: underline; }
.ft-legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; display: grid; gap: .6rem; color: var(--mute); }
.ft-legal p { max-width: 60rem; }
.ft-legal a { color: var(--ink-2); }

@media (min-width: 1040px) { .services--6 { grid-template-columns: repeat(3, 1fr); } }

/* Aviso legal y privacidad: cabecera azul sin foto y texto en columna legible. */
.page-hero--plain { min-height: clamp(20rem, 46svh, 28rem); background: var(--blue); }
.page-hero--plain::after { content: none; }
.page-hero--plain h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
.page-hero--plain p { text-shadow: none; }
body:has(.page-hero--plain) .hdr:not(.is-solid) .btn--blue { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.legal { padding-block: clamp(3.5rem, 9vw, 6rem); }
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.15; letter-spacing: -.01em; margin: 2.6rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--ink-2); margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); overflow-wrap: anywhere; }

/* Paso entre páginas con fundido suave (Chrome, Edge y Safari recientes; el resto cambia de página sin más). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Aviso de idioma (sustituye a la redirección automática): abajo a la izquierda, sin tapar el botón de WhatsApp. */
.langbar { position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); right: 5.6rem; max-width: max-content; z-index: 30; display: flex; align-items: center; gap: .2rem; background: var(--blue); color: var(--paper); border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; font-size: .92rem; box-shadow: 0 6px 24px rgb(12 20 28 / .25); animation: fade .6s var(--ease) 1s both; }
.langbar a { color: inherit; text-decoration: none; font-weight: 600; }
.langbar a:hover { text-decoration: underline; }
.langbar button { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.langbar button:hover { background: rgb(255 255 255 / .12); }

/* El pintor del pueblo: logo de texto (no tiene logo propio) y dos reseñas lado a lado. */
.logo--text { padding: .55rem .8rem; color: var(--blue); text-decoration: none; }
.wordmark { display: grid; font-family: var(--serif); line-height: .95; letter-spacing: -.01em; }
.wordmark span:first-child { font-size: .78rem; font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); }
.wordmark span:last-child { font-size: 1.55rem; font-weight: 500; }
@media (max-width: 759px) { .wordmark span:last-child { font-size: 1.25rem; } .logo--text { padding: .45rem .65rem; } }
.ft-logo--text { width: auto; display: inline-block; color: var(--blue); }
.ft-logo--text .wordmark span:last-child { font-size: 1.9rem; }
@media (min-width: 900px) { .reviews--2 { grid-template-columns: 1fr 1fr; } }

/* ===== Alves Group Construction =====
   Base de Tot Reformas (portada con collage, servicios numerados con foto, método en 4 pasos, proyectos, banda, zona y cierre).
   Paleta de su marca: crema + negro + dorado del logo. */
:root {
  --paper: #f4f1ea; --paper-2: #e9e4da; --card: #fcfbf8; --ink: #161616; --ink-2: #3f3c38; --mute: #5f5a52; --line: #ddd6ca;
  --blue: #161616; --blue-2: #2a2825; --sun: #e2c27a; --terra: #7d5e1d; --terra-soft: #c9a24b; --star: #a07a28;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--blue); color: var(--paper); padding: .7rem 1rem; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 1rem; }
.h2 span { color: var(--mute); }
.why .h2 span { color: rgb(243 240 234 / .55); }
.btn--light { background: var(--paper); color: var(--ink); } .btn--light:hover { background: #fff; }
.btn--line:hover { border-color: var(--ink); }
.link-more { color: var(--ink); border-bottom-color: var(--terra); }
.link-more:hover { color: var(--terra); }
.link-more:hover svg { transform: translate(2px, -2px); }

/* Logo de texto */
.logo--text { box-shadow: none; border: 1px solid var(--line); color: var(--ink); }
.wordmark span:first-child { color: var(--terra); }
.wordmark span:last-child { font-size: 1.45rem; }

/* Cabecera clara en la portada (la portada no va sobre foto) */
.home .hdr { color: var(--ink); }
.home .hdr:not(.is-solid) { background: rgb(243 240 234 / .9); }
@media (max-width: 899px) {
  .home .hdr .nav a:not([aria-current]) { border-color: var(--line); background: var(--card); }
  .hdr__end { display: none; }
}

/* Portada partida: texto + collage de dos fotos, y cifras debajo */
.hero--split { min-height: 0; display: block; color: var(--ink); padding: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem)) 0 clamp(3rem, 7vw, 5rem); overflow: clip; }
.hero--split::after { content: none; }
.hero--split h1, .hero--split p { text-shadow: none; }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero--split .hero__body { padding: 0; }
.hero__eyebrow { animation: fade 1s var(--ease) both; }
.hero--split h1 { font-size: clamp(2.6rem, 8.2vw, 5.6rem); margin-top: 1rem; }
.hero--split h1 em { color: var(--terra); font-style: italic; font-weight: 300; }
.hero--split p.hero__sub { font-family: var(--sans); font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.hero__collage { position: relative; aspect-ratio: 1 / .92; animation: fade 1.2s var(--ease) .2s both; }
.hc { position: absolute; overflow: hidden; border-radius: 22px; background: var(--paper-2); box-shadow: 0 30px 60px -30px rgb(28 29 31 / .45); }
.hc picture, .hc img { width: 100%; height: 100%; object-fit: cover; }
.hc--a { inset: 0 18% 14% 0; }
.hc--b { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; border: 6px solid var(--paper); }
.hc--a img { animation: drift 24s var(--ease) both; }

/* Intro */
.intro { padding-bottom: 0; }
.intro__grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; } }
.intro .lead { margin-top: 0; }
.intro .link-more { margin-top: 1.4rem; }

/* Servicios: tarjetas con foto, número y flecha (todo el bloque es enlace) */
.pcards { display: grid; gap: 2.4rem 1.4rem; margin-top: 3.2rem; }
@media (min-width: 640px) { .pcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: grid; text-decoration: none; position: relative; }
.pcard__media { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--paper-2); }
.pcard__media picture, .pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media img { transition: transform 1.1s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__meta { display: flex; gap: .8rem; margin-top: 1.1rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.pcard__meta span:first-child { color: var(--terra); }
.pcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 1.85rem); line-height: 1.1; letter-spacing: -.01em; margin-top: .45rem; padding-right: 3.2rem; }
.pcard__go { position: absolute; right: 0; bottom: .1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.pcard__go svg { width: 1.1rem; height: 1.1rem; }
.pcard:hover .pcard__go { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Método */
.method { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 640px) { .method { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .method { grid-template-columns: repeat(4, 1fr); } }
.method li { border-top: 1px solid rgb(243 240 234 / .22); padding-top: 1.4rem; }
.method__n { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--terra-soft); }
.method h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin-top: 1rem; line-height: 1.15; }
.method p { margin-top: .55rem; opacity: .82; }

/* Proyectos */
.projects { display: grid; gap: 2.4rem 1.4rem; margin-top: 3.2rem; }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } .projects li:nth-child(even) { margin-top: 4rem; } }
.project { display: block; text-decoration: none; }
.project__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-2); }
.project__media picture, .project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__media img { transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.04); }
.project__see { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 600; padding: .55rem .95rem; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.project:hover .project__see, .project:focus-visible .project__see { opacity: 1; transform: none; }
@media (hover: none) { .project__see { opacity: 1; transform: none; } }
.project__badge { margin-top: 1.1rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; margin-top: .45rem; }

/* Banda de compromiso */
.band { height: auto; min-height: clamp(30rem, 80vh, 46rem); padding-block: 5rem; }
.band::after { background: linear-gradient(90deg, rgb(20 22 24 / .82), rgb(20 22 24 / .55)); }
.band .wrap { position: relative; z-index: 1; }
.band blockquote { max-width: 18ch; font-size: clamp(2rem, 5.6vw, 4rem); }
.band__p { margin-top: 1.4rem; max-width: 32rem; font-size: 1.08rem; color: rgb(255 255 255 / .86); }
.band .btn { margin-top: 2rem; }

/* Zona */
.coverage { margin-top: 1.6rem; font-size: 1.02rem; line-height: 1.9; color: var(--mute); max-width: 34rem; }
.coverage b { color: var(--ink); font-weight: 600; }
.towns li:first-child { background: var(--ink); border-color: var(--ink); }

/* Llamada final */
.cta { background: var(--blue); color: var(--paper); }
.cta .eyebrow { color: var(--terra-soft); }
.cta p { color: rgb(243 240 234 / .82); }
.cta .btn--line { border-color: rgb(243 240 234 / .35); color: var(--paper); }
.cta .btn--line:hover { border-color: var(--paper); }

/* Cabecera de páginas interiores: fondo grafito, texto a un lado y foto cuadrada al otro */
.page-hero--split { min-height: 0; display: block; background: var(--blue); padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3rem, 7vw, 5rem); }
.page-hero--split::after { content: none; }
.page-hero__grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }
.page-hero--split .hero__body { padding: 0; }
.page-hero--split p { text-shadow: none; }
.page-hero__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; animation: fade 1.1s var(--ease) .15s both; }
@media (min-width: 900px) { .page-hero__media { aspect-ratio: 1; } }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Servicios (página) y pie */
.svc-row .num { color: var(--terra); }
.svc-row__media { aspect-ratio: 1; }
@media (min-width: 900px) { .svc-row { grid-template-columns: .9fr 1fr; } .svc-row__media { max-width: 34rem; } }
.ft-logo--text { border: 1px solid var(--line); background: var(--card); }
body:not(.home) .hdr:not(.is-solid) .btn--blue { background: var(--paper); color: var(--ink); }
body:not(.home) .hdr:not(.is-solid) .logo--text { border-color: transparent; background: var(--paper); }
@media (max-width: 899px) { body:not(.home) .hdr:not(.is-solid) .nav a[aria-current="page"] { background: var(--paper); border-color: var(--paper); color: var(--ink); } }

/* ===== Alves: logo con triángulo, tarjetas de zona ===== */
.logo--text { display: inline-flex; align-items: center; gap: .6rem; }
.logo .mark, .ft-logo .mark { width: 34px; height: 31px; flex: none; }
.wordmark span:first-child { letter-spacing: .32em; font-size: .62rem; }
.wordmark span:last-child { text-transform: uppercase; letter-spacing: .05em; font-size: 1.2rem; font-weight: 600; }
@media (max-width: 759px) { .wordmark span:last-child { font-size: 1.02rem; } .logo .mark { width: 28px; height: 26px; } }
.ft-logo--text { display: inline-flex; align-items: center; gap: .7rem; }
.ft-logo--text .wordmark span:last-child { font-size: 1.4rem; }
.zone-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; align-self: center; }
.zone-cards li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.zone-cards b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.01em; }
.zone-cards span { color: var(--mute); font-size: .92rem; }
.wordmark { display: flex; flex-direction: column-reverse; gap: .3rem; }
@media (min-width: 1040px) { .pcards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1150px) { .masonry { grid-template-columns: repeat(4, 1fr); } }
.band--plain { height: auto; background: var(--blue); padding: clamp(4.5rem, 11vw, 8rem) 0; text-align: center; }
.band--plain .wrap { display: grid; justify-items: center; }
.band--plain blockquote { max-width: 22ch; margin-inline: auto; }
.band__stars { position: relative; z-index: 1; color: var(--terra-soft); letter-spacing: .3em; font-size: 1.2rem; margin: 0 0 1.4rem; }

/* ===== Portada negra y dorada a pantalla completa ===== */
.hero--dark { background: #111; }
.hero--dark .hero__media img { object-position: 60% 45%; }
.hero--dark::after { background: linear-gradient(180deg, rgb(14 14 14 / .55) 0%, rgb(14 14 14 / .35) 30%, rgb(14 14 14 / .8) 68%, rgb(14 14 14 / .97) 100%); }
@media (min-width: 761px) {
  .hero--dark::after { background: linear-gradient(90deg, rgb(14 14 14 / .94) 0%, rgb(14 14 14 / .82) 38%, rgb(14 14 14 / .2) 75%, rgb(14 14 14 / .1) 100%), linear-gradient(180deg, rgb(14 14 14 / .5) 0%, rgb(14 14 14 / 0) 25%, rgb(14 14 14 / 0) 60%, rgb(14 14 14 / .85) 100%); }
}
@media (max-width: 760px) { .hero--dark .hero__media img { object-position: 82% 40%; } }
.hero--dark .hero__body { padding-top: calc(var(--nav-h) + 2rem); }
.hero--dark .hero__eyebrow { color: var(--terra-soft); }
.hero--dark h1 { font-size: clamp(2.8rem, 9vw, 6.4rem); max-width: 13ch; margin-top: 1rem; }
.hero--dark h1 em { color: var(--terra-soft); font-style: italic; font-weight: 300; }
.hero--dark p.hero__sub { font-family: var(--sans); font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; max-width: 34rem; color: rgb(255 255 255 / .86); }
.hero__trust { list-style: none; margin: 2.6rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgb(201 162 75 / .45); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .6rem clamp(1.4rem, 4vw, 3rem); max-width: 46rem; }
.hero__trust li { display: grid; gap: .25rem; }
.hero__trust b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: #fff; line-height: 1.1; }
.hero__trust b.stars { color: var(--terra-soft); letter-spacing: .12em; font-size: 1.05rem; }
.hero__trust span { font-size: .84rem; color: rgb(255 255 255 / .7); }
@media (max-width: 520px) { .hero__trust { grid-template-columns: 1fr 1fr; } .hero__trust li:first-child { grid-column: 1 / -1; } }
/* Cabecera transparente sobre la portada oscura; sólida al bajar */
.home .hdr:not(.is-solid) { background: linear-gradient(180deg, rgb(14 14 14 / .55), rgb(14 14 14 / 0)); color: #fff; }
.home .hdr:not(.is-solid) .logo--text { border-color: rgb(255 255 255 / .18); }
@media (max-width: 899px) {
  .home .hdr:not(.is-solid) .nav a:not([aria-current]) { border-color: rgb(255 255 255 / .35); background: rgb(14 14 14 / .45); color: #fff; }
  .home .hdr:not(.is-solid) .nav a[aria-current] { background: var(--terra-soft); border-color: var(--terra-soft); color: #141109; }
}
@media (min-width: 761px) {
  .hero--dark::after { background: linear-gradient(90deg, rgb(14 14 14 / .97) 0%, rgb(14 14 14 / .9) 42%, rgb(14 14 14 / .25) 76%, rgb(14 14 14 / .1) 100%), linear-gradient(180deg, rgb(14 14 14 / .5) 0%, rgb(14 14 14 / 0) 25%, rgb(14 14 14 / 0) 60%, rgb(14 14 14 / .85) 100%); }
}
.home .hdr:not(.is-solid) .btn--blue { background: var(--terra-soft); color: #141109; }
.home .hdr:not(.is-solid) .btn--blue:hover { background: var(--sun); }

/* ===== Cambios del cliente (18/11/2026) ===== */
/* Logo original (triángulo dorado en imagen) */
.logo img.mark, .ft-logo img.mark { width: 36px; height: auto; }
@media (max-width: 759px) { .logo img.mark { width: 30px; } }
/* Servicios: 7 tarjetas (4 + 3 centradas) y bloque con logo cuando no hay foto */
@media (min-width: 1040px) {
  .pcards { grid-template-columns: repeat(8, 1fr); }
  .pcards > li { grid-column: span 2; }
  .pcards > li:nth-child(5) { grid-column: 2 / span 2; }
}
.pcard__media--logo { display: grid; place-items: center; background: #141414; }
.pcard__media--logo .mark { width: 28%; max-width: 9rem; height: auto; }
.svc-row__media.pcard__media--logo { border-radius: var(--radius); overflow: hidden; }
/* Cómo trabajamos: 5 pasos */
@media (min-width: 1000px) { .method { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .method { grid-template-columns: repeat(5, 1fr); gap: 1.6rem; } .method h3 { font-size: 1.4rem; } }
/* Zona: 6 provincias en dos columnas */
@media (min-width: 520px) { .zone-cards { grid-template-columns: 1fr 1fr; } }
.zone-cards li { flex-direction: column; gap: .2rem; }
/* Franja de marcas bajo la portada: se desplaza de izquierda a derecha */
.brands { background: #111; color: #fff; padding: clamp(2.2rem, 5vw, 3.2rem) 0 1.6rem; overflow: hidden; border-top: 1px solid rgb(201 162 75 / .3); }
.brands__h { margin: 0 0 1.6rem; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 400; }
.brands__h em { color: var(--terra-soft); font-style: italic; font-weight: 300; }
.brands__track { display: flex; width: max-content; animation: brands-lr 38s linear infinite; }
.brands__track:hover { animation-play-state: paused; }
.brands__list { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.brands__list li { flex: none; padding: 0 clamp(1.4rem, 3.5vw, 2.6rem); font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: rgb(255 255 255 / .62); }
.brands__list li::after { content: "◆"; margin-left: clamp(1.4rem, 3.5vw, 2.6rem); color: var(--terra-soft); font-size: .55em; vertical-align: middle; }
.brands__note { margin: 1.4rem 0 0; font-size: .74rem; color: rgb(255 255 255 / .45); }
@keyframes brands-lr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .brands__track { animation: none; flex-wrap: wrap; width: auto; } .brands__list[aria-hidden] { display: none; } .brands__list { flex-wrap: wrap; row-gap: .8rem; } }
/* Franja de marcas dentro de la portada, visible al entrar */
.hero--dark { grid-template-rows: 1fr auto; }
.hero--dark .hero__body { align-self: end; padding-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.hero--dark .hero__trust { margin-top: 1.8rem; padding-top: 1.2rem; }
.hero--dark .brands { position: relative; z-index: 1; background: rgb(14 14 14 / .82); backdrop-filter: blur(6px); padding: 1rem 0 .7rem; }
.hero--dark .brands__h { margin-bottom: .75rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.hero--dark .brands__list li { font-size: clamp(.85rem, 1.8vw, 1.05rem); }
.hero--dark .brands__note { margin-top: .6rem; font-size: .66rem; }
@media (max-width: 760px) {
  .hero--dark .hero__body { padding-top: calc(var(--nav-h) + 1rem); }
  .hero--dark h1 { margin-top: .6rem; }
  .hero--dark .hero__sub { margin-top: .8rem; font-size: 1rem; }
  .hero--dark .hero__cta { margin-top: 1.2rem; flex-wrap: nowrap; gap: .5rem; }
  .hero--dark .hero__cta .btn { padding: 0 1rem; font-size: .92rem; }
  .hero--dark .hero__trust { display: none; }
}
@media (min-width: 761px) {
  .hero--dark h1 { font-size: clamp(2.8rem, min(9vw, 10.5vh), 6.4rem); margin-top: .6rem; }
  .hero--dark .hero__body { padding-top: calc(var(--nav-h) + 1rem); }
  .hero--dark .hero__sub { margin-top: .9rem; }
  .hero--dark .hero__cta { margin-top: 1.4rem; }
}
/* Portada en escritorio: la foto solo en la mitad derecha (la casa), sin la lona con el logo detrás del título */
@media (min-width: 761px) {
  .hero--dark .hero__media { left: 50%; }
  .hero--dark .hero__media img { object-position: 100% 45%; }
  .hero--dark::after { background: linear-gradient(90deg, #111 0%, #111 50%, rgb(17 17 17 / .55) 58%, rgb(17 17 17 / .1) 76%, rgb(17 17 17 / 0) 100%), linear-gradient(180deg, rgb(14 14 14 / .5) 0%, rgb(14 14 14 / 0) 25%, rgb(14 14 14 / 0) 60%, rgb(14 14 14 / .85) 100%); }
}
/* Móvil: el botón flotante de WhatsApp aparece al pasar la portada (ella ya tiene su botón verde y no tapa la franja de marcas) */
@media (max-width: 760px) { .home .fab { opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .3s, transform .3s, visibility .3s; } .home.past-hero .fab { opacity: 1; visibility: visible; transform: none; } }

/* ===== Mejoras 19/11/2026 ===== */
/* Portada: foto vertical real (cocina con isla), centrada en la isla */
.hero--dark .hero__media img { object-position: 50% 62%; }
@media (min-width: 761px) { .hero--dark .hero__media img { object-position: 50% 60%; } }
/* Trabajos: menos aire entre bloques */
.sec-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sec-tight .filters { margin-top: 1.4rem; }
/* Antes y después con deslizador */
.ba-grid { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 760px) { .ba-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.ba { --pos: 50%; position: relative; margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper-2); user-select: none; -webkit-user-select: none; }
.ba picture, .ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); pointer-events: none; }
.ba__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border-radius: 50%; box-shadow: 0 6px 18px rgb(0 0 0 / .28);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 1.4rem no-repeat; transition: transform .2s; }
.ba:hover .ba__line::after, .ba__range:focus-visible ~ .ba__line::after { transform: scale(1.08); }
.ba__tag { position: absolute; top: .8rem; padding: .4rem .75rem; border-radius: 999px; background: rgb(17 17 17 / .72); color: #fff; font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba__tag--a { left: .8rem; } .ba__tag--d { right: .8rem; background: var(--terra, #b8913a); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--terra-soft, #d4b36a); outline-offset: 3px; }
.ba figcaption { position: absolute; inset: auto 0 0; padding: 2.6rem 1rem .9rem; color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgb(12 20 28 / .8)); pointer-events: none; }
.ba figcaption span { opacity: .75; font-size: .85rem; }
/* Botón «Mándanos fotos de tu obra» */
.btn--photos svg { width: 1.15rem; height: 1.15rem; flex: none; }
/* Zona: cada provincia enlaza a su página */
.zone-cards li { padding: 0; }
.zone-cards li a { display: flex; flex-direction: column; gap: .2rem; width: 100%; padding: 1.3rem 1.4rem; color: inherit; text-decoration: none; border-radius: inherit; transition: background-color .25s; }
.zone-cards li a:hover { background: var(--paper-2); }
.zone-cards span svg { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin-left: .2rem; }
/* Preguntas frecuentes */
.faq__grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font: 500 clamp(1.05rem, 2.2vw, 1.2rem)/1.35 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; color: var(--terra, #b8913a); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; max-width: 40rem; color: var(--ink-2); line-height: 1.6; }
/* Móvil: sin botones flotantes encima del contenido */
@media (max-width: 760px) { .fab, .home .fab, .home.past-hero .fab { display: none; } }
/* Móvil: servicios de dos en dos */
@media (max-width: 639px) {
  .pcards { grid-template-columns: 1fr 1fr; gap: 1.6rem .8rem; margin-top: 2.2rem; }
  .pcard__media { aspect-ratio: 1; border-radius: 14px; }
  .pcard__meta { margin-top: .7rem; font-size: .62rem; letter-spacing: .12em; gap: .5rem; }
  .pcard__meta span:last-child { display: none; }
  .pcard h3 { font-size: 1.15rem; padding-right: 0; margin-top: .3rem; }
  .pcard__go { display: none; }
}
/* Móvil: «Cómo trabajamos» más compacto, número a la izquierda */
@media (max-width: 639px) {
  .method { gap: 0; margin-top: 2.2rem; }
  .method li { display: grid; grid-template-columns: 2.8rem 1fr; column-gap: .6rem; padding: 1.1rem 0; }
  .method__n { grid-row: span 2; font-size: 1.7rem; padding-top: .1rem; }
  .method h3 { font-size: 1.3rem; margin-top: 0; }
  .method p { margin-top: .3rem; font-size: .95rem; }
}
/* Tablet: 7 tarjetas en 2 columnas, la última centrada */
@media (min-width: 640px) and (max-width: 1039px) { .pcards > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .7rem); } }
/* Móvil: la séptima tarjeta, centrada */
@media (max-width: 639px) { .pcards > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .4rem); } }
