/* ==========================================================================
   Dr Maximiliano Boero — Design System
   ==========================================================================
   Aesthetic: editorial medical, refined, calm.
   Brand color (olive): #6E721D
   Typography: Prata (display) + Outfit (body)
   ========================================================================== */

/* -------- Tokens --------------------------------------------------------- */
:root {
  /* Brand palette — olive anchored in OKLCH */
  --brand:           oklch(42% 0.13 105);
  --brand-deep:      oklch(34% 0.13 105);
  --brand-bright:    oklch(55% 0.14 105);
  --brand-soft:      oklch(82% 0.06 105);
  --brand-tint:      oklch(96% 0.02 105);
  --brand-veil:      oklch(42% 0.13 105 / 0.08);

  /* Neutrals — slight olive warmth, never cream */
  --ink:             oklch(20% 0.008 105);
  --ink-2:           oklch(34% 0.01 105);
  --ink-3:           oklch(48% 0.01 105);
  --muted:           oklch(58% 0.01 105);
  --line:            oklch(90% 0.008 105);
  --line-soft:       oklch(94% 0.008 105);
  --bg:              oklch(98.5% 0.004 105);
  --surface:         oklch(100% 0 0);
  --surface-2:       oklch(96% 0.005 105);

  /* Semantic */
  --on-brand:        oklch(99% 0.005 105);
  --on-brand-soft:    oklch(28% 0.04 105);

  /* Typography */
  --font-display:    "Prata", "Georgia", "Times New Roman", serif;
  --font-body:       "Outfit", "Helvetica Neue", "Arial", sans-serif;

  /* Sizes (fluid) */
  --fs-xs:           0.78rem;
  --fs-sm:           0.92rem;
  --fs-base:         1rem;
  --fs-md:           1.12rem;
  --fs-lg:           1.32rem;
  --fs-xl:           1.6rem;
  --fs-2xl:          2rem;
  --fs-3xl:          clamp(2.2rem, 4.2vw, 3.4rem);
  --fs-4xl:          clamp(2.8rem, 5.4vw, 4.4rem);

  /* Spacing */
  --sp-1:            0.25rem;
  --sp-2:            0.5rem;
  --sp-3:            0.75rem;
  --sp-4:            1rem;
  --sp-5:            1.5rem;
  --sp-6:            2rem;
  --sp-7:            3rem;
  --sp-8:            4rem;
  --sp-9:            6rem;
  --sp-10:           8rem;

  /* Shape */
  --r-sm:            4px;
  --r-md:            10px;
  --r-lg:            16px;
  --r-pill:          999px;

  /* Layout */
  --container:       1240px;
  --header-h:        84px;
  --topbar-h:        40px;

  /* Shadows */
  --sh-soft:         0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.04);
  --sh-card:         0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.06);
  --sh-lift:         0 2px 4px rgb(0 0 0 / 0.06), 0 24px 48px rgb(0 0 0 / 0.10);

  /* Motion */
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move:       cubic-bezier(0.25, 1, 0.5, 1);
  --d-fast:          140ms;
  --d-base:          220ms;
  --d-slow:          420ms;
}

/* -------- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }

/* Selection */
::selection { background: var(--brand); color: var(--on-brand); }

/* -------- Utilities ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out),
              transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px var(--brand-veil);
}
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid currentColor;
}
.btn--ghost:hover {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--light {
  background: var(--surface);
  color: var(--brand-deep);
}
.btn--light:hover {
  background: var(--brand-tint);
  transform: translateY(-1px);
}
.btn .fa-arrow-right { transition: transform var(--d-base) var(--ease-out); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

/* Visually hidden but accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------- Skip link ------------------------------------------------------ */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--brand); color: var(--on-brand);
  padding: 0.6rem 1rem; border-radius: var(--r-md);
  z-index: 9999;
  transition: top var(--d-base) var(--ease-out);
}
.skip-link:focus { top: 0.6rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--d-base) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: var(--sh-soft);
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: oklch(98% 0 0);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-h);
  gap: 1rem;
}
.topbar__left { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; opacity: 0.85; }
.topbar__item:hover { opacity: 1; }
.topbar__right { display: flex; align-items: center; gap: 0.9rem; }
.topbar__social { display: inline-flex; gap: 0.55rem; }
.topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
  opacity: 0.9;
}
.topbar__social a:hover { background: oklch(100% 0 0 / 0.1); opacity: 1; }

