/*
 * Home — "CTA Medio" section. Tokens from Figma node 1:425.
 * Yellow marquee → eyebrow → H2 → subcopy → 4-cell countdown.
 * The countdown cells use vegetable photos with a 73% opacity black overlay
 * underneath so the white numbers stay legible.
 */
:root {
  --weilo-cm-bg:           #FAF6EE;
  --weilo-cm-text:         #14120F;
  --weilo-cm-text-grey:    #736E66;
  --weilo-cm-text-cream:   #EFE8DC;
  --weilo-cm-yellow:       #EDFF5A;
  --weilo-cm-cell-w:       263.5px;
  --weilo-cm-cell-h:       362px;
  --weilo-cm-cell-radius:  30px;
}

.weilo-cta-medio {
  background: var(--weilo-cm-bg);
  color: var(--weilo-cm-text);
  /* Full-bleed inside Astra/UAGB containers. */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left:  calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-bottom: 80px;
  /* The marquee inside is intentionally wider than the viewport — clip
     locally so it doesn't leak into the page body's scroll area. */
  overflow-x: hidden;
}
.weilo-cta-medio, .weilo-cta-medio * { box-sizing: border-box; }

/* ============================================================
   Marquee — yellow band, identical animation to .weilo-promo-bar
   ============================================================ */
.weilo-cta-medio__marquee {
  background: var(--weilo-cm-yellow);
  color: var(--weilo-cm-text);
  overflow: hidden;
  padding: 14px 0;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 80px;
}
.weilo-cta-medio__marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: weilo-cm-marquee 45s linear infinite;
  will-change: transform;
}
.weilo-cta-medio__marquee-msg {
  display: inline-block;
  white-space: nowrap;
}
@keyframes weilo-cm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.weilo-cta-medio__marquee:hover .weilo-cta-medio__marquee-track,
.weilo-cta-medio__marquee:focus-within .weilo-cta-medio__marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .weilo-cta-medio__marquee-track { animation: none; transform: none; }
}

/* ============================================================
   Inner content
   ============================================================ */
.weilo-cta-medio__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
  text-align: center;
}

.weilo-cta-medio__eyebrow {
  display: block;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.1em;       /* ≈ 10/16em from Figma */
  text-transform: uppercase;
  color: var(--weilo-cm-text-grey);
}
.weilo-cta-medio .weilo-cta-medio__title {
  margin: 8px auto 0;                             /* defeat .woocommerce-js h2 { margin-bottom: .7em } */
  max-width: 631px;
  font-family: "PP Nikkei Journal", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--weilo-cm-text);
}
.weilo-cta-medio__subtitle {
  margin: 16px auto 0;
  max-width: 641px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: var(--weilo-cm-text);
}

/* ============================================================
   Countdown — 4 contiguous cells, outer corners rounded.
   Each cell has a background photo at 27% visibility on top of black.
   ============================================================ */
.weilo-cta-medio__countdown {
  margin: 56px auto 0;
  max-width: calc(4 * var(--weilo-cm-cell-w));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.weilo-cta-medio__cell {
  position: relative;
  height: var(--weilo-cm-cell-h);
  background: #14120F;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.weilo-cta-medio__cell--left  { border-radius: var(--weilo-cm-cell-radius) 0 0 var(--weilo-cm-cell-radius); }
.weilo-cta-medio__cell--right { border-radius: 0 var(--weilo-cm-cell-radius) var(--weilo-cm-cell-radius) 0; }

/* Background photo — fills the cell, 73% opacity per Figma. */
.weilo-cta-medio__cell-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.73;
  pointer-events: none;
  user-select: none;
}

.weilo-cta-medio__cell-num {
  position: relative;            /* sit above the bg image */
  font-family: "PP Fraktion Mono", ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-weight: 400;
  font-size: 61px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;     /* keep digit width stable while ticking */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.weilo-cta-medio__cell-label {
  position: relative;
  margin-top: 12px;
  font-family: "Absans", "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--weilo-cm-text-cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- CTA + promo (under the countdown) — same pattern as
   .weilo-prueba__cta / .weilo-prueba__promo ---------- */
.weilo-cta-medio__cta {
  margin: 32px auto 0;
  width: 428px;
  max-width: 100%;
  display: inline-flex;
}
.weilo-cta-medio__promo {
  margin: 16px 0 0;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--weilo-cm-text);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
}
.weilo-cta-medio__promo > span:first-child { flex-basis: 100%; font-weight: 600; }
.weilo-cta-medio__promo strong { font-weight: 600; }
.weilo-cta-medio__promo-sep   { opacity: 1; }

/* ---------- Tablet — narrower cells but still 4-up ---------- */
@media (max-width: 1199px) and (min-width: 769px) {
  .weilo-cta-medio { padding-bottom: 64px; }
  .weilo-cta-medio__marquee { margin-bottom: 56px; }
  .weilo-cta-medio__title { font-size: 40px; line-height: 42px; }
  .weilo-cta-medio__subtitle { font-size: 22px; line-height: 28px; }
  .weilo-cta-medio__cell { height: 320px; }
  .weilo-cta-medio__cell-num { font-size: 50px; }
  .weilo-cta-medio__cell-label { font-size: 18px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .weilo-cta-medio { padding-bottom: 48px; }
  .weilo-cta-medio__marquee { margin-bottom: 40px; padding: 12px 0; font-size: 13px; }
  .weilo-cta-medio__inner { padding: 0 20px; }
  .weilo-cta-medio__title {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.05;
  }
  .weilo-cta-medio__subtitle { font-size: 18px; line-height: 26px; }
  .weilo-cta-medio__countdown {
    margin-top: 32px;
    /* Keep all 4 cells on a single row but allow them to shrink. */
  }
  .weilo-cta-medio__cell { height: 200px; }
  .weilo-cta-medio__cell-num { font-size: 36px; }
  .weilo-cta-medio__cell-label { font-size: 13px; margin-top: 8px; }
  .weilo-cta-medio__cell--left  { border-radius: 16px 0 0 16px; }
  .weilo-cta-medio__cell--right { border-radius: 0 16px 16px 0; }
}
