/* =============================================================
   admin.css — PC Puma (Diseño "Portal de Integración")
   ============================================================= */

/* --- 1. Variables y Estilos Base --- */
:root {
  --pcp-azul: #005BA8;
  --pcp-azul-osc: #003366;
  --pcp-dorado: #FFD700;
  --pcp-bg-hero: #000c1e;
  --radius-xl: 16px;
  --shadow-sm: 0 4px 10px rgba(0,44,92,.06);
  --shadow-md: 0 8px 25px rgba(0,44,92,.08);
  --shadow-lg: 0 14px 30px rgba(0,44,92,.14);
}

body {
  background-color: #f8f9fa; /* Un gris muy claro como base */
}

h2, h4.section-subtitle {
  font-weight: 700;
  color: var(--pcp-azul-osc);
}

h4.section-subtitle {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* --- 2. Dashboard de Coordinación Central --- */
#coordination-dashboard {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.status-card {
  border-radius: var(--radius-xl);
  border: 1px solid #dee2e6;
  box-shadow: var(--shadow-sm);
  background-color: #fff;
}

.status-card .list-group-item {
  font-weight: 500;
  color: #212529;
  padding: 1rem 1.25rem;
}

.status-card .list-group-item i {
  font-size: 1.1rem;
  vertical-align: middle;
}

.status-card .badge {
  font-size: .8rem;
  font-weight: 600;
  padding: .4em .8em;
  border: 1px solid transparent;
}
/* --- 3. Guías de Implementación y Mejores Prácticas --- */
.implementation-tabs {
    border-bottom: none;
}

.implementation-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--pcp-azul);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
}

.implementation-tabs .nav-link.active {
    color: var(--pcp-azul-osc);
    border-bottom: 3px solid var(--pcp-azul);
    background-color: #ffffff;
}

.implementation-tabs .nav-link:hover {
    color: var(--pcp-azul-osc);
}

#guidesTabContent {
    border-radius: 0 var(--radius-xl) var(--radius-xl) var(--radius-xl);
}

.resource-card {
    border: 1px solid #e9ecef;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.resource-card .resource-icon {
    font-size: 2.5rem;
    color: var(--pcp-azul);
    margin-bottom: 1rem;
}

.resource-card .card-title {
    color: var(--pcp-azul-osc);
    font-weight: 600;
}
/* --- 4. Herramientas y Recursos Centralizados --- */
.action-card {
    border-radius: var(--radius-xl);
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--pcp-azul);
}

.action-card .card-body {
    padding: 2rem 1.5rem;
}

.action-card .action-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.action-card .card-title {
    color: var(--pcp-azul-osc);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
/* --- 5. Panorama General (Entidades y Mapa) --- */
.pcp-toolbar.card {
  border-radius: var(--radius-xl);
}
#listaEntidades .card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  border: none;
}
#listaEntidades .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
#listaEntidades .card:hover img {
  transform: scale(1.05);
}
#listaEntidades .card .card-header {
  background-color: var(--pcp-azul);
  height: 60px;
  border: none;
}
#listaEntidades .card .card-body {
  padding-top: 45px;
  position: relative;
  background-color: #ffffff;
}
#listaEntidades .card img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  border: 4px solid #fff;
  position: absolute;
  top: -40px;
  left: 0; right: 0;
  transition: transform .25s ease;
}
#listaEntidades .card .h-100 {
  display: flex;
  flex-direction: column;
}
.logo-entidad {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--pcp-azul);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  object-fit: contain;
  padding: 6px;
}
.skeleton {
  position: relative; overflow: hidden; background: #eef3f8; border-radius: 12px; min-height: 160px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shine 1.5s infinite;
}
@keyframes shine { to { transform: translateX(100%); } }
#cobertura .pcp-map-filters .btn-filtro {
  background-color: #e9ecef; color: #495057; font-weight: 600; border-radius: 20px;
  padding: 8px 16px; border: 1px solid #dee2e6; font-size: .95rem; transition: all .3s ease;
}
#cobertura .pcp-map-filters .btn-filtro:hover { background-color: #ced4da; border-color: #adb5bd; }
#cobertura .pcp-map-filters .btn-filtro.activo-filtro {
  background: var(--pcp-azul); color: #fff; border-color: var(--pcp-azul);
  box-shadow: 0 4px 12px rgba(0,91,168,.3);
}
#map {
  height: 500px; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid #dee2e6;
}