/* ============================================================
   Perrier & Asociados — static PHP/HTML/CSS build
   Hand-written CSS (no build step) reproducing the design of the
   TanStack/Tailwind version. Organized by section; see the matching
   PHP templates in /php for markup.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: oklch(0.234 0.049 254.5);
  --azure: oklch(0.352 0.093 259);
  --mist: oklch(0.979 0.004 247.9);
  --steel: oklch(0.53 0.031 250);
  --frost: oklch(0.906 0.016 250);
  --ink: oklch(0.185 0.031 275);
  --gold: oklch(0.79 0.106 85);
  --gold-soft: oklch(0.88 0.062 88);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Keeps anchor jumps (#servicios, #despacho…) from landing under the sticky header. */
#inicio, #servicios, #despacho, #quienes-somos, #contacto { scroll-margin-top: 88px; }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

.flag { font-size: 1.3em; }

/* ---------- Small reusable pieces ---------- */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: currentColor; transition: width .3s ease;
}
.link-underline:hover::after { width: 100%; }
.link-underline.is-active { color: var(--mist); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 500;
  border: 0; cursor: pointer; transition: background-color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--nav { padding: 8px 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--ghost-dark { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 35%, transparent); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 60%, transparent); }

.eyebrow {
  font-size: 14px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .2em; color: var(--gold);
}
.eyebrow--steel { color: var(--steel); }

.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }
.icon-18 { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Animations ---------- */
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.rv { opacity: 0; transform: translateY(18px); animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes grid-breathe { 0%, 100% { opacity: .18; } 50% { opacity: .09; } }
.animate-grid-breathe { animation: grid-breathe 8s ease-in-out infinite; }

@keyframes meridian-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.animate-meridian { transform-box: fill-box; transform-origin: center; animation: meridian-spin 8s linear infinite; }

@keyframes dash { 0% { stroke-dashoffset: 120; opacity: .4; } 20% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.animate-dash { stroke-dasharray: 8 6; stroke-dashoffset: 120; animation: dash 2.4s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes point-sequence {
  0%, 100% { opacity: .35; transform: scale(1); }
  8% { opacity: 1; transform: scale(1.7); }
  16% { opacity: .35; transform: scale(1); }
}
.animate-point-sequence { transform-box: fill-box; transform-origin: center; animation: point-sequence 3s ease-in-out infinite; }

@keyframes bar-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
.animate-bar-grow { transform-box: fill-box; transform-origin: bottom; animation: bar-grow 3.2s ease-in-out infinite; }

@keyframes ring-pulse {
  0% { transform: scale(.92); opacity: .45; }
  50% { transform: scale(1.05); opacity: .9; }
  100% { transform: scale(.92); opacity: .45; }
}
.ring-pulse { animation: ring-pulse 5s ease-in-out infinite; }

@keyframes drift {
  0% { transform: translate3d(-6%,0,0) rotate(-6deg); }
  50% { transform: translate3d(6%,-2%,0) rotate(-6deg); }
  100% { transform: translate3d(-6%,0,0) rotate(-6deg); }
}
@keyframes drift2 {
  0% { transform: translate3d(5%,3%,0) rotate(6deg); }
  50% { transform: translate3d(-5%,1%,0) rotate(6deg); }
  100% { transform: translate3d(5%,3%,0) rotate(6deg); }
}
.glass-panel { animation: drift 11s ease-in-out infinite; }
.glass-panel-2 { animation: drift2 14s ease-in-out infinite; }
.glass {
  background: linear-gradient(135deg, color-mix(in oklab, var(--mist) 28%, transparent), color-mix(in oklab, var(--mist) 6%, transparent));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@keyframes ken-burns {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.06) translate3d(.5%,-.3%,0); }
  100% { transform: scale(1) translate3d(0,0,0); }
}
.image-ken-burns { animation: ken-burns 24s ease-in-out infinite; }

/* ---------- Scroll-reveal ----------
   Applied by assets/js/motion.js to a fixed list of selectors, not written
   into the PHP templates — that way every page picks it up from one place.
   Distinct from .rv above, which only drives the home/consultas hero's
   entrance sequence on load, not scroll position. */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-grid-breathe, .animate-meridian, .animate-dash, .animate-point-sequence,
  .animate-bar-grow, .ring-pulse, .glass-panel, .glass-panel-2, .image-ken-burns {
    animation: none;
  }
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--navy); position: sticky; top: 0; z-index: 40;
  transition: box-shadow .35s ease, padding-block .35s ease;
}
.site-header--scrolled { box-shadow: 0 12px 30px -16px rgba(0,0,0,.55); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; transition: padding .35s ease; }
.site-header--scrolled .site-header__row { padding: 10px 0; }
.site-header__brand { display: flex; align-items: center; gap: 12px; }
.site-header__mark { height: 44px; width: auto; transition: height .35s ease; }
.site-header__logotype { height: 28px; width: auto; transition: height .35s ease; }
.site-header--scrolled .site-header__mark { height: 36px; }
.site-header--scrolled .site-header__logotype { height: 22px; }
@media (min-width: 1024px) { .site-header__mark { height: 56px; } .site-header__logotype { height: 36px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header__row, .site-header__mark, .site-header__logotype { transition: none; } }
/* Gap scales with the viewport (≈20px at 1280 → 32px on wide screens) so the inline nav never runs into the logo. */
.site-header__nav { display: none; align-items: center; gap: clamp(16px, 1.6vw, 32px); }
.site-header__nav a { white-space: nowrap; font-size: 14px; font-weight: 500; color: color-mix(in oklab, var(--frost) 80%, transparent); }
.site-header__nav a.btn { color: var(--navy); }
@media (min-width: 1280px) { .site-header__nav { display: flex; } }
/* Small phones: the wordmark stays visible, just smaller, so brand + flags + menu button fit in one row. */
@media (max-width: 479px) {
  .site-header__brand { gap: 8px; min-width: 0; }
  .site-header__mark { height: 36px; }
  .site-header__logotype { height: 20px; }
  .site-header--scrolled .site-header__mark { height: 32px; }
  .site-header--scrolled .site-header__logotype { height: 18px; }
  .site-header__row { gap: 8px; }
}

/* Hamburger + dropdown menu (below 768px, where the inline nav is hidden). */
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__toggle {
  display: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--mist); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 25%, transparent);
}
.site-header__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.site-header.is-menu-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-menu-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header__nav-cta { display: none; }
@media (max-width: 1279px) {
  .site-header__toggle { display: flex; }
  .site-header__cta { display: none; }
  .site-header__nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 24px 24px; background: var(--navy);
    border-top: 1px solid color-mix(in oklab, var(--mist) 10%, transparent);
    box-shadow: 0 18px 30px -16px rgba(0,0,0,.6);
  }
  .site-header.is-menu-open .site-header__nav { display: flex; }
  .site-header__nav a:not(.btn) {
    padding: 14px 0; font-size: 16px; color: var(--frost);
    border-bottom: 1px solid color-mix(in oklab, var(--mist) 8%, transparent);
  }
  .site-header__nav a.is-active { color: var(--gold); }
  .site-header__nav .site-header__nav-cta { display: inline-flex; justify-content: center; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .site-header__toggle span { transition: none; } }

