/* Inicio: banner del bosque, presentación y epígrafe.
   Parte de los estilos de la web (recursos/css/). Los colores vienen de las variables
   --sendero-* definidas en _sistema/tema/claro.scss y oscuro.scss */

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  margin-top: calc(-1rem - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Móvil: foto vertical completa; 2x para pantallas de alta densidad */
  --hero-img: image-set(
    url("../img/inicio/bosque-hero-m900.webp") 1x,
    url("../img/inicio/bosque-hero-m1500.webp") 2x
  );
  --hero-pos: center 60%;
  background:
    linear-gradient(
      to bottom,
      rgba(var(--sendero-overlay), 0.35) 0%,
      rgba(var(--sendero-overlay), 0.55) 65%,
      var(--sendero-bg) 100%
    ),
    var(--hero-img) var(--hero-pos) / cover no-repeat;
}

/* Escritorio y tablet: recorte horizontal 3:2 centrado en el sendero */
@media (min-width: 768px) {
  .hero {
    --hero-img: image-set(
      url("../img/inicio/bosque-hero-1920.webp") 1x,
      url("../img/inicio/bosque-hero-3024.webp") 2x
    );
    --hero-pos: center 40%;
  }
}

/* Coordenadas de la foto, como una señal de sendero.
   Se colocan por encima del degradado final para que sigan siendo legibles en modo claro. */
.hero > p:has(.hero-coords) {
  position: absolute;
  left: 1.5rem;
  bottom: 28%;
  margin: 0;
}

.hero-coords {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .hero > p:has(.hero-coords) {
    left: 0;
    right: 0;
    top: 1rem;
    bottom: auto;
    text-align: center;
  }
}

.hero-content {
  padding: 3rem 1rem 5rem;
  max-width: 50rem;
}

/* En móvil el subtítulo se parte en el separador y el "·" desaparece */
@media (max-width: 767.98px) {
  .hero-sep {
    display: block;
    height: 0;
    overflow: hidden;
  }
}

.hero-content p {
  margin: 0;
}

.hero-avatar {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}

.hero-title {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-links p {
  display: contents;
}

.btn-hero {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  backdrop-filter: blur(4px);
}

.btn-hero:hover {
  color: #1a3017;
  background: #fff;
}

.home-intro {
  max-width: 44rem;
  margin: 1rem auto 2.5rem;
  font-size: 1.1rem;
  text-align: center;
}

/* Epígrafe literario bajo la presentación, como el de la primera página de un libro */
.home-epigrafe {
  max-width: 34rem;
  margin: -1rem auto 2.75rem;
  text-align: center;
}

.home-epigrafe blockquote {
  margin: 0;
  padding: 1rem 0 0;
  border: none;
  border-top: 1px solid var(--sendero-border);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: inherit;
  opacity: 0.85;
}

.home-epigrafe blockquote p {
  margin-bottom: 0.35rem;
}

.epigrafe-autor {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.epigrafe-autor::before {
  content: "— ";
}

.epigrafe-autor em {
  font-variant: normal;
}
