/*
 * Home — "Elige tu plan Weilo" planes section. Tokens from Figma node 3:2543.
 * Desktop: 3-col grid. Mobile (≤768): horizontal scroll-snap slider.
 */
:root {
  --weilo-pl-bg-card:     #736E66;     /* mid-warm-gray (sampled from Figma render) */
  --weilo-pl-text-light:  #F9F6ED;
  --weilo-pl-text-cream:  #EEE8DC;
  --weilo-pl-pill-bg:     #191614;
  --weilo-pl-yellow:      #EDFF5A;
  --weilo-pl-ribbon-mute: #97928D;
  --weilo-pl-card-w:      360px;
  --weilo-pl-card-gap:    16px;
  --weilo-pl-radius:      24px;
}

.weilo-planes {
  padding: 56px 0 56px;
  /* Break out of any constraining ancestor (entry-content, ast-container).
     Use !important + max-width: none to defeat Astra/UAGB max-width rules. */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left:  calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #EFE8DC;
  /* `100vw` includes the scrollbar — clip locally so the slider's
     internal scroll never leaks into the page body. */
  overflow-x: hidden;
}
.weilo-planes, .weilo-planes * { box-sizing: border-box; }

.weilo-planes__inner {
  max-width: calc(3 * var(--weilo-pl-card-w) + 2 * var(--weilo-pl-card-gap) + 80px);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.weilo-planes__header {
  text-align: center;
  margin-bottom: 32px;
}
.weilo-planes__eyebrow {
  display: block;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #14120F;
  margin-bottom: 8px;
}
.weilo-planes .weilo-planes__title {
  margin: 0;                                      /* defeat .woocommerce-js h2 { margin-bottom: .7em } */
  font-family: "PP Nikkei Journal", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: 79px;
  line-height: 75px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #14120F;
}
.weilo-planes__title span { display: block; }
/* The "POR" prefix sits inline inside its parent line on desktop; mobile
   hides it altogether (rule below the breakpoint). */
.weilo-planes__title .weilo-planes__title-por { display: inline; }
.weilo-planes__subtitle {
  margin: 12px auto 0;
  max-width: 600px;
  font-family: "Absans", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.01em;
  color: #14120F;
}

/* ---------- Grid (desktop) ---------- */
.weilo-planes__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, var(--weilo-pl-card-w));
  gap: var(--weilo-pl-card-gap);
  justify-content: center;
}

/* ---------- Card ---------- */
.weilo-planes__card {
  position: relative;
  background: var(--weilo-pl-bg-card);
  color: var(--weilo-pl-text-light);
  border-radius: var(--weilo-pl-radius);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  font-family: 'Google Sans Flex', 'Inter', system-ui, sans-serif;
}
.weilo-planes__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weilo-planes__card-name {
  margin: 0;
  font-weight: 400;
  font-size: 23px;
  line-height: 28.8px;
  color: var(--weilo-pl-text-light);
  font-family: 'Google Sans Flex', 'Inter', system-ui, sans-serif;
}
.weilo-planes__pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  background: var(--weilo-pl-pill-bg);
  color: var(--weilo-badge-bg);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.weilo-planes__price {
  margin: 14px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--weilo-pl-text-light);
}
.weilo-planes__price-num {
  font-family: 'Google Sans Flex', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 55px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.weilo-planes__price-unit {
  font-weight: 400;
  font-size: 16px;
  color: var(--weilo-pl-text-cream);
}
.weilo-planes__breakdown {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--weilo-pl-text-cream);
}

