/* assets/css/agentes.css */

.agentes-container{
	max-width: 1200px;
	margin: 0 auto;
  padding-bottom: 120px;
}

.agentes-hero{
  margin-bottom: 20px;
}

.agentes-hero h1{
  margin: 0 0 6px;
  color: var(--main);
}

.agentes-hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.agentes-empty{
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.agentes-empty h3{ margin: 0 0 6px; }
.agentes-empty p{ margin: 0 0 12px; color: var(--muted); }

.agentes-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .agentes-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .agentes-grid{ grid-template-columns: 1fr; }
}

.agente-card{
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agente-nombre{
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

.agente-empresa{
  font-size: 13px;
  color: var(--main);
  margin-top: 2px;
}
.agente-empresa--muted{ color: var(--muted); }

.agente-bio{
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.agente-bio--muted{ color: var(--muted); }

.agente-web{
  font-size: 13px;
  color: var(--muted);
}
.agente-web a{
  color: var(--main);
  text-decoration: none;
  word-break: break-word;
}
.agente-web a:hover{ text-decoration: underline; }

.agente-actions{
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.agente-telefono{
  background: var(--lighter);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text);
}

.agente-telefono a{
  color: var(--main);
  text-decoration: none;
}

.agente-formwrap{
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.agente-form .form-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.agente-form label{
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.agente-form input,
.agente-form textarea{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
	width: auto;
	height: auto;
}

.agente-form input:focus,
.agente-form textarea:focus{
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(106,13,173,0.10);
}

.hint{
  color: var(--muted);
  font-size: 12px;
}

.chk{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.form-msg{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.form-msg.success{
  background: var(--success-bg);
  border: 1px solid var(--success-bd);
  color: var(--success);
}

.form-msg.error{
  background: var(--warning-bg);
  border: 1px solid var(--warning-bd);
  color: var(--warning);
}

/* Honeypot hidden */
.hp-field{
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.agente-header{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.agente-avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 56px;
  border:1px solid var(--border-soft);
  background: var(--superLight);
  display:flex;
  align-items:center;
  justify-content:center;
}

.agente-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.agente-avatar-iniciales{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color: var(--main);
  letter-spacing: 0.5px;
  font-size: 18px;
}

.agente-headtext{
  min-width:0;
}

.agente-ubicacion{
  margin-top:2px;
  font-size: 13px;
  color: var(--muted);
}

.agente-ubicacion--muted{
  opacity: 0.8;
}