/* Visible on both mobile and desktop — deliberately outside .site-header__nav. */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch__item {
  display: inline-flex; font-size: 20px; line-height: 1; filter: grayscale(85%); opacity: .55;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.lang-switch__item.is-active { filter: none; opacity: 1; pointer-events: none; }
.lang-switch__item:not(.is-active):hover { filter: none; opacity: .9; transform: scale(1.08); }

/* ---------- Site footer ---------- */
.site-footer { background: var(--ink); }
.site-footer__row { display: flex; flex-direction: column; gap: 32px; padding: 56px 0 0; }
@media (min-width: 768px) { .site-footer__row { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__mark { height: 48px; width: auto; }
.site-footer__logotype { height: 32px; width: auto; }
.site-footer__address { margin-top: 16px; font-size: 14px; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.site-footer__contact { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.site-footer__contact a:first-child:hover { color: var(--mist); }
.whatsapp-link { color: #25D366; transition: color .2s ease; }
.whatsapp-link:hover { color: var(--mist); }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.site-footer__nav a { font-size: 14px; font-weight: 500; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.site-footer__bottom {
  margin-top: 32px; border-top: 1px solid color-mix(in oklab, var(--mist) 10%, transparent); padding: 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-footer__bottom p { font-size: 12px; color: color-mix(in oklab, var(--frost) 50%, transparent); }
.site-footer__social { display: flex; align-items: center; gap: 14px; }
.site-footer__social-link { display: inline-flex; color: color-mix(in oklab, var(--frost) 60%, transparent); transition: color .2s ease, transform .2s ease; }
.site-footer__social-link:hover { color: var(--gold); transform: translateY(-2px); }

/* ---------- Generic section helpers ---------- */
.bg-navy { background: var(--navy); }
.bg-mist { background: var(--mist); }
.bg-azure { background: var(--azure); }
.bg-ink { background: var(--ink); }
.text-mist { color: var(--mist); }
.text-gold { color: var(--gold); }

.section { padding: 64px 0; }
.section--lg { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } .section--lg { padding: 112px 0; } }

.section-head { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head h2 { max-width: 40ch; }
.section-head p { max-width: 44ch; color: var(--steel); }

h2.title, h1.title {
  margin-top: 16px;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg svg.grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.hero__globe { position: absolute; right: -8%; top: 50%; height: 130%; width: 62vw; max-width: 760px; transform: translateY(-50%); opacity: .16; }
.hero__trend { position: absolute; right: -6%; top: 12%; width: 58vw; max-width: 820px; opacity: .9; }
@media (min-width: 768px) { .hero__trend { right: 2%; } }
.hero__bars { position: absolute; bottom: 10%; right: 8%; width: 28vw; max-width: 360px; display: none; }
@media (min-width: 768px) { .hero__bars { display: block; } }
.hero__ring { position: absolute; display: none; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--gold) 20%, transparent); }
@media (min-width: 768px) { .hero__ring { display: block; } }
.hero__ring--1 { left: 4%; top: 18%; width: 112px; height: 112px; border-color: color-mix(in oklab, var(--gold) 20%, transparent); }
.hero__ring--2 { left: 8%; top: 26%; width: 64px; height: 64px; border-color: color-mix(in oklab, var(--gold) 30%, transparent); }
.hero__ring--3 { bottom: 28%; left: 2%; width: 40px; height: 40px; border-color: color-mix(in oklab, var(--frost) 20%, transparent); }
.hero__card { position: absolute; display: none; flex-direction: column; justify-content: space-between; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--mist) 10%, transparent); box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); }
@media (min-width: 768px) { .hero__card { display: flex; } }
.hero__card--1 { right: 18%; top: 16%; height: 112px; width: 176px; padding: 16px; }
.hero__card--2 { bottom: 8%; left: 4%; height: 80px; width: 128px; padding: 12px; }
.hero__card-tag { display: flex; align-items: center; gap: 8px; }
.hero__card-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
.hero__card-dot--azure { background: var(--azure); }
.hero__card-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.hero__card-value { font-family: var(--font-display); font-size: 24px; font-weight: 300; color: var(--mist); }
.hero__card--2 .hero__card-value { font-size: 20px; }
.hero__card-sub { font-size: 10px; color: color-mix(in oklab, var(--frost) 50%, transparent); }
.hero__scrim-1 { position: absolute; inset: 0; background: linear-gradient(to right, var(--navy), color-mix(in oklab, var(--navy) 80%, transparent), color-mix(in oklab, var(--navy) 30%, transparent)); }
.hero__scrim-2 { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--navy) 10%, transparent), color-mix(in oklab, var(--azure) 40%, transparent)); }
.hero__content { position: relative; padding-block: 96px; }
@media (min-width: 1024px) { .hero__content { padding-block: 128px; } }
.hero__content .inner { max-width: 52ch; }
.hero h1 {
  margin-top: 24px; color: var(--mist); font-weight: 500; line-height: 1.02;
  font-size: clamp(2.25rem, 5vw, 3.75rem); text-wrap: balance;
}
.hero h1 .accent { display: block; color: var(--gold); }
.hero__lead { margin-top: 24px; max-width: 46ch; color: color-mix(in oklab, var(--frost) 80%, transparent); font-size: 18px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__cta .link-underline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: color-mix(in oklab, var(--frost) 80%, transparent); }

/* ---------- Compact hero (interior pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); }
.page-hero .wrap { position: relative; padding-block: 64px; }
@media (min-width: 1024px) { .page-hero .wrap { padding-block: 96px; } }
.page-hero h1 { margin-top: 16px; max-width: 48rem; color: var(--mist); font-weight: 500; line-height: 1.15; font-size: clamp(2rem, 4.5vw, 3.25rem); text-wrap: balance; }
.page-hero__lead { margin-top: 20px; max-width: 42rem; font-size: 16px; line-height: 1.6; color: color-mix(in oklab, var(--frost) 80%, transparent); }
.page-hero__decor { position: absolute; bottom: -6%; right: 4%; width: 28vw; max-width: 360px; opacity: .7; display: none; pointer-events: none; }
@media (min-width: 768px) { .page-hero__decor { display: block; } }

/* ---------- Services grid (home) ---------- */
.services-grid {
  margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 1px;
  overflow: hidden; border-radius: 14px; background: var(--frost); box-shadow: 0 0 0 1px var(--frost);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { position: relative; background: var(--mist); padding: 28px; transition: background-color .2s ease; }
.service-card:hover { background: #fff; }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-card__icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; background: color-mix(in oklab, var(--navy) 5%, transparent);
  color: var(--azure); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--azure) 15%, transparent);
  transition: background-color .2s ease, color .2s ease;
}
.service-card:hover .service-card__icon { background: var(--navy); color: var(--gold); }
.service-card__n { font-family: var(--font-display); font-size: 14px; color: var(--azure); }
.service-card h3 { margin-top: 20px; font-size: 18px; font-weight: 500; color: var(--ink); }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { margin-top: 8px; font-size: 14px; color: var(--steel); }
.service-card__link {
  position: relative; z-index: 10; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--azure);
}
.service-card__link svg { width: 16px; height: 16px; transition: transform .3s ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ---------- El despacho (home) ---------- */
.despacho { position: relative; }
.despacho__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
@media (min-width: 1024px) { .despacho__frame { aspect-ratio: 21 / 9; } }
.despacho__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.despacho__scrim { position: absolute; inset: 0; background: color-mix(in oklab, var(--navy) 70%, transparent); }
.despacho__content { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; padding: 0 24px 40px; }
@media (min-width: 1024px) { .despacho__content { padding: 0 40px 64px; } }
.despacho__content .inner { max-width: 46ch; }
.despacho h2 { color: var(--mist); font-size: clamp(1.75rem, 3.5vw, 2.75rem); }

/* ---------- Cifras (home stats) ---------- */
.cifras { background: var(--navy); }
.cifras__grid { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
@media (min-width: 1024px) { .cifras__grid { grid-template-columns: repeat(4, 1fr); } }
.cifras__item { padding-right: 24px; }
.cifras__item.has-border { border-left: 1px solid color-mix(in oklab, var(--mist) 15%, transparent); }
@media (min-width: 1024px) { .cifras__item.has-border { padding-left: 32px; } }
.cifras__value { font-family: var(--font-display); font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 300; line-height: 1; color: var(--gold); }
.cifras__label { margin-top: 8px; max-width: 18ch; font-size: 14px; color: color-mix(in oklab, var(--frost) 70%, transparent); }

/* ---------- Quiénes somos ---------- */
.about { background: var(--mist); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.about__photo { aspect-ratio: 4 / 5; width: 100%; border-radius: 12px; object-fit: cover; object-position: top; }
.about h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.about__p { margin-top: 20px; max-width: 54ch; color: var(--steel); }
.about__p + .about__p { margin-top: 16px; max-width: 58ch; }
.about__steps { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about__step { display: flex; gap: 16px; }
.about__step-n { flex-shrink: 0; font-family: var(--font-display); font-size: 14px; color: var(--azure); }
.about__step p { font-size: 14px; color: var(--steel); }
.about__step strong { color: var(--ink); font-weight: 500; }
.about__signature { margin-top: 32px; border-top: 1px solid var(--frost); padding-top: 20px; text-align: right; }
.about__signature-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
.about__signature-role { margin-top: 4px; font-size: 14px; color: var(--steel); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--azure); text-align: center; }
.cta-band h2 { margin: 16px auto 0; max-width: 42rem; color: var(--mist); font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cta-band__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.cta-band__actions .link-underline { font-size: 14px; font-weight: 500; color: color-mix(in oklab, var(--frost) 80%, transparent); }

/* ---------- Generic content grid (service/blog detail) ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 8fr 4fr; } }
.detail-block { margin-bottom: 40px; }
.detail-block h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--ink); text-wrap: balance; }
.detail-block p { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--steel); }
.detail-block ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.detail-block li { display: flex; gap: 12px; font-size: 16px; color: var(--steel); }
.detail-block li::before { content: ""; margin-top: 8px; width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px; background: var(--azure); }
.faq-title { margin-top: 56px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--ink); }
.faq-list { margin-top: 24px; border-top: 1px solid var(--frost); border-bottom: 1px solid var(--frost); }
.faq-list > div { padding: 20px 0; border-top: 1px solid var(--frost); }
.faq-list > div:first-child { border-top: 0; }
.faq-list dt { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
.faq-list dd { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--steel); }

.breadcrumb { font-size: 12px; color: color-mix(in oklab, var(--frost) 60%, transparent); }
.breadcrumb .current { color: color-mix(in oklab, var(--frost) 80%, transparent); }

/* Sidebar card (service detail) */
.side-card { border-radius: 16px; background: var(--navy); padding: 28px; }
.side-card p:first-child { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--mist); }
.side-card__addr { margin-top: 12px; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.side-card__contact { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.side-card__contact a:first-child:hover { color: var(--mist); }
.side-card .btn { margin-top: 24px; padding: 10px 16px; }
.side-list { margin-top: 32px; }
.side-list__title { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--steel); }
.side-list ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.side-list a { font-size: 14px; }
.side-list a.accent { font-weight: 500; color: var(--azure); }
.side-list a.muted { color: var(--steel); }

/* ---------- Servicios index / blog index cards ---------- */
.cards-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff;
  padding: 28px; box-shadow: inset 0 0 0 1px var(--frost); transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--azure) 40%, transparent); }
.svc-card__icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in oklab, var(--navy) 5%, transparent); color: var(--azure);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--azure) 15%, transparent);
  transition: background-color .2s ease, color .2s ease;
}
.svc-card:hover .svc-card__icon { background: var(--navy); color: var(--gold); }
.svc-card__area { margin-top: 16px; display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--azure); }
.svc-card h2 { margin-top: 8px; font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.svc-card h2 a::after { content: ""; position: absolute; inset: 0; }
.svc-card p { margin-top: 12px; flex: 1; font-size: 14px; line-height: 1.6; color: var(--steel); }
.svc-card__link { position: relative; z-index: 10; margin-top: 24px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--azure); }
.svc-card__link svg { width: 16px; height: 16px; transition: transform .3s ease; }
.svc-card:hover .svc-card__link svg { transform: translateX(4px); }

