/**
 * Marca HGV — azules oficiales (footer / identidad).
 * Muestreados del arte de marca: primario #0D3D7B · profundo #0F3158
 */
/* Honeypot anti-bot (formularios auth) */
.hgv-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

:root {
  --hgv-blue: #0D3D7B;
  --hgv-blue-deep: #0F3158;
  --hgv-blue-dark: #0A2442;
  --hgv-blue-mid: #1A4F96;
  --hgv-blue-soft: #D6E4F5;
  --hgv-blue-mist: #E8EFF8;
  --hgv-foam: #F4F7FB;
  --hgv-sand: #C9B896;

  /* Alias legacy (lake / crud-teal) → misma marca */
  --lake-deep: var(--hgv-blue-deep);
  --lake-mid: var(--hgv-blue);
  --lake-mist: var(--hgv-blue-mist);
  --lake-foam: var(--hgv-foam);
  --lake-sand: var(--hgv-sand);

  --crud-teal: var(--hgv-blue);
  --crud-teal-deep: var(--hgv-blue-deep);
  --crud-sage: var(--hgv-blue-soft);
  --crud-header: var(--hgv-blue-soft);
  --crud-border: #e2e8f0;
  --crud-muted: #64748b;
  --crud-bg: var(--hgv-foam);
}

/* Utilidades mínimas para pantallas Tailwind sin reconfigurar todo */
.hgv-nav {
  background: var(--hgv-blue) !important;
}
.hgv-nav-deep {
  background: var(--hgv-blue-deep) !important;
}
.hgv-btn-primary {
  background: var(--hgv-blue) !important;
  color: #fff !important;
}
.hgv-btn-primary:hover {
  background: var(--hgv-blue-deep) !important;
}

/* —— Shell residente (móvil primero) —— */
body.res-page {
  background: var(--hgv-foam);
  color: #1e293b;
  margin: 0;
  min-height: 100vh;
  padding-bottom: 5.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.res-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, var(--hgv-blue) 0%, var(--hgv-blue-deep) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
}

.res-topbar-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.res-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.res-brand img {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: min(11.5rem, 52vw);
  object-fit: contain;
  object-position: left center;
}

.res-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.res-topbar-sub {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.res-unidad {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.res-unidad-label,
.res-inm-label {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
}

.res-unidad-name {
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.res-topbar-inm {
  min-width: 0;
  width: 100%;
}

.res-inm-form,
.res-inm-fija {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.res-inm-chip {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.45rem;
  padding: 0.35rem 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.res-inm-combo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.res-inm-combo-q {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 14%);
  color: #fff;
  border-radius: 0.45rem;
  padding: 0.4rem 2.1rem 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  box-sizing: border-box;
  appearance: none;
}

.res-inm-combo-q::-webkit-search-decoration,
.res-inm-combo-q::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.res-inm-combo-q::placeholder {
  color: rgb(255 255 255 / 55%);
}

.res-inm-combo-q:focus {
  outline: none;
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 20%);
}

.res-inm-combo-caret {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.res-inm-combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 40;
  max-height: 14rem;
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgb(10 36 66 / 22%);
  padding: 0.25rem 0;
}

.res-inm-combo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--hgv-blue-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
}

.res-inm-combo-item:hover,
.res-inm-combo-item.is-hi {
  background: var(--hgv-blue-mist);
}

.res-inm-combo-item.is-active {
  font-weight: 700;
}

.res-inm-combo-empty {
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  color: #64748b;
}

.res-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.res-topbar-meta {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  max-width: 11rem;
}

.res-topbar-meta strong {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.res-topbar-meta span {
  font-size: 0.65rem;
  opacity: 0.75;
}

@media (min-width: 480px) {
  .res-brand img {
    height: 2.35rem;
    max-width: 14rem;
  }
}

@media (min-width: 640px) {
  .res-topbar-meta { display: flex; }

  .res-topbar-sub {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .res-unidad {
    flex: 1 1 45%;
  }

  .res-topbar-inm {
    flex: 1 1 55%;
    width: auto;
  }
}

.res-logout {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  background: rgb(0 0 0 / 18%);
  flex-shrink: 0;
}

.res-logout:hover { background: rgb(0 0 0 / 28%); }

.res-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.15rem 1rem 1.5rem;
}

.res-bottom {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgb(15 49 88 / 6%);
}

.res-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.65rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
}

.res-bottom-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.res-bottom-link.is-active {
  color: var(--hgv-blue);
  background: var(--hgv-blue-mist);
}

.res-bottom-cta .res-bottom-plus {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--hgv-blue);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.05rem;
}

.res-bottom-cta.is-active .res-bottom-plus {
  background: var(--hgv-blue-deep);
}

.res-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(15 49 88 / 4%);
}

