/* =========================================================
   CAL arquitectura — hoja de estilos
   Tipografía: Barlow
   Medidas tomadas de la referencia a 1440 px de ancho
   ========================================================= */

@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --bg: #faf8f2;
  --ink: #141413;
  --muted: #77736a;
  --line: #141413;
  --soft-line: rgba(20, 20, 19, .16);
  --dark: #141413;

  --pad: 50px;                              /* margen lateral */
  --gap: 50px;                              /* separación de la cuadrícula */
  --sec: clamp(48px, 5.357vw, 96px);        /* 77 px a 1440 */
  --h1: clamp(38px, 3.571vw, 64px);         /* 51 px a 1440 */
  --lead: clamp(19px, 1.786vw, 30px);       /* 25,7 px a 1440 */
  --h2: clamp(30px, 2.976vw, 50px);         /* 42,8 px a 1440 */
  --body: 15px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 25px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--sec); padding-bottom: var(--sec); border-bottom: 1px solid var(--line); }
.section--last { border-bottom: 0; }
.muted { color: var(--muted); }
em { font-style: normal; color: inherit; }

/* ---------- Cabecera ---------- */
.site-header { position: relative; z-index: 40; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 140px;
}
.brand { display: block; width: 265px; color: var(--ink); }
.brand svg { display: block; width: 100%; height: auto; }
.nav { display: flex; gap: 30px; font-size: 15px; line-height: 25px; }
.nav a { position: relative; padding: 2px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.burger { display: none; width: 34px; height: 34px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 10px; } .burger span:nth-child(2) { top: 17px; } .burger span:nth-child(3) { top: 24px; }
.menu-open .burger { color: var(--bg); }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: var(--dark); color: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 0 30px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 42px; line-height: 1.12; font-weight: 300; padding: 6px 0; display: block; }
.mobile-menu .mm-foot { position: absolute; left: 30px; bottom: 34px; font-size: 14px; color: rgba(250, 248, 242, .6); }
.menu-open { overflow: hidden; }

