/* Héroe: fondo, overlay y layout responsivo */
#hero,
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60vh; /* altura base */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-image: url("../img/1.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* overlay para mejorar contraste y legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* contenedor interno centrado y limitado */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-content-width);
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr /*420px*/; /* contenido principal + entrada destacada */
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* contenido textual principal del héroe */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.hero-title {
  color: #fff;
  margin: 0;
  line-height: 1.05;
  font-size: clamp(28px, 4.5vw, 44px);
}

.hero-subtitle {
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin-bottom: 0.5rem;
}

/* entrada destacada (tarjeta lateral dentro del héroe) */
.hero-entry {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: center;
}

.hero-entry h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.hero-entry span{
    display: inline-block;
}
.entry-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.entry-excerpt {
  color: rgba(255,255,255,0.95);
  margin: 0;
  font-size: 0.95rem;
}

.entry-cta {
  margin-top: 0.5rem;
  background: var(--color-secondary);
  color: #000;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}


/* Small screens: columna única, contenido centrado */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-entry {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  .hero-subtitle {
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  #hero {
    min-height: 48vh;
  }
  .hero-title {
    font-size: clamp(20px, 6vw, 28px);
  }
  .hero-inner {
    padding: 2rem 0.75rem;
    gap: 1rem;
  }
  .entry-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }
}
