/* Modales de áreas de servicio (compartido: inicio y Qué Hacemos) */
.qh-item-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cc-white);
  box-shadow: 0 8px 18px rgba(0,97,134,0.3);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.qh-c1 .qh-item-icon { background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-soft) 50%, #072a1f 100%); }
.qh-c2 .qh-item-icon { background: linear-gradient(135deg, var(--cc-green) 0%, #00543f 100%); }
.qh-c3 .qh-item-icon { background: linear-gradient(135deg, var(--cc-gold) 0%, var(--cc-gold-dark) 100%); }
.qh-c4 .qh-item-icon { background: linear-gradient(135deg, #b39ddb 0%, #7e57c2 100%); }
.qh-c5 .qh-item-icon { background: linear-gradient(135deg, #8a3b4c 0%, #5c1f2b 100%); }
.qh-c6 .qh-item-icon { background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%); }

/* ===== Esquema de red del modal 05 ===== */
.qh-red {
  margin: 0.5rem 0 1.25rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(0,97,134,0.05);
  border: 1px dashed rgba(0,97,134,0.25);
  text-align: center;
}

.qh-red-actores {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}

.qh-red-actores li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--cc-white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, background 0.3s ease;
}

/* Punto de acento a la izquierda de cada actor */
.qh-red-actores li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cc-gold);
  box-shadow: 0 0 8px rgba(248,159,40,0.8);
}

.qh-red-actores li:hover {
  transform: translateY(-3px);
  border-color: rgba(248,159,40,0.6);
  background: linear-gradient(135deg, rgba(248,159,40,0.2) 0%, rgba(255,255,255,0.05) 100%);
}

/* Flecha entre actores (ícono bi-arrow-right de Bootstrap Icons) */
.qh-red-actores li:not(:last-child)::after {
  content: "\f138";
  font-family: "bootstrap-icons";
  position: absolute;
  right: -1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--cc-gold);
}

.qh-red-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0.9rem 0;
  color: var(--cc-green);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qh-red-hub span {
  position: relative;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  color: var(--cc-white);
  background: linear-gradient(100deg, var(--cc-navy) 0%, var(--cc-green) 50%, var(--cc-navy) 100%);
  background-size: 200% auto;
  animation: qhHubShine 3s linear infinite, qhHubPulse 2s ease-out infinite;
}

.qh-red-hub i {
  animation: qhHubArrow 1.4s ease-in-out infinite;
}

.qh-red-hub i:last-child { animation-delay: 0.35s; }

@keyframes qhHubShine {
  to { background-position: 200% center; }
}

@keyframes qhHubPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230,162,45,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(230,162,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,162,45,0); }
}

@keyframes qhHubArrow {
  0%, 100% { transform: translateY(-3px); opacity: 0.4; }
  50%      { transform: translateY(3px);  opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .qh-red-hub span,
  .qh-red-hub i { animation: none; }
}

.qh-red-destino {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cc-navy);
  background: linear-gradient(100deg, var(--cc-gold) 0%, #f4c866 100%);
  box-shadow: 0 8px 18px rgba(230,162,45,0.35);
}

.qh-modal-cierre {
  color: #333;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== Modal destacado (fondo oscuro) ===== */
.qh-modal--destacado .modal-content {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(230,162,45,0.22) 0%, rgba(230,162,45,0) 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(0,115,92,0.35) 0%, rgba(0,115,92,0) 70%),
    linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-soft) 55%, #072a1f 100%);
}

.qh-modal.qh-modal--destacado .modal-content::before { display: none; }
.qh-modal.qh-modal--destacado .modal-title { color: var(--cc-white); }
.qh-modal--destacado .qh-modal-intro { color: rgba(247,246,242,0.78); }
.qh-modal--destacado .qh-modal-cierre {
  color: var(--cc-white);
  background: transparent;
  border: 1px solid rgba(247,246,242,0.85);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
}
.qh-modal--destacado .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.qh-modal--destacado .qh-item-icon {
  background: linear-gradient(135deg, var(--cc-gold) 0%, var(--cc-gold-dark) 100%);
  box-shadow: 0 8px 18px rgba(230,162,45,0.4);
}

.qh-modal--destacado .qh-red {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

.qh-modal--destacado .qh-red-hub { color: var(--cc-gold); }

.qh-modal--destacado .qh-red-hub span {
  background: linear-gradient(100deg, var(--cc-green) 0%, #00a383 50%, var(--cc-green) 100%);
  background-size: 200% auto;
}

/* ===== Modales de áreas ===== */
.qh-modal .modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 22px 46px rgba(0,40,58,0.25);
  overflow: hidden;
}

.qh-modal .modal-content::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cc-green) 0%, var(--cc-gold) 50%, var(--cc-navy) 100%);
}

.qh-modal .modal-header,
.qh-modal .modal-body,
.qh-modal .modal-footer { padding-left: 2rem; padding-right: 2rem; }
.qh-modal .modal-header { padding-top: 1.75rem; align-items: flex-start; }
.qh-modal .modal-footer { padding-bottom: 1.75rem; }

.qh-modal .modal-footer .btn-cc {
  font-size: 13px;
  padding: 0.7rem 1.6rem;
  white-space: nowrap;
}

.qh-modal .modal-title {
  font-size: 1.3rem;
  color: var(--cc-navy);
}

.qh-modal-intro {
  color: #4a5a63;
  margin-bottom: 1.1rem;
}

.qh-modal-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--cc-navy);
  margin-bottom: 0.6rem;
}

.qh-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.qh-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #333;
}

.qh-modal-list i {
  color: var(--cc-green);
  font-size: 1.1rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .qh-modal-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .qh-modal .modal-dialog {
    max-width: 88%;
    margin-left: auto;
    margin-right: auto;
  }
  .qh-modal .modal-content { max-height: 80vh; max-height: 80dvh; }
  .qh-modal .modal-body { overflow-y: auto; }
  .qh-modal .qh-item-icon,
  .qh-modal-list i { flex-shrink: 0; }
  .qh-modal .qh-item-icon { aspect-ratio: 1 / 1; }

  .qh-red { padding: 1rem 0.75rem; }
  .qh-red-actores { gap: 0.5rem 1.1rem; }
  .qh-red-actores li {
    padding: 0.3rem 0.6rem 0.3rem 0.5rem;
    gap: 0.3rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .qh-red-actores li::before { width: 5px; height: 5px; }
  .qh-red-actores li:not(:last-child)::after { right: -0.95rem; font-size: 0.7rem; }
}

@media (max-width: 479.98px) {
  .qh-modal .modal-header,
  .qh-modal .modal-body,
  .qh-modal .modal-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .qh-modal .modal-title { font-size: 1.1rem; }
  .qh-modal .modal-footer .btn-cc { width: 100%; justify-content: center; font-size: 11.5px; padding: 0.7rem 0.9rem; letter-spacing: 0.02em; }
}
