/* =========================================
   HERO (PRO + MARCA) — AJUSTADO
========================================= */

.hero {
  min-height: 88vh;
  min-height: 88svh;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0 20px;

  background-color: #111111;
  background-image: url("/img/hero.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

/* Overlay más cinematográfico */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.82) 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.88));
  z-index: 0;
}

/* Halo dorado fino */
.hero::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 50% 22%, rgba(212, 175, 55, 0.14), rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

/* Grain editorial */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 3px 3px;
}

/* Contenido */
.hero-content {
  max-width: 860px;
  color: var(--white);
  position: relative;
  z-index: 1;

  margin-top: -18px;

  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.85s ease forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título principal */
.hero h1 {
  font-family: var(--font-title);
  font-size: 60px;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.35px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
}

/* Lugastro protagonista: oro real + glow */
.hero-brand {
  display: inline-block;
  margin-top: 6px;

  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 1.6px;

  background: linear-gradient(90deg, #b9972e, #f7e7b0, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(212, 175, 55, 0.22);

  line-height: 1.15;
  padding-bottom: 0.14em;
}

/* Subtítulo */
.hero p {
  font-size: 18px;
  margin: 0 auto 30px;
  max-width: 680px;
  opacity: 0.92;
  line-height: 1.6;
}

/* Botones */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primario premium */
.hero .btn-primary {
  padding: 15px 46px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

/* Secundario glass */
.hero .btn-secondary {
  border-radius: 999px;
  padding: 15px 40px;

  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.62);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-secondary:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-1px);
}

/* Flecha */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.28);

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;

  animation: scrollPulse 1.8s ease-in-out infinite;
}

.hero-scroll:hover {
  border-color: rgba(212, 175, 55, 0.40);
  background: rgba(212, 175, 55, 0.12);
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: 74vh;
    min-height: 74svh;
    background-position: center 30%;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 66vh;
    min-height: 66svh;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-content {
    margin-top: -10px;
  }

  .hero .btn-primary {
    padding: 14px 34px;
  }

  .hero .btn-secondary {
    padding: 14px 30px;
  }
}


/* =========================================
   PILARES HOME
========================================= */

.home-pillars {
  padding: 60px 0 24px;
}

.home-pillars__grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .home-pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-pillars__item {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(244, 244, 244, 0.96)
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Glow dorado editorial */
.home-pillars__item::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 18% 22%,
    rgba(212, 175, 55, 0.14),
    rgba(0, 0, 0, 0) 62%
  );
  pointer-events: none;
}

.home-pillars__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.10);
  border-color: rgba(212, 175, 55, 0.20);
}

.home-pillars__item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-pillars__item > div {
  margin-top: auto !important;
  padding-top: 14px;
}


/* =========================================
   ÚLTIMAS RECETAS
========================================= */

.latest {
  padding: 64px 0 72px;
}

.latest-container {
  position: relative;
}

.latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.latest-head h2 {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 0.4px;
  color: var(--black);
  margin: 0;
}

.latest-link {
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.latest-link:hover {
  opacity: 1;
}

.latest-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.latest-link:hover::after {
  transform: scaleX(1);
}

.latest-empty {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 640px) {
  .latest {
    padding: 54px 0 60px;
  }

  .latest-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .latest-head h2 {
    font-size: 26px;
  }
}


/* =========================================
   HOME SPLIT: Recetas + Artículos (sidebar)
========================================= */

.home-split {
  display: grid;
  gap: 28px;
}

@media (min-width: 980px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}

.home-split__main {
  min-width: 0;
}

.home-split__side {
  min-width: 0;
}

/* Título sidebar */
.home-side-title {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 0.4px;
  margin: 0 0 22px;
  color: var(--black);
}

/* Lista artículos */
.home-articles {
  display: grid;
  gap: 14px;
}

.home-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.18);
}

.home-article__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.home-article__title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--black);
  font-family: var(--font-title);
}

.home-article__title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.home-article__title a:hover {
  opacity: 0.82;
}

.home-article__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.95;
}

/* CTA de sección */
.home-section-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: left;
}

.home-section-link:hover {
  opacity: 1;
  transform: translateX(2px);
}

/* Sidebar */
.home-section-link--side {
  text-align: left;
}

@media (max-width: 979px) {
  .home-section-link--side {
    margin-top: 16px;
  }
}


/* =========================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
========================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-scroll {
    animation: none;
  }

  .hero-content,
  .hero .btn-secondary,
  .home-pillars__item,
  .home-article,
  .home-section-link {
    transition: none;
    transform: none;
  }
}