.brand.brand-logo {
  width: 132px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.brand.brand-logo img {
  width: 106px;
  height: 66px;
  object-fit: contain;
  display: block;
}

.hero-text {
  max-width: 535px;
  font-size: 16px;
  line-height: 1.7;
}

.footer-brand.footer-logo {
  width: 182px;
  min-height: 96px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.footer-brand.footer-logo img {
  width: 150px;
  height: 92px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .92;
}

.product-gallery {
  min-width: 0;
  background: var(--warm);
}

.product-card {
  --flavor: var(--forest);
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
}

.product-card[data-product-id="lentejas"] { --flavor: #9b6347; }
.product-card[data-product-id="garbanzos"] { --flavor: #b78a3e; }
.product-card[data-product-id="acelga"] { --flavor: #5b845b; }
.product-card[data-product-id="calabaza"] { --flavor: #d07842; }

.product-card::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--flavor);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2,.75,.2,1);
}

.product-card.visible::before,
.product-card:hover::before {
  transform: scaleX(1);
}

.product-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-content .product-footer {
  margin-top: auto;
}

.product-card .product-kicker span:first {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-card .product-kicker span:first::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flavor);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--flavor) 28%, transparent);
  animation: none;
}

.product-card.visible .product-kicker span:first::before {
  animation: flavorPulse 1.7s ease-in-out 2;
}

.product-card .product-footer button {
  background: var(--flavor);
  min-width: 156px;
  transition: transform .25s ease, filter .25s ease;
}

.product-card .product-footer button:hover {
  transform: translateY(-2px);
  filter: brightness(.94);
}

.product-card .product-thumbs button.active {
  border-color: var(--flavor);
}

@keyframes flavorPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flavor) 24%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--flavor) 0%, transparent); }
}

.product-media {
  isolation: isolate;
  height: 520px;
}

.product-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -9%;
  background-image: linear-gradient(rgba(232, 226, 214, .58), rgba(232, 226, 214, .58)), var(--gallery-bg);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(.68);
  opacity: .46;
  transform: scale(1.08);
}

.product-card .product-media > img,
.product-card:hover .product-media > img {
  position: relative;
  z-index: 1;
  width: 76%;
  object-fit: cover;
  object-position: center;
  margin-inline: auto;
  display: block;
  transform: none;
  will-change: transform;
  box-shadow: 0 0 0 1px rgba(255,255,255,.42);
}

.product-card .product-media > img.is-zooming {
  animation: productSlowZoom 18s ease-in-out infinite alternate;
}

/* La foto de lentejas es vertical: se muestra completa para que el medallón
   conserve todo su volumen, usando el fondo difuminado para completar el marco. */
.product-card[data-product-id="lentejas"] .product-media > img,
.product-card[data-product-id="lentejas"]:hover .product-media > img {
  object-fit: contain;
  object-position: center;
}

@keyframes productSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.product-media .real-badge {
  z-index: 2;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--warm);
}

.product-thumbs button {
  position: relative;
  height: 78px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e8e2d6;
  cursor: pointer;
  opacity: .72;
  transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.product-thumbs button:hover,
.product-thumbs button.active {
  opacity: 1;
  border-color: var(--forest);
}

.product-thumbs button:hover {
  transform: translateY(-1px);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-link {
  display: flex;
  width: min(100%, 380px);
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 24px;
  padding: 15px 0;
  border-block: 1px solid rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.instagram-link span {
  color: #a7cba8;
}

.hero-videos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--forest-dark);
}

.hero-videos video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--forest-dark);
}

.hero-media-label {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  padding: 10px 13px;
  background: rgba(251, 248, 239, .94);
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 700;
}

.process-stills {
  position: relative;
  min-width: 0;
  height: 720px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3px;
  overflow: hidden;
  background: #0d291d;
}

.process-stills img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-stills span {
  position: absolute;
  z-index: 2;
  left: 30px;
  bottom: 30px;
  padding: 9px 12px;
  background: rgba(251,248,239,.94);
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 700;
}