/* Nav */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}
.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.navbar__brand img {
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  object-fit: cover;
}
.navbar__brand-text {
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.navbar__brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.navbar__brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background-color var(--d-fast) var(--ease-out);
}
.nav-toggle:hover { background: var(--brand-tint); }
.nav-toggle__bars {
  display: inline-flex; flex-direction: column;
  width: 22px; height: 16px; justify-content: space-between;
}
.nav-toggle__bars span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only close button inside menu */
.nav-close {
  display: none;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-end;
  margin: 0 0 0.5rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.nav-close:hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav-close i { font-size: 1.05rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-menu__item {
  position: relative;
}
.nav-menu__link {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6rem 0.95rem;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-2);
  border-radius: var(--r-md);
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.nav-menu__link:hover,
.nav-menu__link.is-active {
  color: var(--brand-deep);
  background: var(--brand-tint);
}
.nav-menu__link .fa-chevron-down {
  font-size: 0.72em;
  transition: transform var(--d-fast) var(--ease-out);
}
.nav-menu__item--has-children:hover .nav-menu__link .fa-chevron-down {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out),
              visibility var(--d-base);
  z-index: 50;
}
.nav-menu__item--has-children:hover .submenu,
.nav-menu__item--has-children:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu__link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.submenu__link::before {
  content: ""; width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  flex-shrink: 0;
  transition: background-color var(--d-fast) var(--ease-out);
}
.submenu__link:hover,
.submenu__link.is-active {
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.submenu__link:hover::before,
.submenu__link.is-active::before { background: var(--brand); }

.nav-cta {
  margin-left: 0.5rem;
}

/* -------- Mobile nav ----------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-close { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--surface);
    padding: calc(var(--header-h) + var(--topbar-h) + 1rem) 1.25rem 2rem;
    gap: 0.25rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity var(--d-base) var(--ease-out),
                transform var(--d-base) var(--ease-move),
                visibility var(--d-base);
    z-index: 90;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
  .nav-menu__link {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-menu__link.is-active,
  .nav-menu__link:hover {
    background: transparent;
    color: var(--brand-deep);
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: var(--surface-2);
    border-radius: var(--r-md);
    margin: 0.25rem 0 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--d-base) var(--ease-move);
  }
  .nav-menu__item--has-children.is-expanded .submenu {
    max-height: 600px;
  }
  .submenu__link { padding: 0.85rem 1rem 0.85rem 2rem; }
  .nav-cta { margin: 1rem 0 0; width: 100%; justify-content: center; }

  .topbar__inner { font-size: 0.7rem; }
  .topbar__left .topbar__item:not(.topbar__item--email) { display: none; }
}
@media (max-width: 640px) {
  .topbar__brand-sub, .navbar__brand-text { display: none; }
  .navbar__brand img { width: 46px; height: 46px; }
}

/* -------- Hero (home) ---------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, var(--brand-veil) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 100%, var(--brand-tint) 0%, transparent 60%),
    var(--bg);
  padding-block: clamp(4rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-4xl);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title span {
  display: inline-block;
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 38ch;
}
.hero__creds {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.hero__creds span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__creds span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--brand);
  border-radius: var(--r-pill);
}
.hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-tint);
  box-shadow: var(--sh-lift);
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero__visual-badge {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--sh-card);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__visual-badge .fa-circle-check {
  color: var(--brand);
  font-size: 1.5rem;
}
.hero__visual-badge-text {
  font-size: 0.78rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.hero__visual-badge-text strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}
.hero__visual-stamp {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 96px; height: 96px;
  border-radius: var(--r-pill);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  box-shadow: var(--sh-card);
  line-height: 1.1;
}
.hero__visual-stamp strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--brand);
  text-transform: none;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* -------- Section header ------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.section-head__lead {
  font-size: var(--fs-md);
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
  max-width: 52ch;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ==========================================================================
   Home: Procedure section (Corporal)
   ========================================================================== */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line-soft);
}
.feature-block:first-of-type { border-top: none; }
.feature-block--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.feature-block--reverse .feature-block__media { order: 2; }
.feature-block__media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-tint);
  box-shadow: var(--sh-card);
}
.feature-block__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-block__media--square {
  aspect-ratio: 6 / 5;
}
.feature-block__media--square img {
  object-fit: cover;
  object-position: center 35%;
}
.feature-block__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--brand-veil));
  pointer-events: none;
}
.feature-block__kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.feature-block__kicker::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.feature-block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.85rem 0 1.1rem;
  text-wrap: balance;
}
.feature-block__body p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  color: var(--ink-2);
}
.feature-block__body p:last-child { margin-bottom: 0; }
.feature-block__list {
  margin: 1.4rem 0 1.6rem;
  display: grid;
  gap: 0.5rem;
}
.feature-block__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.96rem;
  color: var(--ink-2);
}
.feature-block__list li:last-child { border-bottom: none; }
.feature-block__list li i {
  color: var(--brand);
  font-size: 0.95rem;
  width: 1.4em;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .feature-block,
  .feature-block--reverse { grid-template-columns: 1fr; }
  .feature-block--reverse .feature-block__media { order: 0; }
}

