/* core-web base styles.
   Neutral by design: every client's theme.css overrides the tokens below and adds its own look.
   Breakpoints: tablet ≤ 980px, phone ≤ 640px. */

:root {
  --color-bg: #ffffff;
  --color-surface: #f4f4f2;
  --color-text: #1a1a1a;
  --color-body: #444444;
  --color-muted: #6b6b6b;
  --color-rule: #d9d9d4;
  --color-accent: #1a1a1a;
  --color-accent-hover: #000000;
  --color-on-accent: #ffffff;
  --color-dark: #1a1a1a;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #bdbdbd;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-body);
  --wrap: 1200px;
  --gutter: 40px;
  --section-y: 120px;
  --radius: 0px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--color-bg); color: var(--color-text); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout primitives ─────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 20px); }
.grid { display: grid; gap: var(--grid-gap, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 300px)), 1fr)); }
.section { padding-block: var(--section-y); }
.is-dark { background: var(--color-dark); color: var(--color-on-dark); }
.is-dark .s-body, .is-dark .s-prose { color: var(--color-on-dark-muted); }
.is-surface { background: var(--color-surface); }

/* ── Shared bits ───────────────────────────────────────────────── */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.s-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.s-head > div { display: flex; flex-direction: column; gap: 16px; }
.s-heading { font-size: clamp(32px, 5vw, 56px); font-weight: 400; }
.s-body { color: var(--color-body); max-width: 62ch; }
.s-prose { display: flex; flex-direction: column; gap: 20px; color: var(--color-body); }
.s-prose p { max-width: 65ch; }
.btn { display: inline-block; text-decoration: none; padding: 16px 28px; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--color-accent); color: var(--color-on-accent); }
.btn-solid:hover { background: var(--color-accent-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--color-text); color: var(--color-bg); }
.is-dark .btn-ghost:hover { background: var(--color-on-dark); color: var(--color-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.link-arrow { display: inline-flex; gap: 10px; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: 1px solid var(--color-rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.site-logo img { height: calc(var(--header-h) - 20px); width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 32px; padding-block: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.site-footer a { color: inherit; }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: var(--color-on-dark); }
.footer-brand img { height: 48px; width: auto; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-locations { display: flex; flex-direction: column; gap: 16px; }
.footer-locations small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ── Sections ──────────────────────────────────────────────────── */
.s-hero .wrap { padding-block: calc(var(--section-y) * 1.1) calc(var(--section-y) * .7); display: flex; flex-direction: column; gap: 32px; }
.s-hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 300; max-width: 22ch; }
.s-hero .s-body { font-size: 19px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--color-rule); margin-top: 48px; }
.is-dark .stats { border-color: rgba(255,255,255,.15); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 8px 0; }
.stat b { font-family: var(--font-display); font-size: 48px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.is-dark .stat span { color: var(--color-on-dark-muted); }

.split { display: grid; gap: 48px 96px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 28px; }
.split-lead { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; font-weight: 300; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--color-text); }
.columns > div { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 8px 0; }
.columns .col-text { font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.columns .col-text.is-small { font-family: var(--font-body); font-size: 16px; color: var(--color-body); }

.tabs { display: grid; gap: 0 80px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); border-top: 1px solid var(--color-text); }
.tab-list { display: flex; flex-direction: column; }
.tab { font: inherit; text-align: left; display: flex; gap: 14px; align-items: baseline; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--color-rule); padding: 22px 0; cursor: pointer; font-family: var(--font-display); font-size: 22px; color: var(--color-muted); }
.tab[aria-selected="true"] { color: var(--color-accent); }
.tab-panel { padding-block: 40px; display: flex; flex-direction: column; gap: 20px; }
.tab-panel h3 { font-size: 34px; font-weight: 400; }
/* Without JavaScript every panel shows as a plain list; site.js turns it into tabs. */
.tabs:not(.is-enhanced) .tab-list { display: none; }
.tabs:not(.is-enhanced) { grid-template-columns: 1fr; }
.tabs.is-enhanced .tab-panel[hidden] { display: none; }

.team { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.person { display: flex; flex-direction: column; gap: 20px; text-decoration: none; }
.person-photo { aspect-ratio: 4 / 5; background: var(--color-surface); object-fit: cover; width: 100%; }
.person-info { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--color-text); padding-top: 16px; }
.person-info b { font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.person-role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.person-bio { font-size: 15px; color: var(--color-body); }

.item-list { border-top: 1px solid var(--color-text); }
.item-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 12px 48px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--color-rule); text-decoration: none; }
.item-row b { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.2; }
.item-row span { color: var(--color-body); font-size: 15px; }
.item-row .item-more { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; color: var(--color-text); }

.service-group + .service-group { margin-top: 64px; }
.service-group-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 24px; }
.service { border-left: 2px solid var(--color-rule); padding: 32px 32px 32px 36px; background: var(--color-surface); margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.service h3 { font-size: 26px; font-weight: 400; }
.service-meta { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-rule); }
.service-price { font-family: var(--font-display); font-size: 36px; font-weight: 300; }
.service-duration { font-size: 13px; color: var(--color-muted); }
.service-details { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.service-details ul { margin: 0; padding-left: 18px; color: var(--color-body); font-size: 15px; }
.service-details-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }

