@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: #1e3a56; --blue-2: #2c5277; --sun: #f2cfb4; --terra: #9e4526; --terra-soft: #f2cfb4; --star: #9e4526; --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: 4 / 5; 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 { columns: 2; column-gap: .8rem; margin-top: 1.6rem; }
.masonry .work { break-inside: avoid; margin-bottom: .8rem; }
.masonry .work[hidden] { display: none; }
@media (min-width: 760px) { .masonry { columns: 3; column-gap: 1.1rem; } .masonry .work { margin-bottom: 1.1rem; } }
@media (min-width: 1150px) { .masonry { columns: 4; } }

/* 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); }
