/* ==========================================================================
   AMPEH — Editorial Institutional Design System
   Palette: Logo Navy (#052C65) + Pure White (#FFFFFF) + Celeste Spectrum
   Typography: Newsreader (Editorial Display) + DM Sans (Geometric UI)
   ========================================================================== */

:root {
  --navy: #052C65;
  --navy-deep: #031B3E;
  --navy-hover: #0A3D8A;
  --celeste: #0284C7;
  --celeste-vivid: #38BDF8;
  --celeste-light: #7DD3FC;
  --celeste-soft: #E0F2FE;
  --celeste-tint: #F0F9FF;
  --ice: #F4F8FD;
  --white: #FFFFFF;

  --ink: #0B1F3A;
  --ink-secondary: #425874;
  --ink-muted: #647A96;
  --border: #D8E4F2;
  --border-strong: #B8CCE4;
  --danger: #C81E1E;
  --wa-green: #16A34A;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(5, 44, 101, 0.05);
  --shadow-md: 0 12px 32px rgba(5, 44, 101, 0.08);
  --shadow-lg: 0 24px 56px rgba(5, 44, 101, 0.12);

  --container: 1220px;
  --header-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Reading Progress Bar */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}
.reading-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--celeste) 55%, var(--celeste-vivid) 100%);
  transform-origin: left;
  transition: width 0.08s linear;
}

/* ==========================================================================
   TOP UTILITY BAR & SITE HEADER
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.35rem;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.topbar__item,
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.topbar__item svg,
.topbar__link svg {
  color: var(--celeste-vivid);
  flex-shrink: 0;
}

.topbar__link:hover {
  color: var(--celeste-light);
}

.topbar__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

/* Main Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(5, 44, 101, 0.08);
  border-bottom-color: var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}

.brand__tagline {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--celeste);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 62, 0.48);
  backdrop-filter: blur(4px);
}

.mobile-drawer__panel {
  position: relative;
  width: min(86vw, 360px);
  height: 100%;
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: -12px 0 40px rgba(3, 27, 62, 0.18);
  overflow-y: auto;
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.mobile-nav-list a:hover {
  background: var(--celeste-tint);
}

.mobile-drawer__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.mobile-wa-note {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--celeste);
  padding-block: 0.4rem;
}

.icon-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.icon-close-btn:hover {
  background: var(--ice);
}

/* ==========================================================================
   BUTTONS & SHARED UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.65rem;
  font-size: 0.975rem;
}

.btn--full {
  width: 100%;
}

.btn--navy {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5, 44, 101, 0.18);
}
.btn--navy:hover {
  background: var(--navy-hover);
  box-shadow: 0 8px 22px rgba(5, 44, 101, 0.24);
}

.btn--sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(125, 211, 252, 0.28) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.btn--sheen:hover::after {
  transform: translateX(120%);
}

.btn--outline-navy {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn--outline-navy:hover {
  border-color: var(--navy);
  background: var(--ice);
}

.btn--celeste {
  background: var(--celeste-vivid);
  color: var(--navy-deep);
}
.btn--celeste:hover {
  background: var(--celeste-light);
}

.btn--celeste-soft {
  background: var(--celeste-soft);
  color: var(--navy);
  border-color: #BAE6FD;
}
.btn--celeste-soft:hover {
  background: #CFEBFD;
  border-color: var(--celeste-vivid);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 0.75rem;
}

.kicker--celeste {
  color: var(--celeste-light);
}

.pill-celeste {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--celeste-soft);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover {
  color: var(--celeste);
  gap: 0.65rem;
}

.link-arrow--celeste {
  color: var(--celeste);
}
.link-arrow--celeste:hover {
  color: var(--navy);
}

/* ==========================================================================
   1. ASYMMETRIC KINETIC EDITORIAL HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--white) 0%, var(--ice) 64%, #E3F2FE 100%);
  padding-block: clamp(2.5rem, 5vw, 4.85rem);
  border-bottom: 1px solid var(--border);
  --spot-x: 68%;
  --spot-y: 35%;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(5, 44, 101, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 44, 101, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 80% at 35% 40%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 35% 40%, #000 35%, transparent 100%);
  pointer-events: none;
}

/* Interactive Celeste Spotlight following pointer */
.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--spot-x) var(--spot-y), rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.04) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Ambient Celeste Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.hero__orb--1 {
  width: 340px;
  height: 340px;
  top: -110px;
  right: 8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), transparent 70%);
}

