/* ==========================================================================
   Clínica de Hígado | Rosario — Sistema de diseño
   ========================================================================== */

:root {
  /* Marca */
  --brand-900: #0a3d4a;
  --brand-800: #0e4c5c;
  --brand-700: #126174;
  --brand-600: #157a91;
  --brand-400: #3fa9c4;
  --brand-200: #b8dde8;
  --brand-100: #e6f4f8;

  /* Acento */
  --accent: #17a67f;
  --accent-dark: #0f8465;
  --accent-soft: #e4f6f0;

  /* Neutros */
  --ink: #14262c;
  --ink-soft: #3c5057;
  --muted: #62777e;
  --line: #dbe7ea;
  --line-soft: #eef4f6;
  --bg: #ffffff;
  --bg-soft: #f4fafb;

  /* Tipografía */
  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --wrap-narrow: 820px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(10, 61, 74, .06), 0 2px 8px rgba(10, 61, 74, .05);
  --shadow: 0 4px 12px rgba(10, 61, 74, .07), 0 12px 32px rgba(10, 61, 74, .07);
  --shadow-lg: 0 8px 24px rgba(10, 61, 74, .1), 0 24px 60px rgba(10, 61, 74, .1);

  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--brand-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

strong, b { color: var(--brand-900); font-weight: 650; }

::selection { background: var(--brand-200); color: var(--brand-900); }

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

/* ------------------------------------------------------------- Layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(56px, 4vw + 34px, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-900); color: #cfe6ed; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 3vw + 24px, 64px); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section--brand .eyebrow { color: var(--brand-400); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Staff: las fotos de origen son de baja resolución. Se muestran en formato
   apaisado y chico (112 px) para que incluso en pantallas retina el navegador
   tenga que reducirlas y nunca agrandarlas. */
.grid-staff {
  grid-template-columns: repeat(auto-fit, minmax(270px, 348px));
  justify-content: center;
  gap: 20px;
}

.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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------ Botones -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: .97rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(23, 166, 127, .3); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 22px rgba(23, 166, 127, .36); }

