/* ==========================================================================
   Clínica Integral La Frontera IPS S.A.S.
   Sistema de diseño — hoja de estilos compartida
   "Calidad sin fronteras"
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reinicio y tokens
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Marca */
  --navy-900: #04263E;
  --navy-800: #073756;
  --navy-700: #0A4A72;
  --blue-600: #0E7FA8;
  --cyan-500: #17A2CB;
  --cyan-400: #3EBEE0;
  --turq-600: #0AA895;
  --turq-500: #0FD0B6;
  --turq-400: #2BDCC4;
  --turq-300: #5FE8D4;
  /* Alias: el resto de la hoja sigue usando --teal-*, que ahora es turquesa */
  --teal-400: var(--turq-500);
  --teal-300: var(--turq-300);

  /* Neutros */
  --mist-050: #F4FBFE;
  --mist-100: #DFF3FA;
  --mist-200: #BFE2F2;
  --ink: #0F2333;
  --ink-soft: #55707F;
  --ink-faint: #8AA3B2;
  --line: #DCEAF2;
  --paper: #FFFFFF;
  --paper-soft: #F6FAFC;

  /* Semánticos */
  --danger: #D23A3A;
  --danger-dark: #A32A2A;
  --ok: #0E9E6E;
  --whatsapp: #25D366;

  /* Tipografía */
  --display: 'Poppins', system-ui, -apple-system, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Elevación */
  --sh-xs: 0 1px 2px rgba(7, 55, 86, .06);
  --sh-sm: 0 2px 10px rgba(7, 55, 86, .07);
  --sh-md: 0 12px 34px rgba(7, 55, 86, .10);
  --sh-lg: 0 26px 70px rgba(7, 55, 86, .16);
  --sh-brand: 0 14px 32px rgba(23, 162, 203, .32);

  /* Formas */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, var(--cyan-500) 0%, var(--blue-600) 55%, var(--navy-700) 100%);
  --grad-deep: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 45%, #0B4E76 100%);
  --grad-soft: linear-gradient(160deg, var(--mist-050) 0%, var(--mist-100) 100%);

  /* Layout */
  --shell: 1240px;
  --nav-h: 76px;
}

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

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--cyan-400); color: #fff; }

/* Barra de scroll personalizada */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--mist-050); }
::-webkit-scrollbar-thumb { background: var(--mist-200); border-radius: 99px; border: 3px solid var(--mist-050); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-400); }

/* Íconos SVG en línea */
.ico { width: 1em; height: 1em; flex-shrink: 0; stroke-width: 1.7; }

/* --------------------------------------------------------------------------
   2. Estructura base
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }
.shell--narrow { max-width: 920px; }
.shell--mid { max-width: 1080px; }

.band { padding: clamp(3.75rem, 7vw, 6.5rem) 0; position: relative; }
.band--tight { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.band--soft { background: var(--paper-soft); }
.band--mist { background: var(--grad-soft); }
.band--deep { background: var(--grad-deep); color: #fff; }
.band--line-top { border-top: 1px solid var(--line); }
.band--line-bottom { border-bottom: 1px solid var(--line); }

/* Textura de puntos decorativa */
.band--dotted::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(23,162,203,.16) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.band--dotted > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   3. Tipografía
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--blue-600); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--teal-400));
}
.band--deep .eyebrow { color: var(--teal-300); }
.band--deep .eyebrow::before { background: linear-gradient(90deg, var(--teal-300), transparent); }

.h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 3.7rem);
  line-height: 1.08; letter-spacing: -.025em;
}
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  line-height: 1.16; letter-spacing: -.02em;
  color: var(--ink);
}
.band--deep .h2 { color: #fff; }
.h3 {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3; letter-spacing: -.012em;
}
.h4 { font-family: var(--display); font-weight: 600; font-size: 1.03rem; line-height: 1.35; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-soft); font-weight: 400; line-height: 1.75;
  max-width: 62ch;
}
.band--deep .lead { color: rgba(255,255,255,.76); }
.prose p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

.centered { text-align: center; }
.centered .lead, .centered .eyebrow { margin-left: auto; margin-right: auto; }
.head-block { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

/* Resaltado con subrayado degradado */
.mark {
  background: linear-gradient(transparent 62%, rgba(62,190,224,.38) 62%);
  padding: 0 .1em;
}
.tagline {
  font-family: var(--display); font-weight: 500; font-style: normal;
  letter-spacing: .04em; color: var(--teal-400);
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-size: .89rem; font-weight: 650;
  padding: .92rem 1.75rem; border-radius: var(--r-pill);
  border: 1.6px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, background .28s, color .28s, border-color .28s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .28s; }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); background-size: 160% 160%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(23,162,203,.42); background-position: 100% 0; }

.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--mist-200); }
.btn--outline:hover { border-color: var(--cyan-500); background: var(--mist-050); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(4,38,62,.24); }

.btn--danger { background: #fff; color: var(--danger); font-weight: 750; }
.btn--danger:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.2); }

