/* public_html/style.css */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fefcf7;
  color: #222;
  line-height: 1.6;
}

header {
  background-color: #111;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section.intro {
  text-align: center;
  margin-bottom: 3rem;
}

section.intro p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

section.tematicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background-color: #fff;
}

.card {
  background-color: #fdf6e3;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 240px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card a {
  color: #0044cc;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}


footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
