@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --bg: #fafafa;
  --text: #222;
  --accent: #ffb703;
  --muted: #555;
  --card-bg: #fff;
  --shadow: rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 6px var(--shadow);
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0;
  color: #111;
}

header p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* MAIN */
main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

h2 {
  font-weight: 600;
  margin-bottom: 2rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 4px 8px var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 220px;           /* Fija un alto moderado del cuadro */
  object-fit: contain;     /* Muestra toda la imagen */
  background-color: #f5f5f5; /* Fondo neutro si sobra espacio */
  border-radius: 12px 12px 0 0;
  padding: 8px;            /* Pequeño margen interno */
}

.card h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.3rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* BOTONES */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #f4a700;
}

/* FOOTER */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 2rem;
}