.btn--sm { font-size: .8rem; padding: .62rem 1.25rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.centered .btn-row { justify-content: center; }

/* Enlace con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 650; color: var(--blue-600);
  text-decoration: none; transition: gap .28s, color .28s;
}
.arrow-link:hover { gap: .75rem; color: var(--cyan-500); }

/* --------------------------------------------------------------------------
   5. Barra de progreso de lectura
   -------------------------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal-400), var(--cyan-400), var(--blue-600));
  z-index: 1200; transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   6. Barra superior
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.7);
  font-size: .76rem; position: relative; z-index: 60;
}
.topbar__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: .5rem clamp(1.15rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .25s; }
.topbar a:hover { color: var(--teal-300); }
.topbar__item { display: inline-flex; align-items: center; gap: .42rem; }
.topbar__item .ico { width: 14px; height: 14px; color: var(--teal-400); }
.topbar__socials { display: flex; gap: .55rem; }
.topbar__socials a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.09); transition: background .25s, transform .25s;
}
.topbar__socials a:hover { background: var(--cyan-500); transform: translateY(-2px); }
.topbar__socials .ico { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   7. Navegación principal
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, height .3s;
}
.nav.is-stuck { box-shadow: 0 6px 24px rgba(7,55,86,.10); }
.nav__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Logotipo */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__mark .ico { width: 24px; height: 24px; stroke-width: 2; }
.brand__text { line-height: 1.15; }
.brand__name {
  font-family: var(--display); font-size: 1.02rem; font-weight: 700;
  color: var(--navy-800); letter-spacing: -.015em; display: block;
}
.brand__sub {
  display: block; font-size: .63rem; font-weight: 600;
  color: var(--cyan-500); letter-spacing: .13em; text-transform: uppercase;
}
.footer .brand__name { color: #fff; }

/* Enlaces */
.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .855rem; font-weight: 550; color: var(--ink);
  text-decoration: none; padding: .58rem .82rem; border-radius: var(--r-sm);
  transition: color .25s, background .25s; white-space: nowrap;
}
.nav__link:hover { color: var(--blue-600); background: var(--mist-050); }
.nav__link.is-active { color: var(--blue-600); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: .82rem; right: .82rem; bottom: .12rem;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--teal-400));
}
.nav__caret { width: 13px; height: 13px; transition: transform .3s; opacity: .6; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Menú desplegable */
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 278px; padding: .55rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .26s, transform .26s, visibility .26s;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__sub a {
  display: flex; align-items: center; gap: .65rem;
  padding: .62rem .8rem; border-radius: var(--r-sm);
  font-size: .845rem; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: background .22s, color .22s, padding-left .22s;
}
.nav__sub a .ico { width: 16px; height: 16px; color: var(--cyan-500); transition: color .22s; }
.nav__sub a:hover { background: var(--mist-050); color: var(--blue-600); padding-left: 1.05rem; }
.nav__sub a.is-active { background: var(--mist-100); color: var(--blue-600); font-weight: 650; }
.nav__sub-sep { height: 1px; background: var(--line); margin: .4rem .5rem; }
.nav__sub-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); padding: .5rem .8rem .3rem;
}

/* Botón hamburguesa */
.burger {
  display: none; width: 42px; height: 42px; border: none; cursor: pointer;
  background: var(--mist-050); border-radius: 12px; position: relative;
}
.burger span {
  position: absolute; left: 12px; width: 18px; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s, width .35s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; width: 13px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Menú lateral móvil
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(4,38,62,.5);
  backdrop-filter: blur(3px); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 370px);
  background: #fff; z-index: 120; box-shadow: -20px 0 60px rgba(4,38,62,.2);
  transform: translateX(100%); transition: transform .42s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.drawer__close {
  width: 38px; height: 38px; border: none; background: var(--mist-050);
  border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  color: var(--navy-800); transition: background .25s;
}
.drawer__close:hover { background: var(--mist-100); }
.drawer__close .ico { width: 19px; height: 19px; }
.drawer__body { padding: .9rem 1rem 2rem; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .82rem .75rem; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 550; color: var(--ink);
  text-decoration: none; border: none; background: none;
  width: 100%; cursor: pointer; text-align: left;
  transition: background .22s, color .22s;
}
.drawer__link:hover, .drawer__link.is-active { background: var(--mist-050); color: var(--blue-600); }
.drawer__link .ico { width: 16px; height: 16px; transition: transform .3s; opacity: .55; }
.drawer__link.is-expanded .ico { transform: rotate(180deg); }
.drawer__sub { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22,1,.36,1); }
.drawer__sub.is-open { max-height: 520px; }
.drawer__sub a {
  display: block; padding: .6rem .75rem .6rem 1.7rem;
  font-size: .87rem; color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid var(--line); margin-left: .75rem;
  transition: color .22s, border-color .22s;
}
.drawer__sub a:hover, .drawer__sub a.is-active { color: var(--blue-600); border-color: var(--cyan-500); }
.drawer__cta { margin-top: 1.1rem; padding: 0 .75rem; }
.drawer__foot {
  margin-top: 1.5rem; padding: 1.1rem .75rem 0; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.drawer__foot a { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; text-decoration: none; color: var(--ink-soft); }
.drawer__foot .ico { width: 15px; height: 15px; color: var(--cyan-500); }

/* --------------------------------------------------------------------------
   9. Portada — carrusel
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--navy-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,38,62,.92) 0%, rgba(7,55,86,.78) 42%, rgba(4,38,62,.35) 72%, rgba(4,38,62,.55) 100%);
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: scale(1.06);
}
.hero__slide.is-active .hero__img { animation: kenburns 11s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16); } }

.hero__glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(53,196,181,.30) 0%, transparent 68%);
  filter: blur(18px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-60px, 60px); } }

.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(4rem, 9vw, 6.5rem); }
.hero__copy { max-width: 690px; color: #fff; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .71rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  padding: .48rem 1.05rem; border-radius: var(--r-pill);
  margin-bottom: 1.4rem; color: #fff;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-300);
  box-shadow: 0 0 0 0 rgba(111,218,203,.8); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,218,203,.75); }
  70% { box-shadow: 0 0 0 11px rgba(111,218,203,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,218,203,0); }
}
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.15rem; }
.hero__title em { font-style: normal; color: var(--teal-300); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.14rem); color: rgba(255,255,255,.8); line-height: 1.75; max-width: 540px; margin-bottom: 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Entrada escalonada de la portada */
.hero__copy > * { opacity: 0; animation: riseIn .9s cubic-bezier(.22,1,.36,1) forwards; }
.hero__copy > *:nth-child(1) { animation-delay: .15s; }
.hero__copy > *:nth-child(2) { animation-delay: .3s; }
.hero__copy > *:nth-child(3) { animation-delay: .45s; }
.hero__copy > *:nth-child(4) { animation-delay: .6s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Controles del carrusel */
.hero__dots { position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: .55rem; }
.hero__dot {
  width: 34px; height: 4px; border-radius: 3px; border: none; cursor: pointer;
  background: rgba(255,255,255,.3); transition: background .3s, width .3s;
}
.hero__dot.is-active { background: var(--teal-300); width: 52px; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); color: #fff;
  display: grid; place-items: center;
  transition: background .28s, transform .28s;
}
.hero__arrow:hover { background: rgba(255,255,255,.22); }
.hero__arrow--prev { left: 1.2rem; }
.hero__arrow--next { right: 1.2rem; }
.hero__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero__arrow--next:hover { transform: translateY(-50%) translateX(3px); }
.hero__arrow .ico { width: 20px; height: 20px; }

/* Onda divisoria */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 3; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: clamp(44px, 6vw, 82px); display: block; }

/* --------------------------------------------------------------------------
   10. Cabecera de páginas internas
   -------------------------------------------------------------------------- */