.hero__orb--2 {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -40px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.24), transparent 70%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.35rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--celeste);
  box-shadow: 0 0 0 4px var(--celeste-soft);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 1.25rem 0;
  text-wrap: balance;
}

.hero__highlight {
  position: relative;
  display: inline-block;
}

.hero__title em {
  font-style: italic;
  color: var(--celeste);
  font-weight: 500;
}

.hero__underline {
  position: absolute;
  left: -2%;
  bottom: -4px;
  width: 104%;
  height: 12px;
  color: var(--celeste-vivid);
  pointer-events: none;
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 48ch;
  margin: 0 0 1.75rem 0;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.15rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-strong);
}

.hero__fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 0.2rem;
}

.hero__fact dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* Right Visual Column with 3D Interactive Perspective Tilt + Specular Sheen */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__tilt-stage {
  perspective: 1100px;
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 56px rgba(5, 44, 101, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  background: var(--navy-deep);
  aspect-ratio: 4 / 4.4;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__frame:hover img {
  transform: scale(1.06);
}

.hero__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--glare-x, 50%) var(--glare-y, 30%), rgba(224, 242, 254, 0.34), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__frame:hover .hero__glare {
  opacity: 1;
}

.hero__credential {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--celeste);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero__credential-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__credential-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   2. ARCHITECTURAL NAVY LEDGER BAND
   ========================================================================== */
.ledger-band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.75rem, 4.5vw, 3.75rem);
  border-bottom: 4px solid var(--celeste-vivid);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ledger-item {
  padding: 0.75rem 1.75rem;
  border-left: 1px solid rgba(125, 211, 252, 0.2);
}

.ledger-item:first-child {
  border-left: none;
  padding-left: 0;
}

.ledger-item__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--celeste-light);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.ledger-item__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.ledger-item__desc {
  margin: 0;
  font-size: 0.855rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

/* ==========================================================================
   SECTIONS SHARED
   ========================================================================== */
.section {
  padding-block: clamp(4.5rem, 7vw, 6.75rem);
}

.section--white {
  background: var(--white);
}

.section--ice {
  background: var(--ice);
  border-block: 1px solid var(--border);
}

.section--ice-soft {
  background: linear-gradient(180deg, var(--celeste-tint) 0%, var(--white) 100%);
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem 0;
  text-wrap: balance;
}

.section-lead {
  font-size: 1.04rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin: 0;
}

.section-head-center {
  text-align: center;
  margin-bottom: clamp(2.75rem, 4.5vw, 3.75rem);
}

.section-subtitle {
  max-width: 520px;
  margin: 0.65rem auto 0 auto;
  color: var(--ink-secondary);
  font-size: 1.03rem;
  line-height: 1.6;
  text-wrap: balance;
}

/* ==========================================================================
   3. SERVICIOS: STICKY EDITORIAL RAIL + HORIZONTAL CARDS
   ========================================================================== */
.services-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.services-rail {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.services-index {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.services-index__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.services-index__link:hover {
  padding-left: 0.9rem;
  color: var(--celeste);
}

.services-index__num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--celeste);
  font-variant-numeric: tabular-nums;
}

.services-index__name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
}

.advisor-box {
  margin-top: 2rem;
  padding: 1.4rem;
  background: var(--celeste-tint);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-md);
}

.advisor-box__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 0.45rem;
}

