/* ==========================================================================
   La Peruanita: estilos (mobile first)
   Colores tomados del logo; crema y carbón como base premium.
   ========================================================================== */

:root {
  --rojo: #d9303f;
  --rojo-texto: #bd1f30;
  --oro: #ffc53d;
  --oro-hondo: #8a5a00;
  --verde: #5db87a;
  --verde-boton: #177a46;
  --verde-boton-2: #12633a;
  --petroleo: #0e3748;
  --carbon: #1c1916;
  --carbon-2: #2a2520;
  --crema: #fbf6ea;
  --crema-2: #f4ead5;
  --crema-texto: #f3e8d3;
  --tinta: #1c1916;
  --tinta-suave: #5a5046;
  --borde: #e6dac2;

  --alto-cabecera: 68px;
  --alto-categorias: 60px;
  --radio: 18px;
  --sombra: 0 10px 28px rgba(28, 25, 22, .1);
  --titulos: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-cabecera) + var(--alto-categorias));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-abierto { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--titulos);
  line-height: 1.12;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 2px;
  border-radius: 6px;
}

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.saltar {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--oro);
  color: var(--carbon);
  font-weight: 700;
}
.saltar:focus { top: 12px; }

/* Botones
   ========================================================================== */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--titulos);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.boton:active { transform: scale(.97); }
.boton svg { flex: none; width: 20px; height: 20px; }

.boton--primario {
  background: var(--oro);
  color: var(--carbon);
  box-shadow: 0 8px 0 -2px #c98f12, 0 16px 32px rgba(0, 0, 0, .35);
}
.boton--primario:active { box-shadow: 0 3px 0 -1px #c98f12; transform: translateY(3px); }

.boton--whatsapp { background: var(--verde-boton); color: #fff; }

/* Cabecera
   ========================================================================== */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--crema);
  border-bottom: 1px solid var(--borde);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--alto-cabecera);
}

.cabecera__logo { display: block; }
.cabecera__logo img { width: 56px; height: 56px; object-fit: contain; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--carbon);
  cursor: pointer;
}
.menu-btn svg { grid-area: 1 / 1; width: 28px; height: 28px; }
.menu-btn .icono-cerrar { display: none; }
.menu-btn--abierto .icono-cerrar { display: block; }
.menu-btn--abierto .icono-menu { display: none; }

.nav {
  position: fixed;
  inset: calc(var(--alto-cabecera) + 1px) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--crema);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav--abierta { visibility: visible; opacity: 1; transform: none; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--borde);
  font-family: var(--titulos);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.nav a.activo { color: var(--rojo-texto); }

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 28px 48px;
  background:
    radial-gradient(90% 55% at 50% 100%, #a33a14 0%, rgba(122, 40, 14, .75) 34%, transparent 72%),
    var(--carbon);
  color: var(--crema-texto);
}

.hero--foto {
  background:
    linear-gradient(180deg, rgba(28, 25, 22, .72), rgba(28, 25, 22, .88)),
    var(--foto-hero) center / cover no-repeat,
    var(--carbon);
}
.hero--foto .hero__rayos { display: none; }

.hero__fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__rayos {
  position: absolute;
  left: 50%;
  bottom: -42vmax;
  width: 150vmax;
  height: 150vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 197, 61, .09) 0 7deg, transparent 0 14deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
}

.humo {
  position: absolute;
  bottom: 40px;
  width: 200px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 225, .2), transparent);
  filter: blur(18px);
  opacity: 0;
  animation: subir 11s ease-in infinite;
}
.humo--1 { left: 6%; }
.humo--2 { left: 42%; width: 260px; animation-delay: 3.6s; }
.humo--3 { right: 4%; animation-delay: 7.2s; }

@keyframes subir {
  0% { opacity: 0; transform: translateY(40px) scale(.7); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-420px) translateX(40px) scale(1.5); }
}

.hero__contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__marca { order: -1; }
.hero__marca img {
  width: min(44vw, 176px);
  height: auto;
  filter:
    drop-shadow(3px 0 0 var(--crema)) drop-shadow(-3px 0 0 var(--crema))
    drop-shadow(0 3px 0 var(--crema)) drop-shadow(0 -3px 0 var(--crema))
    drop-shadow(0 14px 24px rgba(0, 0, 0, .45));
}

.hero__sello {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--oro);
  font-family: var(--titulos);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff8ec;
  font-size: clamp(36px, 10.6vw, 72px);
  font-weight: 900;
}
.hero h1 span { color: var(--oro); }

.hero__lema {
  margin-block: 12px 22px;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 500;
}
.hero__lema span { display: inline-block; }

.hero .boton--primario { width: 100%; max-width: 340px; font-size: 18px; min-height: 58px; }

.hero__datos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
}
.hero__datos li { display: flex; align-items: center; gap: 8px; }
.hero__datos li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
}