.post-card {
  display: flex; flex-direction: column; border-radius: 16px; background: color-mix(in oklab, var(--navy) 40%, transparent);
  padding: 28px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 10%, transparent);
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); background: color-mix(in oklab, var(--navy) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 40%, transparent); }
.post-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card__area { border-radius: 999px; background: color-mix(in oklab, var(--gold) 10%, transparent); padding: 4px 12px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.post-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: color-mix(in oklab, var(--frost) 60%, transparent); }
.post-card h2 { margin-top: 20px; font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--mist); text-wrap: balance; }
.post-card p { margin-top: 12px; flex: 1; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--frost) 70%, transparent); }
.post-card__link { margin-top: 24px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--gold); }
.post-card__link svg { width: 16px; height: 16px; transition: transform .3s ease; }
.post-card:hover .post-card__link svg { transform: translateX(4px); }

.list-note { margin-top: 48px; max-width: 42rem; font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--frost) 60%, transparent); }
.list-note a { font-weight: 500; color: var(--gold); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 4fr 8fr; gap: 56px; } }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; font-size: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list__icon { margin-top: 2px; flex-shrink: 0; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in oklab, var(--navy) 40%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 15%, transparent); }
.contact-list__icon svg { width: 18px; height: 18px; color: var(--gold); }
.contact-list__label { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: color-mix(in oklab, var(--frost) 60%, transparent); }
.contact-list__value { margin-top: 4px; color: var(--mist); }
.contact-list a.contact-list__value { display: inline-block; }