.advisor-box__text {
  margin: 0 0 0.95rem 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* Service Stack Cards */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.12fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93C5FD;
}

.service-card__media {
  position: relative;
  min-height: 290px;
  background: var(--ice);
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.service-card__index {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem 0;
}

.service-card__desc {
  margin: 0 0 1.25rem 0;
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.service-card__list {
  list-style: none;
  margin: 0 0 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.service-card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--celeste);
}

/* Zero-Overlap In-Flow Card Footer */
.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.service-card__meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ==========================================================================
   4. INSTITUCIONAL BENTO GRID
   ========================================================================== */
.inst-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 1.75rem;
  align-items: stretch;
}

.inst-manifesto {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.1rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.inst-manifesto__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--white);
  margin: 0 0 1.25rem 0;
  text-wrap: balance;
}

.inst-manifesto__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 1.75rem 0;
}

.inst-manifesto__text strong {
  color: var(--white);
}

.inst-manifesto__badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: var(--celeste-light);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.inst-manifesto__badge svg {
  flex-shrink: 0;
}

.inst-manifesto__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
}

.inst-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.inst-tile {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.inst-tile:hover {
  transform: translateY(-3px);
  border-color: var(--celeste-vivid);
  box-shadow: var(--shadow-md);
}

.inst-tile__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--celeste-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.inst-tile__title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.55rem 0;
}

.inst-tile__desc {
  margin: 0 0 1.45rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  flex-grow: 1;
}

.inst-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--celeste);
}

/* ==========================================================================
   5. CÓMO ASOCIARSE: 3-STEP BLUEPRINT
   ========================================================================== */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  position: relative;
  background: var(--ice);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}

.step-card:nth-child(2) {
  border-top-color: var(--celeste);
}

.step-card:nth-child(3) {
  border-top-color: var(--celeste-vivid);
}

.step-card__num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--celeste);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.step-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem 0;
}

.step-card__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   6. CONTACTO & FORMULARIO ACCESIBLE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--celeste-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__label {
  margin: 0 0 0.2rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celeste);
}

.contact-item__val {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.contact-item__val a:hover {
  color: var(--celeste);
  text-decoration: underline;
}

.map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.map-frame {
  height: 280px;
  background: var(--ice);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.map-card__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

/* Form Card */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md);
}

.contact-form-card__title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.45rem 0;
}

.contact-form-card__sub {
  margin: 0 0 1.75rem 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.ampeh-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.topic-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.topic-pill {
  position: relative;
  cursor: pointer;
}

.topic-pill input {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.topic-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topic-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.topic-pill input:focus-visible + span {
  outline: 3px solid var(--celeste);
  outline-offset: 2px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.req-mark {
  color: var(--celeste);
}

.ampeh-form input[type="text"],
.ampeh-form input[type="tel"],
.ampeh-form input[type="email"],
.ampeh-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.95rem;
  font-size: max(1rem, 1em);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #9CB3CE;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ampeh-form textarea {
  min-height: 112px;
  resize: vertical;
}

.ampeh-form input:focus,
.ampeh-form textarea:focus {
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
  outline: none;
}

.ampeh-form input:user-invalid,
.ampeh-form textarea:user-invalid,
.ampeh-form [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--danger);
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.25em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.84);
  padding-top: 4.5rem;
  padding-bottom: 2.25rem;
  border-top: 4px solid var(--celeste);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1fr;
  gap: 2.75rem;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand__name {
  margin: 0 0 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand__inaes {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--celeste-vivid);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col__title {
  margin: 0 0 1.25rem 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--celeste-light);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-list a:hover {
  color: var(--celeste-light);
}

.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.footer-link-btn:hover {
  color: var(--celeste-light);
}

.footer-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--celeste-vivid);
}

.footer-email:hover {
  color: var(--celeste-light);
}