.btn--brand { background: var(--brand-800); color: #fff; }
.btn--brand:hover { background: var(--brand-900); color: #fff; }

.btn--ghost { border-color: var(--brand-200); color: var(--brand-800); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-900); background: var(--brand-100); }

.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { background: #fff; color: var(--brand-900); }

.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- Header -- */

.topbar {
  background: var(--brand-900);
  color: #a9cdd8;
  font-size: .84rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #d9ecf2; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.brand-tag {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 100px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--brand-900); background: var(--brand-100); }
.nav a[aria-current="page"] { color: var(--brand-900); background: var(--brand-100); }

/* El botón dentro del nav es solo para el panel móvil */
.nav .btn { display: none; }
.nav .btn[aria-current="page"] { background: var(--accent-dark); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--brand-900);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(63, 169, 196, .22), transparent 62%),
    linear-gradient(168deg, var(--brand-100) 0%, #fbfeff 62%, #fff 100%);
  overflow: hidden;
  padding: clamp(56px, 5vw + 26px, 104px) 0 clamp(56px, 4vw + 30px, 92px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }
.hero-lead {
  font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 650;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge b {
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: .04em;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 96px; }
.hero-stats dt {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.05rem);
  font-weight: 800;
  color: var(--brand-800);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero-stats dd {
  margin: 5px 0 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ------------------------------------------------------ Page header -- */

.page-hero {
  background:
    radial-gradient(760px 420px at 88% -30%, rgba(63, 169, 196, .2), transparent 60%),
    linear-gradient(175deg, var(--brand-100), #fff);
  padding: clamp(44px, 3.5vw + 26px, 76px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }

.breadcrumb {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--brand-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .45; }

/* -------------------------------------------------------------- Cards -- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon--blue { background: var(--brand-100); color: var(--brand-700); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: .92rem;
  color: var(--brand-600);
  text-decoration: none;
}
.card-link:hover { gap: 11px; color: var(--brand-900); }
.card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }

/* -------------------------------------------------------------- Staff -- */

.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: stretch;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
}

.staff-photo {
  width: 112px;
  flex: none;
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, var(--brand-100), var(--brand-200));
  overflow: hidden;
}
.staff-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  transition: transform .5s var(--ease);
}
.staff-card:hover .staff-photo img { transform: scale(1.04); }

.staff-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  min-width: 0;
}
.staff-body h3 { font-size: 1.02rem; margin-bottom: .25em; }
.staff-body h3:only-child { margin-bottom: 0; }
.staff-role { font-size: .89rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ------------------------------------------------------------ Galería -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-100);
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 61, 74, .42), transparent 52%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery a::before {
  content: "";
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3d4a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 19px no-repeat;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover::before, .gallery a:focus-visible::before { opacity: 1; transform: scale(1); }

/* ----------------------------------------------------------- Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(6, 32, 40, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(.965);
  transition: transform .28s var(--ease);
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: var(--brand-900);
}

.lightbox-caption {
  color: #cfe6ed;
  font-size: .92rem;
  text-align: center;
  min-height: 1.4em;
}
.lightbox-count {
  display: block;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  color: #7fa8b6;
  margin-top: 4px;
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(10, 61, 74, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.lightbox-btn:hover { background: var(--accent); border-color: transparent; transform: scale(1.07); }
.lightbox-btn:disabled { opacity: .3; cursor: default; transform: none; background: rgba(10, 61, 74, .55); }
.lightbox-btn svg { width: 22px; height: 22px; }

.lightbox-prev { left: -70px; top: 50%; margin-top: -55px; }
.lightbox-next { right: -70px; top: 50%; margin-top: -55px; }

.lightbox-close {
  position: fixed;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
}

@media (max-width: 1360px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 620px) {
  .lightbox-figure img { max-height: calc(100vh - 210px); }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: -66px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 52px); }
  .lightbox-next { right: calc(50% - 52px); }
  .lightbox-figure { gap: 10px; }
}

/* --------------------------------------------------------- Contenido -- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.callout {
  background: var(--brand-100);
  border-left: 4px solid var(--brand-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout p { margin-bottom: 0; color: var(--ink-soft); }
.callout--accent { background: var(--accent-soft); border-left-color: var(--accent); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 30px 34px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.timeline .year {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand-800);
  font-size: 1.05rem;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.timeline p { font-size: .96rem; color: var(--muted); margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 62px);
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: var(--brand-100);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Banner apaisado (ej. FibroScan) — respeta la proporción original */
.banner-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-100);
  line-height: 0;
}
.banner-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 942 / 281;
  object-fit: cover;
}
.banner-media figcaption {
  line-height: 1.6;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.section--soft .banner-media figcaption { background: var(--bg-soft); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: .98rem;
}
.check-list svg {
  width: 21px; height: 21px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

/* ------------------------------------------------------------ Steps -- */

.steps { counter-reset: step; display: grid; gap: 20px; }
.steps li {
  counter-increment: step;
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  display: grid;
  place-items: center;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .3em; }
.steps p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- Tabla -- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 460px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: var(--bg-soft);
  font-family: var(--font-head);
  color: var(--brand-900);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------------------------------------------------------- Contacto -- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 4vw, 56px); align-items: start; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid; place-items: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-list h3 { font-size: .93rem; margin-bottom: .25em; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.info-list p { margin: 0; color: var(--ink); font-size: 1.02rem; }
.info-list a { color: var(--brand-700); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: .88rem;
  color: var(--brand-900);
  margin-bottom: 7px;
}
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: .97rem;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(63, 169, 196, .16);
}
.field textarea { resize: vertical; min-height: 128px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------- CTA band -- */

.cta-band {
  background: linear-gradient(140deg, var(--brand-800), var(--brand-900) 70%);
  color: #cfe6ed;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { margin-bottom: 0; color: #b6d6e0; }

/* ------------------------------------------------------------ Footer -- */

.site-footer {
  background: var(--brand-900);
  color: #9fc3ce;
  padding: clamp(46px, 4vw, 72px) 0 0;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer p { color: #9fc3ce; }
.site-footer a { color: #cfe6ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }

.footer-brand p { max-width: 32ch; font-size: .93rem; line-height: 1.65; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #7fa8b6;
}

/* ------------------------------------------------------- WhatsApp FAB */

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .5); }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------- Reveal -- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------- Responsive -- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .nav .btn { display: inline-flex; margin-top: 12px; }

  .header-cta .btn { display: none; }
  .brand img { height: 38px; }
  .brand-text { display: none; }
  .topbar .wrap { justify-content: center; gap: 18px; font-size: .8rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .topbar { display: none; }
  .hero-stats { gap: 20px 28px; }
}

@media print {
  .site-header, .topbar, .wa-fab, .site-footer, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