.pagehead { position: relative; background: var(--grad-deep); color: #fff; padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 5.75rem); overflow: hidden; }
.pagehead::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.1) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 65%);
          mask-image: linear-gradient(120deg, #000 10%, transparent 65%);
}
.pagehead::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(53,196,181,.26) 0%, transparent 70%);
}
.pagehead__inner { position: relative; z-index: 2; max-width: 760px; }
.pagehead--center .pagehead__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.pagehead .h1 { margin-bottom: .8rem; }
.pagehead .lead { color: rgba(255,255,255,.78); }
.pagehead--center .lead { margin: 0 auto; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 1.1rem; }
.pagehead--center .crumbs { justify-content: center; }
.crumbs a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: var(--teal-300); }
.crumbs .ico { width: 13px; height: 13px; opacity: .5; }

/* --------------------------------------------------------------------------
   11. Accesos rápidos (superpuestos)
   -------------------------------------------------------------------------- */
.quickbar { position: relative; z-index: 10; margin-top: clamp(-3.5rem, -5vw, -2.5rem); }
.quickbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem 1.35rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-md);
  transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s, border-color .38s;
}
.quick::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); transform: scaleY(0); transform-origin: bottom;
  transition: transform .38s cubic-bezier(.22,1,.36,1);
}
.quick:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--mist-200); }
.quick:hover::before { transform: scaleY(1); }
.quick__icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: .95rem;
  transition: background .38s, color .38s, transform .38s;
}
.quick__icon .ico { width: 22px; height: 22px; }
.quick:hover .quick__icon { background: var(--grad-brand); color: #fff; transform: scale(1.08) rotate(-5deg); }
.quick--urgent .quick__icon { background: #FDECEC; color: var(--danger); }
.quick--urgent:hover .quick__icon { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); color: #fff; }
.quick--urgent::before { background: linear-gradient(180deg, var(--danger), var(--danger-dark)); }
.quick h3 { font-family: var(--display); font-size: .98rem; font-weight: 650; margin-bottom: .25rem; }
.quick p { font-size: .8rem; color: var(--ink-soft); line-height: 1.55; }
.quick__go { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 650; color: var(--blue-600); margin-top: .8rem; transition: gap .3s; }
.quick:hover .quick__go { gap: .6rem; }

/* --------------------------------------------------------------------------
   12. Cintillo de confianza
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line); background: var(--paper-soft);
  padding: 1.1rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust__track { display: flex; gap: 3rem; width: max-content; animation: slide 34s linear infinite; }
.trust:hover .trust__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust__item {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.trust__item .ico { width: 17px; height: 17px; color: var(--cyan-500); }

/* --------------------------------------------------------------------------
   13. Tarjetas de servicio
   -------------------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); text-decoration: none; color: #fff;
  min-height: 330px; background: var(--navy-800);
  box-shadow: var(--sh-sm);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s;
}
.svc:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.svc:hover .svc__img { transform: scale(1.09); }
.svc::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,38,62,.94) 8%, rgba(4,38,62,.68) 42%, rgba(4,38,62,.14) 80%);
  transition: background .45s;
}
.svc:hover::after { background: linear-gradient(to top, rgba(4,38,62,.96) 12%, rgba(7,55,86,.78) 52%, rgba(14,127,168,.3) 100%); }
.svc__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; min-height: 330px; }
.svc__icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: .9rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); display: grid; place-items: center;
  transition: background .45s, transform .45s;
}
.svc__icon .ico { width: 20px; height: 20px; }
.svc:hover .svc__icon { background: var(--cyan-500); transform: translateY(-3px); }
.svc h3 { font-family: var(--display); font-size: 1.22rem; font-weight: 650; margin-bottom: .4rem; }
.svc p { font-size: .86rem; color: rgba(255,255,255,.76); line-height: 1.6; }
.svc__go { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; color: var(--teal-300); margin-top: .9rem; transition: gap .3s; }
.svc:hover .svc__go { gap: .7rem; }

/* Tarjeta destacada "ver todos" */
.svc--flat { background: var(--grad-brand); display: grid; place-items: center; text-align: center; }
.svc--flat::after { display: none; }
.svc--flat .svc__body { justify-content: center; align-items: center; }

/* --------------------------------------------------------------------------
   14. Estadísticas animadas
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat {
  text-align: center; padding: 2rem 1.25rem;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px);
  transition: transform .4s, border-color .4s, background .4s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(53,196,181,.5); background: rgba(255,255,255,.09); }
.stat__icon { width: 44px; height: 44px; margin: 0 auto .9rem; border-radius: 50%; background: rgba(53,196,181,.16); color: var(--teal-300); display: grid; place-items: center; }
.stat__icon .ico { width: 21px; height: 21px; }
.stat__num { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat__num .suffix { color: var(--teal-300); }
.stat__label { font-size: .8rem; color: rgba(255,255,255,.62); margin-top: .5rem; letter-spacing: .02em; }

/* Variante clara */
.stats--light .stat { background: #fff; border-color: var(--line); box-shadow: var(--sh-xs); }
.stats--light .stat:hover { border-color: var(--cyan-400); box-shadow: var(--sh-md); }
.stats--light .stat__icon { background: var(--mist-100); color: var(--blue-600); }
.stats--light .stat__num { color: var(--navy-800); }
.stats--light .stat__num .suffix { color: var(--cyan-500); }
.stats--light .stat__label { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   15. Bloque partido (imagen + texto)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.25rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__img {
  width: 100%;
  /* height:auto es imprescindible: los atributos width/height del <img> (que
     están para evitar saltos de maquetación) fijan una altura de presentación
     que si no gana a aspect-ratio y la foto sale altísima. */
  height: auto;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  object-fit: cover; object-position: center 45%;
}
.split__img--wide { aspect-ratio: 4/3; }
.split__frame {
  position: absolute; inset: 0;
  border: 1.5px solid var(--cyan-400); border-radius: var(--r-lg);
  transform: translate(18px, 18px); z-index: -1; pointer-events: none;
}
.split__chip {
  position: absolute; bottom: 1.5rem; left: -1.25rem;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: .85rem;
  border: 1px solid var(--line);
}
.split__chip .ico { width: 26px; height: 26px; color: var(--cyan-500); }
.split__chip strong { font-family: var(--display); font-size: 1.15rem; color: var(--navy-800); display: block; line-height: 1.1; }
.split__chip span { font-size: .74rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   16. Tarjetas genéricas
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.35rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .4s;
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--mist-200); }
.card__glow {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  right: -80px; top: -90px; pointer-events: none;
  background: radial-gradient(circle, rgba(62,190,224,.17) 0%, transparent 70%);
  opacity: 0; transition: opacity .45s;
}
.card:hover .card__glow { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 1.15rem;
  background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center;
  transition: background .4s, color .4s, transform .4s;
}
.card__icon .ico { width: 25px; height: 25px; }
.card:hover .card__icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 650; margin-bottom: .45rem; position: relative; }
.card p { font-size: .88rem; color: var(--ink-soft); line-height: 1.7; position: relative; }
.card__num {
  font-family: var(--display); font-size: 2.6rem; font-weight: 700;
  color: var(--mist-200); line-height: 1; margin-bottom: .5rem;
  transition: color .4s;
}
.card:hover .card__num { color: var(--cyan-400); }
.card .arrow-link { margin-top: .9rem; }

/* Tarjeta ancha con acento lateral */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); position: relative; overflow: hidden;
  box-shadow: var(--sh-sm);
}
/* El acento superior se pinta como capa de fondo: así respeta siempre el
   border-radius de la tarjeta, sin depender del recorte por overflow. */
