/* =========================================================
   COMPONENTES REUTILIZABLES
   Encabezado, pie, tarjetas, banner y navegación.
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(108, 63, 42, 0.08);
  backdrop-filter: blur(16px);
}
.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.brand__name {
  display: block;
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
}
.brand__tagline {
  display: block;
  margin-top: 4px;
  color: var(--caramel-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-weight: 750;
  color: #6e5549;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brown-900);
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--brown-900);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(223, 189, 145, 0.55),
      transparent 29%
    ),
    linear-gradient(135deg, #fffaf2 0%, #f9ead4 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -140px -240px auto;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(108, 63, 42, 0.09);
  border-radius: 50%;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 54px;
}
.hero__title {
  margin: 14px 0 20px;
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
  color: var(--brown-900);
}
.hero__title em {
  color: var(--caramel-600);
  font-weight: 500;
}
.hero__text {
  max-width: 620px;
  margin: 0;
  color: #7c5f51;
  font-size: 1.12rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fact-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(108, 63, 42, 0.09);
  font-weight: 700;
  color: #745647;
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0d8b8, #e5c297);
  border-radius: 48px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.55);
}
.hero-card__logo {
  position: relative;
  z-index: 2;
  width: min(78%, 390px);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(78, 45, 32, 0.18);
}
.hero-card__badge {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  padding: 18px 20px;
  background: #fffaf2;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-card__badge strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.45rem;
}
.hero-card__badge span {
  color: #856758;
  font-size: 0.9rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}
.feature-card {
  padding: 30px;
}
.feature-card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--cream-100);
  font-size: 1.4rem;
}
.feature-card h3 {
  margin: 20px 0 8px;
  font-family: var(--font-title);
  font-size: 1.65rem;
}
.feature-card p {
  margin: 0;
  color: #826658;
}

.menu-preview {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}
.product-card {
  overflow: hidden;
}
.product-card__visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f5dfc1, #e7c193);
  font-size: 5rem;
}
.product-card__body {
  padding: 24px;
}
.product-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.product-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.6rem;
}
.price {
  color: var(--caramel-600);
  font-weight: 900;
  white-space: nowrap;
}
.product-card p {
  margin: 10px 0 0;
  color: #84685a;
}

.banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--brown-800);
  color: var(--white);
}
.banner h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.banner p {
  margin: 8px 0 0;
  color: #ead9ce;
}

.site-footer {
  padding: 54px 0 26px;
  background: var(--brown-900);
  color: #f6e9dd;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}
.footer-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin: 0 0 14px;
}
.footer-copy,
.footer-links a {
  color: #d8c1b4;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bfa79a;
  font-size: 0.9rem;
}

.page-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, #fffaf2, #f2dfc5);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: center;
  gap: 42px;
}
.page-hero__logo {
  width: 250px;
  justify-self: end;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 84px 12px auto;
    display: none;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    background: #fffaf2;
    border: 1px solid rgba(108, 63, 42, 0.1);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .navbar > .btn {
    display: none;
  }
  .hero__grid,
  .page-hero__grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 420px;
  }
  .page-hero__logo {
    justify-self: start;
    width: 190px;
  }
  .feature-grid,
  .menu-preview {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand__tagline {
    display: none;
  }
  .hero {
    padding-top: 54px;
  }
  .hero__title {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
  .hero-card {
    min-height: 340px;
    border-radius: 30px;
  }
  .hero-card__badge {
    right: 14px;
    bottom: 14px;
  }
  .feature-grid,
  .menu-preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .banner {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}