.res-card-compact {
  padding: 0.7rem 0.75rem 0.65rem;
}

.res-card-body {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.res-card-main {
  flex: 1;
  min-width: 0;
}

.res-card-meta {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}

.res-card-title {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.res-card-desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-card-foot {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-card-attn {
  color: var(--hgv-blue-deep);
  font-weight: 600;
}

.res-card-gallery {
  display: grid;
  grid-template-columns: repeat(2, 2.1rem);
  grid-auto-rows: 2.1rem;
  gap: 0.25rem;
  flex-shrink: 0;
}

.res-card-shot {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
}

.res-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.res-card-shot-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(10 36 66 / 55%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

.res-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.res-card-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
}

.res-card-btn-primary {
  background: var(--hgv-blue);
  color: #fff;
}

.res-card-btn-primary:hover {
  background: var(--hgv-blue-deep);
}

.res-card-btn-edit {
  background: #f59e0b;
  color: #fff;
}

.res-card-btn-edit:hover {
  background: #d97706;
}

.res-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
}

.res-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  margin-inline: -0.15rem;
  padding-inline: 0.15rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.res-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.res-tab:hover {
  border-color: var(--hgv-blue-soft);
  color: var(--hgv-blue-deep);
}

.res-tab.is-active {
  background: var(--hgv-blue);
  border-color: var(--hgv-blue);
  color: #fff;
}

.res-tab-count {
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgb(15 49 88 / 8%);
  color: inherit;
}

.res-tab.is-active .res-tab-count {
  background: rgb(255 255 255 / 22%);
}

/* Lightbox fotos — sombreado explícito (no depende de Tailwind /92) */
.res-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(10, 36, 66, 0.88);
  backdrop-filter: blur(2px);
}

.res-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #fff;
}

.res-lightbox-close {
  border: 0;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.res-lightbox-close:hover {
  background: rgb(255 255 255 / 22%);
}

.res-lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 0.75rem 1.5rem;
}

.res-lightbox-img {
  max-height: 80vh;
  max-width: 92vw;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
}

.res-lightbox-nav {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.res-lightbox-nav:hover {
  background: rgb(255 255 255 / 28%);
}

.res-lightbox-prev { left: 0.5rem; }
.res-lightbox-next { right: 0.5rem; }

@media (min-width: 640px) {
  .res-lightbox-prev { left: 1rem; }
  .res-lightbox-next { right: 1rem; }
}

/* Ver reporte residente — cabecera densa */
.res-detail-head {
  padding: 0.75rem 0.85rem;
}

.res-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.res-detail-back {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hgv-blue);
  text-decoration: none;
}

.res-detail-edit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
}

.res-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.res-detail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.res-detail-sub {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: #64748b;
}

.res-detail-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.res-detail-desc {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  white-space: pre-line;
}

.res-detail-asig {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hgv-blue-deep);
}

/* Combo buscable de zona (mismo patrón que Unidades en el dashboard) */
.res-zona-combo {
  position: relative;
}

.res-zona-combo-q {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 0.5rem;
  padding: 0.625rem 3.35rem 0.625rem 0.75rem;
  font-size: 0.875rem;
  box-sizing: border-box;
  text-overflow: ellipsis;
  appearance: none;
}

.res-zona-combo-q::-webkit-search-decoration,
.res-zona-combo-q::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.res-zona-combo-q::placeholder {
  color: #94a3b8;
}

.res-zona-combo-q:focus {
  outline: none;
  border-color: var(--hgv-blue);
  box-shadow: 0 0 0 3px rgb(13 61 123 / 12%);
}

.res-zona-combo-clear,
.res-zona-combo-caret {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.res-zona-combo-clear {
  right: 1.7rem;
}

.res-zona-combo-clear:hover,
.res-zona-combo-caret:hover {
  color: var(--hgv-blue-deep);
}

.res-zona-combo-caret {
  right: 0.3rem;
}

.res-zona-combo-clear svg,
.res-zona-combo-caret svg {
  display: block;
}

.res-zona-combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  max-height: 20rem;
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  box-shadow: 0 12px 32px rgb(10 36 66 / 14%);
  padding: 0.25rem 0;
}

