/* Reset */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background-color: #fffefb;
  color: #2d2d2d;
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: linear-gradient(90deg, #7f5af0, #6246ea);
  color: #fff;
  padding: 1.2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.85;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f9ca24, #f6e58d);
  color: #2f3640;
  text-align: center;
  padding: 5rem 1rem;
  animation: fadeIn 1s ease-in;
  border-bottom: 2px solid #e1e1e1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin: auto;
}

.section h2 {
  margin-bottom: 1.5rem;
  color: #7f5af0;
  font-size: 2rem;
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

.links-list {
  list-style: none;
  padding-left: 0;
}

.links-list li {
  margin-bottom: 0.8rem;
}

.links-list a {
  color: #7f5af0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.links-list a:hover {
  color: #4a36d5;
}

/* Cards */
.cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: #f4f9ff;
  padding: 1.5rem;
  border-radius: 16px;
  flex: 1 1 280px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: #3b3b98;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #7f5af0;
  color: white;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Favoritos del aula – Cards */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background: #f8f8ff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.resource-card h3 {
  color: #3b3b98;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.resource-card p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  flex-grow: 1;
}

.resource-card .tag {
  display: inline-block;
  background-color: #e4dbff;
  color: #5e3edc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.resource-card .btn {
  display: inline-block;
  text-align: center;
  background-color: #7f5af0;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.resource-card .btn:hover {
  background-color: #6246ea;
}
