/* Inner pages: /servicios/, the three service pages and /como-trabajamos/.
   Reuses the tokens, buttons and type scale from landing.css. */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero h1 { font: 400 clamp(38px, 5.8vw, 76px)/1.0 var(--serif); letter-spacing: -.005em; margin: 0; text-wrap: balance; max-width: 20ch; }
.page-hero .lead { margin: 20px 0 0; max-width: 62ch; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); }
.page-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hub { padding: clamp(40px, 6vw, 72px) 0 0; }
.label { font: 500 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terra-ink); margin: 0 0 24px; }
.hub-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; }
.hub-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.hub-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hub-card h2, .hub-card h3 { font: 400 25px/1.15 var(--serif); margin: 0; }
.hub-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.hub-card .link { margin-top: auto; padding-top: 8px; }


.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding: clamp(40px, 6vw, 72px) 0 0; }
.split h2 { font: 400 clamp(23px, 2.3vw, 30px)/1.2 var(--serif); margin: 32px 0 12px; }
.split h2:first-child { margin-top: 0; }
.split p { margin: 0 0 12px; color: var(--ink-2); }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.includes li::before { content: "→"; color: var(--terra-ink); font-size: 14px; }

.cross { padding: clamp(40px, 6vw, 64px) 0 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.cross h2 { font: 500 18px/1.3 var(--sans); color: var(--ink-2); margin: 0 0 16px; font-weight: 500; }
.cross ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; }


/* Shared page hero (Services, Cómo trabajamos, Quiénes somos): the home hero without the dotted bridge */
.hero.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.hero.page-hero .hero-copy { max-width: 960px; }
.hero.page-hero h1 { font-size: clamp(42px, 6.2vw, 92px); max-width: 20ch; margin-inline: auto; }
.hero.page-hero > .blobs { --blob-op: .3; }
/* a paper veil under the copy keeps the lead at AA while the liquid field moves around it */
.hero.page-hero .hero-copy::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--cream) 90%, transparent) 62%, transparent); }
.hero.page-hero .lead { margin: 24px auto 32px; max-width: 52ch; color: var(--ink); }

/* Centered section heads */
.sec-head-center { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; text-align: center; }
.sec-head-center h2 { max-width: 20ch; text-wrap: balance; }
.sec-head-center .lead { margin: 0; max-width: 60ch; }

/* Cómo trabajamos: a bridge between two banks. The client's bank (marfil) above, the deck with what each step leaves in the middle, the team's work below */
.crossing { padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px); }
.bridge { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
.pier { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-areas: "you" "stop" "us"; }
.pier .you { grid-area: you; margin: 0; padding: 24px 20px 28px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
.pier:first-child .you { border-radius: var(--r-control) 0 0 0; }
.pier:last-child .you { border-radius: 0 var(--r-control) 0 0; }
.pier .stop { grid-area: stop; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 32px 20px 24px; }
.pier .stop::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--terra); transform-origin: left; }
.pier .stop::after { content: ""; position: absolute; top: -7px; left: 20px; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: 3px solid var(--terra); }
.pier .n { display: block; margin-bottom: 10px; font: 600 13px/1 var(--mono); color: var(--terra-ink); }
.pier h3 { margin: 0 0 14px; font: 400 clamp(22px, 2vw, 27px)/1.15 var(--serif); text-wrap: balance; }
.pier .takeaway { display: inline-flex; align-items: center; min-height: 32px; margin-top: auto; padding: 0 12px; white-space: nowrap; border-radius: var(--r-pill); background: var(--terra-tint); color: var(--terra-ink); font: 600 14px/1.2 var(--sans); }
.pier .us { grid-area: us; margin: 0; padding: 4px 20px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.pier .bank { display: block; margin-bottom: 6px; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--terra-ink); }
/* on wide screens a legend names the banks once; each pier keeps its names for screen readers */
.banks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 4px 0 0; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.banks span { display: inline-flex; align-items: center; gap: 8px; }
.banks span::before { content: ""; width: 18px; height: 12px; border-radius: 2px; }
.banks .b-you::before { background: var(--paper); border: 1px solid var(--line); }
.banks .b-stop::before { height: 3px; background: var(--terra); }
.banks .b-us::before { border: 1px dashed var(--line); }
.pier .bank { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .bridge .stop::before { transform: scaleX(0); transition: transform .7s var(--ease) var(--d, 0s); }
  .js .bridge.in .stop::before { transform: none; }
}

/* below 1100px five columns are too narrow for "Implementamos": the deck turns vertical */
@media (max-width: 1100px) {
  .bridge { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pier { grid-row: auto; grid-template-rows: none; grid-template-areas: "stop" "you" "us"; position: relative; padding: 0 0 32px 32px; border-left: 3px solid var(--terra); }
  .pier:last-child { padding-bottom: 0; border-left-color: transparent; }
  .pier .stop { padding: 0 0 14px; }
  .pier .stop::before { display: none; }
  .pier .stop::after { top: 2px; left: -44px; }
  .pier .you { padding: 16px 18px; border-radius: var(--r-control) !important; }
  .pier .us { padding: 14px 0 0; }
  .banks { display: none; }
  .pier .bank { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}

@media (max-width: 900px) {
  .hub-cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  }