.panel--accent {
  padding-top: calc(clamp(1.75rem, 3.5vw, 2.75rem) + 4px);
  background-image: var(--grad-brand);
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 0;
}
.panel__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; background: var(--grad-brand);
  padding: .4rem .95rem; border-radius: var(--r-pill); margin-bottom: 1.1rem;
}
.panel__tag .ico { width: 14px; height: 14px; }
.panel h3 { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: .85rem; color: var(--navy-800); }
.panel p { color: var(--ink-soft); line-height: 1.85; font-size: .95rem; }

/* --------------------------------------------------------------------------
   17. Listas con viñeta de verificación
   -------------------------------------------------------------------------- */
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
.checklist li::before {
  content: ''; flex-shrink: 0; margin-top: .3rem;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--mist-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7FA8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist--teal li::before {
  background: rgba(53,196,181,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335C4B5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist--num { counter-reset: n; }
.checklist--num li { counter-increment: n; }
.checklist--num li::before {
  content: counter(n); background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center; font-size: .68rem; font-weight: 750;
  width: 21px; height: 21px; font-family: var(--display);
}

/* --------------------------------------------------------------------------
   18. Organigrama
   -------------------------------------------------------------------------- */
.org { display: flex; flex-direction: column; align-items: center; }
.org__node {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--grad-deep); color: #fff;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 650; font-size: .92rem;
  letter-spacing: .02em; box-shadow: var(--sh-md);
  transition: transform .35s, box-shadow .35s;
}
.org__node:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.org__node .ico { width: 18px; height: 18px; color: var(--teal-300); }
.org__node--sub {
  background: var(--grad-brand); font-size: .86rem; padding: .78rem 1.4rem;
  box-shadow: var(--sh-brand);
}
.org__connector {
  width: 3px; height: 28px; flex-shrink: 0; border-radius: 3px;
  background: linear-gradient(180deg, var(--turq-500), var(--cyan-500));
}
.org__split { position: relative; width: 100%; display: flex; justify-content: center; }
.org__split::before {
  content: ''; position: absolute; top: 0; height: 3px; border-radius: 3px;
  left: 25%; right: 25%;
  background: linear-gradient(90deg, var(--turq-500), var(--cyan-500), var(--turq-500));
}
.org__branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem; width: 100%; }
.org__branch { display: flex; flex-direction: column; align-items: center; }
.org__leaves { list-style: none; width: 100%; margin-top: .5rem; position: relative; padding-left: 2rem; }

.org__leaves li {
  position: relative; margin-top: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .68rem 1rem; font-size: .84rem; font-weight: 550; color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
/* Acento lateral en gradiente */
.org__leaves li::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, var(--turq-500), var(--cyan-500));
  opacity: 0; transition: opacity .3s;
}
.org__leaves li:hover::after { opacity: 1; }
.org__leaves li::before {
  content: ''; position: absolute;
  left: -2rem; width: 2rem;
  top: calc(-50% - .6rem);   /* sube hasta el centro del elemento anterior */
  bottom: 50%;               /* baja hasta el centro de este */
  border-left: 2.5px solid var(--turq-500);
  border-bottom: 2.5px solid var(--turq-500);
  border-bottom-left-radius: 16px;
  opacity: .9;
}
.org__leaves li .ico { width: 16px; height: 16px; color: var(--cyan-500); transition: color .3s; }
.org__leaves li:hover { transform: translateX(5px); border-color: var(--cyan-400); box-shadow: var(--sh-sm); background: var(--mist-050); }

/* --------------------------------------------------------------------------
   19. Mapa de procesos
   -------------------------------------------------------------------------- */