.form-title, .contact-grid h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--mist); }
.form-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: color-mix(in oklab, var(--frost) 60%, transparent); }
.form-field input, .form-field textarea {
  margin-top: 8px; width: 100%; border-radius: 8px; background: color-mix(in oklab, var(--navy) 40%, transparent);
  padding: 12px 16px; font-size: 14px; color: var(--mist); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 20%, transparent);
  border: 0; outline: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: color-mix(in oklab, var(--frost) 40%, transparent); }
.form-field input:focus, .form-field textarea:focus { box-shadow: 0 0 0 2px color-mix(in oklab, var(--gold) 60%, transparent); }

.form-grid button[type="submit"] { align-self: flex-start; }

.form-banner { grid-column: 1 / -1; border-radius: 8px; padding: 14px 16px; font-size: 14px; }
.form-banner--ok { background: color-mix(in oklab, oklch(0.7 0.13 155) 22%, transparent); color: var(--mist); box-shadow: inset 0 0 0 1px color-mix(in oklab, oklch(0.7 0.13 155) 45%, transparent); }
.form-banner--error { background: color-mix(in oklab, oklch(0.62 0.19 25) 22%, transparent); color: var(--mist); box-shadow: inset 0 0 0 1px color-mix(in oklab, oklch(0.62 0.19 25) 45%, transparent); }

