/* ============================================================
   The Clientes Felices loyalty landing (public/loyalty#index), direction
   C · La tarjetita. Rides on the real Clientes Felices tokens
   (clientesfelices_home.css :root: --theme-*, --display Fredoka,
   --body Nunito) and maps them to semantic ll-* roles so dark mode is
   one block.
   ============================================================ */

.ll {
  /* The monogram's colour, for a business with no uploaded logo. */
  --ll-org: #6b3e26;
  --ll-org-ink: #fff5e6;
  --ll-bg: var(--theme-cream);
  --ll-surface: #fff;
  --ll-surface-alt: #fbf7ef;
  --ll-text: var(--theme-ink);
  --ll-muted: var(--theme-muted);
  --ll-line: var(--theme-ink);
  --ll-hair: #eadfcc;
  --ll-yellow: var(--theme-primary);
  --ll-accent: var(--theme-accent-dark);
  --ll-cta-bg: var(--theme-ink);
  --ll-cta-text: #fff;
  --ll-shadow: var(--theme-ink);
  --ll-c-hero: var(--theme-primary);

  margin: 0;
  min-height: 100vh;
  background: var(--ll-bg);
  color: var(--ll-text);
  font-family: var(--body);
}

@media (prefers-color-scheme: dark) {
  .ll {
    --ll-org: #8a5435;
    --ll-bg: #17120e;
    --ll-surface: #241c16;
    --ll-surface-alt: #1d1611;
    --ll-text: #fbf3e4;
    --ll-muted: #c2b3a3;
    --ll-line: #6b5a4b;
    --ll-hair: #3a2f26;
    --ll-cta-bg: var(--theme-primary);
    --ll-cta-text: var(--theme-ink);
    --ll-shadow: #000;
    --ll-c-hero: #3a2a12;
  }
}

.ll h1, .ll h2, .ll h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.ll p { margin: 0; }

.ll-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.ll-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ll-surface); color: var(--ll-text); padding: 8px 12px; z-index: 300;
}
.ll-skip:focus { left: 12px; top: 48px; }

.ll :focus-visible { outline: 3px solid var(--theme-accent); outline-offset: 3px; }

/* ── Shared pieces ──────────────────────────────────────── */

.ll-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 12px;
  background: var(--ll-yellow); color: var(--theme-ink);
  font: 800 13px/1.3 var(--body); text-align: center;
}

.ll-lede { font-size: 17px; line-height: 1.55; color: var(--ll-muted); font-weight: 600; }

.ll-mark {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ll-org); color: var(--ll-org-ink);
  font: 700 15px/1 var(--display); letter-spacing: 0.02em;
}

.ll-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 16px 24px;
  border: 3px solid var(--ll-line); border-radius: 20px;
  background: var(--ll-cta-bg); color: var(--ll-cta-text);
  box-shadow: 0 5px 0 var(--ll-shadow);
  font: 700 18px/1.1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ll-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ll-shadow); }
.ll-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ll-shadow); }

.ll-cta { display: grid; gap: 12px; justify-items: center; text-align: center; }
.ll-cta-form { width: 100%; margin: 0; }
.ll-cta-hint { font-size: 14px; color: var(--ll-muted); font-weight: 700; }
.ll-cta-greet { font: 700 20px/1.2 var(--display); }
.ll-cta-greet--quiet { font: 700 15px/1.45 var(--body); color: var(--ll-muted); }

.ll-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ll-text); font-weight: 800; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}

@media (width >= 900px) {
  .ll-cta { justify-items: start; text-align: left; }
  .ll-cta .ll-btn { width: auto; min-width: 300px; }
  .ll-cta .ll-cta-form { width: auto; }
}

/* The business name in the header pill */
.ll-bar-name { font: 700 19px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.ll-foot { background: var(--ll-bg); padding: 28px 0 36px; border-top: 1.5px solid var(--ll-hair); color: var(--ll-muted); font-size: 13px; font-weight: 700; }
.ll-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.ll-foot-cf { display: inline-flex; align-items: center; gap: 8px; }
.ll-foot-icon { width: 22px; height: 22px; border-radius: 6px; }

/* Steps, drawn with the Clientes Felices illustrations */
.ll-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.ll-step {
  display: grid; row-gap: 4px; justify-items: center; text-align: center;
  padding: 16px; background: var(--ll-surface); border: 3px solid var(--ll-line); border-radius: 20px;
  box-shadow: 0 5px 0 var(--ll-shadow);
}
.ll-step h3 { font-size: 18px; line-height: 1.2; }
.ll-step p { color: var(--ll-muted); font-weight: 600; line-height: 1.5; font-size: 15px; }
.ll-step-art { width: 128px; height: 128px; object-fit: contain; margin-bottom: 6px; }

@media (width >= 760px) {
  .ll-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ll-step { padding: 22px; }
}

/* ── C · La tarjetita ───────────────────────────────────── */


.ll-c-top { background: var(--ll-c-hero); }
.ll-c-top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; }

