/* index.css - estilos base para design tipo tarjeta */
:root{
   --bg: #f8fafc;         
  --text: #203c75;       
  --muted: #64748b;      
  --card-bg: #faf0f08c;    
  --accent: #2563eb;     
  --star: #ffc700; 
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

/* Contenedor */
.container{
  max-width:1200px;
  margin:28px auto;
  padding:0 20px;
}

/* Top bar */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;

}
.top-bar h1{
  margin:0;
  font-size:1.4rem;
  font-weight:700;
  
}
.search-input{
  width:320px;
  padding:10px 14px;
  border-radius:9999px;
  border:1px solid #e6eef9;
  background:#fff;
  outline:none;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.search-input:focus{ border-color:var(--accent); }

/* Section titles */
.contact-section h2{
  margin:20px 0 12px;
  font-size:1.05rem;
  font-weight:600;
  color:var(--text);
}
.contact-section .count{ color:var(--muted); font-weight:500; font-size:0.95rem; }

/* Grid */
.grid{
  display:grid ;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.card{
   background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: box-shadow 0.2s, transform 0.12s;
  min-height: 140px;
}
.card:hover{
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Avatar */
.avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--card-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  margin-right: 12px;
}

/* Info */
.card-info{ flex:1; min-width:0; }
.card-info h3{
  margin:0 0 6px 0;
  font-size:1.20rem;
  font-weight:700;
  line-height:1.15;
  color:var(--text);
  
}
.card-info p{
  margin:4px 0;
  font-size:0.86rem;
  color:var(--muted);
}
.card-info p strong{ color:var(--text); font-weight:700; }


.star{
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #94a3b8;
  transition: color .12s ease;
}
.star:hover, .star.active{
  color: var(--star);
}


.empty{
  text-align: center;
  color: #64748b;
  padding: 28px 0;
}