.cf-turnstile { grid-column: 1 / -1; }

.map-wrap { margin-top: 40px; overflow: hidden; border-radius: 16px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 15%, transparent); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (min-width: 1024px) { .map-wrap iframe { height: 480px; } }
.map-link { margin-top: 24px; display: inline-block; font-size: 14px; font-weight: 500; color: var(--gold); }

/* ---------- Consultas ---------- */
.consultas-hero { position: relative; overflow: hidden; background: var(--navy); }
.consultas-hero__grid { position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(to right, var(--frost) 1px, transparent 1px), linear-gradient(to bottom, var(--frost) 1px, transparent 1px); background-size: 60px 60px; }
.consultas-hero__globe { position: absolute; right: -8%; top: 50%; height: 130%; width: 62vw; max-width: 760px; transform: translateY(-50%); opacity: .16; pointer-events: none; }
.consultas-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to right, var(--navy), color-mix(in oklab, var(--navy) 70%, transparent), transparent); pointer-events: none; }
.consultas-hero h1 { max-width: 24ch; }
.consultas-hero__chips { margin-top: 32px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(255,255,255,.1); padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--mist); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.chip svg { color: var(--gold); }

.consult-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .consult-grid { grid-template-columns: 4fr 8fr; } }
.consult-box { border-radius: 14px; background: #fff; padding: 24px; box-shadow: inset 0 0 0 1px var(--frost); }
.consult-box h2 { font-size: 20px; font-weight: 500; color: var(--ink); }
.consult-dl { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.consult-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consult-dl dt { display: flex; align-items: center; gap: 8px; color: var(--steel); }
.consult-dl dt svg { color: var(--azure); }
.consult-dl dd { font-weight: 500; color: var(--ink); margin: 0; }
.consult-conditions { margin-top: 16px; border-top: 1px solid var(--frost); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--steel); }
.consult-conditions li { display: flex; gap: 8px; }
.consult-conditions li::before { content: ""; margin-top: 6px; width: 4px; height: 4px; flex-shrink: 0; border-radius: 999px; background: var(--azure); }

.consult-steps { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }

.consult-info { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; border-radius: 14px; background: #fff; padding: 24px; box-shadow: inset 0 0 0 1px var(--frost); }
.consult-info a, .consult-info div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--steel); }
.consult-info a:hover { color: var(--ink); }
.consult-info svg { color: var(--azure); }