.pmap { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.75rem, 2vw, 1.5rem); align-items: stretch; }
.pmap__rail {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, var(--turq-500) 0%, var(--cyan-500) 55%, var(--blue-600) 100%);
  color: #fff; border-radius: var(--r-md);
  padding: 1.1rem .3rem; width: clamp(30px, 3.2vw, 42px);
  font-family: var(--display); font-weight: 600; font-size: .64rem; line-height: 1.2;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--sh-brand);
}
.pmap__rail span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
.pmap__col { display: flex; flex-direction: column; gap: 1.1rem; }
.pmap__group { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--sh-xs); }
.pmap__title {
  background: linear-gradient(120deg, var(--cyan-500) 0%, var(--blue-600) 100%);
  color: #fff; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; padding: .7rem 1rem;
}
.pmap__body { padding: 1rem; display: grid; gap: .6rem; }
.pmap__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pmap__cell {
  background: linear-gradient(160deg, #E4F4FB 0%, #CFEAF7 100%);
  border: 1px solid #A8D8EE; border-radius: var(--r-sm);
  padding: .68rem .6rem; text-align: center;
  font-size: .78rem; font-weight: 600; color: var(--navy-700); line-height: 1.35;
  transition: background .3s, transform .3s, color .3s, border-color .3s;
}
.pmap__cell:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); border-color: transparent; }
.pmap__cell--full { grid-column: 1 / -1; }
.pmap__cell--band {
  grid-column: 1 / -1; background: rgba(53,196,181,.14); border-color: rgba(53,196,181,.4);
  color: #0B6C61; font-weight: 700; letter-spacing: .04em;
}
.pmap__cell--band:hover { background: var(--teal-400); color: #fff; }
.pmap__sublabel {
  grid-column: 1 / -1; text-align: center; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  padding-top: .15rem;
}

/* --------------------------------------------------------------------------
   20. Valores corporativos
   -------------------------------------------------------------------------- */
.value {
  position: relative; overflow: hidden; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.5rem 1.6rem;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s, border-color .45s;
}
.value::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-brand); opacity: 0;
  transition: opacity .45s;
}
.value:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: transparent; }
.value:hover::before { opacity: 1; }
.value > * { position: relative; z-index: 1; transition: color .45s; }
.value__icon {
  width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 22px;
  background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center;
  transition: background .45s, color .45s, transform .45s, border-radius .45s;
}
.value__icon .ico { width: 31px; height: 31px; stroke-width: 1.6; }
.value:hover .value__icon { background: rgba(255,255,255,.2); color: #fff; transform: scale(1.08); border-radius: 50%; }
.value h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: .5rem; }
.value p { font-size: .87rem; color: var(--ink-soft); line-height: 1.7; }
.value:hover h3, .value:hover p { color: #fff; }
.value:hover p { color: rgba(255,255,255,.85); }

/* --------------------------------------------------------------------------
   21. Franja de urgencias
   -------------------------------------------------------------------------- */
.urgent {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(125deg, #B32626 0%, var(--danger) 48%, #E05252 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.urgent::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px);
}
.urgent__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.urgent__icon {
  width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
}
.urgent__icon .ico { width: 29px; height: 29px; }
.urgent__text { display: flex; align-items: center; gap: 1.25rem; }
.urgent h2 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.15; margin-bottom: .3rem; }
.urgent p { font-size: .94rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.urgent__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.urgent__phone { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: .01em; text-decoration: none; color: #fff; }

/* --------------------------------------------------------------------------
   22. Llamado a la acción final
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(53,196,181,.2) 0%, transparent 65%);
}
.cta__inner { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   23. Pie de página
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  left: -180px; bottom: -280px;
  background: radial-gradient(circle, rgba(23,162,203,.16) 0%, transparent 68%);
}
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2.1fr 1fr 1fr 1.25fr; gap: clamp(1.75rem, 4vw, 3.25rem); }
.footer__about p { font-size: .87rem; line-height: 1.8; margin-top: 1.1rem; max-width: 34ch; }
.footer__tag {
  display: inline-block; margin-top: 1.1rem; font-family: var(--display);
  font-size: .9rem; font-weight: 600; color: var(--teal-300); letter-spacing: .03em;
}
.footer__socials { display: flex; gap: .6rem; margin-top: 1.35rem; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.75);
  display: grid; place-items: center; text-decoration: none;
  transition: background .3s, color .3s, transform .3s;
}
.footer__socials a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }
.footer__socials .ico { width: 17px; height: 17px; }
.footer h4 {
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: rgba(255,255,255,.42); margin-bottom: 1.15rem;
}
.footer__col a {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .87rem; line-height: 1.5; color: rgba(255,255,255,.62);
  text-decoration: none; padding: .32rem 0;
  transition: color .28s, transform .28s;
}
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__col a .ico { width: 15px; height: 15px; margin-top: .22em; color: var(--cyan-400); flex-shrink: 0; }
.footer__bottom {
  position: relative; z-index: 1;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; flex-wrap: wrap;
  font-size: .76rem; color: rgba(255,255,255,.36);
}
.footer__bottom a { color: inherit; text-decoration: none; transition: color .25s; }
.footer__bottom a:hover { color: var(--teal-300); }

/* --------------------------------------------------------------------------
   24. Botones flotantes
   -------------------------------------------------------------------------- */
.fab {
  position: fixed; right: 1.35rem; bottom: 1.35rem; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 28px rgba(37,211,102,.42);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: halo 2.4s ease-out infinite;
}
@keyframes halo {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab:hover { transform: scale(1.09); box-shadow: 0 14px 34px rgba(37,211,102,.55); }
.fab .ico { width: 27px; height: 27px; }

.totop {
  position: fixed; right: 1.35rem; bottom: 5.4rem; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy-800); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .32s, transform .32s, visibility .32s, background .28s, color .28s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.totop .ico { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   25. Formularios
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.05rem; }
.field label { font-size: .78rem; font-weight: 650; color: var(--navy-800); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .92rem; color: var(--ink);
  padding: .82rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-soft); outline: none; width: 100%;
  transition: border-color .28s, background .28s, box-shadow .28s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(23,162,203,.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .76rem; color: var(--ink-faint); line-height: 1.6; margin-top: .85rem; }

.form-ok {
  display: none; text-align: center; padding: 2.75rem 1.5rem;
  background: rgba(14,158,110,.07); border: 1px solid rgba(14,158,110,.25);
  border-radius: var(--r-md);
}
.form-ok.is-visible { display: block; animation: riseIn .55s cubic-bezier(.22,1,.36,1); }
.form-ok__icon { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(14,158,110,.14); color: var(--ok); display: grid; place-items: center; }
.form-ok__icon .ico { width: 28px; height: 28px; stroke-width: 2.2; }
.form-ok h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ok); margin-bottom: .4rem; }
.form-ok p { font-size: .9rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   26. Buscador y filtros (directorio)
   -------------------------------------------------------------------------- */
.finder { max-width: 660px; margin: 0 auto 1.5rem; position: relative; }
.finder input {
  width: 100%; font-family: var(--body); font-size: .95rem;
  padding: 1.05rem 1.3rem 1.05rem 3.2rem;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: #fff; color: var(--ink); outline: none;
  box-shadow: var(--sh-md); transition: border-color .28s, box-shadow .28s;
}
.finder input::placeholder { color: var(--ink-faint); }
.finder input:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(23,162,203,.13), var(--sh-md); }
.finder .ico {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--ink-faint); pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip {
  display: inline-block; text-decoration: none; line-height: 1.4;
  font-family: var(--body); font-size: .8rem; font-weight: 600;
  padding: .55rem 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: all .28s;
}
.chip:hover { border-color: var(--cyan-400); color: var(--blue-600); transform: translateY(-2px); }
.chip.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }

/* Tarjeta de profesional */
.doc {
  position: relative; overflow: hidden; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.15rem 1.6rem;
  transition: transform .42s cubic-bezier(.22,1,.36,1), box-shadow .42s, border-color .42s;
}
.doc::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0);
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
.doc:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--mist-200); }
.doc:hover::after { transform: scaleX(1); }
.doc__avatar {
  width: 88px; height: 88px; margin: 0 auto 1.15rem; border-radius: 50%;
  background: var(--grad-soft); border: 1.5px solid var(--mist-200);
  color: var(--blue-600); display: grid; place-items: center;
  font-family: var(--display); font-size: 1.55rem; font-weight: 700;
  transition: background .42s, color .42s, transform .42s;
}
.doc:hover .doc__avatar { background: var(--grad-brand); color: #fff; border-color: transparent; transform: scale(1.06); }
.doc h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 650; margin-bottom: .2rem; }
.doc__spec { font-size: .8rem; font-weight: 650; color: var(--cyan-500); margin-bottom: .7rem; letter-spacing: .02em; }
.doc p { font-size: .85rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.15rem; }

