/* ============ Fonts (self-hosted latin subset: no visitor IP goes to Google) ============ */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/lexend.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 650; font-display: swap; src: url("/fonts/literata.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/fonts/literata-italic.woff2") format("woff2"); }

/* ============ Tokens ============ */
:root {
  --paper: #F7F4EE;
  --paper-2: #EFEAE1;
  --surface: #FFFFFF;
  --ink: #14222E;
  --ink-2: #46535F;
  --line: #DDD6CA;
  --brand: #0A5A8C;          /* deep evolution of the historic Logoter blue */
  --brand-bright: #0095D2;   /* historic logo blue: decoration only */
  --brand-tint: #E4EEF4;
  --keyword: #0077A8;        /* logo blue, one step darker so bold keywords pass WCAG AA on light grounds */
  --accent: #B3452A;         /* warm action colour */
  --accent-hover: #963820;
  --focus: #0A5A8C;
  --error: #A3261B;

  --font-display: "Literata", Georgia, serif;
  --font-body: "Lexend", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--keyword); }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 1rem; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.4rem;
  font: 600 1.0625rem/1.2 var(--font-body);
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 8px 18px -10px rgba(0,0,0,.4); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-thickness: 2.5px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { position: relative; display: block; height: 36px; aspect-ratio: 720 / 160; flex: none; }
.brand-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s var(--ease-out), visibility .35s; }
.logo-on-dark { opacity: 0; visibility: hidden; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; padding-left: .9rem; border-left: 1px solid var(--line); transition: border-color .35s var(--ease-out); }
.brand-sub { font-size: .8125rem; color: var(--ink-2); }
.brand-reg { font-size: .75rem; color: var(--brand); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink-2); padding-block: .5rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: color .2s, background-size .3s var(--ease-out); }
.nav a:hover { color: var(--ink); background-size: 100% 1.5px; }

/* ---- Nav dropdown (Servicios) ---- */
.nav-item { position: relative; display: flex; align-items: center; gap: .15rem; }
.nav-caret { display: inline-flex; padding: .3rem; margin: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.nav-caret .i { width: 1.05rem; height: 1.05rem; }
.site-header.on-hero .nav-caret { color: #fff; }
.nav-dropdown {
  /* padding-top is an invisible hover bridge: keeps the gap to the menu
     hoverable, so moving the mouse down into the panel never drops :hover
     and closes it before a link can be clicked. */
  position: absolute; top: 100%; left: 50%; padding-top: .6rem;
  transform: translateX(-50%);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.nav-dropdown-panel {
  min-width: 15rem; padding: 1rem;
  display: grid; grid-template-columns: repeat(2, auto); gap: .25rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 24px 40px -20px rgba(20,34,46,.3);
}
.nav-dropdown a { display: block; padding: .5rem .25rem; font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: none; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { color: var(--brand); }
.nav-dropdown-all {
  grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between;
  margin-top: .4rem; padding-top: .9rem !important; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--ink) !important;
}
.nav-dropdown-all .i { width: 1rem; height: 1rem; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-dropdown-panel { transition: transform .18s var(--ease-out); transform: translateY(-4px); }
  .nav-dropdown { transition: opacity .18s var(--ease-out), visibility .18s; }
  .nav-item:hover .nav-dropdown-panel, .nav-item:focus-within .nav-dropdown-panel, .nav-item.is-open .nav-dropdown-panel { transform: translateY(0); }
  .nav-caret svg { transition: transform .2s var(--ease-out); }
  .nav-item:hover .nav-caret svg, .nav-item.is-open .nav-caret svg { transform: rotate(180deg); }
}

/* ============ Hero ============ */

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.proof li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.proof .i { color: var(--brand); margin-top: .1rem; }
.proof strong { display: block; color: var(--keyword); font-weight: 600; }

/* ============ Section scaffolding ============ */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2, .process-head h2, .who-text h2, .faq h2, .contact h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 1rem; font-size: 1.1875rem; color: var(--ink-2); max-width: 60ch; }

/* ============ Finder ============ */
.finder { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
html:not(.js) .finder-grid { display: none; }
.finder fieldset { border: 0; margin: 0 0 2rem; padding: 0; }
.finder legend { font-weight: 700; font-size: .9375rem; color: var(--ink-2); margin-bottom: .9rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font: 500 1rem/1.3 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: .7rem 1.1rem; min-height: 2.9rem; cursor: pointer; text-align: left;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.finder-panel {
  position: sticky; top: 100px;
  background: var(--brand-tint); border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.panel-meta { margin-top: .6rem; font-size: .9375rem; color: var(--ink-2); }
.panel-meta strong { color: var(--keyword); font-weight: 600; }
.finder-panel h3 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); }
.finder-panel [data-slot="body"] { margin-top: .9rem; color: var(--ink-2); }
.panel-list { margin-top: 1.25rem; display: grid; gap: .5rem; }
.panel-list li { position: relative; padding-left: 1.5rem; }
.panel-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; height: .6rem; border: 2px solid var(--brand-bright); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg) translateY(-50%); }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.finder-panel.is-swapping > * { opacity: 0; transform: translateY(6px); }
.finder-panel > * { transition: opacity .28s var(--ease-out), transform .28s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .finder-panel > * { transition: none; } }

/* ============ Services ============ */
.services { padding-block: var(--section); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.875rem, 1.8vw + 1rem, 2.75rem); color: var(--brand); }
.service-who { font-weight: 700; font-size: .9375rem; margin-top: .6rem; }
.service-intro p:last-child { margin-top: .9rem; color: var(--ink-2); max-width: 42ch; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; align-content: start; }
.service-list li { padding-bottom: .75rem; border-bottom: 1px solid var(--line); line-height: 1.4; }