/* Secciones
   ========================================================================== */
.seccion { padding-block: 56px; }
.seccion--oscura { background: var(--carbon); color: var(--crema-texto); }
.seccion--crema2 { background: var(--crema-2); }

.seccion__cabeza { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.seccion__cabeza--izq { margin-inline: 0; text-align: left; margin-bottom: 24px; }
.seccion__cabeza h2 { font-size: clamp(29px, 7.6vw, 44px); font-weight: 900; }
.seccion__cabeza > p:last-child { margin-top: 10px; color: var(--tinta-suave); font-size: 17px; }
.seccion--oscura .seccion__cabeza > p:last-child { color: #d8ccb8; }

.antetitulo {
  margin-bottom: 8px;
  color: var(--rojo-texto);
  font-family: var(--titulos);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.antetitulo--verde { color: var(--verde-boton); }
.seccion--oscura .antetitulo { color: var(--oro); }

/* Pilares
   ========================================================================== */
.pilares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.pilar {
  padding: 20px 14px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: #fffdf7;
  text-align: center;
}
.pilar h3 { margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.pilar p { color: var(--tinta-suave); font-size: 14px; line-height: 1.4; }

.pilar__icono {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border: 3px solid var(--petroleo);
  border-radius: 50%;
  color: var(--petroleo);
}
.pilar__icono svg { width: 34px; height: 34px; }
.pilar__icono--rojo { background: #ffc9c4; }
.pilar__icono--oro { background: #ffdf8e; }
.pilar__icono--verde { background: #bfe6c9; }
.pilar__icono--carbon { background: #f4ead5; }

/* Categorías (pegadas bajo la cabecera)
   ========================================================================== */
.catalogo { scroll-margin-top: calc(-1 * var(--alto-categorias)); }

.categorias {
  position: sticky;
  top: var(--alto-cabecera);
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 8px;
  height: var(--alto-categorias);
  padding: 8px 16px;
  background: var(--carbon);
  border-bottom: 1px solid #3a342d;
}

.categorias a {
  flex: 1 1 0;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--carbon-2);
  color: var(--crema-texto);
  font-family: var(--titulos);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.categorias a.activo { background: var(--oro); color: var(--carbon); }

/* Tarjetas
   ========================================================================== */
.tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.tarjeta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radio);
  background: #fffdf7;
  color: var(--tinta);
  box-shadow: var(--sombra);
}

.tarjeta__medio {
  --rayo-a: #ffe39b;
  --rayo-b: #fff1c9;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  background: repeating-conic-gradient(from -4deg at 50% 118%, var(--rayo-a) 0 8deg, var(--rayo-b) 0 16deg);
}
.tarjeta--frescos .tarjeta__medio { --rayo-a: #cdeBd2; --rayo-b: #e9f6e9; }
.tarjeta--packs .tarjeta__medio { --rayo-a: #ffc9c4; --rayo-b: #ffe3dc; }

.tarjeta__medio svg { width: 100%; height: 100%; }
.tono-natural { --carne: #A8492F; --carne-chorizo: #C4583A; }
.tono-premium { --carne: #6E2018; --carne-chorizo: #8F2B20; }
.tarjeta__medio { position: relative; }
.tarjeta__sello {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border: 2px solid var(--petroleo);
  border-radius: 999px;
  background: var(--oro);
  color: var(--petroleo);
  font-family: var(--titulos);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tarjeta__medio--foto { padding: 0; background: var(--crema-2); }
.tarjeta__medio--foto img { width: 100%; height: 100%; object-fit: cover; }

.tarjeta__cuerpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.tarjeta h3 { font-size: 15px; font-weight: 800; line-height: 1.22; }
.tarjeta__detalle { color: var(--tinta-suave); font-size: 14px; line-height: 1.35; }

.tarjeta__precio {
  margin-top: auto;
  padding-top: 6px;
  color: var(--rojo-texto);
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.tarjeta .boton {
  width: 100%;
  min-height: 50px;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 6px;
  font-size: 14px;
}
.tarjeta .boton svg { width: 18px; height: 18px; }

.tarjetas--packs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tarjetas--packs .tarjeta__medio { aspect-ratio: 16 / 9; }
.tarjetas--packs .tarjeta__cuerpo { padding: 16px; }
.tarjetas--packs h3 { font-size: 22px; font-weight: 900; }
.tarjetas--packs .tarjeta__detalle { font-size: 16px; }
.tarjetas--packs .tarjeta__precio { font-size: 28px; }
.tarjetas--packs .boton { min-height: 54px; font-size: 16px; }

.sin-js { padding: 32px 16px; text-align: center; }

/* Bloque para negocios
   ========================================================================== */
.negocios {
  padding-block: 48px;
  background:
    repeating-conic-gradient(from -4deg at 50% 130%, rgba(255, 197, 61, .08) 0 8deg, transparent 0 16deg),
    #a81a2b;
  color: #fff8ec;
}

.negocios__fila { display: flex; flex-direction: column; gap: 24px; }
.negocios .antetitulo { color: var(--oro); }
.negocios h2 { font-size: clamp(27px, 7.2vw, 42px); font-weight: 900; color: #fff8ec; }
.negocios__texto > p:not(.antetitulo) { margin-top: 12px; font-size: 17px; }

.negocios__tipos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.negocios__tipos li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 248, 236, .6);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.negocios__boton { width: 100%; min-height: 56px; font-size: 17px; box-shadow: 0 7px 0 -2px #c98f12; }
.negocios__boton:active { box-shadow: 0 3px 0 -1px #c98f12; }

/* Pie
   ========================================================================== */
.pie {
  padding-block: 0 calc(96px + env(safe-area-inset-bottom));
  background: var(--carbon);
  color: var(--crema-texto);
}

.pie__delivery {
  padding: 16px;
  background: var(--oro);
  color: var(--carbon);
  font-family: var(--titulos);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.pie__fila {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: 36px 28px;
  text-align: center;
}

.pie__logo { width: 128px; height: auto; }

.pie h2 {
  margin-bottom: 12px;
  color: var(--oro);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pie__redes ul { display: flex; justify-content: center; gap: 12px; }
.pie__redes a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--carbon-2);
  color: var(--crema-texto);
  transition: background-color .15s ease, color .15s ease;
}
.pie__redes svg { width: 24px; height: 24px; }

.pie__copy {
  padding-top: 18px;
  border-top: 1px solid #3a342d;
  color: #c9bda9;
  font-size: 14px;
  text-align: center;
}

/* Botón flotante de WhatsApp
   ========================================================================== */
.flotante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde-boton);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.flotante--oculto { opacity: 0; visibility: hidden; transform: scale(.8); }
.flotante svg { width: 32px; height: 32px; }

/* Aparición al hacer scroll
   ========================================================================== */
.con-animacion .revelar { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.con-animacion .revelar.visible { opacity: 1; transform: none; }

/* Pasar el cursor (solo en dispositivos con cursor)
   ========================================================================== */
@media (hover: hover) {
  .boton--whatsapp:hover, .flotante:hover { background: var(--verde-boton-2); }
  .boton--primario:hover { background: #ffd163; }
  .tarjeta { transition: transform .18s ease, box-shadow .18s ease; }
  .tarjeta:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(28, 25, 22, .18); }
  .pie__redes a:hover { background: var(--oro); color: var(--carbon); }
  .categorias a:hover:not(.activo) { background: #3a342d; }
}

/* Tablet
   ========================================================================== */
@media (min-width: 640px) {
  .contenedor { padding-inline: 24px; }
  .tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tarjetas--packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tarjeta h3 { font-size: 17px; }
  .tarjeta .boton { font-size: 15px; }
  .tarjeta__cuerpo { padding: 14px; }
  .pilares { gap: 16px; }
  .pilar { padding: 26px 18px; }
  .pilar h3 { font-size: 18px; }
  .pilar p { font-size: 15px; }
}

/* Escritorio
   ========================================================================== */
@media (min-width: 960px) {
  :root { --alto-cabecera: 84px; }

  .seccion { padding-block: 84px; }
  .cabecera__logo img { width: 70px; height: 70px; }
  .menu-btn { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav a {
    min-height: 44px;
    padding: 8px 14px;
    border-bottom: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
  }
  .nav a:hover { background: var(--crema-2); }

  .hero { padding-block: 72px 96px; }
  .hero__contenido { flex-direction: row; justify-content: space-between; gap: 48px; text-align: left; }
  .hero__texto { flex: 1 1 58%; }
  .hero__marca { order: 0; flex: 0 0 auto; }
  .hero__marca img { width: 400px; }
  .hero .boton--primario { width: auto; padding-inline: 34px; }
  .hero__datos { justify-content: flex-start; font-size: 15px; }

  .pilares { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

  .tarjetas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .tarjetas--frescos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .tarjetas--packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tarjetas--packs .tarjeta { flex-direction: row; }
  .tarjetas--packs .tarjeta__medio { flex: 0 0 54%; aspect-ratio: auto; min-height: 280px; }
  .tarjetas--packs .tarjeta__cuerpo { padding: 22px; justify-content: center; }
  .tarjetas--packs .tarjeta__precio { margin-top: 12px; }

  .negocios { padding-block: 64px; }
  .negocios__fila { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .negocios__texto { max-width: 720px; }
  .negocios__boton { flex: none; width: auto; padding-inline: 34px; }

  .pie__fila { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .pie__redes ul { justify-content: flex-start; }
}

/* Reducir movimiento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