.ll-c-pill {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 14px 5px 5px; border-radius: 18px;
  background: var(--ll-surface); color: var(--ll-text);
  border: 3px solid var(--ll-line); box-shadow: 0 4px 0 var(--ll-shadow);
}

.ll-c-signin {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 16px;
  background: rgb(255 255 255 / 55%); color: var(--theme-ink); font: 700 15px/1 var(--display); text-decoration: none;
}

@media (prefers-color-scheme: dark) { .ll-c-signin { background: rgb(255 255 255 / 10%); color: var(--ll-text); } }

.ll-c-hero { background: var(--ll-c-hero); color: var(--theme-ink); padding: 8px 0 0; overflow: hidden; }

@media (prefers-color-scheme: dark) { .ll-c-hero { color: var(--ll-text); } }
.ll-c-hero-in { display: grid; gap: 8px; }
.ll-c-copy { display: grid; gap: 14px; padding-top: 8px; }
.ll-c-copy h1 { font-size: 36px; line-height: 1.06; text-wrap: balance; }
.ll-c-hero .ll-lede { color: inherit; opacity: 0.85; }
.ll-c-hero .ll-cta { margin-top: 6px; }
.ll-c-hero .ll-cta-hint, .ll-c-hero .ll-cta-greet--quiet { color: inherit; opacity: 0.8; }
.ll-c-hero .ll-link { color: inherit; }

.ll-c-mascot { position: relative; display: grid; justify-items: center; padding-top: 20px; }
.ll-c-mascot-img { width: min(240px, 62vw); margin-bottom: -18px; }

.ll-c-bubble {
  position: relative; z-index: 1; max-width: 280px; margin-bottom: -6px; padding: 12px 16px;
  background: var(--ll-surface); color: var(--ll-text); border: 3px solid var(--ll-line); border-radius: 20px;
  box-shadow: 0 4px 0 var(--ll-shadow); font: 700 16px/1.25 var(--display); text-align: center; transform: rotate(-2deg);
}

.ll-c-section { padding: 48px 0; }
.ll-c-section h2 { font-size: 28px; line-height: 1.1; margin-bottom: 20px; }
.ll-c-section--alt { background: var(--ll-surface-alt); border-block: 1.5px solid var(--ll-hair); }
.ll-c-split { display: grid; gap: 40px; }

.ll-c-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.ll-c-promises li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--ll-surface); border: 2px solid var(--ll-hair); font-weight: 800; font-size: 16px;
}

.ll-c-promises i {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: #fde2e0; color: #b42318;
}

@media (prefers-color-scheme: dark) { .ll-c-promises i { background: #4a1f1b; color: #ffb4ab; } }

.ll-c-faq { display: grid; gap: 10px; }
.ll-c-faq details { border-radius: 16px; background: var(--ll-surface); border: 2px solid var(--ll-hair); }

.ll-c-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; font: 700 17px/1.2 var(--display);
}
.ll-c-faq summary::-webkit-details-marker { display: none; }
.ll-c-faq details[open] summary i { transform: rotate(45deg); }
.ll-c-faq p { padding: 0 16px 16px; color: var(--ll-muted); font-weight: 600; line-height: 1.5; }

.ll-c-closing { padding: 48px 0 56px; }
.ll-c-closing-in { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 520px; }
.ll-c-closing-art { width: 120px; }
.ll-c-closing h2 { font-size: 30px; }

.ll--not_ready .ll-c-hero { padding-bottom: 24px; }

@media (width >= 900px) {
  .ll-c-hero-in { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 48px; }
  .ll-c-copy { padding: 48px 0 72px; }
  .ll-c-copy h1 { font-size: 56px; }
  .ll-c-mascot-img { width: 340px; }
  .ll-c-section { padding: 72px 0; }
  .ll-c-split { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .ll-c-closing .ll-cta { justify-items: center; text-align: center; }
  .ll-c-closing .ll-btn { min-width: 320px; width: auto; }
}

/* The business's uploaded logo, in place of the monogram */
.ll-logo { height: 40px; max-width: 120px; object-fit: contain; border-radius: 10px; }
.ll-c-signin--text { background: transparent; }
