/* Claro + Crédito Popular — institutional design system.
   Brand references: CP manual, pp. 4–8. Native interactions remain in app.js. */
:root {
  --c-brand: #011083;
  --c-brand-deep: #010b57;
  --c-accent: #fdd600;
  --c-claro: #e12f20;
  --c-action: #0e7239;
  --c-action-hover: #09572a;
  --c-ink: #192339;
  --c-ink-soft: #586174;
  --c-line: #dce1e9;
  --c-line-strong: #bdc6d5;
  --c-surface: #fff;
  --c-surface-alt: #f5f6f8;
  --c-on-brand-soft: #d7dcf4;
  --c-footer: #111a2c;
  --f-body: "Open Sans", Arial, sans-serif;
  --fs-hero: clamp(30px, 3.65vw, 50px);
  --fs-h2: clamp(28px, 2.65vw, 36px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --sec-y: clamp(56px, 7vw, 100px);
  --r-sm: 6px; --r-md: 12px;
  --border: 1px solid var(--c-line);
  --dock-h: calc(80px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(.2, .8, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding-bottom: var(--dock-h);
  background: var(--c-surface); color: var(--c-ink);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--c-brand); color: #fff; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 4px; }
.ft :focus-visible, .final :focus-visible { outline-color: var(--c-accent); }
.skip { position: fixed; top: var(--s-2); left: var(--s-2); z-index: 200; padding: var(--s-3) var(--s-5); transform: translateY(-160%); background: #fff; color: var(--c-brand); font-weight: 700; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100%, 1216px); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 21px; height: 21px; fill: currentColor; flex: none; }

/* White partnership masthead: original assets, proportional sizing. */
.hdr { position: relative; z-index: 20; background: #fff; border-bottom: var(--border); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 76px; }
.lockup { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.lockup__claro { width: 62px; height: auto; flex: none; }
.lockup__cp { width: 140px; height: auto; }
.lockup__x { height: 24px; width: 1px; background: var(--c-line-strong); flex: none; }
.hdr__cta { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: var(--s-2); min-width: 44px; min-height: 44px; padding: var(--s-2) var(--s-4); border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.hdr__cta:hover { border-color: var(--c-action); background: #f1f8f3; }
.hdr__cta .ico { color: var(--c-action); width: 19px; height: 19px; }
.hdr__cta:active { background: #e4f1e8; }

/* Shared CTA: one quiet, recognisable WhatsApp action. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 52px; padding: var(--s-4) var(--s-6); border: 1px solid transparent; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn--wa { background: var(--c-action); color: #fff; }
.btn--wa:hover { background: var(--c-action-hover); box-shadow: 0 4px 10px #0e723916; }
.btn--wa:active { transform: translateY(1px); box-shadow: none; }
.btn--lg, .btn--block { width: 100%; }

/* Hero: editorial copy and a single integrated institutional panel. */
.hero { background: #fff; border-bottom: var(--border); }
.hero__grid { display: grid; gap: var(--s-8); padding-block: var(--s-10); }
.hero__in { min-width: 0; }
.cobrand__lbl, .eyebrow { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-5); color: var(--c-brand); font-size: 11px; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.cobrand__lbl::before { content: ""; width: 20px; height: 3px; background: var(--c-claro); flex: none; }
.hero__h1 { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: 1.14; }
.hero__question { display: block; max-width: 12em; font-size: var(--fs-hero); }
.hero__h1 em { color: var(--c-brand); font-style: normal; }
.hero__promise { display: block; max-width: 15em; margin-top: var(--s-4); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.24; }
.hero__sub { margin: var(--s-5) 0 var(--s-6); max-width: 490px; color: var(--c-ink-soft); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.hero__micro { margin: var(--s-3) 0 0; color: var(--c-ink-soft); font-size: var(--fs-xs); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding: 0; margin: var(--s-6) 0 0; list-style: none; }
.chip { display: flex; align-items: center; gap: var(--s-2); color: var(--c-ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; }
.chip::before { content: ""; display: block; width: 9px; height: 5px; margin-top: -3px; border-left: 1.5px solid var(--c-brand); border-bottom: 1.5px solid var(--c-brand); transform: rotate(-45deg); flex: none; }
.stats { background: var(--c-brand); border-radius: var(--r-md); color: #fff; border-bottom: 4px solid var(--c-accent); }
.stats__in { display: grid; grid-template-columns: repeat(3, 1fr); padding: var(--s-6) var(--s-3); }
.stat { min-width: 0; text-align: center; padding-inline: var(--s-2); }
.stat + .stat { border-left: 1px solid #ffffff30; }
.stat b { display: block; color: var(--c-accent); font-size: 30px; letter-spacing: -.055em; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--s-2); color: var(--c-on-brand-soft); font-size: var(--fs-xs); line-height: 1.45; }

/* Section rhythm and shared typography. */
.sec { padding-block: var(--sec-y); scroll-margin-top: var(--s-6); }
.sec--alt { background: var(--c-surface-alt); }
.section-heading { min-width: 0; }
.eyebrow { margin-bottom: var(--s-4); }
.h2 { margin: 0; max-width: 640px; color: var(--c-ink); font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; text-wrap: pretty; }
.lead { max-width: 610px; margin: var(--s-5) 0 0; color: var(--c-ink-soft); font-size: var(--fs-body); line-height: 1.8; text-wrap: pretty; }

/* Eligibility: three clear lines and a separate explanatory note. */
.eligibility { display: grid; gap: var(--s-8); }
.eligibility .h2 { max-width: 340px; }
.eligibility__body { min-width: 0; }
.checklist { padding: 0; margin: 0; list-style: none; border-top: var(--border); }
.checklist li { position: relative; padding: var(--s-5) 0 var(--s-5) var(--s-10); border-bottom: var(--border); font-size: 16px; line-height: 1.65; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 24px; width: 23px; height: 23px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: #fff; }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 31px; width: 9px; height: 5px; border-left: 1.5px solid var(--c-brand); border-bottom: 1.5px solid var(--c-brand); transform: rotate(-45deg); }
.checklist strong { font-weight: 700; color: var(--c-brand); }
.recog { margin: var(--s-6) 0; color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.85; text-wrap: pretty; }

/* Equal partner profiles; brand colour belongs to the respective profile. */
.partnership { display: grid; gap: var(--s-10); }
.duo { position: relative; display: grid; gap: var(--s-10); }
.duo__brand { padding-top: var(--s-8); border-top: 2px solid var(--c-brand); }
.duo__brand--claro { border-top-color: var(--c-claro); }
.duo__logo { width: 230px; height: auto; margin-bottom: var(--s-6); }
.duo__logo--claro { width: 95px; }
.duo__txt { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.85; text-wrap: pretty; }
.duo__txt strong { color: var(--c-ink); font-weight: 700; }
.duo__x { display: none; }

/* Benefits: a typographic grid and small consistent line icons. */
.benefits { display: grid; gap: var(--s-10); }
.cards { display: grid; gap: var(--s-8); }
.card { padding-top: var(--s-6); border-top: var(--border); }
.feature-icon { width: 26px; height: 26px; fill: none; stroke: var(--c-brand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-5); }
.card h3, .step h3 { margin: 0 0 var(--s-3); color: var(--c-ink); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.025em; line-height: 1.45; text-wrap: pretty; }
.card p, .step p { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.85; text-wrap: pretty; }

/* Native ordered list presented as a continuous journey. */
.steps { display: grid; gap: var(--s-8); margin: var(--s-10) 0 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-5); }
.step:not(:last-child)::after { content: ""; position: absolute; width: 1px; left: 19px; top: 48px; bottom: -24px; background: var(--c-line); }
.step__n { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 14px; font-weight: 600; }
.step h3 { padding-top: var(--s-2); }
.mid-cta { margin-top: var(--s-10); }

/* FAQ: genuine details/summary controls with quiet separators. */
.faq-layout { display: grid; gap: var(--s-8); }
.faq-layout .h2 { max-width: 320px; }
.faq { min-width: 0; border-top: var(--border); }
.q { border-bottom: var(--border); transition: background-color .2s ease; }
.q:hover { background: #ffffff70; }
.q[open] { background: #fff; }
.q summary { position: relative; padding: var(--s-5) var(--s-10) var(--s-5) 0; cursor: pointer; list-style: none; color: var(--c-ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.q summary::-webkit-details-marker { display: none; }
.q summary::before, .q summary::after { content: ""; position: absolute; right: 6px; top: calc(50% - 1px); width: 12px; height: 1.5px; background: var(--c-brand); transition: transform .2s ease; }
.q summary::after { transform: rotate(90deg); }
.q[open] summary::after { transform: rotate(0); }
.q[open] summary { color: var(--c-brand); }
.q p { margin: 0; padding: 0 var(--s-8) var(--s-6) 0; color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.85; }
.q summary:focus-visible { outline-offset: -3px; }

/* Closing action: a compact brand band aligned to the same grid. */
.final { padding-block: var(--s-12); background: var(--c-brand); color: #fff; border-top: 4px solid var(--c-accent); }
.final__in { display: grid; gap: var(--s-6); align-items: center; }
.final__h { margin: 0; max-width: 560px; font-size: clamp(28px, 2.65vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1.25; text-wrap: pretty; }
.final__p { margin: var(--s-4) 0 0; max-width: 480px; color: var(--c-on-brand-soft); font-size: var(--fs-sm); line-height: 1.8; }
.final .btn { background: #fff; color: var(--c-action); }
.final .btn:hover { background: #edf5ef; }

/* Footer: compact legal copy uses the available width. */
.ft { padding-block: var(--s-12) var(--s-6); background: var(--c-footer); color: #c4cbd8; font-size: var(--fs-xs); line-height: 1.85; }
.ft__top { display: grid; gap: var(--s-5); align-items: center; }
.ft__logo { width: 220px; height: auto; }
.ft__desc { margin: 0; max-width: 390px; font-size: var(--fs-sm); line-height: 1.75; }
.ft__legal { display: grid; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid #ffffff24; }
.ft__legal p { margin: 0; text-wrap: pretty; }
.ft__bar { display: grid; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid #ffffff24; }
.ft__bar p { margin: 0; }
.ft__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.ft__links a { display: inline-flex; align-items: center; min-height: 44px; color: #e4e8f0; text-decoration: none; }
.ft__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Visibility remains controlled by the original IntersectionObserver. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: #fff; border-top: var(--border); box-shadow: 0 -4px 18px #19233909; transform: translateY(130%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s; }
.dock.is-on { transform: translateY(0); visibility: visible; }
.dock .btn { min-height: 52px; }

@media (max-width: 559px) {
  .hdr__in { min-height: 68px; gap: var(--s-3); }
  .hdr__cta { padding-inline: var(--s-3); }
  .hdr__cta span { display: none; }
  .lockup { gap: var(--s-3); }
  .lockup__claro { width: 56px; }
  .lockup__cp { width: 137px; }
}
@media (min-width: 560px) {
  .btn--lg { width: auto; min-width: 240px; }
  .hero__grid { gap: var(--s-10); padding-block: var(--s-12); }
  .hero__question { max-width: 510px; }
  .hero__sub { font-size: var(--fs-body); }
  .hero__micro, .chip { font-size: var(--fs-xs); }
  .stats__in { padding: var(--s-8) var(--s-5); }
  .stat b { font-size: 40px; }
  .stat span { font-size: var(--fs-xs); }
  .duo { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .duo__logo { width: 220px; min-height: 38px; object-fit: contain; object-position: left center; }
  .duo__logo--claro { width: 100px; }
  .cards { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .final .btn { justify-self: start; }
  .ft__top { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .ft__legal { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-10); }
  .ft__legal p:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hdr__in { min-height: 88px; }
  .lockup { gap: var(--s-6); }
  .lockup__claro { width: 79px; }
  .lockup__cp { width: 190px; }
  .lockup__x { height: 30px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr); gap: var(--s-12); align-items: center; padding-block: var(--s-16); }
  .hero__question { max-width: 510px; }
  .hero__sub { margin-top: var(--s-6); }
  .hero__micro { font-size: var(--fs-xs); }
  .chips { margin-top: var(--s-8); gap: var(--s-3) var(--s-4); }
  .chip { font-size: var(--fs-xs); }
  .stats { align-self: center; }
  .stats__in { grid-template-columns: 1fr 1fr; padding: var(--s-8); gap: var(--s-8) 0; }
  .stat { text-align: left; padding: 0; }
  .stat--primary { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid #ffffff30; }
  .stat + .stat { border-left: 0; }
  .stat:last-child { padding-left: var(--s-6); border-left: 1px solid #ffffff30; }
  .stat b { font-size: 38px; }
  .stat--primary b { font-size: 108px; font-weight: 500; line-height: .95; }
  .stat span { font-size: var(--fs-xs); }
  .stat--primary span { max-width: 80px; margin: 0; font-size: var(--fs-body); line-height: 1.5; }
  .eligibility, .faq-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: var(--s-20); }
  .eligibility .section-heading, .faq-layout .section-heading { padding-top: var(--s-2); }
  .checklist li { font-size: 17px; }
  .checklist li::before { top: 25px; }
  .checklist li::after { top: 32px; }
  .partnership { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-20); align-items: start; }
  .partnership .h2 { max-width: 390px; }
  .partnership .lead { font-size: var(--fs-sm); }
  .duo { gap: var(--s-8); padding-top: var(--s-2); }
  .duo__logo { width: 190px; height: 36px; min-height: 0; object-fit: contain; object-position: left center; }
  .duo__logo--claro { width: 94px; }
  .duo__brand { padding-top: var(--s-8); }
  .benefits { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s-20); align-items: start; }
  .benefits .lead { font-size: var(--fs-sm); }
  .cards { gap: var(--s-10) var(--s-8); }
  .card { padding-top: var(--s-6); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-10); margin-top: var(--s-12); }
  .step { display: flex; flex-direction: column; gap: var(--s-6); }
  .step:not(:last-child)::after { left: 56px; right: -24px; top: 19px; bottom: auto; height: 1px; width: auto; }
  .step h3 { padding-top: 0; }
  .mid-cta { margin-top: var(--s-12); text-align: center; }
  .q summary { padding-block: var(--s-6); }
  .final { padding-block: var(--s-16); }
  .final__in { grid-template-columns: 1fr auto; gap: var(--s-16); }
  .ft { padding-block: var(--s-12) var(--s-5); }
  .ft__desc { justify-self: end; }
  .ft__bar { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); font-size: 11px; }
}
@media (min-width: 1200px) {
  .hero__grid { gap: var(--s-20); padding-block: var(--s-20); }
  .hero__micro, .chip { font-size: var(--fs-xs); }
  .stats__in { padding: var(--s-10); }
  .stat--primary { gap: var(--s-8); padding-bottom: var(--s-10); }
  .stat b { font-size: 42px; }
  .stat--primary b { font-size: 116px; }
  .stat span { font-size: 13px; }
  .stat--primary span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