.empty { display: none; text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-soft); }
.empty.is-visible { display: block; }
.empty .ico { width: 42px; height: 42px; color: var(--mist-200); margin: 0 auto 1rem; }

/* --------------------------------------------------------------------------
   27. Descarga de portafolio
   -------------------------------------------------------------------------- */
.dl {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.dl__cover {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); background: var(--grad-deep); color: #fff;
  min-height: 330px; display: flex; align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.dl__cover::before {
  content: ''; position: absolute; right: -90px; top: -90px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,196,181,.3) 0%, transparent 68%);
}
.dl__cover::after {
  content: ''; position: absolute; left: -40%; bottom: -55%;
  width: 150%; height: 90%; border-radius: 46%;
  background: rgba(255,255,255,.055);
}
.dl__cover-inner { position: relative; z-index: 1; }
.dl__cover h3 { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.dl__cover h3 span { display: block; font-weight: 300; color: var(--teal-300); }
.dl__cover .rule { display: block; width: 68px; height: 3px; background: var(--teal-400); border-radius: 3px; margin: 1.1rem 0; }
.dl__cover p { font-size: .88rem; color: rgba(255,255,255,.7); max-width: 34ch; }
.dl__side { text-align: center; }
.dl__doc {
  width: 118px; height: 148px; margin: 0 auto 1.5rem; position: relative;
  border: 2.5px solid var(--cyan-500); border-radius: 12px; background: #fff;
  box-shadow: var(--sh-md);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.dl__side:hover .dl__doc { transform: translateY(-6px) rotate(-3deg); }
.dl__doc::before {
  content: ''; position: absolute; top: -2.5px; right: -2.5px;
  border-width: 0 30px 30px 0; border-style: solid;
  border-color: var(--mist-100) #fff;
  border-top-right-radius: 10px;
}
.dl__doc-lines { position: absolute; left: 20px; right: 20px; top: 52px; display: grid; gap: 9px; }
.dl__doc-lines span { height: 4px; border-radius: 3px; background: var(--cyan-400); }
.dl__doc-lines span:nth-child(2) { width: 72%; }
.dl__doc-lines span:nth-child(3) { width: 86%; }
.dl__doc-badge {
  position: absolute; right: -14px; bottom: -14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-brand);
}
.dl__doc-badge .ico { width: 21px; height: 21px; }

/* --------------------------------------------------------------------------
   28. Pasos numerados (citas)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: .9rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.35rem 1.4rem; position: relative; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.step:hover { transform: translateX(5px); border-color: var(--cyan-400); box-shadow: var(--sh-sm); }
.step__n {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center;
  font-family: var(--display); font-size: .88rem; font-weight: 750;
  transition: background .35s, color .35s;
}
.step__n .ico { width: 17px; height: 17px; }
.step:hover .step__n { background: var(--grad-brand); color: #fff; }
.step h3 { font-family: var(--display); font-size: .96rem; font-weight: 650; margin-bottom: .18rem; }
.step p { font-size: .83rem; color: var(--ink-soft); line-height: 1.6; }

.aside-box {
  background: var(--grad-soft); border: 1px solid var(--mist-200);
  border-radius: var(--r-md); padding: 1.4rem 1.45rem;
}
.aside-box h4 { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: .92rem; font-weight: 650; color: var(--navy-800); margin-bottom: .6rem; }
.aside-box h4 .ico { width: 18px; height: 18px; color: var(--cyan-500); }
.aside-box p { font-size: .85rem; color: var(--ink-soft); line-height: 1.75; }
.aside-box a { color: var(--blue-600); font-weight: 650; text-decoration: none; }
.aside-box a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   29. Contacto
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.35rem 1.4rem; margin-bottom: .9rem;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.info-card:hover { transform: translateY(-3px); border-color: var(--cyan-400); box-shadow: var(--sh-sm); }
.info-card__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--mist-100); color: var(--blue-600);
  display: grid; place-items: center;
}
.info-card__icon .ico { width: 20px; height: 20px; }
.info-card--urgent .info-card__icon { background: #FDECEC; color: var(--danger); }
.info-card h3 { font-family: var(--display); font-size: .95rem; font-weight: 650; margin-bottom: .22rem; }
.info-card p { font-size: .84rem; color: var(--ink-soft); line-height: 1.65; }
.info-card a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-md); background: var(--grad-soft);
  min-height: 380px; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.map-frame iframe { width: 100%; min-height: 380px; border: 0; display: block; }
.map-frame__ph { color: var(--ink-soft); font-size: .9rem; max-width: 42ch; }
.map-frame__ph .ico { width: 38px; height: 38px; color: var(--mist-200); margin: 0 auto .85rem; }

/* --------------------------------------------------------------------------
   30. Detalle de servicio (filas alternadas)
   -------------------------------------------------------------------------- */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: none; }
.svc-row--flip .svc-row__media { order: 2; }
.svc-row__img { width: 100%; height: clamp(260px, 34vw, 380px); object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.svc-row__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .69rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue-600); background: var(--mist-100);
  padding: .4rem 1rem; border-radius: var(--r-pill); margin-bottom: .95rem;
}
.svc-row__tag .ico { width: 14px; height: 14px; }
.svc-row h2 { font-family: var(--display); font-size: clamp(1.45rem, 2.8vw, 1.95rem); font-weight: 700; margin-bottom: .7rem; letter-spacing: -.02em; }
.svc-row p { color: var(--ink-soft); line-height: 1.85; font-size: .94rem; margin-bottom: 1.25rem; }
.svc-row .checklist { margin-bottom: 1.6rem; }