.faq { border-top: 1px solid var(--color-rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 32px 22px 0; position: relative; font-family: var(--font-display); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 18px; font-size: 22px; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-answer { padding: 0 0 24px; color: var(--color-body); }

.s-cta .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.s-cta .cta-row { justify-content: center; }

.contact { display: grid; gap: 72px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-phone { font-family: var(--font-display); font-size: 30px; text-decoration: none; }
.contact-locations { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); font-size: 14px; }
.contact-locations small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }

.richtext { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--color-body); }
.richtext h2 { font-size: 26px; font-weight: 400; color: var(--color-text); margin-top: 24px; }
.richtext h3 { font-size: 20px; font-weight: 500; color: var(--color-text); }
.richtext ul { margin: 0; padding-left: 20px; }

.error-page .wrap { padding-block: 160px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.error-page h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 300; }

/* ── Cookie banner + floating CTA ──────────────────────────────── */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--color-dark); color: var(--color-on-dark-muted); padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--color-on-dark); }
.cookie-banner .btn { padding: 10px 18px; font-size: 11px; }
.floating-cta { position: fixed; right: 24px; bottom: 24px; z-index: 40; box-shadow: 0 4px 24px rgba(0,0,0,.2); }

/* ── Tablet ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --section-y: 96px; }
  .nav-toggle { display: block; }
  .site-nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-rule); padding: 8px var(--gutter) 16px; }
  .site-nav ul.is-open { display: flex; }
  .site-nav ul li { width: 100%; }
  .site-nav ul a { display: block; padding: 14px 0; }
  .item-row { grid-template-columns: 1fr; }
  .item-row .item-more { justify-self: start; }
}

/* ── Phone ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-y: 72px; --header-h: 60px; }
  body { font-size: 16px; }
  .s-head { margin-bottom: 32px; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .stat b { font-size: 34px; }
  .service { padding: 24px 20px; }
  .floating-cta { right: 16px; bottom: 16px; }
}

/* ── Utilities ─────────────────────────────────────────────────── */
.is-start { align-self: flex-start; }
address { font-style: normal; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }

/* ── Language switcher ─────────────────────────────────────────── */
.lang-switcher ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lang-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; text-decoration: none; opacity: .7; } /* 24 px tap target (WCAG 2.2) */
.lang-switcher a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ── Forms ─────────────────────────────────────────────────────── */
.site-form { display: flex; flex-direction: column; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.is-dark .form-field label { color: var(--color-on-dark-muted); }
.form-req { text-transform: none; letter-spacing: 0; font-size: 11px; } /* no fading: small text needs full contrast (WCAG AA) */
.site-form input, .site-form textarea, .site-form select { font: inherit; font-size: 17px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--color-rule); border-radius: 0; padding: 10px 0; width: 100%; }
.site-form input:focus, .site-form textarea:focus, .site-form select:focus { outline: none; border-bottom-color: var(--color-accent); }
.site-form select option { color: initial; background: initial; } /* readable list on dark themes */
.site-form [aria-invalid="true"] { border-bottom-color: #b3261e; }
.site-form button[disabled] { opacity: .6; cursor: progress; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { font-size: 12px; line-height: 1.6; color: var(--color-muted); }
.is-dark .form-notice { color: var(--color-on-dark-muted); }
.form-status { font-size: 15px; padding: 14px 16px; border-left: 3px solid currentColor; }
.form-status.is-success { color: #1e6b3a; background: rgba(30, 107, 58, .08); }
.form-status.is-error { color: #8a1c14; background: rgba(179, 38, 30, .08); }
.is-dark .form-status.is-success { color: #9fd8b0; }
.is-dark .form-status.is-error { color: #ffb4a8; }
.form-status a { color: inherit; font-weight: 600; }
.form-result .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.form-ref { font-size: 13px; color: var(--color-muted); }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal-draft { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #e9cf86; font-size: 14px; padding: 14px 0; }
.legal-doc .richtext { max-width: 720px; }
.footer-notice { grid-column: 1 / -1; font-size: 12px; margin: 0; }
.footer-notice.is-draft { outline: 1px dashed currentColor; outline-offset: 6px; }

/* ── Blog ──────────────────────────────────────────────────────── */
.s-blog-list .s-heading { margin-bottom: 48px; }
.post-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card a { display: flex; flex-direction: column; gap: 16px; text-decoration: none; height: 100%; }
.post-card img, .post-card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--color-surface); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; }
.post-card-title { font-size: 22px; font-weight: 400; line-height: 1.25; }
.post-card time { font-size: 13px; color: var(--color-muted); }
.post-card p { font-size: 15px; color: var(--color-body); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: 14px; }
.post-header .wrap { padding-block: calc(var(--section-y) * .8) 40px; display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.post-header h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 300; }
.post-meta { font-size: 13px; color: var(--color-muted); }
.post-image { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto 48px; }
.post-body { margin: 0 auto; padding-bottom: 64px; font-size: 18px; line-height: 1.8; }
.post-body a { color: var(--color-accent); }
.post-body blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--color-rule); font-style: italic; }
.post-back { padding-bottom: var(--section-y); }

/* ── Decorations (static; the motion layer animates them) ──────── */
.kicker { display: flex; align-items: center; gap: 18px; }
.kicker-line { display: block; width: 56px; height: 1px; background: var(--color-line-accent, currentColor); flex: none; }
.hero-row { display: flex; flex-direction: column; gap: 32px; }
.has-glow { position: relative; overflow: hidden; }
.has-glow > .wrap { position: relative; }
.glow { position: absolute; width: var(--glow-size, 720px); height: var(--glow-size, 720px); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow-color, rgba(255, 255, 255, .12)) 0%, transparent 65%); opacity: var(--glow-opacity, .45); }
.glow-top-right { top: -260px; right: -220px; }
.glow-top-left { top: -260px; left: -220px; }
.glow-bottom-left { bottom: -320px; left: -200px; }
.glow-bottom-right { bottom: -320px; right: -200px; }

/* ── Compact footer and photo placeholders ─────────────────────── */
.site-footer.is-compact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; font-size: 12px; letter-spacing: .08em; }
.site-footer.is-compact .footer-notice { flex-basis: 100%; }
.person-photo.is-placeholder { display: flex; align-items: flex-end; padding: 20px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.contact-reach { display: flex; flex-direction: column; gap: 22px; }
.site-nav { margin-left: auto; } /* stays right-aligned when a language switcher follows it */
.lang-switcher { margin-left: 28px; }
.nav-cta-mobile, .lang-short { display: none; }
@media (max-width: 980px) {
  .site-nav { display: flex; align-items: center; gap: 12px; }
  .nav-cta-mobile { display: inline-block; padding: 10px 14px; font-size: 11px; }
}
@media (max-width: 640px) {
  .lang-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-short { display: inline; }
  .lang-switcher { margin-left: 12px; }
  .lang-switcher ul { gap: 10px; }
}
/* Narrow phones (e.g. 390 px): logo, Book button, menu and EN/ES must fit on one row. */
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .site-logo { font-size: 15px; letter-spacing: .04em; min-width: 0; }
  .site-nav { gap: 8px; }
  .nav-cta-mobile { padding: 8px 10px; letter-spacing: .06em; }
  .lang-switcher { margin-left: 4px; }
  .lang-switcher ul { gap: 8px; letter-spacing: .06em; }
}
@media (max-width: 359px) { .nav-cta-mobile { display: none; } } /* still in the menu */
.site-nav .nav-cta-mobile { white-space: nowrap; }
.site-nav a { white-space: nowrap; }
