.hero {
  position: relative;
  background: var(--accent);
  padding: 2.6rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.hero-copy { max-width: 540px; flex-shrink: 0; }

/* PNG con transparencia real (sin fondo) — se funde con el amarillo del
   hero sin necesidad de recortar ni igualar colores. */
.hero-art { flex: 1; display: flex; justify-content: center; max-width: 420px; }
.hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--accent-ink);
}
.hero p {
  color: var(--accent-ink);
  opacity: 0.75;
  font-size: 1.08rem;
  max-width: 48ch;
  margin-bottom: 1.9rem;
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.9rem 1.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-dark); }

/* Dentro del hero el fondo ya es amarillo (--accent), así que el botón
   necesita otro color para no desaparecer contra el fondo. */
.hero .btn-primary { background: var(--ink); color: var(--bg); }
.hero .btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, black); }

.stats-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.6rem 1.5rem; }
.stats-row {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem;
  text-align: center;
}
.stat-item strong {
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1.1;
}
.stat-item span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

.stat-link { text-decoration: none; border-radius: 10px; padding: 0.3rem 0.6rem; margin: -0.3rem -0.6rem; transition: background 0.15s ease; }
.stat-link:hover { background: color-mix(in srgb, var(--accent-dark) 12%, transparent); }
.stat-link:hover strong { color: var(--accent-dark); }

.cat-tiles { max-width: 1120px; margin: 0 auto; padding: 2.2rem 1.5rem 0; }
.cat-tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-tile {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; box-shadow: var(--shadow);
  border: none; padding: 0;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 8, 10, 0.8), rgba(15, 8, 10, 0.1) 55%, transparent);
}
.cat-tile span {
  position: absolute; left: 0.9rem; bottom: 0.75rem; z-index: 1;
  color: #fff; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  /* En mobile no hay lugar para texto al lado de la imagen, así que se
     apila: la imagen arriba como tarjeta, el texto abajo sobre el amarillo. */
  .hero { padding: 1.6rem 0; }
  .hero-inner { flex-direction: column; gap: 1.4rem; padding: 0 1.2rem; }
  .hero-art { order: -1; max-width: 260px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .hero p { font-size: 0.98rem; }
}

@media (max-width: 640px) {
  .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.55rem; }
}
