.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cs-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  transition: transform 0.2s ease;
}

.cs-card:hover {
  transform: translateY(-5px);
}

.cs-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.cs-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.cs-country {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.cs-name {
  font-size: 1.2rem;
  display: inline-flex;  /* en vez de flex */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  text-align: center;
}

.cs-name span {
  display: inline-block;
}

.cs-flag-inline {
  width: 14px;
  height: auto;
}

.cs-view-more {
  padding: 0.5rem 1rem;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.cs-view-more:hover {
  background-color: #005e8c;
}

/* Modal */
.cs-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.cs-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cs-modal-content h2 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: bold;
}

.cs-modal-content p {
  font-size: 1rem;
  line-height: 1.6;
}

.cs-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