.res-zona-combo-group {
  padding: 0.4rem 0.75rem 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.res-zona-combo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--hgv-blue-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.48rem 0.75rem;
}

.res-zona-combo-item:hover,
.res-zona-combo-item.is-hi {
  background: var(--hgv-blue-mist);
}

.res-zona-combo-item.is-active {
  font-weight: 700;
}

.res-zona-combo-empty {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* Ojito mostrar / ocultar contraseña */
.hgv-pass-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.hgv-pass-wrap > input[type="password"],
.hgv-pass-wrap > input[type="text"],
.crud-field .hgv-pass-wrap input {
  padding-right: 2.75rem !important;
  box-sizing: border-box;
}

.hgv-pass-toggle {
  position: absolute;
  right: 0.4rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 5;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.hgv-pass-toggle:hover,
.hgv-pass-toggle:focus-visible {
  color: var(--hgv-blue-deep, #0F3158);
  background: var(--hgv-blue-mist, rgba(13, 61, 123, 0.1));
  outline: none;
}

.hgv-pass-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

/* Zonas comunes del residente (pages/zonas_comunes.php, bloque 6C): estado y línea de avance */
.obra-est { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.obra-est-registrado { background: #e2e8f0; color: #334155; }
.obra-est-en_evaluacion { background: #fef3c7; color: #92400e; }
.obra-est-aprobado { background: var(--hgv-blue-mist); color: var(--hgv-blue-deep); }
.obra-est-en_reparacion { background: #dbeafe; color: #1e40af; }
.obra-est-reparado { background: #dcfce7; color: #166534; }
.obra-est-no_procede { background: #fee2e2; color: #991b1b; }

.zc-unidad { margin: 1.25rem 0 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.zc-card { padding: 0.85rem 0.9rem; }
.zc-card + .zc-card { margin-top: 0.6rem; }
.zc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.zc-card-title { margin: 0; font-size: 0.95rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.zc-card-title span { font-weight: 600; color: #64748b; }
.zc-card-date { margin: 0.15rem 0 0; font-size: 0.75rem; color: #64748b; }
.zc-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.25rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.zc-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.65rem; line-height: 1.2; text-align: center; color: #94a3b8; }
.zc-track li::before { content: ""; position: absolute; top: 0.3rem; right: 50%; width: 100%; height: 2px; background: #e2e8f0; z-index: 0; }
.zc-track li:first-child::before { display: none; }
.zc-track .zc-dot { position: relative; z-index: 1; width: 0.75rem; height: 0.75rem; border-radius: 999px; background: #fff; border: 2px solid #cbd5e1; }
.zc-track li.is-done { color: var(--hgv-blue-deep); }
.zc-track li.is-done::before { background: var(--hgv-blue); }
.zc-track li.is-done .zc-dot { background: var(--hgv-blue); border-color: var(--hgv-blue); }
.zc-track li.is-cur { font-weight: 700; }
.zc-track li.is-cur .zc-dot { box-shadow: 0 0 0 3px var(--hgv-blue-mist); }
.zc-quote { margin: 0.85rem 0 0; padding: 0.6rem 0.75rem; border-radius: 0.6rem; background: var(--hgv-foam, #F4F7FB); font-size: 0.82rem; line-height: 1.45; color: #334155; white-space: pre-line; overflow-wrap: anywhere; }
.zc-quote small { display: block; margin-bottom: 0.15rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }

/* Inicio del residente (Bloque 7, pages/dashboard.php): bloque superior */
.ini-res-grid { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .ini-res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.ini-res-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.5rem; }
.ini-res-sec-head h2, .ini-res-sec-head-title { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.ini-res-sec-head-title { margin: 0 0 0.6rem; scroll-margin-top: 1rem; }
.ini-res-sec-head a { font-size: 0.82rem; font-weight: 700; color: var(--hgv-blue); text-decoration: none; }
.ini-res-item { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.85rem; text-decoration: none; color: inherit; }
.ini-res-item b { display: block; font-size: 0.9rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-res-item small { display: block; font-size: 0.75rem; color: #64748b; }
.ini-res-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem; flex: none; }
.ini-res-obra { display: block; text-decoration: none; color: inherit; }
.ini-res-obra .zc-card-title, .ini-res-obra .zc-card-date { display: block; }
.ini-res-quote { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: #475569; line-height: 1.4; }