/* ==========================================================================
   Home: services mosaic (masculine style)
   ========================================================================== */
.services-mosaic {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.services-mosaic__head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.75rem;
}
.services-mosaic__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.services-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.service-card {
  display: block;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.4rem 1.3rem 1.3rem;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--d-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card);
  border-color: var(--line);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: background-color var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.service-card:hover .service-card__icon {
  background: var(--brand);
  color: var(--on-brand);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.service-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   Home: About / Presentación strip
   ========================================================================== */
.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.about-strip__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-tint);
  box-shadow: var(--sh-card);
}
.about-strip__media img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.about-strip__quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3em;
  line-height: 0.6;
  color: var(--brand);
  margin-bottom: 0.25em;
}
.about-strip__body p {
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.about-strip__body p:last-child { margin-bottom: 0; }
.about-strip__cta { margin-top: 1.75rem; }
@media (max-width: 900px) {
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__media { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.breadcrumb__inner {
  padding-block: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--ink-3);
  transition: color var(--d-fast) var(--ease-out);
}
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb__sep { color: var(--muted); opacity: 0.5; }
.breadcrumb__current { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--brand-tint) 0%, transparent 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.page-hero__kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0.5rem 0 0.75rem;
  color: var(--ink);
  text-wrap: balance;
}
.page-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.page-hero__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--sh-card);
  background: var(--brand-tint);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 720px; }
}

/* Procedure blocks inside pages */
.proc-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line-soft);
}
.proc-block:first-of-type { border-top: none; }
.proc-block--reverse .proc-block__media { order: 2; }
.proc-block__media {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-tint);
  box-shadow: var(--sh-card);
}
.proc-block__media img { width: 100%; height: 100%; object-fit: cover; }
.proc-block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.proc-block__body p {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 0.95rem;
  text-wrap: pretty;
}
.proc-block__body p:last-child { margin-bottom: 0; }
.proc-block__list {
  margin: 1.25rem 0;
  display: grid;
  gap: 0.45rem;
}
.proc-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.96rem;
  color: var(--ink-2);
}
.proc-block__list li:last-child { border-bottom: none; }
.proc-block__list li i {
  color: var(--brand);
  margin-top: 0.32em;
  font-size: 0.62rem;
  flex-shrink: 0;
}
.proc-block__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .proc-block,
  .proc-block--reverse { grid-template-columns: 1fr; }
  .proc-block--reverse .proc-block__media { order: 0; }
}

/* ==========================================================================
   Presentación / Curriculum
   ========================================================================== */
.cv-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cv-block__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--brand-tint);
  box-shadow: var(--sh-card);
}
.cv-block__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.cv-block__seal {
  position: absolute;
  right: 1rem; bottom: 1rem;
  width: 110px; height: 110px;
  border-radius: var(--r-pill);
  background: var(--surface);
  display: flex;
  align-items: center; justify-content: center;
  flex-direction: column;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  box-shadow: var(--sh-card);
  text-align: center;
  line-height: 1.15;
}
.cv-block__seal strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--brand);
  text-transform: none;
  margin-top: 0.2em;
}
.cv-block__intro p {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.cv-block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--ink);
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.cv-list {
  display: grid;
  gap: 0.55rem;
}
.cv-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.55;
  transition: border-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.cv-list li::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.1rem;
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--brand);
}
.cv-list li:hover { border-color: var(--brand-soft); transform: translateX(2px); }
.cv-list li strong { color: var(--ink); display: block; margin-bottom: 0.15rem; font-weight: 600; }

@media (max-width: 900px) {
  .cv-block { grid-template-columns: 1fr; }
  .cv-block__media { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-hero {
  background:
    linear-gradient(135deg, var(--brand-tint) 0%, transparent 60%),
    var(--bg);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-soft);
}
.contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-hero__brand {
  display: inline-flex;
  align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-hero__brand img {
  width: 64px; height: 64px;
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: 6px;
  box-shadow: var(--sh-soft);
}
.contact-hero__brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.contact-hero__brand-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.contact-hero__brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.contact-hero p {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-top: 1rem;
  max-width: 48ch;
}
.contact-hero__visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  background: var(--brand);
  overflow: hidden;
  box-shadow: var(--sh-lift);
}
.contact-hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, oklch(99% 0.005 105 / 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, oklch(20% 0.008 105 / 0.4) 0%, transparent 50%);
}
.contact-hero__visual-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--on-brand);
  text-align: center;
  padding: 2rem;
}
.contact-hero__visual-text strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.contact-hero__visual-text span {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.85;
}

