/* Fondo general simple */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: #eaeaea;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem; /* Espacio para que no toque los bordes en móvil */
}

/* E-card con fondo llamativo y degradado dentro */
.card {
  background: linear-gradient(145deg, #b575ff, #85ffae);
  border-radius: 20px;
  padding: 30px 20px;
  width: 320px;
  text-align: center;
  color: #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

/* Efecto decorativo: círculos suaves en fondo */
.card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  z-index: 0;
}

.card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.card * {
  position: relative;
  z-index: 1;
}

/* Imagen perfil */
.card img {
  border-radius: 50%;
  width: 100px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.1);
}

/* Nombre */
.card h2 {
  font-size: 20px;
  margin: 10px 0;
  font-weight: bold;
}

/* Información de contacto */
.card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #222;
}

/* Íconos y enlaces */
.card i {
  margin-right: 8px;
  color: #222;
}

.card a {
  color: #004cff;
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

/* Botón de WhatsApp */
.card button {
  background: #25d366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s;
}

.card button:hover {
  background: #1ebe5f;
  transform: translateY(-2px);
}

.card button i {
  margin-right: 6px;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto; /* Para que la altura se ajuste en móvil */
  }

  .card {
    width: 90%; /* Más fluido que 80% */
    max-width: 400px; /* Limitar máximo */
    padding: 25px 15px;
  }

  .card img {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 15px 10px;
    width: 100%; /* Que ocupe todo el ancho disponible */
    max-width: none;
  }

  .card img {
    width: 80px;
    margin-bottom: 10px;
  }

  .card h2 {
    font-size: 18px;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card button {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
}