.faq {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.faq-heading {
  position: sticky;
  top: 120px;
}

.faq-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.faq-heading h2 em {
  color: var(--forest);
  font-weight: 500;
}

.faq-heading > p:not(.eyebrow) {
  max-width: 400px;
  margin: 26px 0;
  color: var(--muted);
}

.faq-heading > a {
  display: flex;
  width: min(100%, 300px);
  justify-content: space-between;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  color: var(--forest-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.22);
  transition: background .25s ease;
}

.faq-list details[open] {
  background: rgba(167,203,168,.12);
}

.faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  min-height: 92px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 29px);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary > span {
  align-self: start;
  padding-top: 8px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.faq-list summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-family: var(--sans);
  font-size: 22px;
  transition: transform .25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-left: 48px;
  padding: 0 46px 28px 0;
  color: #41564b;
  font-size: 16px;
  line-height: 1.65;
  animation: faqReveal .35s ease both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.product-footer strong {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.product-footer strong small {
  display: block;
  margin-bottom: 4px;
  color: var(--flavor);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 700;
}

.cart-empty-logo {
  width: 104px;
  height: 78px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.cart-empty-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.faq.section {
  padding-block: 92px;
}

.order.section {
  padding-block: 105px;
}

@media (max-width: 900px) {
  .mobile-menu {
    top: 68px;
    bottom: 0;
    height: calc(100dvh - 68px);
    padding: 24px 20px max(34px, env(safe-area-inset-bottom));
    gap: 0;
    overflow-y: auto;
    background: var(--forest-dark);
    border: 0;
    color: #fff;
  }

  .mobile-menu a,
  .mobile-menu button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: clamp(23px, 6.8vw, 30px);
  }

  .mobile-menu .mobile-menu-whatsapp {
    min-height: 58px;
    margin-top: auto;
    padding: 0 18px;
    border: 0;
    background: #e18a55;
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-trigger span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 1px;
    margin: 0;
    transition: top .25s ease, transform .25s ease, opacity .25s ease;
  }

  .menu-trigger {
    position: relative;
  }

  .menu-trigger span:first-child {
    top: 15px;
  }

  .menu-trigger span:last-child {
    top: 26px;
  }

  .menu-trigger[aria-expanded="true"] span:first-child {
    top: 21px;
    transform: rotate(45deg);
  }

  .menu-trigger[aria-expanded="true"] span:last-child {
    top: 21px;
    transform: rotate(-45deg);
  }

  .mobile-menu .cart-count {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    margin-left: auto;
    padding: 0;
    border-radius: 50%;
    background: var(--cream);
    color: var(--forest-dark);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1;
  }

  .mobile-cart-bar {
    left: auto;
    right: 12px;
    width: auto;
    min-width: 148px;
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(90px);
    transition: transform .35s cubic-bezier(.2,.75,.2,1), opacity .25s ease;
  }

  .show-mobile-cart .mobile-cart-bar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-open .mobile-cart-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(90px);
  }

  .mobile-cart-bar > span:last-child {
    display: none;
  }

  .cart-header {
    padding: 20px;
  }

  .cart-header h2 {
    font-size: 32px;
  }

  .cart-header button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 29px;
  }

  .cart-empty {
    padding: 30px 24px;
  }

  .cart-empty-logo {
    width: 94px;
    height: 70px;
    margin-bottom: 18px;
  }

  .cart-empty h3 {
    margin-top: 0;
    font-size: 26px;
  }

  .cart-empty p {
    max-width: 290px;
    margin-inline: auto;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .brand.brand-logo {
    width: 108px;
    height: 62px;
  }

  .brand.brand-logo img {
    width: 94px;
    height: 58px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .product-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px;
    background: #fff;
  }

  .product-thumbs button,
  .product-thumbs button:hover,
  .product-thumbs button.active {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }

  .product-thumbs button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bbc5bd;
    transform: translate(-50%,-50%);
    transition: width .25s ease, background .25s ease;
  }

  .product-thumbs button.active::after {
    width: 22px;
    border-radius: 999px;
    background: var(--flavor);
  }

  .product-thumbs img {
    display: none;
  }

  .product-media {
    height: 430px;
  }

  .product-card .product-media > img,
  .product-card:hover .product-media > img {
    width: 86%;
  }

  .hero-badges {
    white-space: normal;
    flex-wrap: wrap;
    gap: 9px 15px;
    overflow: visible;
  }

  .hero-visual {
    order: -1;
    min-height: 460px;
    margin-top: 12px;
  }

  .hero-media-label {
    left: 16px;
    bottom: 16px;
  }

  .process-stills {
    height: 480px;
  }

  .process-stills span {
    left: 18px;
    bottom: 18px;
  }

  .faq {
    display: block;
  }

  .faq-heading {
    position: static;
    margin-bottom: 46px;
  }

  .faq-heading h2 {
    font-size: 48px;
  }

  .faq-list summary {
    grid-template-columns: 38px 1fr 22px;
    min-height: 82px;
    font-size: 22px;
  }

  .faq-answer {
    margin-left: 38px;
    padding-right: 12px;
  }

  .faq.section,
  .order.section {
    padding-block: 72px;
  }
}

@media (max-width: 420px) {
  .hero-badges span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card .product-media > img.is-zooming {
    animation: none;
  }

  .hero-videos video {
    display: none;
  }

  .hero-videos {
    background: url("assets/hero-hamburguesa.jpg") center / cover no-repeat;
  }

  .product-card .product-kicker span:first::before,
  .faq-answer {
    animation: none;
  }
}