.consult-widget { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--frost); }
.consult-widget__head { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--frost); padding: 16px 24px; }
.consult-widget__head svg { color: var(--azure); }
.consult-widget__head p { font-size: 14px; font-weight: 500; color: var(--ink); }
.consult-widget__note { border-bottom: 1px solid var(--frost); background: color-mix(in oklab, var(--mist) 60%, transparent); padding: 12px 24px; font-size: 14px; color: var(--steel); }
.calendly-inline-widget { width: 100%; min-width: 320px; height: 700px; }
.consult-fallback { margin-top: 16px; text-align: center; font-size: 14px; color: var(--steel); }
.consult-fallback a { font-weight: 500; color: var(--azure); }

/* ---------- Legal pages ---------- */
.legal-header { background: var(--mist); }
.legal-header .site-header__row { padding: 20px 0; }
.legal-main { background: var(--mist); }
.legal-main .wrap { max-width: 760px; padding: 80px 24px; }
@media (min-width: 1024px) { .legal-main .wrap { padding: 112px 24px; } }
.legal-main h1 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; color: var(--ink); }
.legal-body { margin-top: 40px; display: flex; flex-direction: column; gap: 32px; font-size: 16px; line-height: 1.7; color: var(--steel); }
.legal-body h2 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); }
.legal-body p { margin-top: 12px; }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.not-found h1 { font-size: 64px; font-weight: 700; }
.not-found h2 { margin-top: 16px; font-size: 20px; font-weight: 600; }
.not-found p { margin-top: 8px; font-size: 14px; color: var(--steel); }
.not-found .btn { margin-top: 24px; background: var(--navy); color: var(--mist); }

