/* =========================================================
   SECCIONES
   Estilos propios de cada bloque de la página, en el mismo
   orden en que aparecen en index.html. Mobile-first.
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 14s var(--ease) forwards;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.52) 45%, rgba(0,0,0,.72) 100%); /* un poco más oscuro: la foto actual tiene mucho blanco (queso) */
}
.hero__content { text-align: center; max-width: 880px; }

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.hero__title {
  font-family: var(--ff-title);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__subtitle {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: rgba(255,255,255,.92);
}
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 32px;
}
.hero__actions .btn { flex: 1 1 220px; max-width: 280px; }

.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 36px;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--c-green); }

@keyframes hero-zoom { to { transform: scale(1); } }

/* =========================================================
   PRODUCTOS
   ========================================================= */
.products {
  display: grid;
  gap: 24px;
  /* Columnas automáticas: entran tantas como quepan (mínimo 250px cada una) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
/* Pizzas: hasta 4 columnas en compu. Viandas: hasta 3, un poco más anchas */
.products--pizzas  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.products--viandas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Fondo blanco para una sección decorada (Viandas) */
.section--white { background: var(--c-bg); }

/* =========================================================
   BANNER DE PROMO (pizzas 3+1 de noviembre)
   ========================================================= */
.promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 20px;
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 16px 22px;
  border: 2px dashed rgba(16, 36, 12, .25);
  border-radius: 18px;
  background: linear-gradient(120deg, #FFD25E, #FFE59A);
  box-shadow: 0 12px 28px rgba(200, 150, 20, .22);
}
/* Brillo que pasa cada tanto */
.promo::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30%; height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: translateX(-150%) skewX(-20deg);
  animation: promo-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
/* Círculo oscuro con el "3+1" */
.promo__badge {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  line-height: 1;
  color: #FFD25E;
  background: var(--c-dark);
  transform: rotate(-8deg);
  animation: promo-wiggle 3s ease-in-out infinite;
}
.promo__badge small  { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.promo__badge strong { font-family: var(--ff-title); font-size: 1.7rem; font-weight: 700; }
.promo__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A4D00; }
.promo__text p { margin-top: 2px; font-size: 1.05rem; line-height: 1.4; color: #10240C; }
.promo__cta { position: relative; z-index: 1; white-space: nowrap; }

/* Se mueve con transform (no con "left") para que no trabe el scroll */
@keyframes promo-shine  { 0%, 60% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(440%) skewX(-20deg); } }
@keyframes promo-wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(4deg) scale(1.06); } }

/* =========================================================
   CÓMO FUNCIONA (pasos)
   ========================================================= */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  /* Línea punteada que une los pasos (en compu) */
  .steps::before {
    content: '';
    position: absolute;
    top: 60px; left: 10%; right: 10%;
    border-top: 2px dashed rgba(91, 185, 71, .5);
  }
}

.step {
  position: relative;
  z-index: 1; /* las tarjetas tapan la línea punteada: solo se ve entre una y otra */
  padding: 28px 18px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }
.step:nth-child(4) { transition-delay: .24s; }

.step__num {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--ff-title);
  font-size: 1.1rem; font-weight: 700;
  color: #c9d2c5;
}
.step__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 50%;
  color: var(--c-green);
  background: var(--c-green-soft);
}
.step__title {
  font-family: var(--ff-title);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-green-dark);
}
.step__text { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.5; }

/* Celular: cada paso en una fila (ícono a la izquierda, texto a la derecha) */
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 16px 40px 16px 16px;
    text-align: left;
  }
  .step__icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; padding: 13px; }
  .step__num { top: 50%; left: auto; right: 16px; transform: translateY(-50%); font-size: 1.4rem; }
  .step__title { font-size: 1.15rem; align-self: end; }
  .step__text { margin-top: 2px; align-self: start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 44px 0 96px; background: #fff; border-top: 1px solid var(--c-border); }
.footer__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  display: grid; place-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--c-green);
  background: var(--c-green-soft);
  transition: transform var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.footer__social a:hover { transform: scale(1.15); color: #fff; background: var(--c-green); }
.footer__social svg { width: 22px; height: 22px; }
.footer__copy { font-size: var(--fs-xs); color: var(--c-muted); }