/* Fichas compactas de apoyo */
.mini {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.15rem; font-size: .88rem; font-weight: 600; color: var(--ink);
  transition: transform .32s, border-color .32s, background .32s, box-shadow .32s;
}
.mini:hover { transform: translateY(-3px); border-color: var(--cyan-400); background: var(--mist-050); box-shadow: var(--sh-sm); }
.mini__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--mist-100); color: var(--blue-600); display: grid; place-items: center; }
.mini__icon .ico { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   31. Animaciones de aparición
   -------------------------------------------------------------------------- */
/* Sin JavaScript el contenido se muestra siempre: las animaciones sólo se
   activan cuando <html> recibe la clase .js (ver script en línea del <head>). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--scale { transform: scale(.95); }
.js .reveal--left.is-in, .js .reveal--right.is-in, .js .reveal--scale.is-in { transform: none; }

.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.js .stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.js .stagger.is-in > *:nth-child(3) { transition-delay: .2s; }
.js .stagger.is-in > *:nth-child(4) { transition-delay: .28s; }
.js .stagger.is-in > *:nth-child(5) { transition-delay: .36s; }
.js .stagger.is-in > *:nth-child(6) { transition-delay: .44s; }
.js .stagger.is-in > *:nth-child(7) { transition-delay: .52s; }
.js .stagger.is-in > *:nth-child(8) { transition-delay: .6s; }
.js .stagger.is-in > *:nth-child(9) { transition-delay: .68s; }
.js .stagger.is-in > *:nth-child(10) { transition-delay: .76s; }

/* --------------------------------------------------------------------------
   32. Adaptación a pantallas
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .quickbar__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .topbar__group--left .topbar__item:nth-child(2) { display: none; }
  .nav__links { display: none; }
  .burger { display: block; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .dl { grid-template-columns: 1fr; }
  .split--reverse .split__media, .svc-row--flip .svc-row__media { order: 0; }
  .split__img { aspect-ratio: 16/10; }
  .split__frame { display: none; }
  .split__chip { left: 1rem; }
  .svc-row { grid-template-columns: 1fr; }
  .org__branches { grid-template-columns: 1fr; gap: 1.5rem; }
  .org__split::before { display: none; }
  .pmap { grid-template-columns: 1fr; }
  .pmap__rail { width: 100%; padding: .85rem 1rem; }
  .pmap__rail span { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .quickbar__grid, .svc-grid, .cards--2, .cards--3, .cards--4, .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 620px; }
  .hero__arrow { display: none; }
  .urgent__inner { flex-direction: column; text-align: center; align-items: center; }
  .urgent__text { flex-direction: column; text-align: center; }
  .urgent__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .pmap__row { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .totop { display: none; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 2rem; }
  .fab { right: 1rem; bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   33. Accesibilidad e impresión
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > *, .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy-800); color: #fff; padding: .85rem 1.4rem;
  border-radius: 0 0 var(--r-sm) 0; font-size: .85rem; font-weight: 650; text-decoration: none;
}
.skip:focus { left: 0; }

.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;
}

@media print {
  .topbar, .nav, .drawer, .scrim, .fab, .totop, .progress, .hero__arrow, .hero__dots, .urgent, .cta { display: none !important; }
  body { color: #000; }
  .reveal, .stagger > *, .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   34. Ronda 2 — ajustes y componentes nuevos
   ========================================================================== */

/* --------------------------------------------------------------------------
   34.1 Párrafos justificados
   Solo en bloques alineados a la izquierda: justificar texto ya centrado
   (tarjetas de valores, fichas de profesional, encabezados) lo estropea.
   -------------------------------------------------------------------------- */
.prose p,
.panel > p,
.card p,
.svc-row p,
.mv p,
.aside-box p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Lo que debe seguir centrado gana por venir después */
.centered p, .head-block p, .doc p, .form-ok p, .map-frame__ph p {
  text-align: center; hyphens: manual; -webkit-hyphens: manual;
}
/* En pantallas estrechas justificar abre "ríos" de espacio: se vuelve a la izquierda */
@media (max-width: 560px) {
  .prose p, .panel > p, .card p, .svc-row p, .mv p, .aside-box p {
    text-align: left; hyphens: manual; -webkit-hyphens: manual;
  }
}

/* --------------------------------------------------------------------------
   34.2 Hover en tarjetas de panel (Misión y Visión, Políticas, Derechos)
   -------------------------------------------------------------------------- */
.panel--accent {
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s,
              border-color .4s, background-size .4s;
}
.panel--accent:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
  background-size: 100% 7px;
}

/* --------------------------------------------------------------------------
   34.3 Trazos decorativos entre secciones
   -------------------------------------------------------------------------- */
.orn { display: flex; align-items: center; gap: 1.1rem; margin: clamp(2.25rem, 4vw, 3.25rem) 0; }
.orn__line {
  flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--mist-200) 18%, var(--turq-400) 50%, var(--mist-200) 82%, transparent);
}
.orn__mark {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand);
}
.orn__mark .ico { width: 18px; height: 18px; }
.orn__label {
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-600);
  white-space: nowrap;
}

/* Separador en gradiente entre filas de servicio */
.svc-row { border-bottom: none; }
.svc-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mist-200) 12%, var(--turq-400) 50%, var(--mist-200) 88%, transparent);
  opacity: .8;
}
.svc-row:last-child::after { display: none; }

/* --------------------------------------------------------------------------
   34.4 Franja de migas + subnavegación (reemplaza el banner en ¿Quiénes Somos?)
   -------------------------------------------------------------------------- */
.crumbbar {
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0 1.2rem;
}
.crumbbar__inner { display: flex; flex-direction: column; align-items: center; gap: .95rem; }
.crumbbar .crumbs { margin-bottom: 0; }
.crumbs--light { color: var(--ink-faint); justify-content: center; }
.crumbs--light a { color: var(--ink-soft); }
.crumbs--light a:hover { color: var(--blue-600); }
.crumbs--light .ico { opacity: .45; }
.chips--sub { justify-content: center; }

/* --------------------------------------------------------------------------
   34.5 Misión y Visión — tratamiento destacado
   -------------------------------------------------------------------------- */
.mv {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.9rem, 3.6vw, 2.9rem);
  box-shadow: var(--sh-sm);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s, border-color .45s;
}
/* Franja de acento y lavado como capas de fondo: así respetan siempre el
   border-radius, sin depender del recorte por overflow (ver panel--accent). */
