/* Fondo general alegre */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #7fddff, #b4ffff);
  color: #333;
}

/* Encabezado con imagen + overlay colorido */
header {
  position: relative;
  background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: white;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-overlay {
  background: linear-gradient(to bottom right, rgba(85, 0, 255, 0.7), rgba(0, 191, 255, 0.6));
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

p.intro {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Tarjetas con degradado alegre */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

.card {
  background: linear-gradient(to bottom right, #78c1ff, #c3afff);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  color: #fff;
}

.card img {
  width: 250px;
  height: 96px;
  object-fit: contain;
}

.card h3 {
  margin-top: 1rem;
  color: #fff;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Modal con degradado colorido */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: linear-gradient(to bottom right, #6a82fb, #00c6ff);
  color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.close {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ffdddd;
}

.modal-content img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
