/* --------- BASE --------- */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  margin: 0;
  padding: 0 1.5rem 2.5rem;
  color: #222;
}

/* --------- HERO --------- */

.hero {
  max-width: 1200px;
  margin: 1.5rem auto 2rem auto;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #fef6ff, #e9f2ff);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 280px;
}

.hero-illustration {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
}

.hero-illustration img {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.hero h1 {
  margin: 0 0 0.75rem 0;
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.03rem;
  color: #111827;
}

.hero-intro {
  margin: 0 0 1rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #374151;
}

.hero-tags {
  display: flex;
  flex-wrap: inherit;
  gap: 0.4rem;
  text-align: center;
}

.pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: #4b5563;
margin:2px;
  border: 2px solid rgba(255, 122, 255, 0.3);
  text-align: center;
}


.file-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.4rem 0.1rem;
  color: #4b5563;
  margin:2px;
  border: 2px solid rgba(122, 122, 122, 0.3);
  text-align: center;
}

/* --------- SECTION TITLES --------- */

.section-title {
  max-width: 1200px;
  margin: 2.5rem auto 1.2rem auto;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01rem;
  position: relative;
  color: #111827;
}

.section-title::after {
  content: "";
  display: block;
  width: 350px;
  height: 3px;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8bff, #a483ff);
  text-align: center;
}

/* --------- GRID / CARD --------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  background: #fdfdff;
}

.card h3 {
  font-size: 1rem;
  margin: 0;
  color: #111827;
}

/* --------- THUMBNAIL --------- */

.thumb {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #e5e7eb;
  display: block;
}

/* --------- TAGS --------- */

.tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.68rem 0.65rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  color: #374151;
  font-weight: 500;
}

.tag-code  { background: #e0f0ff; }
.tag-doc   { background: #d6ffe4; }
.tag-demo  { background: #fff0c2; }
.tag-media { background: #e8ddff; }
.tag-texto { background: #ffe0e7; }

/* --------- TEXT --------- */

.desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #374151;
}

.file-link {
  font-size: 0.84rem;
  word-break: break-all;
  color: #4b5563;
}

.file-link a {
  text-decoration: none;
  color: #4f8bff;
  font-weight: 500;
}

.file-link a:hover {
  text-decoration: underline;
}

/* --------- MISC --------- */

hr {
  max-width: 1200px;
  margin: 3rem auto 1.5rem auto;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* --------- RESPONSIVE --------- */

@media (max-width: 768px) {
  body {
    padding: 0 1rem 2.5rem;
  }

  .hero {
    padding: 1.25rem 1.2rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .thumb {
    height: 180px;
  }
}
