/* Portal ClinicaVida Perú — laboratorio académico.
   Layout tipo plantilla premium de clínica (Medzoon): paleta navy/azul,
   tipografía Poppins autoalojada, botones píldora, tarjetas redondeadas
   con sombra azul suave, curvas elípticas en bandas navy. */

:root {
  --navy: #012571;
  --navy-deep: #001a52;
  --blue: #027efc;
  --blue-dark: #0a63d0;   /* superficies con texto blanco (AA) */
  --blue-hover: #0958b8;
  --blue-bright: #4da3ff; /* acentos claros sobre navy */
  --blue-soft: #7cc0ff;   /* números grandes sobre navy */
  --blue-text: #1f6fe0;   /* 2ª línea de titulares (texto grande) */
  --bg: #e1eeff;
  --card: #ffffff;
  --ink: #0b1b4a;
  --muted: #5a6a8f;
  --border: #d7e3f7;
  --danger: #b3261e;
  --warning: #8a5a00;
  --success: #1b6e3f;
  --info: #1f5fa8;
  --radius-lg: 26px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 10px 30px rgba(2, 126, 252, 0.10);
  --shadow-lift: 0 20px 42px rgba(2, 126, 252, 0.18);
  --shadow-navy: 0 24px 48px rgba(1, 37, 113, 0.22);
  --font: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Curva de easing tipo Apple (ease-out expo): arranca rápido y frena muy
     suave, sin el "parón" brusco de "ease" estándar. Se usa en botones,
     tarjetas y el reveal de scroll para que todo se sienta más pulido. */
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body.portal-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

img { max-width: 100%; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.012em; }

a { color: var(--blue-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
.nav-bar :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Animación de entrada (solo con JS; sin JS todo visible) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .reveal:nth-child(6) { transition-delay: 0.30s; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .btn:hover,
  .dep-card:hover,
  .location-card:hover,
  .team-card:hover,
  .news-card:hover,
  .news-item:hover,
  .doc-card:hover,
  .portal-card:hover { transform: none; }
}

/* ---- Botones (estilo tipo Apple: píldora, plano, sombra discreta,
   leve "presión" al hacer clic en vez de un salto exagerado) ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.002em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.25s var(--ease-apple), color 0.25s var(--ease-apple),
    border-color 0.25s var(--ease-apple), transform 0.22s var(--ease-apple),
    box-shadow 0.3s var(--ease-apple);
}
.btn:active { transform: scale(0.965); transition-duration: 0.1s; }
.btn--primary { background: var(--blue-dark); color: #fff; }
.btn--primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 126, 252, 0.22);
}
.btn--secondary {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn--secondary:hover { background: rgba(2, 126, 252, 0.10); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--bright { background: var(--blue-bright); color: var(--navy-deep); }
.btn--bright:hover { background: #6cb2ff; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(77, 163, 255, 0.28); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--bg); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(1, 37, 113, 0.14); }
.btn--danger {
  background: #fff;
  color: var(--danger);
  border-color: #f0c6c2;
}
.btn--danger:hover { background: #fdeceb; }
.btn--sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 0.8rem 1.7rem; font-size: 1rem; }

/* ---- Top bar ---- */
.topbar { background: var(--bg); padding: 0.9rem 0; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__logo { flex-shrink: 0; display: block; }
.brand__word {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__word span { color: var(--blue-text); }
.topbar__contacts { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.topbar__contact { display: flex; align-items: center; gap: 0.7rem; }
.topbar__ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.topbar__ico img { width: 18px; height: 18px; }
.topbar__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.topbar__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.topbar__value:hover { color: var(--blue-dark); }

/* ---- Barra de navegación azul (solapa el hero) ---- */
.nav-wrap { position: relative; z-index: 20; }
.nav-bar {
  position: relative;
  background: var(--blue-dark);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 26px rgba(2, 126, 252, 0.28);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle__ico { display: inline-flex; }
.nav-bar__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-bar__link {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-bar__link:hover, .nav-bar__link:focus { background: rgba(255, 255, 255, 0.16); }
.nav-bar__link--active,
.nav-bar__link--active:hover,
.nav-bar__link--active:focus {
  background: #fff;
  color: var(--blue-dark);
  font-weight: 600;
}
.nav-bar__extra { display: flex; align-items: center; gap: 0.45rem; }

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0 0.9rem;
}
html.js #site-search {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(1, 37, 113, 0.22);
  padding: 0.85rem 0.95rem;
  z-index: 30;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease-apple), transform 0.22s var(--ease-apple);
}
html.js #site-search.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1.4px solid rgba(1, 37, 113, 0.18);
  font: inherit;
  color: var(--navy);
}
.site-search input[type="search"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.site-search--page { max-width: 460px; }
.nav-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s var(--ease-apple), border-color 0.18s var(--ease-apple);
}
.nav-circle:hover, .nav-circle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
}

/* ---- Hero navy con curva inferior ---- */
.hero {
  position: relative;
  background: var(--navy);
  margin-top: -34px;
  padding: 96px 0 130px;
  border-radius: 0 0 50% 50% / 0 0 74px 74px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2.5rem;
  align-items: end;
}
.hero__ghost {
  position: absolute;
  right: 1%;
  bottom: -1.2rem;
  font-size: clamp(3.2rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero__figure { position: relative; height: 470px; }
.hero__halo {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 440px;
  height: 440px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 126, 252, 0.50) 0%, rgba(2, 126, 252, 0.18) 58%, transparent 72%);
  animation: float-soft 6s ease-in-out infinite;
  pointer-events: none;
}
/* Sombra de base: ancla el recorte al piso del hero en vez de dejarlo
   "flotando" sobre el fondo navy. */
.hero__figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 62%;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(2px);
  z-index: 0;
}
.hero__figure img {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  height: 97%;
  width: auto;
  max-width: 108%;
  object-fit: contain;
  z-index: 1;
  /* Degradado suave en el borde inferior: el recorte se funde con el
     fondo navy en vez de terminar en un corte duro ("flotando"). */
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
.hero__copy { position: relative; z-index: 1; padding-bottom: 0.5rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  background: rgba(2, 126, 252, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e4f0ff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__badge .heart { color: var(--blue-bright); }
.hero__title {
  margin: 1.1rem 0 0.9rem;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.9rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero__title-accent { color: var(--blue-bright); }
.hero__text { margin: 0 0 1.6rem; color: #c9d9f7; line-height: 1.65; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Panel azul que solapa el borde inferior del hero */
.hero-panel {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 2.5rem));
  margin: -78px auto 0;
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-navy);
  padding: 1.5rem 1.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}
.hero-panel__feature { display: flex; align-items: center; gap: 1rem; }
.hero-panel__ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-panel__ico img { width: 26px; height: 26px; }
.hero-panel__feature h3 { margin: 0 0 0.2rem; font-size: 1.02rem; font-weight: 700; color: #fff; }
.hero-panel__feature p { margin: 0; font-size: 0.86rem; color: #d7e6ff; }

/* ---- Secciones comunes ---- */
.section { padding: 4.2rem 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 2.4rem;
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.eyebrow-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 0.7rem;
}
.eyebrow-tag .heart { color: var(--blue); margin-right: 0.3rem; }
.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 1.4vw + 1.1rem, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-title-accent { color: var(--blue-text); }
.section-aside { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.section-aside .btn { margin-top: 0.9rem; }

/* ---- Departamentos ---- */
.dep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.dep-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 55%, #e8f3ff);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.dep-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.dep-card__num {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(2, 126, 252, 0.14);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dep-card__icon { display: block; width: 64px; height: 64px; margin-bottom: 1rem; }
.dep-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; }
.dep-card p { margin: 0 0 0.9rem; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.dep-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--blue-dark);
}
.dep-card__link:hover, .dep-card__link:focus { text-decoration: underline; }

/* ---- Nosotros: tour + horario ---- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
}
.tour-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.tour-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-img--tall { aspect-ratio: 3 / 4; }
.tour-img--wide {
  aspect-ratio: 16 / 10;
  position: relative;
  z-index: 2;
  border: 4px solid var(--bg);
}
.tour-img__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.about-text p { color: var(--muted); line-height: 1.7; margin: 0 0 0.5rem; font-size: 0.95rem; }
.about-checklist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.about-checklist li {
  position: relative;
  padding-left: 2.3rem;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.about-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(2, 126, 252, 0.14);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.about-side { display: grid; gap: 0; }
.horario-card {
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 1.5rem 1.5rem calc(1.25rem + 38px);
  box-shadow: var(--shadow-soft);
}
.horario-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}
.horario-card__title img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.horario-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.30);
  font-size: 0.9rem;
  color: #dcebff;
}
.horario-card__row strong { color: #fff; font-weight: 600; }
.horario-card__foot { margin: 0.8rem 0 0; font-size: 0.9rem; font-weight: 700; color: #fff; }
.about-side .tour-img--wide { margin-top: -38px; }

/* ---- Barra de estadísticas ---- */
.stats-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-navy);
}
.stats-people { display: flex; align-items: center; gap: 1.1rem; }
.stats-avatars { display: flex; }
.stats-avatars img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  margin-left: -14px;
  display: block;
}
.stats-avatars img:first-child { margin-left: 0; }
.stats-people h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 150px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat { text-align: center; }
.stat__icon { width: 30px; height: 30px; margin-bottom: 0.3rem; }
.stat__label { display: block; font-size: 0.8rem; color: #c9d9f7; margin-bottom: 0.15rem; }
.stat__number {
  display: block;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--blue-soft);
  font-variant-numeric: tabular-nums;
}

/* ---- Equipo ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.team-card__photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #eaf3ff;
  margin: 0 auto 1rem;
  display: block;
}
.team-card__name { margin: 0 0 0.2rem; font-size: 1.08rem; font-weight: 700; }
.team-card__role { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
.team-card__social { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.1rem; }
.team-card__social .social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.4px solid rgba(11, 27, 74, 0.18);
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-cta {
  margin-top: 1.8rem;
  background: var(--navy);
  border-radius: 999px;
  padding: 0.85rem 0.9rem 0.85rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-navy);
}
.team-cta p { margin: 0; color: #fff; font-weight: 600; font-size: 1rem; }

/* ---- Proceso ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; text-align: center; padding-top: 0.4rem; }
.step__circle-wrap { position: relative; display: inline-block; }
.step__circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #e8f3ff);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step__circle img { width: 42px; height: 42px; }
.step__num {
  position: absolute;
  top: -7px;
  right: -9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(2, 126, 252, 0.35);
}
.step h3 { margin: 1rem 0 0.25rem; font-size: 0.98rem; font-weight: 700; }
.step p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  left: calc(50% + 62px);
  width: calc(100% - 124px);
  border-top: 2px dashed rgba(10, 99, 208, 0.45);
}

/* ---- Banda navy "Cuidando de ti" + tarjeta de cita ---- */
.cta-band {
  position: relative;
  background: var(--navy);
  padding: 4.6rem 0 8.2rem;
  margin-top: 2rem;
  border-radius: 0 0 50% 50% / 0 0 70px 70px;
  overflow: visible;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band__title {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
}
.cta-band__title-accent { color: var(--blue-bright); }
.cta-band__text-p { margin: 0 0 1.5rem; color: #c9d9f7; line-height: 1.65; max-width: 50ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-figure { position: relative; height: 100%; min-height: 300px; }
.cta-figure img {
  position: absolute;
  right: 0;
  bottom: -4.6rem;
  height: 118%;
  max-width: 92%;
  object-fit: contain;
  animation: float-soft 7s ease-in-out infinite;
}
.appointment-card {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 2.5rem));
  margin: -86px auto 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy);
  padding: 2.1rem 2.2rem;
}
.appointment-card__title { margin: 0 0 1.4rem; font-size: 1.45rem; font-weight: 800; }
.appointment-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem; }
.appointment-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.appointment-form input,
.appointment-form select {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
}
.appointment-form input:focus,
.appointment-form select:focus {
  border-color: var(--blue-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 126, 252, 0.18);
}
.appointment-form__footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}
.appointment-form__note { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ---- Testimonios ---- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testi-card {
  background: linear-gradient(135deg, #eaf4ff, #d7ebff);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.testi-card__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.testi-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid #fff;
  flex-shrink: 0;
}
.testi-card__stars { display: flex; gap: 0.15rem; color: #ffb400; }
.testi-card__text { margin: 0 0 1rem; color: var(--ink); line-height: 1.7; font-size: 0.95rem; }
.testi-card__who { margin: 0; font-size: 0.9rem; }
.testi-card__who strong { font-weight: 700; }
.testi-card__who span { color: var(--muted); }
.testi-more { text-align: center; margin-top: 2rem; }

/* ---- Noticias (landing) ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.news-card__img-wrap { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.news-card__tag {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 126, 252, 0.12);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-card__body h3 { margin: 0.7rem 0 0.35rem; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.news-card__date { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.8rem; }
.news-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--blue-dark);
}
.news-card__link:hover, .news-card__link:focus { text-decoration: underline; }

/* ---- Footer ---- */
.footer-strip { background: var(--blue-dark); padding: 1.1rem 0; }
.footer-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-strip__ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-strip__text { margin: 0; color: #fff; font-weight: 600; font-size: 1.02rem; }
.footer-main { background: var(--navy); color: #c3d2f3; padding: 3rem 0 1.5rem; }
.footer-main__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}
.footer-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.2rem;
  color: var(--ink);
  align-self: start;
}
.footer-card__title { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 700; }
.footer-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-card__row strong { color: var(--ink); font-weight: 600; }
.footer-card__foot { margin: 0.75rem 0 0; font-size: 0.9rem; font-weight: 700; color: var(--blue-dark); }
.footer-col__title { margin: 0 0 0.9rem; font-size: 0.98rem; font-weight: 700; color: #fff; }
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.footer-col__list a { color: #c3d2f3; text-decoration: none; }
.footer-col__list a:hover, .footer-col__list a:focus { color: #fff; text-decoration: underline; }
.footer-col__list--data li { color: #c3d2f3; }
.footer-brand-row { padding-bottom: 1.6rem; }
.brand--footer .brand__word { color: #fff; }
.brand--footer .brand__word span { color: var(--blue-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9fb2dd;
}
.footer-bottom p { margin: 0; }

/* ---- Páginas internas: banner de título ---- */
.page-hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: -34px auto 0;
  background: var(--navy);
  border-radius: var(--radius-md) var(--radius-md) 110px 110px / var(--radius-md) var(--radius-md) 62px 62px;
  padding: 3.2rem 2.2rem 3.4rem;
  color: #fff;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
  padding: 0;
}
.page-hero .breadcrumb a { color: #c3d2f3; text-decoration: none; }
.page-hero .breadcrumb a:hover, .page-hero .breadcrumb a:focus { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb .current { color: #9fb2dd; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 1.5vw + 1.2rem, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.page-hero__lead { margin: 0.8rem 0 0; color: #c9d9f7; font-size: 0.98rem; line-height: 1.6; max-width: 62ch; }
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.page-hero__stats .stat__label { color: #c9d9f7; }
.page-hero__stats .stat__number { font-size: 1.55rem; color: var(--blue-soft); }
.page-hero__stats .stat { text-align: left; }
.page-hero__stats .stat__icon { margin-bottom: 0.15rem; }

.page-section { max-width: 1180px; margin: 0 auto; padding: 2.8rem 1.25rem 4rem; }
.page-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1.3rem;
}
.page-note { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.search-results { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.search-results__item {
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(1, 37, 113, 0.12);
  border-radius: 16px;
  background: #fff;
}
.search-results__item h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.search-results__item h2 a { color: var(--navy); text-decoration: none; }
.search-results__item h2 a:hover { color: var(--blue); text-decoration: underline; }
.search-results__item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Sedes */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.location-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.location-card__num {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 126, 252, 0.14);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.location-card__tag {
  justify-self: start;
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 126, 252, 0.12);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.location-card h3 { margin: 0.35rem 0 0; font-size: 1.15rem; font-weight: 700; }
.location-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.location-card a { font-size: 0.85rem; font-weight: 600; }

/* Equipo */
.team-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.team-member {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.team-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.team-member__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.team-member__body { min-width: 0; }
.team-member__name { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 700; }
.team-member__role { margin: 0 0 0.3rem; font-size: 0.86rem; color: var(--muted); }
.team-member__email { font-size: 0.84rem; word-break: break-all; }
.team-member__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

/* Noticias (página) */
.news-list { display: grid; gap: 1.2rem; }
.news-item {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.7rem;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.news-item__meta { font-size: 0.8rem; font-weight: 600; color: var(--blue-dark); margin: 0 0 0.35rem; }
.news-item h3 { margin: 0 0 0.5rem; font-size: 1.12rem; font-weight: 700; }
.news-item p { margin: 0 0 0.5rem; color: var(--muted); line-height: 1.6; font-size: 0.93rem; }
.news-item__area { font-size: 0.8rem; color: var(--muted); }

/* Documentos */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.doc-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.doc-card__format { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); }
.doc-card h3 { margin: 0; font-size: 1.06rem; font-weight: 700; }
.doc-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.doc-card__meta { font-size: 0.8rem; color: var(--muted); }
.doc-card .btn { justify-self: start; margin-top: 0.4rem; }

/* Convocatoria / colaboradores */
.job-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.8rem; align-items: start; }
.job-main {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem;
}
.job-main h2 { margin: 0 0 0.9rem; }
.job-main h3 { margin: 1.3rem 0 0.6rem; font-size: 1.05rem; font-weight: 700; }
.job-main p { color: var(--muted); line-height: 1.65; margin: 0 0 0.6rem; font-size: 0.94rem; }
.job-requirements { margin: 0.75rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.job-sidebar {
  background: linear-gradient(180deg, #ffffff, #e8f3ff);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.job-sidebar h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.job-sidebar p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.job-sidebar .team-member { box-shadow: none; background: transparent; padding: 0; }
.job-sidebar .team-member:hover { transform: none; }

.table-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem;
  overflow-x: auto;
}
.directory-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.directory-table th, .directory-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
.directory-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.directory-table tr:last-child td { border-bottom: none; }

/* ---- Tarjetas de panel / error (panel, 403, login_error) ---- */
.portal-main > .portal-card { margin-top: 2.4rem; }
.portal-card {
  max-width: 720px;
  margin: 2.4rem auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy);
  overflow: hidden;
}
.portal-card__header { padding: 1.7rem 1.8rem 1.1rem; border-bottom: 1px solid var(--border); }
.portal-card__status { margin-bottom: 0.6rem; }
.portal-card__description { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.94rem; }
.portal-card__body { padding: 1.6rem 1.8rem; display: grid; gap: 1.3rem; }
.portal-card__actions {
  padding: 1.3rem 1.8rem 1.7rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: #fbfdff;
}

/* ---- Badges (panel/errores) ---- */
.portal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.portal-badge--info { background: #e8f3ff; color: var(--info); }
.portal-badge--success { background: #e3f3e9; color: var(--success); }
.portal-badge--danger { background: #fbe8e6; color: var(--danger); }
.portal-badge--warning { background: #fbf1df; color: var(--warning); }
.portal-badge--role { background: var(--blue-dark); color: #fff; font-weight: 700; }

/* ---- Alertas / avisos (login_error, 403) ---- */
.alert {
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--border);
}
.alert__title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; }
.alert__message { margin: 0; line-height: 1.6; font-size: 0.93rem; }
.alert--error { background: #fdeceb; border-color: #f3c7c3; }
.alert--warning { background: #fdf4e3; border-color: #f0dba6; }
.portal-info-box { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--border); background: #eef5ff; }
.portal-info-box__text { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.portal-security-notice {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #f2f6ff;
  border: 1.5px dashed var(--border);
}
.portal-security-notice__text { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* Perfil de usuario (panel) */
.user-profile__heading { margin: 0 0 0.8rem; font-size: 1.05rem; font-weight: 700; }
.user-profile__list { margin: 0; display: grid; gap: 0.6rem; }
.user-profile__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.user-profile__label { color: var(--muted); font-size: 0.88rem; }
.user-profile__value { font-size: 1rem; }
.user-profile__username { font-size: 1.05rem; font-weight: 700; }
.portal-panel-modules__title { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.portal-panel-modules__list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.92rem; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-bar__list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-radius: var(--radius-sm);
    padding: 0.7rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    box-shadow: var(--shadow-navy);
    z-index: 30;
  }
  .nav-bar.is-open .nav-bar__list { display: flex; }
  .nav-bar__list .nav-bar__link { display: block; padding: 0.6rem 0.9rem; font-size: 0.95rem; }
  .topbar__contacts { display: none; }
  .dep-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .tour-img--tall { max-width: 460px; }
  .about-side { max-width: 460px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.2rem; }
  .step:not(:last-child)::after { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .team-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-figure { min-height: 240px; }
}

@media (max-width: 760px) {
  .hero { padding: 84px 0 118px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { height: 300px; order: 2; }
  .hero__halo { width: 260px; height: 260px; }
  .hero-panel { grid-template-columns: 1fr; margin-top: -64px; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .testi-grid { grid-template-columns: 1fr; }
  .appointment-form { grid-template-columns: 1fr; }
  .appointment-form__footer { flex-direction: column; align-items: stretch; text-align: center; }
  .appointment-form__footer .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 2.7rem 1.5rem 2.9rem; }
  .page-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .job-layout { grid-template-columns: 1fr; }
  .footer-main__grid { grid-template-columns: 1fr; }
  .cta-figure { display: none; }
  .cta-band { padding-bottom: 7.5rem; }
}

@media (max-width: 560px) {
  .dep-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .nav-bar__extra .nav-circle { width: 30px; height: 30px; }
  .hero__ghost { font-size: 2.6rem; }
  .team-cta { padding-left: 1.2rem; }
  .portal-card__header,
  .portal-card__body,
  .portal-card__actions { padding-left: 1.2rem; padding-right: 1.2rem; }
  .portal-card__actions { flex-direction: column; }
  .portal-card__actions .btn { width: 100%; text-align: center; }
  .user-profile__item { flex-direction: column; }
  .appointment-card { padding: 1.6rem 1.3rem; }
}

/* ---- Panel autenticado (lenguaje "healthy-medical" app kit) ---- */
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }
.dash {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 2.2rem auto 3.5rem;
  display: grid;
  gap: 1.4rem;
}
.dash-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.dash-tile {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.6rem 1rem;
  background: #fff;
  border-radius: var(--radius-md, 22px);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(1, 37, 113, 0.08));
  text-decoration: none;
  text-align: center;
  color: var(--ink, #0b1b4a);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-tile:hover, .dash-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(1, 37, 113, 0.16); }
.dash-tile__ico {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue, #027efc);
}
.dash-tile__ico img { filter: brightness(0) invert(1); }
.dash-tile--coral .dash-tile__ico { background: #ff6b6b; }
.dash-tile__title { font-weight: 700; font-size: 1.05rem; }
.dash-tile__sub { font-size: 0.86rem; color: var(--muted, #5a6a8f); }
.dash-card {
  background: #fff;
  border-radius: var(--radius-md, 22px);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(1, 37, 113, 0.08));
  padding: 1.6rem 1.8rem;
}
.dash-card__title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: var(--ink, #0b1b4a); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-row { display: flex; gap: 1rem; align-items: center; padding: 0.95rem 0; border-top: 1px solid #e6eefb; }
.dash-row:first-child { border-top: 0; padding-top: 0; }
.dash-row__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: #fff0f0;
}
.dash-row:nth-child(even) .dash-row__ico { background: #e6f1ff; }
.dash-row__body { display: grid; gap: 0.15rem; }
.dash-row__title { font-weight: 600; color: var(--ink, #0b1b4a); }
.dash-row__sub { font-size: 0.88rem; color: var(--muted, #5a6a8f); line-height: 1.5; }
.dash-meta { margin: 0; display: grid; gap: 0; }
.dash-meta > div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 0; border-top: 1px solid #e6eefb; }
.dash-meta > div:first-child { border-top: 0; padding-top: 0; }
.dash-meta dt { color: var(--muted, #5a6a8f); font-size: 0.9rem; }
.dash-meta dd { margin: 0; text-align: right; }
@media (max-width: 560px) {
  .dash-tiles { grid-template-columns: 1fr; }
  .dash-meta dd { text-align: left; }
}