/* ---------- Portada (bloque de cabecera) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 613fr) minmax(0, 712fr); align-items: center; }
.intro h1 { font-size: var(--h1); line-height: 1.083; font-weight: 300; letter-spacing: -.01em; }
.intro .lead { margin-top: clamp(36px, 4.1vw, 66px); font-size: var(--lead); line-height: 1.233; font-weight: 300; }
.intro .lead + .lead { margin-top: 1em; }

/* ---------- Cuadrícula de proyectos ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); }
.card .img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #e9e6dd; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .img img { transform: scale(1.035); }
.card .cap { display: block; margin-top: 30px; }
.card .t { display: block; font-size: 20px; line-height: 30px; }
.card .l { display: block; font-size: 15px; line-height: 25px; color: var(--muted); }
.card .tag { display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 3px; }
.card--service .img { position: relative; }
.card--service .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,19,0) 45%, rgba(20,20,19,.55)); }
.card--service .over { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2; color: #faf8f2; font-size: 26px; line-height: 1.15; font-weight: 300; }
.card--service .over small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; opacity: .85; font-weight: 400; }
.grid-section { padding-top: var(--sec); padding-bottom: clamp(40px, 2.976vw, 60px); }

/* ---------- Ficha de proyecto ---------- */
.p-hero { margin-bottom: clamp(32px, 2.976vw, 50px); overflow: hidden; background: #e9e6dd; }
.p-hero img { width: 100%; aspect-ratio: 1325 / 642; object-fit: cover; }
.p-hero.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); background: none; }
.p-hero.pair img { aspect-ratio: 4 / 5; }
.p-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 100px; padding-bottom: var(--sec); border-bottom: 1px solid var(--line); }
.p-head h1 { font-size: var(--h1); line-height: 1.083; font-weight: 300; letter-spacing: -.01em; }
.p-head .cita { padding-top: 28px; font-size: var(--lead); line-height: 1.233; font-weight: 300; }
.dats { display: flex; flex-wrap: wrap; column-gap: 34px; row-gap: 20px; align-content: flex-start; }
.dat label, .dat .k { display: block; font-size: 15px; line-height: 25px; color: var(--muted); }
.dat .v { display: block; font-size: 17px; line-height: 21px; }
.dat sup { font-size: .75em; line-height: 0; }
.crumb { display: inline-block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumb:hover { color: var(--ink); }

.m-ti { display: grid; grid-template-columns: 1fr 1fr; column-gap: 100px; align-items: end; }
.m-ti.left .m-img { order: -1; }
.m-ti .m-img img { width: 100%; }
.m-ti .m-txt h2, .m-text h2 { font-size: var(--h2); line-height: 1.1; font-weight: 300; margin-bottom: 30px; letter-spacing: -.005em; }
.m-txt p + p, .m-text p + p { margin-top: 16px; }
.m-full img { width: 100%; }
.m-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.m-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.m-text { max-width: 613px; margin: 0 auto; }
.m-text h2 { font-size: clamp(32px, 3.47vw, 50px); }

.list-steps { counter-reset: s; border-top: 1px solid var(--soft-line); }
.list-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--soft-line); }
.list-steps li::before { content: counter(s, decimal-leading-zero); color: var(--muted); font-size: 13px; letter-spacing: .08em; padding-top: 2px; }
.list-steps strong { display: block; font-weight: 500; font-size: 17px; margin-bottom: 4px; }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ref { border-top: 1px solid var(--line); padding-top: 22px; }
.ref .k { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ref h3 { font-size: 24px; line-height: 1.2; font-weight: 300; margin-bottom: 12px; }

.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fig { border-top: 1px solid var(--line); padding-top: 18px; }
.fig b { display: block; font-size: clamp(34px, 3.2vw, 52px); line-height: 1; font-weight: 300; margin-bottom: 12px; }
.fig span { color: var(--muted); }

.next { display: flex; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); font-size: 15px; }
.next a .k { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.next a .t { display: block; font-size: 22px; line-height: 1.3; font-weight: 300; }
.next a:last-child { text-align: right; }
.next a:hover .t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Nosotros ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 613fr) minmax(0, 712fr); column-gap: 0; align-items: start; }
.about-top .photo { justify-self: end; width: min(100%, 520px); }
.about-top .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about-top .photo figcaption { margin-top: 16px; color: var(--muted); }
.logros { position: relative; margin-top: clamp(44px, 4.1vw, 66px); padding-left: 34px; border-left: 1px solid var(--line); }
.logros > h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin-bottom: 26px; line-height: 1; }
.hito { position: relative; padding-bottom: 30px; }
.hito::before { content: ""; position: absolute; left: -39px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.hito .k { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hito h3 { font-size: 22px; line-height: 1.25; font-weight: 300; margin: 4px 0 6px; }
.hito ul { margin-top: 8px; }
.hito ul li { padding-left: 16px; position: relative; }
.hito ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.studio h2 { font-size: var(--h2); line-height: 1.1; font-weight: 300; margin-bottom: 8px; }
.studio .role { color: var(--muted); margin-bottom: 22px; display: block; }
.plist { margin-top: 26px; border-top: 1px solid var(--soft-line); }
.plist a { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--soft-line); align-items: baseline; transition: padding .35s var(--ease); }
.plist a .t { font-size: 18px; }
.plist a .l { color: var(--muted); font-size: 14px; }
.plist a:hover { padding-left: 10px; }

/* ---------- Servicios ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 805fr); column-gap: 80px; align-items: start; }
.svc-text h1 { font-size: var(--h1); line-height: 1.083; font-weight: 300; letter-spacing: -.01em; }
.svc-text .lead { margin-top: clamp(30px, 3vw, 50px); font-size: var(--lead); line-height: 1.233; font-weight: 300; }
.svc-list { margin-top: 40px; border-top: 1px solid var(--soft-line); }
.svc-list a { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--soft-line); }
.svc-list a .n { color: var(--muted); font-size: 13px; letter-spacing: .08em; padding-top: 3px; }
.svc-list a strong { display: block; font-weight: 500; font-size: 18px; margin-bottom: 3px; }
.svc-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.tree { position: relative; width: 100%; max-width: 820px; margin-left: auto; aspect-ratio: 800 / 520; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree .lines-m { display: none; }
.tree .lines-d path, .tree .lines-m path { fill: none; stroke: var(--ink); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s; }
.tree .dot { fill: var(--ink); }
.tnode {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%); text-align: center; white-space: nowrap;
  font-size: clamp(14px, 1.25vw, 18px); line-height: 1.2; padding: 8px 12px; background: var(--bg);
  transition: color .3s, background .3s;
}
.tnode .n { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-bottom: 3px; }
.tnode.root { padding: 10px 16px; }
.tnode.root svg { position: static; fill: currentColor; width: clamp(150px, 16vw, 230px); height: auto; display: block; }
.tnode.main { font-size: clamp(17px, 1.6vw, 24px); font-weight: 300; border: 1px solid var(--ink); padding: 12px 18px; }
.tnode.main:hover, .tnode.main:focus-visible { background: var(--ink); color: var(--bg); }
.tnode.main:hover .n, .tnode.main:focus-visible .n { color: rgba(250,248,242,.7); }
.tnode.sub { color: var(--ink); font-size: clamp(13px, 1.1vw, 16px); }
.tnode.sub:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tree.hl-p path[data-b="p"], .tree.hl-d path[data-b="d"], .tree.hl-c path[data-b="c"] { stroke-width: 3; }
.tree-hint { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: right; }

/* animación de ramificación */
.js .tree .lines-d path, .js .tree .lines-m path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tree .dot { opacity: 0; transition: opacity .4s; }
.js .tree .tnode { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s, background .3s; }
.js .tree.go .lines-d path, .js .tree.go .lines-m path { animation: draw .7s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1s); }
.js .tree.go .dot { opacity: 1; transition-delay: calc(var(--d, 0) * 1s); }
.js .tree.go .tnode { opacity: 1; transform: translate(-50%, -50%); transition-delay: calc(var(--d, 0) * 1s), calc(var(--d, 0) * 1s), 0s, 0s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 613fr) minmax(0, 712fr); column-gap: 100px; align-items: start; }
.contact h1 { font-size: var(--h1); line-height: 1.083; font-weight: 300; letter-spacing: -.01em; }
.contact .lead { margin-top: 28px; font-size: var(--lead); line-height: 1.233; font-weight: 300; }
.form { margin-top: 44px; display: grid; gap: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 0 10px; font-size: 18px; border-radius: 0; outline: none; transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 15px 28px;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.form-note { font-size: 13px; color: var(--muted); min-height: 20px; }
.map { position: relative; background: #e9e6dd; aspect-ratio: 1 / 1.05; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map .map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; }
.map .map-ph p { max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.cdata { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cdata .k { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cdata a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Pie de página ---------- */
.site-footer { padding-top: 60px; padding-bottom: 34px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 34px; }
.f-top .f-mark { width: 120px; color: var(--ink); }
.f-top .f-mark svg { display: block; width: 100%; height: auto; }
.f-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.f-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-mid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.f-mid .k { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.f-mid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-legal { border-top: 1px solid var(--soft-line); padding-top: 22px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 40px; align-items: start; font-size: 12px; line-height: 1.6; }
.f-legal .beneficiario { color: var(--muted); max-width: 640px; }
.f-legal .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.f-legal .links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20,20,19,.3); }
.f-legal .links a:hover { text-decoration-color: currentColor; }
.f-legal .acces { border: 1px solid var(--ink); padding: 2px 10px; text-decoration: none !important; }
.f-legal .sgm { color: var(--muted); }

.kit { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--soft-line); }
.kit img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }

/* ---------- Páginas legales ---------- */
.legal h1 { font-size: var(--h1); line-height: 1.083; font-weight: 300; letter-spacing: -.01em; margin-bottom: 40px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 22px; line-height: 1.3; font-weight: 400; margin: 36px 0 12px; }
.legal-body h2 strong { font-weight: 400; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.legal-body li p { margin: 0 0 4px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 14px; }
.legal-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-body .table-scroll table { min-width: 620px; }
.legal-body th { font-weight: 500; }
.legal-body button { margin: 4px 0 8px; }
.legal-body td, .legal-body th { border-bottom: 1px solid var(--soft-line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }

/* ---------- Aviso de cookies ---------- */
.cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: 380px; background: var(--bg);
  border: 1px solid var(--ink); padding: 20px 22px; font-size: 13px; line-height: 1.5; box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.cookie[hidden] { display: none; }
.cookie .row { display: flex; gap: 10px; margin-top: 14px; }
.cookie button, .cookie a.b { flex: 1; text-align: center; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 9px 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cookie .b-alt { background: transparent !important; color: var(--ink) !important; }

/* ---------- Animaciones de entrada ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .tree .tnode, .js .tree .dot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .tree .lines-d path, .js .tree .lines-m path { stroke-dashoffset: 0 !important; animation: none !important; }
  .card .img img { transition: none; }
}


/* ---------- Cómo trabajamos ---------- */
.incl { margin-top: 22px; border-top: 1px solid var(--soft-line); }
.incl li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--soft-line); position: relative; }
.incl li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 1px; background: var(--ink); }
.price-line { margin-top: 24px; }
.prods { margin-top: 34px; display: grid; gap: 30px; }
.prod { border: 1px solid var(--line); padding: 26px 28px 28px; }
.prod-h { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.prod-h h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; font-weight: 400; }
.prod-h b { font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prod-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.prod .incl { margin-top: 16px; }
.price-line b { display: block; font-size: clamp(24px, 2vw, 32px); font-weight: 400; line-height: 1.2; margin-bottom: 4px; }
.price-line span { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; position: relative; }
.step { position: relative; padding-top: 58px; }
.step::before { content: ""; position: absolute; left: 0; right: calc(var(--gap) * -1); top: 17px; height: 1px; background: var(--line); }
.step:last-child::before { right: 0; }
.step .n { position: absolute; left: 0; top: 0; width: 35px; height: 35px; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .04em; }
.step h3 { font-size: 22px; line-height: 1.25; font-weight: 400; margin-bottom: 10px; }
.step .disc { display: inline-block; margin-top: 16px; font-size: 13px; line-height: 1.4; border: 1px solid var(--ink); padding: 6px 10px; }
.fees { border-top: 1px solid var(--line); }
.fee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--soft-line); align-items: baseline; }
.fee h3 { font-size: 22px; line-height: 1.25; font-weight: 400; margin-bottom: 6px; }
.fee p { color: var(--muted); max-width: 560px; }
.fee-v { text-align: right; }
.fee-v b { display: block; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; font-weight: 400; font-variant-numeric: tabular-nums; }
.fee-v span { color: var(--muted); font-size: 14px; }
.fee-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 991px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .step:nth-child(2n)::before { right: 0; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 56px; }
  .step::before { left: 17px; right: auto; top: 35px; bottom: 0; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .fee { grid-template-columns: 1fr; gap: 12px; }
  .fee-v { text-align: left; }
  .prod { padding: 22px 20px 24px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .m-ti, .p-head { column-gap: 60px; }
  .studios { gap: 60px; }
  .svc { column-gap: 50px; }
  .contact { column-gap: 60px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  :root { --pad: 30px; --gap: 30px; }
  .site-header .bar { height: 87px; }
  .brand { width: 175px; }
  .nav { display: none; }
  .burger { display: block; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 1fr; row-gap: 60px; }
  .tree { margin: 0 auto; }
  .f-mid { grid-template-columns: 1fr 1fr; }

  .f-legal { grid-template-columns: 1fr; }
  .f-legal .links { justify-content: flex-start; }
}

@media (max-width: 767px) {
  :root { --sec: 50px; --gap: 50px; }
  body { font-size: 15px; }

  /* portada centrada, como la referencia en móvil */
  .intro { grid-template-columns: 1fr; text-align: center; }
  .intro h1 { font-size: 44px; line-height: 1.1; }
  .intro .lead { font-size: 22px; line-height: 31px; margin-top: 40px; }

  /* proyectos de uno en uno, imagen a sangre */
  .grid { grid-template-columns: 1fr; }
  .card .img { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .card .cap { margin-top: 34px; }
  .card--service .over { left: 30px; right: 30px; }

  .p-hero { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .p-hero img { aspect-ratio: 4 / 3.4; }
  .p-hero.pair { grid-template-columns: 1fr 1fr; gap: 6px; }
  .p-hero.pair img { aspect-ratio: 3 / 5; }
  .p-head { grid-template-columns: 1fr; row-gap: 34px; }
  .p-head h1 { font-size: 40px; }
  .p-head .cita { font-size: 21px; line-height: 29px; }
  .dats { display: grid; grid-template-columns: 1fr 1fr; }

  .m-ti { grid-template-columns: 1fr; row-gap: 34px; }
  .m-ti .m-img { order: -1; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .m-full { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .m-pair { grid-template-columns: 1fr; gap: 30px; }
  .m-text h2, .m-ti .m-txt h2 { font-size: 32px; }

  .refs, .figs { grid-template-columns: 1fr; gap: 34px; }
  .next { flex-direction: column; }
  .next a:last-child { text-align: left; }

  .about-top { grid-template-columns: 1fr; row-gap: 46px; }
  .about-top .txt { text-align: left; }
  .about-top .photo { justify-self: stretch; width: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .about-top .photo figcaption { padding: 0 var(--pad); }
  .studios { grid-template-columns: 1fr; gap: 60px; }

  .tree { aspect-ratio: 340 / 600; max-width: 420px; }
  .tree .lines-d { display: none; }
  .tree .lines-m { display: block; }
  .tnode { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); transform: translate(0, -50%); text-align: left; font-size: 16px; }
  .js .tree .tnode { transform: translate(0, calc(-50% + 10px)); }
  .js .tree.go .tnode { transform: translate(0, -50%); }
  .tnode.root svg { width: 170px; }
  .tnode.main { font-size: 20px; }
  .tnode.sub { font-size: 15px; }
  .tree-hint { text-align: left; }

  .contact { grid-template-columns: 1fr; row-gap: 50px; }
  .two { grid-template-columns: 1fr; }
  .cdata { grid-template-columns: 1fr; }
  .map { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); aspect-ratio: 1 / 1; }

  .f-top { flex-direction: column; align-items: flex-start; }
  .f-mid { grid-template-columns: 1fr; gap: 22px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
