/* ==========================================================================
   Bacalao Maribel - home page blocks.
   Depends on the colour tokens declared by the bacalao-maribel child theme;
   the fallbacks keep the module usable under any other theme.
   ========================================================================== */

.bm-hero,
.bm-trust,
.bm-story,
.bm-shipping {
  /* Full-bleed sections inside PrestaShop's centred #content wrapper. */
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
}

.bm-selection { margin: 4.5rem auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.bm-hero {
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(29, 106, 140, .55) 0%, transparent 60%),
    linear-gradient(160deg, var(--bm-deep, #0b2e3f) 0%, #071f2b 100%);
  color: var(--bm-foam, #e8f1f4);
  overflow: hidden;
}

/* Faint wave texture across the bottom of the hero. */
.bm-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180-40 360 40 540 30s360-70 540-50 300 60 360 70v10H0Z' fill='%23faf7f1' fill-opacity='.08'/%3E%3C/svg%3E") bottom / 100% 120px no-repeat;
  pointer-events: none;
}

.bm-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3.5rem;
  padding: clamp(3rem, 7vw, 5.5rem) 15px clamp(3.5rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
}

.bm-hero__eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bm-amber-soft, #e3b45f);
  margin-bottom: 1rem;
}

.bm-hero__title {
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}

.bm-hero__subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(232, 241, 244, .82);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.bm-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.bm-hero__cta {
  background: var(--bm-amber, #c8892e) !important;
  color: #1b1206 !important;
  font-size: 1.05rem;
  padding: .95rem 2.1rem;
  box-shadow: 0 10px 28px rgba(200, 137, 46, .35);
}
.bm-hero__cta:hover {
  background: var(--bm-amber-soft, #e3b45f) !important;
  color: #1b1206 !important;
}

.bm-hero__cta-ghost {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: .2rem;
}
.bm-hero__cta-ghost:hover { color: var(--bm-amber-soft, #e3b45f); border-color: currentColor; }

.bm-hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
  color: rgba(232, 241, 244, .7);
}
.bm-hero__marks li { position: relative; padding-left: 1.1rem; }
.bm-hero__marks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bm-amber, #c8892e);
}

.bm-hero__media { position: relative; }
.bm-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.bm-hero__stamp {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: .1rem;
  background: var(--bm-salt, #faf7f1);
  color: var(--bm-deep, #0b2e3f);
  border-radius: 50%;
  width: 118px;
  height: 118px;
  align-content: center;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .3);
  border: 3px solid var(--bm-amber, #c8892e);
}
.bm-hero__stamp strong { font-family: var(--bm-font-display, Georgia, serif); font-size: 1.7rem; line-height: 1; }
.bm-hero__stamp-top, .bm-hero__stamp-bottom {
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bm-muted, #5d6f79);
}
.bm-hero__stamp-bottom { max-width: 90px; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.bm-trust {
  background: var(--bm-paper, #fff);
  border-bottom: 1px solid var(--bm-line, #e2dad0);
}
.bm-trust__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 2.25rem 0;
}
.bm-trust__list li { display: flex; gap: .9rem; align-items: flex-start; }
.bm-trust__list svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--bm-sea, #1d6a8c);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-trust__list .bm-check { stroke: var(--bm-amber, #c8892e); stroke-width: 2; }
.bm-trust__list strong {
  display: block;
  font-size: .98rem;
  color: var(--bm-deep, #0b2e3f);
  margin-bottom: .15rem;
}
.bm-trust__list span { font-size: .85rem; color: var(--bm-muted, #5d6f79); line-height: 1.45; }

/* --------------------------------------------------------------------------
   Cut selector
   -------------------------------------------------------------------------- */

.bm-selection__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bm-cut {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bm-cut:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 46, 63, .22);
  color: #fff;
}

/* Each cut gets its own gradient so the grid reads without photography. */
.bm-cut--loin   { background: linear-gradient(200deg, #16506b 0%, #0b2e3f 100%); }
.bm-cut--belly  { background: linear-gradient(200deg, #b5762a 0%, #6b3f14 100%); }
.bm-cut--crumbs { background: linear-gradient(200deg, #3d7f8f 0%, #17323c 100%); }

.bm-cut::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60q30-28 60 0t60 0' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  z-index: -1;
}

.bm-cut__label {
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.bm-cut__text { font-size: .93rem; color: rgba(255, 255, 255, .8); line-height: 1.55; margin-bottom: 1rem; }
.bm-cut__more {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bm-amber-soft, #e3b45f);
}
.bm-cut__more::after { content: ' →'; }

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */

.bm-story {
  background: var(--bm-foam, #e8f1f4);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.bm-story__inner { display: grid; gap: 2.5rem; }
.bm-story__intro { max-width: 52rem; }
.bm-story__intro h2 {
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--bm-deep, #0b2e3f);
  margin-bottom: 1rem;
}
.bm-story__intro p { font-size: 1.05rem; color: var(--bm-deep-soft, #123d52); line-height: 1.7; }

.bm-story__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: bm-step;
}
.bm-story__steps li {
  background: var(--bm-paper, #fff);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(11, 46, 63, .06);
}
.bm-story__num {
  display: inline-block;
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--bm-amber, #c8892e);
  line-height: 1;
  margin-bottom: .6rem;
}
.bm-story__steps h3 { font-size: 1.15rem; color: var(--bm-deep, #0b2e3f); margin-bottom: .4rem; }
.bm-story__steps p { font-size: .92rem; color: var(--bm-muted, #5d6f79); margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Shipping promise
   -------------------------------------------------------------------------- */

.bm-shipping {
  background: var(--bm-deep, #0b2e3f);
  color: var(--bm-foam, #e8f1f4);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.bm-shipping__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.bm-shipping__text { flex: 1 1 420px; }
.bm-shipping__text h2 {
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #fff;
  margin-bottom: .75rem;
}
.bm-shipping__text p { color: rgba(232, 241, 244, .82); line-height: 1.65; margin-bottom: .5rem; }
.bm-shipping__text strong { color: var(--bm-amber-soft, #e3b45f); }
.bm-shipping__note { font-size: .85rem; color: rgba(232, 241, 244, .55) !important; }

.bm-shipping__badge {
  flex: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .2rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px dashed var(--bm-amber, #c8892e);
  background: rgba(255, 255, 255, .04);
}
.bm-shipping__badge span {
  font-family: var(--bm-font-display, Georgia, serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.bm-shipping__badge small {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bm-amber-soft, #e3b45f);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .bm-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .bm-hero__media { order: -1; }
  .bm-hero__stamp { width: 96px; height: 96px; left: auto; right: 12px; bottom: -16px; }
}

@media (max-width: 575px) {
  .bm-hero__actions { gap: 1rem; }
  .bm-hero__cta { width: 100%; text-align: center; }
  .bm-shipping__inner { justify-content: center; text-align: center; }
  .bm-cut { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-cut:hover { transform: none; }
}