@media (max-width: 800px) {
  .contact-hero__inner { grid-template-columns: 1fr; }
}

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.contact-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  background: var(--brand-tint);
  min-height: 460px;
  position: relative;
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.contact-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.contact-card__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.contact-card__icon--wa { background: #d4f7df; color: #075e54; }
.contact-card__icon--mail { background: var(--brand-tint); color: var(--brand-deep); }
.contact-card__icon--pin { background: oklch(94% 0.04 60); color: oklch(40% 0.12 60); }
.contact-card__body {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.contact-card__label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  word-break: break-word;
}
.contact-card__hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-card a.contact-card__value:hover { color: var(--brand-deep); }
.contact-cta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .contact-block { grid-template-columns: 1fr; }
  .contact-map { min-height: 360px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: oklch(92% 0.005 105);
}
.footer-main {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.footer-brand__head {
  display: flex; align-items: center; gap: 0.85rem;
}
.footer-brand__logo {
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: 6px;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--surface);
  letter-spacing: -0.005em;
}
.footer-brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(75% 0.01 105);
  margin-top: 0.2em;
}
.footer-brand__text {
  font-size: 0.92rem;
  color: oklch(80% 0.008 105);
  line-height: 1.6;
  max-width: 36ch;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: oklch(100% 0 0 / 0.06);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--surface);
  transition: background-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out);
}
.footer-social a:hover {
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-2px);
}
.footer-social a.wa:hover { background: #25D366; }
.footer-social a.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a.fb:hover { background: #1877F2; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-nav { display: grid; gap: 0.55rem; }
.footer-nav a {
  font-size: 0.95rem;
  color: oklch(82% 0.008 105);
  transition: color var(--d-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--surface); }

.footer-contact {
  display: grid;
  gap: 0.85rem;
}
.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: oklch(82% 0.008 105);
}
.footer-contact__item i {
  color: var(--brand-soft);
  font-size: 0.95rem;
  margin-top: 0.25em;
  width: 1em;
  flex-shrink: 0;
}
.footer-contact__item a:hover { color: var(--surface); }

/* Societies */
.footer-societies {
  border-top: 1px solid oklch(100% 0 0 / 0.06);
  padding-block: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.society {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  max-width: 260px;
}
.society__logo {
  height: 78px;
  width: auto;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 8px 12px;
  object-fit: contain;
}
.society__label {
  font-size: 0.78rem;
  color: oklch(78% 0.008 105);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-societies { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Footer bottom */
.footer-bottom {
  background: oklch(14% 0.008 105);
  padding-block: 1.25rem;
  font-size: 0.82rem;
  color: oklch(65% 0.01 105);
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a {
  color: oklch(85% 0.008 105);
  border-bottom: 1px dotted oklch(60% 0.01 105);
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.footer-bottom a:hover {
  color: var(--brand-soft);
  border-color: var(--brand-soft);
}

/* ==========================================================================
   Scroll reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.reveal--up { transform: translateY(24px); }
.reveal--down { transform: translateY(-18px); }
.reveal--left { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal.is-visible { transform: none; will-change: auto; }

.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
.reveal--d4 { transition-delay: 320ms; }
.reveal--d5 { transition-delay: 400ms; }
.reveal--d6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Scroll-to-top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--sh-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-out),
              visibility var(--d-base),
              background-color var(--d-fast) var(--ease-out);
}
.to-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.to-top:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.fab-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 79;
  width: 54px; height: 54px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: var(--surface);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.55rem;
  box-shadow: var(--sh-lift);
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.fab-wa::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgb(37 211 102 / 0.5);
  animation: pulse-wa 2.4s var(--ease-out) infinite;
}
.fab-wa:hover { transform: scale(1.06); }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.55); }
  70% { box-shadow: 0 0 0 14px rgb(37 211 102 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); }
}
@media (max-width: 640px) {
  .fab-wa { right: 0.85rem; bottom: 5rem; width: 50px; height: 50px; font-size: 1.4rem; }
  .to-top { right: 0.85rem; bottom: 0.85rem; width: 44px; height: 44px; }
}