/* MAMMA'S BURGER v3.8
   Igualar las tarjetas de productos de INICIO con el lenguaje visual de menu.php.
   No modifica la estructura ni el contenido de los productos. */

/* Cartelera de inicio: proporciones, marco rojo y fotografía como en el menú */
.showing .poster-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 28px !important;
}
.showing .poster-card,
.showing .poster-card:nth-child(2) {
  position: relative !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(17,17,17,.12) !important;
  box-shadow: 9px 9px 0 rgba(17,17,17,.09) !important;
  transform: none !important;
  transition: transform .35s ease, box-shadow .35s ease !important;
}
.showing .poster-card:hover,
.showing .poster-card:nth-child(2):hover {
  transform: translateY(-8px) rotate(-.4deg) !important;
  box-shadow: 14px 14px 0 rgba(17,17,17,.13) !important;
}
.showing .poster-card__image.image-frame--product {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--mamma-red, #b82222) !important;
  isolation: isolate !important;
}
.showing .poster-card__image.image-frame--product::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 13px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  background: transparent !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.showing .poster-card__image.image-frame--product::after,
.showing .poster-card__image.image-frame--product > span {
  display: none !important;
  content: none !important;
}
.showing .poster-card__image.image-frame--product > img {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 22px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  z-index: 2 !important;
}
.showing .poster-card:hover .poster-card__image.image-frame--product > img {
  transform: scale(1.025) !important;
}
.showing .poster-card__body {
  position: relative !important;
  min-height: 165px !important;
  padding: 23px 22px 25px !important;
  background: #fff !important;
}
.showing .poster-card__body > span {
  display: block !important;
  color: var(--mamma-red, #b82222) !important;
  font: 800 .65rem/1 var(--font-heading) !important;
  letter-spacing: .14em !important;
}
.showing .poster-card__body h3 {
  margin: 7px 0 8px !important;
  font: 900 clamp(2rem, 3vw, 3.1rem)/.88 var(--font-heading) !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere !important;
}
.showing .poster-card__body p {
  margin: 0 !important;
  max-width: 100% !important;
  font: 1rem/1.45 var(--font-secondary) !important;
}

/* Portada: marco cinematográfico coherente con los posters del menú,
   manteniendo el retrato original sin filtros ni recortes forzados. */
.hero__visual {
  align-self: center !important;
}
.drive-in.image-frame.image-frame--hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: var(--mamma-red, #b82222) !important;
  border: 8px solid var(--mamma-red, #b82222) !important;
  box-shadow: 12px 12px 0 var(--mamma-gray, #d8d6d0) !important;
}
.drive-in.image-frame.image-frame--hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 12px !important;
  border: 1px solid rgba(255,255,255,.8) !important;
  z-index: 8 !important;
  pointer-events: none !important;
}
.drive-in.image-frame.image-frame--hero > img.hero-character-image {
  background: #fff !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
}
.drive-in.image-frame.image-frame--hero > img.hero-product-logo {
  z-index: 10 !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)) !important;
  pointer-events: none !important;
}

@media (max-width: 950px) {
  .showing .poster-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .showing .poster-card__body h3 { font-size: clamp(1.8rem, 4vw, 2.7rem) !important; }
}
@media (max-width: 620px) {
  .showing .poster-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .showing .poster-card,
  .showing .poster-card:nth-child(2) { transform: none !important; }
  .showing .poster-card__image.image-frame--product { aspect-ratio: 4 / 3 !important; }
  .showing .poster-card__body { min-height: 0 !important; padding: 22px !important; }
  .showing .poster-card__body h3 { font-size: clamp(2.2rem, 10vw, 3.1rem) !important; }
}