.mv {
  background-color: #fff;
  background-image: var(--grad-brand),
                    linear-gradient(158deg, rgba(15,208,182,.13) 0%, rgba(23,162,203,.05) 52%, transparent 78%);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 4px, 100% 100%;
  background-position: 0 0, 0 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s,
              border-color .45s, background-size .45s;
}
.mv:hover { background-size: 100% 7px, 100% 100%; }
.mv:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: transparent; }
.mv > * { position: relative; z-index: 1; }
.mv__watermark { position: absolute; right: -26px; bottom: -34px; color: var(--turq-500); opacity: .11; }
.mv__watermark .ico { width: 190px; height: 190px; stroke-width: 1; }
.mv__title {
  font-family: var(--display); font-weight: 700; color: var(--navy-800);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: .85rem;
}
.mv p { color: var(--ink-soft); line-height: 1.85; font-size: .95rem; }
.mv__year {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem); line-height: .9; letter-spacing: -.045em;
  background: linear-gradient(120deg, var(--turq-500), var(--cyan-500) 55%, var(--blue-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .5rem 0 .3rem;
}

/* --------------------------------------------------------------------------
   34.6 Utilidades varias
   -------------------------------------------------------------------------- */
.accent { font-style: normal; font-weight: 700; color: var(--turq-300); }

.checklist--2col { grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; }
@media (max-width: 720px) { .checklist--2col { grid-template-columns: 1fr; } }

.nav__sub--wide { min-width: 306px; }

/* Rieles del mapa de procesos con forma de banda, como en el documento */
.pmap__rail--in  { clip-path: polygon(0 0, 100% 7%, 100% 93%, 0 100%); }
.pmap__rail--out { clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 93%); }
@media (max-width: 960px) {
  .pmap__rail--in, .pmap__rail--out { clip-path: none; }
}

/* Puente curvo del nodo de dirección al riel de las hojas.
   Sin esto el conector del nodo queda colgando y no llega al riel. */
.org__leaves { margin-top: 1.7rem; }
.org__leaves::before {
  content: ''; position: absolute;
  left: 0; top: -1.7rem; width: 50%; height: 1.7rem;
  border-left: 2.5px solid var(--turq-500);
  border-top: 2.5px solid var(--turq-500);
  border-top-left-radius: 16px;
  opacity: .9;
}

/* En móvil las entradas laterales desplazan 32px en horizontal y pueden provocar
   un salto durante la animación: allí se entra solo en vertical. */
@media (max-width: 720px) {
  .js .reveal--left, .js .reveal--right { transform: translateY(24px); }
}

/* Botón flotante de llamada (mientras no haya WhatsApp) */
.fab--call { background: var(--grad-brand); box-shadow: var(--sh-brand); }
.fab--call::after { border-color: var(--cyan-500); }
.fab--call:hover { box-shadow: 0 14px 34px rgba(23,162,203,.55); }

/* <picture> no debe romper el posicionamiento de las imágenes absolutas
   (.hero__img, .svc__img viven dentro de un contenedor con position:relative). */
picture { display: contents; }

/* Aviso de error de envío del formulario */
.form-error {
  margin-top: .9rem; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: rgba(210,58,58,.08); border: 1px solid rgba(210,58,58,.3);
  color: var(--danger-dark); font-size: .84rem; line-height: 1.5;
}

/* Mapa incrustado */
.map-frame iframe { width: 100%; min-height: 420px; border: 0; display: block; }

/* Logotipo real (SVG) en la barra y el pie */
.brand__logo {
  width: 46px; height: 46px; display: block; flex-shrink: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }

/* Logotipo oficial completo (marca + nombre), vectorizado */
.brand__lockup {
  height: 52px; width: auto; display: block; flex-shrink: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.brand:hover .brand__lockup { transform: scale(1.03); }
.footer .brand__lockup { height: 54px; }
@media (max-width: 420px) { .nav .brand__lockup { height: 40px; } }

/* Diapositiva de la fachada: mostrar la parte alta para que el letrero se lea */
.hero__img--top {
  /* Un poco por debajo del borde superior: se lee el letrero y el equipo se ve
     de cuerpo entero, no sólo las cabezas. */
  object-position: center 14%;
  transform-origin: 50% 14%;
}

/* Diapositiva de recepción: la foto es casi cuadrada, así que el héroe se
   queda con una franja horizontal. Se encuadra para que entren el letrero de
   cristal y el mostrador. */
.hero__img--recepcion { object-position: center 18%; transform-origin: 50% 18%; }

/* Valores y principios: párrafos justificados (la última línea centrada,
   porque la tarjeta es centrada) */
.value p { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 560px) { .value p { text-align: left; } }

/* Cajas que se llenan del degradado de marca al pasar el cursor (Políticas,
   Derechos y Deberes, servicios de apoyo). TODO el contenido pasa a blanco:
   títulos, párrafos, listas, negritas y enlaces; si no, quedan textos oscuros
   sobre el fondo azul. (.is-hover permite probarlo sin ratón.) */
.panel.hover-fill:is(:hover, .is-hover) { background-size: 100% 100%; }
.card.hover-fill { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .4s, background .4s; }
.card.hover-fill:is(:hover, .is-hover) { background: var(--grad-brand); border-color: transparent; }
.hover-fill, .hover-fill * { transition: color .35s, background-color .35s, border-color .35s; }
.hover-fill:is(:hover, .is-hover),
.hover-fill:is(:hover, .is-hover) :is(h1, h2, h3, h4, p, li, a, strong, em, span, .arrow-link, .panel__sub) { color: #fff !important; }
.hover-fill:is(:hover, .is-hover) .checklist li::before { background-color: rgba(255,255,255,.22); filter: brightness(0) invert(1); }
.hover-fill:is(:hover, .is-hover) .panel__sub { border-color: rgba(255,255,255,.3); }
.hover-fill:is(:hover, .is-hover) .panel__tag { background: #fff; color: var(--blue-600) !important; }
.hover-fill:is(:hover, .is-hover) .panel__tag * { color: var(--blue-600) !important; }
.hover-fill:is(:hover, .is-hover) .btn--outline { border-color: rgba(255,255,255,.6); background: transparent; }
.card.hover-fill:is(:hover, .is-hover) .card__icon { background: rgba(255,255,255,.2); color: #fff; }
.card.hover-fill:is(:hover, .is-hover) .card__glow { opacity: 0; }

/* Hospitalización: la foto es vertical; en la caja horizontal se encuadra la cama */
.svc-row__img--bajo { object-position: center 68%; }

/* Directorio: botones alineados al pie de cada tarjeta aunque los perfiles
   tengan distinta longitud */
.doc { display: flex; flex-direction: column; align-items: center; }
.doc p { flex: 1; }

/* Subtítulo dentro de un panel (p. ej. procedimientos de cirugía ortopédica) */
.panel__sub {
  font-family: var(--display); font-weight: 650; font-size: .82rem !important;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600) !important;
  margin: 1.9rem 0 .5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
