.arn-webpart-container {
  --arn-primary: #0c4a6e;
  --arn-primary-hover: #075985;
  --arn-accent: #0284c7;
  --arn-bg-card: #ffffff;
  --arn-text-main: #0f172a;
  --arn-text-muted: #475569;
  --arn-border: #e2e8f0;
  --arn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --arn-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --arn-focus-ring: #0284c7;
  --arn-font: "Work Sans", system-ui, -apple-system, sans-serif;

  font-family: var(--arn-font);
  background-color: transparent;
  color: var(--arn-text-main);
  padding: 20px 0;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.arn-webpart-container * {
  box-sizing: border-box;
}

/* Encabezado */
.arn-header {
  text-align: center;
  margin-bottom: 40px;
}

.arn-header h2 {
  color: var(--arn-primary);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

.arn-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--arn-accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

.arn-header p {
  color: var(--arn-text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

/* Grid */
.arn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

/* Tarjeta */
.arn-card {
  background-color: var(--arn-bg-card);
  border-radius: 12px;
  border: 1px solid var(--arn-border);
  overflow: hidden;
  box-shadow: var(--arn-shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.arn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--arn-shadow-md);
  border-color: #cbd5e1;
}

/* Imagen */
.arn-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.arn-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Placeholder sin foto */
.arn-no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  padding: 20px;
}

.arn-no-photo i {
  font-size: 3rem;
  margin-bottom: 8px;
  color: #94a3b8;
}

.arn-no-photo span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arn-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(12, 74, 110, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido */
.arn-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.arn-card-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--arn-primary);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.arn-card-role {
  font-size: 0.9rem;
  color: var(--arn-text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
  min-height: 44px;
}

/* Contacto */
.arn-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  border-top: 1px solid var(--arn-border);
  padding-top: 12px;
}

.arn-contact-list li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--arn-text-main);
  margin-bottom: 8px;
  word-break: break-all;
}

.arn-contact-list li i {
  width: 18px;
  color: var(--arn-accent);
  margin-right: 10px;
  text-align: center;
}

.arn-contact-list a {
  color: var(--arn-text-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.arn-contact-list a:hover,
.arn-contact-list a:focus-visible {
  color: var(--arn-accent);
}

/* Botón Ver Perfil */
.arn-card-action {
  margin-top: auto;
}

.arn-btn,
.arn-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  background-color: transparent;
  color: var(--arn-primary);
  border: 1.5px solid var(--arn-primary);
  border-radius: 6px;
  font-family: var(--arn-font);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 8px;
}

/* Hover, Clic (Active) y Focus */
.arn-btn:hover,
.arn-btn:active,
.arn-btn:focus,
.arn-btn:visited:hover,
.arn-btn:visited:active {
  background-color: var(--arn-primary);
  color: #ffffff !important;
  /* Asegura contraste blanco */
  text-decoration: none;
}

.arn-btn:focus-visible,
.arn-contact-list a:focus-visible {
  outline: 3px solid var(--arn-focus-ring);
  outline-offset: 2px;
}

.arn-btn.disabled {
  border-color: #cbd5e1;
  color: #94a3b8 !important;
  cursor: not-allowed;
  background-color: #f8fafc;
}

@media (max-width: 640px) {
  .arn-grid {
    grid-template-columns: 1fr;
  }
}