/* ---------- Ribbon ---------- */
.weilo-planes__ribbon {
  margin: 20px -24px 20px;            /* full-bleed inside the card */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.weilo-planes__ribbon--featured {
  background: var(--weilo-pl-yellow);
  color: #14120F;
}
.weilo-planes__ribbon--muted {
  background: var(--weilo-pl-ribbon-mute);
  color: var(--weilo-pl-text-light);
}

/* ---------- Features ---------- */
.weilo-planes__incluye {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  color: var(--weilo-pl-text-cream);
}
.weilo-planes__features {
  margin-top: 5px !important;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 24px;
  color: var(--weilo-pl-text-cream);
  flex: 1 1 auto;          /* push CTA to the bottom */
}
.weilo-planes__features li { margin: 0; }   /* the ✅ emoji is in the text */

/* ---------- CTA inside card ---------- */
.weilo-planes__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 100px;
  border: 2px solid var(--weilo-pl-yellow);
  background: transparent;
  color: var(--weilo-pl-yellow);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none !important;
  transition: background 200ms ease, color 200ms ease;
}
.weilo-planes__cta:hover,
.weilo-planes__cta:focus-visible {
  background: var(--weilo-pl-yellow);
  color: #14120F !important;
}
.weilo-planes__cta:focus:not(:focus-visible) { color: var(--weilo-pl-yellow) !important; outline: none;}

/* ---------- Footnote (legal trio) ---------- */
.weilo-planes__footnote {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;                 /* 100% per spec */
  letter-spacing: 0;
  color: #14120F;
  text-align: center;
}

/* ---------- Disclaimer (asterisk note) ---------- */
.weilo-planes__disclaimer {
  margin: 24px auto 0;
  max-width: 1080px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  color: #14120F;
  text-align: center;
}

.entry-content ul, .entry-content ol {
  padding-left: 0;
}

/* ============================================================
   Mobile — horizontal scroll-snap slider
   ============================================================ */
@media (max-width: 768px) {
  .weilo-planes { padding: 40px 0; }
  .weilo-planes__inner { padding: 0; max-width: none; }
  .weilo-planes__header { padding: 0 20px; margin-bottom: 24px; }
  .weilo-planes__title { font-size: clamp(40px, 11vw, 60px); line-height: 1; }
  /* Drop the "POR" prefix on mobile so the H2 fits comfortably.
     Bumping specificity above the generic ".weilo-planes__title span"
     rule that forces display: block on every span inside the title. */
  .weilo-planes__title .weilo-planes__title-por { display: none; }
  .weilo-planes__subtitle { font-size: 18px; line-height: 26px; }

  .weilo-planes__grid {
    /* Horizontal scroller pattern that survives scroll-snap on this layout:
       block container + inline-flex cards + white-space: nowrap.
       Cards get a min-height so all three match the tallest. */
    display: block;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    padding: 4px 20px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* Firefox */
  }
  .weilo-planes__grid::-webkit-scrollbar { display: none; }
  .weilo-planes__card {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    white-space: normal;
    width: calc(100vw - 64px);
    max-width: 360px;
    min-height: 620px;            /* match tallest sibling so card 1 doesn't look short */
    margin-right: 12px;
    scroll-snap-align: center;
  }
  .weilo-planes__card:first-child { margin-left: 12px; }

  /* Visual order = DOM order: Compra única | Plan quincenal | Plan mensual.
     planes.js scrolls the grid to centre Plan quincenal on load so swipe-
     left and swipe-right both reveal a neighbour. */

  .weilo-planes__footnote { padding: 0 20px; }
  .weilo-planes__disclaimer { padding: 0 20px; }
}

/* Narrow phones — the longer feature lists in Plan quincenal / mensual
   wrap to extra rows and grow past the 620px floor. Bump every card's
   min-height in two steps so "Compra única" matches its siblings.
     ≤ 430px → 700 (covers iPhone 12-15 mini up to Pro Max)
     ≤ 390px → 760 (covers iPhone SE / older Androids @ 360-390) */
@media (max-width: 430px) {
  .weilo-planes__card { min-height: 700px; }
}
@media (max-width: 390px) {
  .weilo-planes__card { min-height: 760px; }
}

@media (max-width: 768px) {
  .weilo-planes .weilo-planes__title {
    font-size: 50px;
    line-height: 50px;
  }
}

/* Tablet — slightly tighter */
@media (max-width: 1199px) and (min-width: 769px) {
  .weilo-planes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .weilo-planes__card { padding: 24px 18px; }
  .weilo-planes__price-num { font-size: 48px; }
}