.footer-hours {
  margin: 1.15rem 0 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   FLOATING WHATSAPP & NATIVE DIALOG
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.42);
}

/* Native Dialog */
.ampeh-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 520px);
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out,
    display 0.2s,
    overlay 0.2s;
  transition-behavior: allow-discrete;
}

.ampeh-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .ampeh-dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.ampeh-dialog::backdrop {
  background: rgba(3, 27, 62, 0.55);
  backdrop-filter: blur(4px);
}

.ampeh-dialog__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.ampeh-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ampeh-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  margin: 0 0 0.75rem 0;
}

.ampeh-dialog__body {
  margin: 0 0 1.6rem 0;
  color: var(--ink-secondary);
  line-height: 1.65;
  font-size: 0.96rem;
}

.ampeh-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   MOTION (Opt-in Reduced-Motion Safe Reveals & Hero Choreography)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes curtainReveal {
    from {
      opacity: 0;
      clip-path: inset(12% 0 0 0 round 22px);
      transform: translateY(20px) scale(0.97);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0 0 0 round 22px);
      transform: translateY(0) scale(1);
    }
  }

  @keyframes drawUnderline {
    from {
      stroke-dashoffset: 310;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes badgePulse {
    0%, 100% {
      box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.08);
    }
  }

  @keyframes orbFloat {
    0%, 100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(-18px, 14px, 0);
    }
  }

  .hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-anim--1 { animation-delay: 0.06s; }
  .hero-anim--2 { animation-delay: 0.16s; }
  .hero-anim--3 { animation-delay: 0.28s; }
  .hero-anim--4 { animation-delay: 0.38s; }
  .hero-anim--5 { animation-delay: 0.48s; }

  .hero-curtain {
    opacity: 0;
    animation: curtainReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
  }

  .hero__underline path {
    stroke-dasharray: 310;
    stroke-dashoffset: 310;
    animation: drawUnderline 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
  }

  .hero__badge-dot {
    animation: badgePulse 2.8s ease-in-out infinite;
  }

  .hero__orb--1 {
    animation: orbFloat 11s ease-in-out infinite;
  }

  .hero__orb--2 {
    animation: orbFloat 14s ease-in-out infinite reverse;
  }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST DENSITY & CLEAN SCANNING)
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero__layout,
  .services-layout,
  .inst-bento,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-rail {
    position: static;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .ledger-item {
    border-left: none;
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(100% - 1.75rem, var(--container));
  }

  .topbar,
  .brand__divider,
  .brand__tagline,
  .services-index,
  .advisor-box {
    display: none;
  }

  .section {
    padding-block: 3.15rem;
  }

  .hero {
    padding-block: 2rem 2.75rem;
  }

  .hero__frame {
    aspect-ratio: 4 / 3.4;
  }

  .hero__cta-row {
    margin-bottom: 1.5rem;
  }

  .hero__cta-row .btn {
    flex: 1 1 auto;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding-top: 1.1rem;
  }

  .hero__fact dd {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .hero__fact .fact-sep {
    display: none;
  }

  .hero__fact .fact-sub {
    display: block;
    white-space: nowrap;
    color: var(--ink-secondary);
    font-weight: 500;
  }

  .ledger-band {
    padding-block: 2.15rem;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .ledger-item__desc {
    display: none;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card__media {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .service-card__body {
    padding: 1.35rem;
  }

  .service-card__title {
    font-size: 1.45rem;
  }

  .inst-manifesto {
    padding: 1.65rem;
  }

  .inst-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .inst-tile {
    padding: 1.15rem;
  }

  .inst-tile__title {
    font-size: 1.08rem;
  }

  .inst-tile__desc {
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .step-card {
    padding: 1.25rem 1.35rem;
  }

  .step-card__num {
    font-size: 1.5rem;
    margin-bottom: 0.45rem;
  }

  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-grid {
    gap: 1.75rem;
    padding-bottom: 2rem;
  }
}