/* ---------- Blog post body (WYSIWYG output) ---------- */
.post-body { font-size: 16px; line-height: 1.75; color: var(--steel); }
.post-body h2 { margin-top: 40px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; color: var(--ink); }
.post-body h3 { margin-top: 28px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.post-body p { margin-top: 16px; }
.post-body ul, .post-body ol { margin-top: 16px; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.post-body a { color: var(--azure); text-decoration: underline; text-underline-offset: 2px; }
.post-body img {
  display: block; max-width: 100%; height: auto; margin: 24px auto;
  border-radius: 10px; cursor: zoom-in;
}
.post-body figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: color-mix(in oklab, var(--steel) 80%, transparent); }

/* Click-to-expand modal for post-body images (assets/js/lightbox.js) */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 15, 26, .88); padding: 32px; cursor: zoom-out;
}
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-overlay .lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; border: 0; cursor: pointer;
}

/* ---------- Author byline (blog post) ---------- */
.post-author { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--steel); }
.post-author a { font-weight: 500; color: var(--azure); }
.post-author a:hover { text-decoration: underline; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--navy); border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.45);
}
.cookie-banner__inner {
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.cookie-banner__text { max-width: 62ch; font-size: 13px; line-height: 1.6; color: color-mix(in oklab, var(--frost) 85%, transparent); }
.cookie-banner__title { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--mist); margin-bottom: 4px; }
.cookie-banner__text a { color: var(--gold); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-banner__actions { width: 100%; } .cookie-banner__actions .btn { flex: 1; justify-content: center; } }

/* ---------- Gated third-party embeds ---------- */
.embed-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 240px; padding: 32px; text-align: center;
  background: color-mix(in oklab, var(--navy) 6%, var(--mist)); border-radius: 10px;
}
.embed-placeholder p { max-width: 40ch; font-size: 14px; color: var(--steel); }

/* "International" external-site button (header nav + footer nav). */
.site-header__intl, .site-footer__intl { gap: 6px; white-space: nowrap; }
.site-header__nav a.site-header__intl { color: var(--mist); }
@media (min-width: 1280px) { .site-header__nav a.site-header__intl { padding: 6px 12px; font-size: 13px; gap: 5px; } .site-header__intl svg { width: 12px; height: 12px; } }
.site-footer__nav a.site-footer__intl { padding: 6px 14px; font-size: 13px; color: var(--mist); }
@media (max-width: 1279px) {
  .site-header__nav .site-header__intl { justify-content: center; margin-top: 16px; padding: 12px 16px; font-size: 15px; }
}

/* ---------- Blog pagination ---------- */
.pagination { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--mist);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 25%, transparent);
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
a.pagination__item:hover { background: color-mix(in oklab, var(--navy) 50%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gold) 60%, transparent); color: var(--gold); }
.pagination__item.is-current { background: var(--gold); color: var(--navy); box-shadow: none; }
.pagination__item--nav { padding: 0 16px; }

/* ---------- Home: latest blog article ---------- */
.latest-post { background: var(--navy); }
.latest-post .section-head { align-items: flex-start; }
@media (min-width: 768px) { .latest-post .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.latest-post__all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--gold); }
.latest-post__card {
  margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 20px; padding: 32px;
  background: color-mix(in oklab, var(--azure) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mist) 12%, transparent);
}
@media (min-width: 768px) { .latest-post__card { padding: 48px; } }
.latest-post__card .post-card__top { width: 100%; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.latest-post__card h3 { margin-top: 20px; max-width: 34ch; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.2; color: var(--mist); text-wrap: balance; }
.latest-post__card h3 a:hover { color: var(--gold); }
.latest-post__card p { margin-top: 16px; max-width: 62ch; font-size: 16px; line-height: 1.7; color: color-mix(in oklab, var(--frost) 80%, transparent); }
.latest-post__card .btn { margin-top: 28px; }

.legal-body ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.legal-body li strong { color: var(--ink); font-weight: 600; }