/* ---- Service list items that expand for a short explanation ---- */
.service-list-expand li { padding-bottom: 0; }
.service-list-expand details { padding-block: .65rem; }
.service-list-expand summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none; line-height: 1.4;
}
.service-list-expand summary::-webkit-details-marker { display: none; }
.service-list-expand .plus { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.service-list-expand .plus::before, .service-list-expand .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--brand-bright);
  width: .95rem; height: 2px; border-radius: 1px; transform: translate(-50%, -50%);
}
.service-list-expand .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service-list-expand details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service-list-expand p { margin: .35rem 0 0; padding-right: 1.75rem; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .service-list-expand .plus::after { transition: transform .2s var(--ease-out); }
}
.service-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.service-cols .service-list { grid-template-columns: 1fr; }
.service-cols h4 { font-family: var(--font-body); font-weight: 700; font-size: .9375rem; color: var(--ink-2); margin-bottom: .9rem; letter-spacing: 0; }

/* ============ Process ============ */
.process { padding-block: var(--section); background: var(--ink); color: #EDEAE4; }
.process-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); }
.process-head { align-self: start; position: sticky; top: 110px; }
.process-head h2 { color: #fff; }
.process-head p { margin-top: 1rem; color: #BFC6CD; max-width: 36ch; }
.process-head .btn { margin-top: 2rem; }
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1.25rem; padding-block: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1.5px solid var(--brand-bright); color: #fff; background: transparent;
  font: 500 1.25rem/1 var(--font-display);
}
.js .steps li.is-active::before { background: var(--brand-bright); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .steps li::before { transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
}
.steps h3 { font-size: 1.5rem; color: #fff; align-self: center; }
.steps p { margin-top: .4rem; color: #BFC6CD; max-width: 56ch; }
.reports { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); }
.reports h3 { font-size: 1.375rem; color: #fff; }
.reports p { color: #BFC6CD; }
.reports strong { color: #fff; font-weight: 600; }

/* ============ Who ============ */
.who { padding-block: var(--section); }
.who-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.portrait { margin: 0; }
.who-name { margin-top: 1.75rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem); color: var(--brand); }
.who-role { font-weight: 700; font-size: .9375rem; margin-top: .25rem; margin-bottom: 1.25rem; }
.who-text > p:not(.who-name):not(.who-role) { color: var(--ink-2); max-width: 60ch; }
.creds { margin-top: 2rem; display: grid; }
.creds li { padding-block: 1rem; border-top: 1px solid var(--line); line-height: 1.45; }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds .num { display: block; margin-top: .2rem; font-size: .9375rem; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }


/* ============ FAQ ============ */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.35rem; font-weight: 600; font-size: 1.125rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-right: .3rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 62ch; }

/* ============ Contact ============ */
.contact { padding-block: var(--section); background: var(--brand); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact h2 { color: #fff; }
.contact-lede { margin-top: 1rem; color: #D6E6F0; max-width: 44ch; }
.phone-big {
  display: inline-block; margin-top: 2rem;
  font-family: var(--font-display); font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); font-weight: 450; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: .15rem;
  transition: background-size .3s var(--ease-out);
}
.phone-big:hover { background-size: 100% 4px; }
.contact-list { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; color: #E8F0F5; }
.contact-list .i { margin-top: .2rem; color: #9FD3EE; }
.contact .text-link { color: #fff; }
.contact :focus-visible { outline-color: #fff; }

.wa-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 24px 48px -24px rgba(0,0,0,.4); }
.wa-form h3 { font-size: 1.5rem; }
.form-note { margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.field { margin-top: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: 400 1.0625rem/1.3 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346535F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.field input:hover, .field select:hover { border-color: #B9B0A2; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,90,140,.2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: .4rem; font-size: .9375rem; color: var(--error); font-weight: 600; }
.wa-form .btn { margin-top: 1.75rem; }
.wa-form :focus-visible { outline-color: var(--focus); }

/* ============ Footer ============ */
.site-footer {
  padding-top: 3.75rem;
  background: radial-gradient(130% 160% at 12% -10%, #1C3140 0%, var(--ink) 55%);
  color: #BFC6CD; font-size: .9375rem;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem 3rem; padding-bottom: 2.75rem; }
.footer-logo { width: 210px; height: auto; }
.footer-brand p { margin-top: 1.1rem; max-width: 30ch; color: #A9B4BC; }
.site-footer :focus-visible { outline-color: #9FD3EE; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8125rem; color: #92A0A9;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: #92A0A9; }
.footer-credit { padding-block: .9rem 1.5rem; margin: 0; text-align: center; font-size: .75rem; color: #8A98A1; }
.footer-credit a { color: #8A98A1; text-decoration: underline; text-underline-offset: .18em; }
.footer-credit a:hover { color: #C9D2D8; }

/* ============ Mobile bar ============ */
.mobile-bar { display: none; }

.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  transition: transform .15s ease, background-color .15s ease;
}
.wa-float:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wa-float .i { width: 1.6rem; height: 1.6rem; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-grid { grid-template-columns: 1fr; }
  .finder-panel { position: static; }
}

@media (max-width: 820px) {
  .service, .process-grid, .who-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .portrait { max-width: 22rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .header-inner { min-height: 64px; }
  .brand { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .brand-text { padding-left: 0; border-left: 0; }
  .brand-logo { height: 28px; }
  .brand-sub { display: none; }
  .brand-reg { font-size: .6875rem; }
  .header-cta span { display: none; }
  .header-cta { padding: 0; width: 2.75rem; }
  .hero-actions .btn { width: 100%; }
  .proof { grid-template-columns: 1fr; gap: 1rem; }
  .service-list { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 2.75rem 1fr; column-gap: 1rem; }
  .steps li::before { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
  .steps h3 { font-size: 1.3125rem; }
  .chip { font-size: .9375rem; }

  .wa-float { display: none; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(247,244,238,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .mb-call { background: var(--accent); color: #fff; }
  .mb-wa { border: 1.5px solid var(--ink); color: var(--ink); }
}

/* ============ Map ============ */
.map { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; color: #E8F0F5; font-size: 1rem; }
.map strong { color: #fff; }

/* =====================================================================
   Cinematic layer: full-bleed hero, header over photo, photo reveals
   ===================================================================== */

/* ---- Header floats over the hero photo, turns solid on scroll ---- */
.site-header { position: fixed; inset: 0 0 auto 0; transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), backdrop-filter .35s; }
.site-header.on-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-hero .brand-sub,
.site-header.on-hero .nav a { color: #fff; }
.site-header.on-hero .brand-reg { color: #9FD3EE; }
.site-header.on-hero .logo-on-light { opacity: 0; }
.site-header.on-hero .logo-on-dark { opacity: 1; visibility: visible; }
.site-header.on-hero .brand-text { border-left-color: rgba(255,255,255,.3); }
.site-header.on-hero :focus-visible { outline-color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: 128px 0 clamp(2rem, 3.5vw, 3rem);
  background: #0E1A24; color: #fff;
}
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -2; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 0%;
  filter: saturate(.92) contrast(1.02) brightness(1.1);
}
.hero-shade {
  /* Text sits on the right on the home hero, so this darkens that side.
     .hero-team keeps its own left-darkened version below: its text stays left. */
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,18,28,.26) 0%, rgba(8,18,28,0) 22%),
    linear-gradient(270deg, rgba(8,18,28,.34) 0%, rgba(8,18,28,.2) 42%, rgba(8,18,28,.02) 100%),
    linear-gradient(0deg, rgba(8,18,28,.3) 0%, rgba(8,18,28,0) 55%);
}
.hero-team .hero-shade {
  background:
    linear-gradient(180deg, rgba(8,18,28,.26) 0%, rgba(8,18,28,0) 22%),
    linear-gradient(90deg, rgba(8,18,28,.34) 0%, rgba(8,18,28,.2) 42%, rgba(8,18,28,.02) 100%),
    linear-gradient(0deg, rgba(8,18,28,.3) 0%, rgba(8,18,28,0) 55%);
}
.hero-inner { position: relative; width: 100%; }
.hero-title { font-size: clamp(2.6rem, 4.2vw + 1rem, 5.25rem); font-weight: 420; letter-spacing: -0.03em; line-height: 1.02; max-width: 14ch; color: #fff; text-shadow: 0 1px 2px rgba(8,18,28,.5), 0 6px 28px rgba(8,18,28,.55); }
.hero-title em { font-style: italic; color: #9FD3EE; font-weight: 420; }
.hero-lede { margin-top: 1.75rem; max-width: 52ch; font-size: clamp(1.125rem, .4vw + 1rem, 1.3125rem); color: #fff; text-shadow: 0 1px 2px rgba(8,18,28,.5), 0 4px 18px rgba(8,18,28,.5); }
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.75); }
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero .proof { border-top-color: rgba(255,255,255,.22); margin-top: clamp(2.25rem, 4.5vw, 3.5rem); }
.hero .proof li { color: rgba(255,255,255,.76); }
.hero .proof strong { color: #fff; }
.contact strong { color: #fff; }
.hero .proof .i { color: #9FD3EE; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 2.8s cubic-bezier(.2,.7,.1,1) both; }
  .reveal-up { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--delay, 0s)); }
}
@keyframes hero-settle { from { transform: scale(1.14); filter: saturate(.6) contrast(1.06) brightness(.7); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---- Photo frames with a curtain reveal on scroll ---- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.frame img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.03); transition: transform 1.6s cubic-bezier(.2,.7,.1,1); }
.reveal-img figcaption, .service-photo figcaption, .portrait figcaption {
  display: flex; align-items: center; gap: .75rem; margin-top: .9rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.reveal-img figcaption::before { content: ""; width: 1.75rem; height: 1.5px; background: var(--brand-bright); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-img .frame { clip-path: inset(14% 10% 14% 10% round var(--radius)); transition: clip-path 1.3s cubic-bezier(.2,.7,.1,1); }
  .js .reveal-img .frame img { transform: scale(1.22); }
  .js .reveal-img figcaption { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease-out) .5s, transform .8s var(--ease-out) .5s; }
  .js .reveal-img.is-in .frame { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .reveal-img.is-in .frame img { transform: scale(1); }
  .js .reveal-img.is-in figcaption { opacity: 1; transform: none; }
  .frame:hover img { transform: scale(1.03); }
}

/* ---- Sheen: a quiet light sweep on hover, not a flashy one ----
   Pure CSS, no motion unless the visitor allows it. Kept to the handful
   of elements people actually point at: primary buttons and photos. */
.frame::before, .g-item::before, .btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%);
  transform: translateX(-130%);
}
.btn-primary { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .frame::before, .g-item::before, .btn-primary::before {
    transition: transform .85s cubic-bezier(.2,.7,.1,1);
  }
  .frame:hover::before, .frame:focus-within::before,
  .g-item:hover::before, .g-item:focus-visible::before,
  .btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateX(130%); }
}

/* ---- Services with their room ---- */
.service.has-photo { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
#pedagogia.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
#pedagogia .service-photo { order: 2; }
.service-photo { margin: 0; }
.service-body .service-intro { margin-bottom: 1.75rem; }
.service-body .service-intro p:last-child { max-width: 52ch; }

/* ---- Who ---- */
.portrait { max-width: 30rem; }

@media (max-width: 820px) {
  .service.has-photo, #pedagogia.has-photo { grid-template-columns: 1fr; }
  #pedagogia .service-photo { order: 0; }
  .service-photo { max-width: 32rem; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero-media img { object-position: 30% 40%; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,18,28,.28) 0%, rgba(8,18,28,.12) 30%, rgba(8,18,28,.42) 70%); }
}

/* ---- Header fit: never wrap, drop secondary text before crowding ---- */
.nav a, .header-cta, .brand-sub, .brand-reg { white-space: nowrap; }
.nav { gap: 1.5rem; }
.header-inner { gap: 1.5rem; }
@media (max-width: 1240px) {
  .brand-sub { display: none; }
}

/* ---- Browser surfaces carry the palette ---- */
html { scrollbar-color: #B9B0A2 var(--paper); accent-color: var(--brand); }
input, select, textarea { caret-color: var(--accent); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #CFC7BA; border-radius: 999px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #B9B0A2; }

/* ---- Map loads only on request (Google sets cookies) ---- */
.map-frame { position: relative; overflow: hidden; border-radius: var(--radius); height: clamp(320px, 38vw, 440px); background: #0C4F7A; box-shadow: 0 24px 48px -24px rgba(0,0,0,.4); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(.8) brightness(.55); }
.map-consent {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .75rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(0deg, rgba(8,18,28,.85) 0%, rgba(8,18,28,.15) 70%);
}
.map-consent-title { font-family: var(--font-display); font-size: clamp(1.375rem, 1vw + 1rem, 1.875rem); color: #fff; line-height: 1.15; }
.map-consent-note { color: rgba(255,255,255,.82); font-size: .9375rem; max-width: 46ch; }
.map-consent .btn { margin-top: .5rem; }
.map-remember { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.8); cursor: pointer; }
.map-remember input { width: 1.05rem; height: 1.05rem; accent-color: #9FD3EE; }
.map-frame.is-loaded .map-poster, .map-frame.is-loaded .map-consent { display: none; }

/* ---- Guides for families ---- */
.guides { padding-block: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.guide-list { max-width: 58rem; border-top: 1px solid var(--line); }
.guide { border-bottom: 1px solid var(--line); }
.guide summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(1.4rem, 2.5vw, 1.9rem);
}
.guide summary::-webkit-details-marker { display: none; }
.guide-head { display: flex; flex-direction: column; gap: .45rem; }
.guide-title { font-family: var(--font-display); font-size: clamp(1.3125rem, .9vw + 1rem, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); transition: color .2s; text-wrap: balance; }
.guide-meta { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.guide summary:hover .guide-title { color: var(--brand); }
.guide-toggle { position: relative; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line); transition: border-color .2s, background-color .2s, transform .35s var(--ease-out); }
.guide-toggle::before, .guide-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; background: var(--brand); transform: translate(-50%, -50%); transition: transform .35s var(--ease-out); }
.guide-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.guide summary:hover .guide-toggle { border-color: var(--brand); }
.guide[open] .guide-toggle { background: var(--brand); border-color: var(--brand); }
.guide[open] .guide-toggle::before, .guide[open] .guide-toggle::after { background: #fff; }
.guide[open] .guide-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.guide-body { padding-bottom: 2rem; max-width: 62ch; color: var(--ink-2); display: grid; gap: 1rem; }
.guide-body strong { color: var(--keyword); }
.guide-body h4 { font-size: 1.0625rem; font-weight: 600; color: var(--brand); margin-top: .5rem; }
.guide-points { display: grid; gap: .6rem; }
.guide-points li { position: relative; padding-left: 1.25rem; }
.guide-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand-bright); }
.milestones { margin: 0; display: grid; }
.milestones div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.milestones div:last-child { border-bottom: 1px solid var(--line); }
.milestones dt { font-weight: 600; color: var(--brand); }
.milestones dd { margin: 0; }
.guides-cta { margin-top: 2rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .guide[open] .guide-body { animation: rise .5s var(--ease-out) both; }
}
@media (max-width: 640px) {
  .milestones div { grid-template-columns: 1fr; gap: .25rem; }
  .guide summary { gap: 1rem; }
}

/* =====================================================================
   Inner pages
   ===================================================================== */
.page-hero { padding: clamp(8rem, 12vw, 10rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--paper); }
.page-hero-compact { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4.25rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.04; max-width: 16ch; margin-top: 1.25rem; }
.page-lede { margin-top: 1.5rem; max-width: 56ch; font-size: clamp(1.125rem, .4vw + 1rem, 1.3125rem); color: var(--ink-2); }
.page-lede strong { color: var(--keyword); font-weight: 600; }
.page-hero-photo { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; color: var(--ink-2); }
.crumbs a { color: var(--brand); font-weight: 600; text-underline-offset: .2em; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.service-more { display: inline-block; margin-top: 1rem; }
.room-link { display: inline-block; margin-top: .6rem; }

.detail { padding-block: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.detail-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.detail-group h3 { font-size: 1.5rem; color: var(--brand); margin-bottom: 1.25rem; }
.detail-group .service-list { grid-template-columns: 1fr; }

/* ---- Diagnostics ---- */
.diagnostics { padding-block: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.diagnostics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.diagnostic-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diagnostic-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.diagnostic-card img { width: 100%; height: 100%; object-fit: cover; }
.diagnostic-card h3 { margin: 1.1rem 1.1rem 0; font-size: 1.0625rem; color: var(--brand); }
.diagnostic-card > p { margin: .4rem 1.1rem 0; color: var(--ink-2); font-size: .875rem; line-height: 1.45; flex: 1; }
.diagnostic-price { display: block; margin: .9rem 1.1rem 1.1rem; font-size: .875rem; }
@media (max-width: 1024px) { .diagnostics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .diagnostics-grid { grid-template-columns: 1fr; } }

.other-services { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.other-services h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); letter-spacing: -0.02em; margin-bottom: 2rem; max-width: 22ch; }
.other-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.other-list li { border-bottom: 1px solid var(--line); }
.other-list li + li { border-left: 1px solid var(--line); }
.other-list a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.5rem 1.25rem 1.5rem 0; text-decoration: none; transition: background-color .2s; }
.other-list li + li a { padding-left: 1.25rem; }
.other-name { font-family: var(--font-display); font-size: 1.375rem; color: var(--ink); transition: color .2s; }
.other-desc { font-size: .9375rem; color: var(--ink-2); }
.other-list a:hover .other-name, .other-list a[aria-current] .other-name { color: var(--brand); }
.not-found .other-list { margin-top: 2.5rem; }

.cta-band { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--brand); color: #fff; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); color: #fff; }
.cta-band p { margin-top: .75rem; color: #D6E6F0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta-band :focus-visible { outline-color: #fff; }

.legal { padding-block: 0 var(--section); }
.prose { max-width: 48rem; color: var(--ink-2); }
.prose h2 { font-size: 1.625rem; color: var(--ink); margin: 2.5rem 0 .9rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { display: grid; gap: .6rem; margin-top: 1rem; }
.prose li { position: relative; padding-left: 1.25rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--brand-bright); }
.prose strong { color: var(--keyword); }

/* Footer columns */
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 2.75rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col-title { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: .3rem; }
.footer-col a { color: #D7DEE3; text-underline-offset: .2em; }

@media (max-width: 1024px) {
  .other-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-list li:nth-child(3) { border-left: 0; }
  .other-list li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 820px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 32rem; }
  .footer-cols { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 7rem; }
  .other-list { grid-template-columns: 1fr; }
  .other-list li + li { border-left: 0; }
  .other-list li + li a { padding-left: 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { width: 100%; }
}
.nav a[aria-current] { color: var(--ink); background-size: 100% 1.5px; }

/* ---- Team page hero (home structure) ---- */
.hero-team .hero-media img { object-position: 62% 40%; }
.crumbs-on-dark { margin-bottom: 1.5rem; color: rgba(255,255,255,.75); }
.crumbs-on-dark a { color: #fff; }
.crumbs-on-dark [aria-current] { color: #fff; }

/* ---- Team page: professional network ---- */
.team-network { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--surface); border-block: 1px solid var(--line); }
.network-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.network-grid h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.75rem); letter-spacing: -0.02em; }
.network-grid p { margin-top: 1rem; color: var(--ink-2); max-width: 44ch; }
.network-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.network-list li { padding-block: .85rem; border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .network-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .network-list { grid-template-columns: 1fr; }
}

/* ---- Services intro ---- */
.services-intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
.services-intro-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.services-intro-text h2 { grid-row: span 2; }
.services-intro h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); letter-spacing: -0.02em; }
.services-intro-text p { color: var(--ink-2); max-width: 60ch; }
.services-intro-text p + p { margin-top: 1.1rem; }
.services-intro-text strong { color: var(--keyword); }

/* ---- Psychology cards with photo ---- */
.psy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.psy-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.psy-card img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.psy-card-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.psy-card h3 { font-size: 1.5rem; color: var(--brand); padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.psy-card .service-list { grid-template-columns: 1fr; gap: 0; }
.psy-card .service-list li { padding-block: .6rem; border-bottom: 0; }

/* ---- Gallery (El centro) ---- */
.gallery-section { padding-bottom: var(--section); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 290px); gap: 1rem; }
.gallery .g-wide { grid-column: span 2; }
.g-item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.03); transition: transform .8s var(--ease-out); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,28,.65) 0%, rgba(8,18,28,0) 45%); }
.g-caption { position: absolute; left: 1.1rem; bottom: .95rem; z-index: 1; color: #fff; font-weight: 600; font-size: 1rem; }
.g-caption small { display: block; font-weight: 500; font-size: .75rem; opacity: .8; margin-top: .15rem; }
.g-hint { position: absolute; top: .8rem; right: .8rem; z-index: 1; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(8,18,28,.55); display: grid; place-items: center; color: #fff; }
.g-hint svg { width: 1rem; height: 1rem; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(8,14,20,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 4.5rem 2rem; }
.lb-img { width: min(92vw, var(--w, 900px)); max-height: 76vh; object-fit: contain; border-radius: 10px; }
.lb-caption { font-size: 1rem; color: rgba(255,255,255,.88); text-align: center; max-width: 60ch; }
.lb-count { color: rgba(255,255,255,.6); margin-left: .5rem; font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(8,14,20,.5); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.lb-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1.25rem; top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-img { animation: rise .45s var(--ease-out) both; }
}


/* ---- Reviews (Google) ---- */
.reviews { padding-block: var(--section); background: var(--brand-tint); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; }
.reviews-head h2 { max-width: 26ch; }
.reviews-head p { margin-top: .6rem; color: var(--ink-2); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.reviews-marquee {
  margin-top: 2.5rem; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-track { display: flex; gap: 1.25rem; width: max-content; padding-inline: 1.5rem; }
.review-card {
  width: 320px; flex: none; display: flex; flex-direction: column; gap: .9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.review-stars { color: var(--brand-bright); letter-spacing: .12em; font-size: .9rem; }
.review-card blockquote { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.review-author { margin: 0; font-weight: 600; font-size: .875rem; }

@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .js .reviews-track.is-looping { animation: reviews-scroll 34s linear infinite; }
  .reviews-marquee:hover .reviews-track.is-looping,
  .reviews-marquee:focus-within .reviews-track.is-looping { animation-play-state: paused; }
}
@media (max-width: 640px) {
  .review-card { width: 82vw; }
}

@media (max-width: 1024px) {
  .services-intro-text { grid-template-columns: 1fr; }
  .services-intro-text h2 { grid-row: auto; margin-bottom: .6rem; }
  .psy-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .psy-card { grid-template-columns: 1fr; }
  .psy-card img { aspect-ratio: 16 / 9; height: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: .6rem; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 1; }
  .lb-figure { padding: 4rem 1rem 1.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
}
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gallery .g-wide { grid-column: span 2; }
}
.psy-card-media { position: relative; min-height: 16rem; }
.psy-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
@media (max-width: 640px) { .psy-card-media { aspect-ratio: 16 / 9; min-height: 0; } }

/* =====================================================================
   Home hero: headline + flip cards for each service
   ===================================================================== */
.home-hero {
  padding: calc(76px + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(0,149,210,.14) 0%, rgba(0,149,210,0) 70%),
    radial-gradient(50% 60% at 6% 96%, rgba(179,69,42,.07) 0%, rgba(179,69,42,0) 70%),
    var(--paper);
}
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.home-hero h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 4.4rem); font-weight: 420; letter-spacing: -0.03em; line-height: 1.04; max-width: 14ch; color: var(--ink); }
.home-hero h1 em { font-style: italic; font-weight: 420; color: var(--brand-bright); }
.home-hero-lede { margin-top: 1.5rem; max-width: 50ch; font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem); color: var(--ink-2); }
.home-hero .proof { margin-top: clamp(2.5rem, 5vw, 3.75rem); }

.flip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.flip-card { position: relative; aspect-ratio: 3 / 4; perspective: 1100px; }
.flip-tilt, .flip-rotor { position: absolute; inset: 0; transform-style: preserve-3d; }
.flip-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); }
.flip-card.is-flipped .flip-rotor { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 40px -22px rgba(0,0,0,.45), 0 2px 6px rgba(20,34,46,.08);
}
.flip-front { background: var(--ink); }
.flip-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,28,0) 38%, rgba(8,18,28,.8) 100%); }
.flip-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
  transition: opacity .3s;
}
.flip-card.is-hover .flip-front::after { opacity: 1; }
.flip-toggle {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .35rem;
  padding: clamp(.9rem, 2vw, 1.4rem); border: 0; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer;
}
.flip-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1vw + .8rem, 1.6rem); line-height: 1.1; font-weight: 500; }
.flip-hint { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; opacity: .85; }
.flip-hint .i, .flip-back-btn .i, .flip-link .i { width: .95rem; height: .95rem; }
.flip-toggle:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
.flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; gap: .7rem; padding: clamp(1rem, 2.2vw, 1.6rem); background: var(--brand); color: #fff; }
.flip-back h3 { font-size: clamp(1.15rem, 1vw + .8rem, 1.6rem); color: #fff; }
.flip-back p { font-size: clamp(.875rem, .3vw + .8rem, 1rem); line-height: 1.45; color: rgba(255,255,255,.88); }
.flip-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9375rem; color: #fff; text-underline-offset: .2em; }
.flip-back-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; border: 0; background: none; color: rgba(255,255,255,.75); font: 600 .78rem/1 var(--font-body); cursor: pointer; }
.flip-back-btn:hover { color: #fff; }
.flip-back :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html:not(.js) .flip-hint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .flip-rotor { transition: transform .75s cubic-bezier(.34, 1.4, .64, 1); }
  .flip-tilt { transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
  .flip-card.is-hover .flip-tilt { transition: transform .12s ease-out; }
}
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .flip-grid { max-width: 560px; }
}
@media (max-width: 640px) {
  .home-hero { padding-top: calc(64px + 2rem); }
  .flip-grid { gap: .6rem; }
  .flip-face { border-radius: 16px; }
  .flip-toggle:focus-visible { border-radius: 16px; }
  .flip-back { gap: .45rem; padding: .85rem; }
  .flip-back p { font-size: .8125rem; line-height: 1.4; }
  .flip-link { font-size: .8125rem; }
  .flip-hint { font-size: .7rem; }
}

/* =====================================================================
   Mobile / tablet menu (≤1024px). Kept last so it wins over the
   transparent-header-on-hero rules above.
   ===================================================================== */
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; margin: 0 -.4rem 0 0; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -7px; }
  .menu-toggle-bars::after { top: 7px; }
  .site-header.nav-open .menu-toggle-bars { background: transparent; }
  .site-header.nav-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .site-header.nav-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .site-header.on-hero .menu-toggle { color: #fff; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem var(--gutter) 1.25rem;
    max-height: calc(100svh - 64px); overflow-y: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20,34,46,.35);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav > a, .nav-item > a {
    padding-block: .95rem; border-bottom: 1px solid var(--line);
    font-size: 1.0625rem; color: var(--ink); background: none;
  }
  /* Servicios: collapsed by default, the caret expands it */
  .nav-item { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; border-bottom: 0; }
  .nav-caret { width: 2.75rem; height: 2.75rem; justify-content: center; align-items: center; color: var(--ink); }
  .site-header.nav-open.on-hero .nav-caret { color: var(--ink); }
  .nav-item:hover .nav-caret svg { transform: none; }
  .nav-item.is-open .nav-caret svg { transform: rotate(180deg); }
  .nav-dropdown, .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
    display: none; flex-basis: 100%;
    position: static; transform: none; padding-top: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-item.is-open .nav-dropdown { display: block; }
  .nav-dropdown-panel, .nav-item:hover .nav-dropdown-panel, .nav-item:focus-within .nav-dropdown-panel {
    display: grid; grid-template-columns: 1fr; gap: 0; min-width: 0;
    padding: .25rem 0 .5rem 1rem; transform: none;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .nav-dropdown a { padding-block: .6rem; font-size: 1rem; }
  .nav-dropdown-all { border-top: 0; margin-top: 0; padding-top: .6rem !important; }

  /* Open menu: solid header, dark-on-light, even over the hero photo */
  .site-header.nav-open { background: var(--paper); border-bottom-color: var(--line); }
  .site-header.nav-open.on-hero .nav a,
  .site-header.nav-open.on-hero .menu-toggle { color: var(--ink); }
  .site-header.nav-open.on-hero .brand-sub { color: var(--ink-2); }
  .site-header.nav-open.on-hero .brand-reg { color: var(--brand); }
  .site-header.nav-open.on-hero .logo-on-light { opacity: 1; }
  .site-header.nav-open.on-hero .logo-on-dark { opacity: 0; visibility: hidden; }
  .site-header.nav-open.on-hero .brand-text { border-left-color: var(--line); }
}
