/* =======================================================
   HN Agent – MODERN (autónomo, sin comunes)
   ======================================================= */

/* Fallbacks + Elementor Kit */
:root{
  --ui-text:#0f172a;
  --ui-primary:#1A56DB;
  --ui-secondary:#ffffff;
  --ui-border: color-mix(in srgb, var(--ui-text) 14%, #fff);
  --ui-muted: color-mix(in srgb, var(--ui-text) 62%, #fff);
}
:where(body[class*="elementor-kit-"]){
  --ui-text: var(--e-global-color-text);
  --ui-primary: var(--e-global-color-primary);
  --ui-secondary: var(--e-global-color-secondary);
  --ui-border: color-mix(in srgb, var(--ui-text) 14%, #fff);
  --ui-muted: color-mix(in srgb, var(--ui-text) 62%, #fff);
}

/* ===================== Botón base ===================== */
.hn-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 14px; border-radius:12px;
  font-weight:700; border:1px solid transparent;
  transition:transform .16s ease, filter .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration:none !important; line-height:1.1;
}
.hn-btn i{ font-size:16px; line-height:1; }
.hn-btn:hover{ filter:brightness(.97); transform:translateY(-1px); }
.hn-btn:active{ transform:none; }
.hn-btn:focus-visible{
  outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--ui-primary) 30%, transparent);
}

.hn-btn--style-kit{ background:var(--ui-primary); color:var(--ui-secondary); border-color:var(--ui-primary); }
.hn-btn--style-outline{ background:transparent; color:var(--ui-primary); border-color:var(--ui-primary); width: 100%;}
.hn-btn--style-outline:hover{ background:rgba(0,0,0,.03); }
.hn-btn--style-ghost{ background:transparent; color:var(--ui-text); border-color:var(--ui-border); }
.hn-btn--style-ghost:hover{ filter:brightness(.97); }

/* WhatsApp */
.hn-btn--whatsapp.hn-btn--style-wa{ background:#25D366; border-color:#25D366; color:#fff; width: 100%; }
.hn-btn--whatsapp.hn-btn--style-wa:hover{ filter:brightness(.94); }
.hn-btn--whatsapp.hn-btn--style-kit{ background:var(--ui-primary); color:var(--ui-secondary); border-color:var(--ui-primary); }

/* ===================== Chips ===================== */
.hn-chip{
  display:flex; align-items:center; gap:8px; padding:8px 12px;align-items: center; justify-content: center; margin-top: 12px;
  border:1px solid var(--ui-border); border-radius:999px; color:var(--ui-text); text-decoration:none; font-size:14px; line-height:1;
  background:#fff;
}
.hn-chip i{ font-size:14px; color:var(--ui-primary); }
.hn-chip.is-muted{ opacity:.85; }

/* ===================== Comunes ===================== */
.hn-section.hn-agent-card .contact{
  list-style:none; margin:0; padding:12px 16px; display:grid; gap:8px;
}
.hn-section.hn-agent-card .contact li{ display:flex; gap:10px; align-items:center; font-size:15px; }
.hn-section.hn-agent-card .contact li i{ font-size:14px; color:var(--ui-primary); line-height:1; }
.hn-section.hn-agent-card .contact a{ color:var(--ui-text); text-decoration:none; }

.hn-section.hn-agent-card .hn-social{
  margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; justify-content: space-around;
}
.hn-section.hn-agent-card .hn-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border:1px solid var(--ui-border);
  border-radius:10px; color:var(--ui-secondary); text-decoration:none; background:#fff;
}
.hn-section.hn-agent-card .hn-social a:hover{ filter:brightness(.97); }
.hn-section.hn-agent-card .hn-social i{ font-size:15px; }

/* ===================== Variant: MODERN ===================== */
.agent--modern{
  border:1px solid var(--ui-border); border-radius:16px; background:#fff; padding:16px;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.agent--modern .agent-modern__head{
  align-items:center;
}
@media (max-width:560px){
  .agent--modern .agent-modern__head{ grid-template-columns:1fr; }
}
.agent--modern .agent-modern__id{ display:flex; gap:12px; align-items:center; min-width:0; }
.agent--modern .agent-card__avatar img{
  width:64px; height:64px; object-fit:cover; border-radius:14px;
  box-shadow:0 1px 6px rgba(0,0,0,.06);
}
.agent--modern .agent-card__name{
  margin:0; font-size:clamp(18px,2.2vw,22px); line-height:1.2; color:var(--ui-text); font-weight:800;
}
.agent--modern .agent-card__meta{ display:grid; gap:1px; flex-wrap:wrap; font-size:13px; color:var(--ui-muted); }

.agent--modern .agent-modern__cta{ display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }
@media (max-width:560px){
  .agent--modern .agent-modern__cta .hn-btn{ width:100%; }
}

.agent--modern .agent-modern__desc{ margin-top:10px; color:var(--ui-text); }
.agent--modern .agent-modern__desc p{ margin:0 0 .6em; }

.agent--modern .agent-modern__chips{ margin-top:12px;}
.agent--modern .agent-modern__social{ margin-top:12px; }