/* ===========================
   PORTAL CSS — Mística & Tecnología
   =========================== */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Fondo general */
body {
  background: linear-gradient(180deg, #f8f6ff 0%, #eae2ff 100%);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.header {
  background: #6a0dad;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.slogan {
  font-size: 1rem;
  opacity: 0.9;
}

/* HERO */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at center, #d9c6ff 0%, #f8f6ff 100%);
}

.hero h2 {
  font-size: 1.8rem;
  color: #4b0082;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
}

/* GRID DINÁMICO */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* Tarjetas generadas dinámicamente */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.2rem;
  color: #6a0dad;
  margin: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0 1rem 1rem;
}

/* FOOTER */
.footer {
  background: #4b0082;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

/* Responsividad */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .logo {
    font-size: 1.6rem;
  }
}
