/*
 * KINT · Accesos a RH Power desde el home (index.html).
 * Franja después del hero + enlaces en menú superior, lateral y móvil.
 * Colores de la base KINT: navy #002B49, cian #00B2E2, amarillo #FFD700.
 */

/* Etiquetas: estáticas, sin brillo ni animación */
.hrp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.hrp-tag--new { background: #ffd700; color: #002b49; }
.hrp-tag--promo { background: #ffd700; color: #002b49; font-size: 0.78rem; padding: 0.25rem 0.6rem; }
.hrp-tag--info { background: rgba(255, 255, 255, 0.12); color: #e6f3f9; }
.hrp-tag--soon { background: transparent; color: #b8cad8; border: 1px solid rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------------ *
 * Franja del home
 * ------------------------------------------------------------------ */
.hrp-band {
  margin-bottom: 3rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-radius: 0.75rem;
  background: #002b49;
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.hrp-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.hrp-band__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.hrp-band__brand img { height: 2.5rem; width: auto; display: block; }
.hrp-band__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hrp-band__lead { margin: 0.5rem 0 0; color: #c9dbe7; max-width: 46ch; line-height: 1.55; }
.hrp-band__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  background: #ffd700;
  color: #002b49;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.hrp-band__all:hover { background: #f5cc00; }
.hrp-band__all svg { width: 1.1rem; height: 1.1rem; }

/* Tarjetas de servicio: lista compacta en móvil, columnas con foto en escritorio */
.hrp-services { display: grid; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.hrp-service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
a.hrp-service:hover { border-color: #00b2e2; background: rgba(0, 178, 226, 0.1); }
.hrp-service:focus-visible,
.hrp-band__all:focus-visible { outline: 3px solid #00b2e2; outline-offset: 3px; }
.hrp-service__img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #0a3a5e;
}
.hrp-service__name { display: block; font-weight: 700; font-size: 1rem; line-height: 1.3; color: #ffffff; }
.hrp-service__desc { display: block; margin-top: 0.15rem; font-size: 0.85rem; line-height: 1.45; color: #b8cad8; }
.hrp-service__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.hrp-service__go { width: 1.25rem; height: 1.25rem; color: #00b2e2; }
.hrp-service--soon .hrp-service__img { filter: grayscale(0.6); opacity: 0.75; }

@media (min-width: 768px) {
  .hrp-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hrp-service {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .hrp-service__img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .hrp-service__body { padding: 1rem 1.1rem 1.15rem; }
  .hrp-service__go { position: absolute; right: 1rem; bottom: 1.15rem; }
  .hrp-service__body { padding-right: 2.5rem; }
  .hrp-services > li { display: flex; }
  .hrp-services > li > .hrp-service { flex: 1; }
}
/* La VCard es una captura vertical: mostrar su parte superior (nombre y cargo). */
.hrp-service__img[src*="vcard"] { object-position: center 8%; }

/* ------------------------------------------------------------------ *
 * Menús
 * ------------------------------------------------------------------ */
.hrp-nav-link { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Menú lateral (escritorio) */
.hrp-side { margin-top: 1rem; padding: 0.75rem; border-radius: 0.75rem; background: #002b49; }
.hrp-side__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.hrp-side__head img { height: 1.6rem; width: auto; }
.hrp-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.5rem;
  color: #e6f3f9;
  font-size: 0.9rem;
  text-decoration: none;
}
.hrp-side a:hover { background: rgba(0, 178, 226, 0.15); color: #ffffff; }

/* Menú móvil */
.hrp-mobile {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #002b49;
  color: #ffffff;
}
.hrp-mobile__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; }
.hrp-mobile__head img { height: 2rem; width: auto; }
.hrp-mobile p { margin: 0 0 0.6rem; font-size: 0.9rem; font-weight: 500; color: #c9dbe7; }
.hrp-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}
.hrp-mobile a:hover { color: #00b2e2; }
