/*
  Estilos del menu imprimible en 2 paginas.
  La idea es que cada hoja parezca una carta de heladeria: colorida,
  clara, con imagenes ilustradas y facil de leer desde lejos.
*/
:root {
  --ink: #35122d;
  --berry: #f02d7f;
  --berry-dark: #9f0d5a;
  --orange: #ff8a4c;
  --cream: #fff7ed;
  --paper: #fffdf8;
  --sun: #ffc857;
  --mint: #79d2ad;
  --choco: #5a2d22;
  --stroke: rgba(53, 18, 45, 0.13);
  --shadow: 0 24px 70px rgba(53, 18, 45, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 200, 87, 0.34), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(240, 45, 127, 0.22), transparent 30%),
    linear-gradient(135deg, #fff5e6, #ffe2ef 48%, #fffdf8);
}

.menu-book {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.menu-actions a,
.menu-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--orange));
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.menu-actions .ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--stroke);
}

.print-sheet {
  position: relative;
  overflow: hidden;
  min-height: 1040px;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 36px;
  background:
    radial-gradient(circle at 95% 4%, rgba(255,255,255,0.8), transparent 24%),
    linear-gradient(145deg, rgba(255,253,248,0.96), rgba(255,230,242,0.92));
  box-shadow: var(--shadow);
}

.print-sheet::before {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(240, 45, 127, 0.13);
}

.menu-hero,
.mini-hero {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--stroke);
}

.menu-logo {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(53,18,45,0.2);
}

.mini-logo {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  object-fit: cover;
}

.mini-hero {
  grid-template-columns: 90px 1fr;
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--berry-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 10px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.88;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(53,18,45,0.68);
  font-size: 1.06rem;
}

.hero-badge {
  justify-self: end;
  padding: 18px 20px;
  border: 0;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--orange));
  box-shadow: 0 18px 36px rgba(216,41,128,0.24);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(216,41,128,0.32);
}

.hero-badge span {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255,255,255,0.84);
  font-size: 0.84rem;
}

.flavors-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(216,41,128,0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,240,248,0.92));
  box-shadow: 0 18px 40px rgba(53,18,45,0.08);
}

.flavors-panel h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.flavors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 620px;
}

.flavors-list span {
  padding: 8px 11px;
  border: 1px solid rgba(216,41,128,0.18);
  border-radius: 999px;
  color: var(--berry-dark);
  background: white;
  font-size: 0.88rem;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-card,
.menu-section,
.spotlight-row article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 16px 42px rgba(53,18,45,0.08);
}

.feature-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 15px;
  min-height: 220px;
  padding: 18px;
}

.product-media {
  position: relative;
  width: 118px;
  min-width: 118px;
  height: 118px;
}

.product-photo {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(53,18,45,0.18);
  display: block;
}

.feature-card h2 {
  margin-bottom: 7px;
  font-size: 1.55rem;
}

.feature-card p,
.menu-item p {
  color: rgba(53,18,45,0.67);
  line-height: 1.42;
}

.price-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-pills span,
.spotlight-row span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--berry-dark);
  background: rgba(240, 45, 127, 0.1);
  font-weight: 900;
}

.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.spotlight-row article {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
}

.spotlight-row strong {
  width: 100%;
  font-size: 1.25rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 16px;
}

.menu-section {
  padding: 16px;
}

.section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.section-title-gap {
  margin-top: 14px;
}

.section-title h2 {
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--orange));
  font-size: 0.96rem;
  text-transform: uppercase;
}

.menu-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px dashed rgba(53,18,45,0.15);
}

.menu-item-media {
  position: relative;
  width: 62px;
  height: 62px;
}

.menu-item-media .product-art {
  transform: scale(0.72);
  transform-origin: top left;
}

.menu-item-photo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(53,18,45,0.14);
}

.menu-item-body {
  min-width: 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.item-head h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.price-list {
  display: grid;
  gap: 3px;
  min-width: 132px;
  text-align: right;
  color: var(--berry-dark);
  font-weight: 900;
}

.menu-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--berry-dark));
  font-weight: 900;
}

/* Ilustraciones de productos hechas con CSS. Son imagenes ligeras y siempre imprimen. */
.product-art {
  position: relative;
  min-width: 118px;
  height: 118px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), transparent 22%),
    linear-gradient(145deg, #ffe2ef, #ffc857);
}

.product-art.tiny {
  min-width: 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.product-art.hidden,
.product-photo.hidden {
  display: none !important;
}

.product-art span,
.product-art i {
  position: absolute;
  display: block;
}

.cone-art span:first-child {
  left: 37px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff7bb5;
  box-shadow: 26px 13px 0 #fff0b8;
}

.cone-art span:nth-child(2) {
  left: 40px;
  top: 54px;
  width: 48px;
  height: 58px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: repeating-linear-gradient(45deg, #d88935 0 8px, #f8bd66 8px 16px);
}

.cup-art span:first-child,
.bowl-art span:first-child {
  left: 25px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff1aa;
  box-shadow: 28px 4px 0 #ff7bb5, 12px -13px 0 #8ed7b8;
}

.cup-art span:nth-child(2),
.bowl-art span:nth-child(2) {
  left: 28px;
  top: 58px;
  width: 64px;
  height: 44px;
  border-radius: 12px 12px 24px 24px;
  background: linear-gradient(180deg, white, #ff9ac7);
}

.cup-art.pink { background: linear-gradient(145deg, #ffe5f0, #ff8fbd); }

.banana-art span:first-child {
  left: 18px;
  top: 50px;
  width: 82px;
  height: 32px;
  border-radius: 0 0 80px 80px;
  border-bottom: 18px solid #ffd75f;
  transform: rotate(-8deg);
}

.banana-art span:nth-child(2) {
  left: 36px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff7bb5;
  box-shadow: 26px 7px 0 #fff1aa, 52px 19px 0 #8ed7b8;
}

.milkshake-art span {
  left: 19px;
  top: 12px;
  width: 26px;
  height: 45px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(180deg, #fff, #ff8fbd);
}

.milkshake-art i {
  left: 42px;
  top: 6px;
  width: 4px;
  height: 48px;
  border-radius: 4px;
  background: var(--berry);
  transform: rotate(16deg);
}

.waffle-art span {
  left: 15px;
  top: 24px;
  width: 72px;
  height: 44px;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #f4aa44 0 8px, #ffd183 8px 16px);
  transform: rotate(-6deg);
}

@media (max-width: 860px) {
  .print-sheet,
  .menu-hero,
  .feature-grid,
  .spotlight-row,
  .menu-grid,
  .menu-footer {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    justify-self: start;
  }

  .flavors-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .flavors-list {
    justify-content: flex-start;
  }
}

@page {
  size: Letter;
  margin: 0.28in;
}

/* En impresion forzamos dos paginas limpias. */
@media print {
  body {
    background: white;
  }

  .menu-book {
    width: 100%;
    padding: 0;
  }

  .menu-actions {
    display: none;
  }

  .flavors-panel {
    display: flex !important;
  }

  .print-sheet {
    min-height: auto;
    height: 10.42in;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }

  .sheet-list {
    page-break-after: auto;
    break-after: auto;
  }
}
