/* ESTRESA · Cortesías — componente aislado. Sin frameworks, fuentes ni cabecera. */
:root {
  --est-navy: #171459;
  --est-blue: #261b84;
  --est-violet: #5036db;
  --est-orange: #ffb11a;
  --est-orange-2: #ffcb47;
  --est-paper: #fff;
  --est-bg: #f8f8fd;
  --est-soft: #f4f2ff;
  --est-stroke: #e8e6f5;
  --est-muted: #555b7d;
  --est-shadow: 0 16px 44px rgba(26,21,84,.065);
  --est-space-1: 6px;
  --est-space-2: 10px;
  --est-space-3: 16px;
  --est-space-4: 24px;
}
.estresa-courtesy, .estresa-courtesy *, .estresa-courtesy *::before, .estresa-courtesy *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.estresa-courtesy { margin: 0; }
.estresa-courtesy { min-width: 280px; background: var(--est-bg); color: var(--est-navy); font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }
.estresa-courtesy a { color: inherit; }
.estresa-courtesy button, .estresa-courtesy a { -webkit-tap-highlight-color: transparent; }
.estresa-courtesy :focus-visible { outline: 3px solid #4d3cff; outline-offset: 3px; }
.estresa-courtesy .visually-hidden { position:absolute !important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.courtesy-shell { width: min(100%, 660px); margin: 0 auto; padding: 20px 16px 22px; }
.courtesy-card { background: #fff; border: 1px solid var(--est-stroke); border-radius: 27px; box-shadow: var(--est-shadow); padding: clamp(20px, 5vw, 40px); overflow: hidden; }
.courtesy-header { text-align: center; }
.courtesy-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 11px; line-height: 1.15; font-weight: 900; letter-spacing: .16em; color: var(--est-violet); text-transform: uppercase; }
.courtesy-eyebrow::before { content:""; width: 7px; height:7px; border-radius: 50%; background: var(--est-orange); box-shadow: 0 0 0 4px rgba(255,177,26,.14); flex-shrink:0; }
.courtesy-title { margin:0; font-size: clamp(27px, 5vw, 35px); font-weight: 850; line-height: 1.09; letter-spacing: -.045em; text-wrap: balance; }
.courtesy-greeting { margin:0 0 8px; color: var(--est-muted); font-size: 14px; font-weight: 600; }
.courtesy-greeting:empty { display: none; }
.courtesy-amount { position: relative; isolation: isolate; display:flex; flex-direction: column; justify-content:center; align-items:center; min-height: 159px; margin: 22px 0 13px; border: 1px solid #e8e3ff; border-radius: 21px; background: radial-gradient(ellipse at 50% 62%, #e9e3ff 0%, #f7f5ff 57%, #fcfbff 100%); overflow:hidden; }
.courtesy-amount::before { content:""; position:absolute; width:220px; height:220px; border:1px solid rgba(87,64,216,.10); border-radius:50%; left:calc(50% - 110px); top:42%; z-index:-1; box-shadow:0 0 0 26px rgba(87,64,216,.027),0 0 0 53px rgba(87,64,216,.018); }
.courtesy-amount-prefix { margin: 1px 0 -4px; color: #4e4591; font-size: 12px; font-weight: 700; }
.courtesy-number-line { display:flex; align-items:baseline; gap:11px; line-height:.95; }
.courtesy-number { color: var(--est-violet); font-size: clamp(82px, 18vw, 115px); font-weight: 900; letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
.courtesy-unit { color: var(--est-navy); font-size: clamp(31px, 7vw, 45px); font-weight: 850; letter-spacing: -.055em; }
.courtesy-amount::after { content:""; width: 76px; height: 5px; border-radius: 99px; margin-top: 3px; background: var(--est-orange); transform: rotate(-3deg); }
.courtesy-body { text-align:center; }
.courtesy-description { font-size: 16px; line-height: 1.38; font-weight: 550; margin: 0 auto; max-width: 440px; text-wrap:pretty; }
.courtesy-note { max-width: 460px; margin: 10px auto 0; color: var(--est-muted); font-size: 12.5px; line-height:1.4; }
.courtesy-actions { display:flex; flex-direction:column; align-items:stretch; gap:9px; margin-top: 22px; }
.courtesy-primary, .courtesy-secondary { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; text-align:center; width:100%; min-height: 49px; border-radius: 999px; font-family:inherit; font-size: 15.5px; line-height:1.2; font-weight: 850; cursor:pointer; padding: 11px 15px; transition: background-color .15s ease, border-color .15s ease; }
.courtesy-primary { border:1px solid #eea600; background: linear-gradient(100deg, var(--est-orange-2), var(--est-orange)); color: #16113b; box-shadow: 0 6px 17px rgba(234,163,0,.16); }
.courtesy-primary:hover:not(:disabled) { background: #ffcc57; }
.courtesy-primary:disabled { opacity:.68; cursor:wait; box-shadow:none; }
.courtesy-secondary { border:1px solid #cfc9ed; background:#fff; color:var(--est-blue); font-weight: 750; min-height: 43px; }
.courtesy-secondary:hover { background:var(--est-soft); }
.courtesy-tertiary { display:inline-block; text-align:center; align-self:center; padding: 4px 6px; color: #514a83; text-decoration: underline; text-underline-offset: 3px; font-size:12.5px; font-weight:650; }
.courtesy-legal { margin: 13px 0 0; text-align:center; font-size: 11px; line-height:1.35; color:#686c86; }
.courtesy-status { display:inline-block; margin: 7px auto 0; color:#4c3da9; background:#ece8ff; font-size: 11px; font-weight: 850; padding: 5px 10px; border-radius:99px; }
.courtesy-status--done { color:#305e54; background:#e7f5ee; }
.courtesy-status--neutral { color:#555b79; background:#f0f0f7; }
.courtesy-inapplicable { margin-top: 18px; padding: 23px 16px; border:1px solid var(--est-stroke); border-radius:21px; background:#f7f6fc; text-align:center; }
.courtesy-inapplicable strong { display:block; font-size:18px; line-height:1.25; }
.courtesy-inapplicable p { margin:8px 0 0; font-size:14px; color:var(--est-muted); line-height:1.45; }
/* Barras horizontales, orden visual de más reciente a más antiguo. */
.bonuses-panel { width:min(100%, 850px); margin:0 auto; padding: 20px 16px 40px; }
.bonuses-panel-header { padding:10px 2px 20px; }
.bonuses-panel-title { margin: 4px 0 8px; font-size:clamp(29px,4.8vw,39px); letter-spacing:-.055em; line-height:1.1; }
.bonuses-panel-subtitle { color:var(--est-muted); margin:0; font-size:14px; }
.bonuses-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.bonus-bar { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 14px 14px 19px; background:#fff; border:1px solid #e7e6f1; border-radius:14px; box-shadow:0 3px 9px rgba(27,23,97,.025); }
.bonus-bar::before { content:""; position:absolute; width:4px; left:0; top:12px; bottom:12px; border-radius:0 6px 6px 0; background:var(--est-violet); }
.bonus-bar--used::before { background:#c7c8d5; }
.bonus-bar-info { flex:1; min-width:0; }
.bonus-bar-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
.bonus-bar-amount { font-size:22px; font-weight:900; letter-spacing:-.055em; line-height:1.03; }
.bonus-bar-state { font-size:10.5px; font-weight:800; color:#4e3db8; background:#f0ecff; padding:4px 7px; border-radius:99px; }
.bonus-bar--used .bonus-bar-state { color:#687083; background:#f0f1f5; }
.bonus-bar-kind { display:block; color:var(--est-muted); font-size:12.5px; line-height:1.25; margin-top:5px; }
/* Saldos visibles dentro de cada barra: porcentaje y minutos/MB restantes. */
.bonus-bar-progress-labels { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; column-gap:8px; row-gap:3px; margin: 11px 0 6px; font-variant-numeric:tabular-nums; }
.bonus-bar-percent { font-size:11.5px; font-weight:850; color:#4932b7; }
.bonus-bar-remaining { font-size:11.5px; font-weight:750; color:#3e4166; }
.bonus-bar-progress { display:block; width:100%; height:10px; border:0; border-radius:99px; overflow:hidden; background:#e6e3f4; box-shadow:inset 0 1px 2px rgba(27,23,97,.14); appearance:none; -webkit-appearance:none; accent-color:#5d3dec; direction:ltr; --bonus-fill:linear-gradient(90deg,#704cf2,#4930c6); }
.bonus-bar-progress::-webkit-progress-bar { background:#e6e3f4; border-radius:99px; }
.bonus-bar-progress::-webkit-progress-value { background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.04) 55%,rgba(0,0,0,.08)),var(--bonus-fill); border-radius:99px; box-shadow:inset -1px 0 0 rgba(255,255,255,.7); }
.bonus-bar-progress::-moz-progress-bar { background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.04) 55%,rgba(0,0,0,.08)),var(--bonus-fill); border-radius:99px; box-shadow:inset -1px 0 0 rgba(255,255,255,.7); }
.bonus-bar--low .bonus-bar-percent { color:#805000; }
.bonus-bar--low .bonus-bar-progress { accent-color:#e0a013; --bonus-fill:#ecb22e; }
.bonus-bar--stale::before { background:#c7a24a; }
.bonus-bar--stale .bonus-bar-state { color:#6b4e00; background:#fdf3d8; }
.bonus-summary small { display:block; margin-top:3px; color:var(--est-muted); font-size:11.5px; line-height:1.25; }
.bonus-bar--used .bonus-bar-percent, .bonus-bar--used .bonus-bar-remaining { color:#73778c; }
.bonus-bar--used .bonus-bar-progress { accent-color:#babdcf; --bonus-fill:#babdcf; }
.bonus-bar-finished--active { color:#4836a9; }
.bonus-bar-action { flex:0 0 auto; min-width:104px; min-height:44px; border:1px solid #eea600; border-radius:11px; background:var(--est-orange); color:#151238; font-family:inherit; font-size:13px; font-weight:900; cursor:pointer; padding:9px 12px; }
.bonus-bar-action:hover:not(:disabled) { background:var(--est-orange-2); }
.bonus-bar-action:disabled { opacity:.6; cursor:wait; }
.bonus-bar-finished { flex:0 0 104px; color:#77798f; font-size:12px; font-weight:750; text-align:center; }
.bonuses-panel-legal { margin:14px 2px 0; font-size:12px; color:var(--est-muted); }
@media (max-width: 480px) {
  .courtesy-shell { padding: 10px 12px 13px; }
  .courtesy-card { padding: 17px 15px 14px; border-radius: 21px; }
  .courtesy-eyebrow { margin-bottom:9px; font-size:10.5px; }
  .courtesy-title { font-size: 28px; }
  .courtesy-amount { min-height: 146px; margin: 17px 0 12px; }
  .courtesy-number { font-size: 94px; }
  .courtesy-unit { font-size: 35px; }
  .courtesy-description { font-size: 15px; }
  .courtesy-note { font-size: 12px; margin-top: 8px; }
  .courtesy-actions { margin-top:17px; gap:8px; }
  .courtesy-primary { min-height: 48px; font-size:14.5px; }
  .courtesy-secondary { min-height: 41px; font-size:13.5px; }
  .courtesy-legal { font-size:10.5px; margin-top:9px; }
  .bonus-bar { padding:12px 10px 12px 15px; gap:7px; }
  .bonus-bar-amount { font-size:20px; }
  .bonus-bar-state { font-size:10px; }
  .bonus-bar-kind { font-size:11.5px; }
  .bonus-bar-action { min-width:88px; min-height:44px; font-size:12px; padding: 8px 10px; }
  .bonus-bar-finished { flex-basis:88px; }
  .bonus-bar-progress-labels { margin:9px 0 6px; column-gap:4px; }
  .bonus-bar-percent, .bonus-bar-remaining { font-size:10.5px; }
  .bonus-bar-progress { height:7px; }
}
/* Pantallas cortas: se compactan espacios, no se mueven las acciones ni se oculta contenido. */
@media (max-height: 690px) and (max-width:480px) {
  .courtesy-shell { padding-top:6px; padding-bottom:6px; }
  .courtesy-card { padding-top:13px; padding-bottom:12px; }
  .courtesy-eyebrow { margin-bottom: 7px; }
  .courtesy-title { font-size:26px; }
  .courtesy-amount { min-height:119px; margin: 12px 0 9px; }
  .courtesy-number { font-size:77px; }
  .courtesy-unit { font-size:31px; }
  .courtesy-description { font-size:14px; }
  .courtesy-note { font-size:11.5px; margin-top:6px; }
  .courtesy-actions { margin-top:12px; gap:6px; }
  .courtesy-primary { min-height:44px; font-size:13.5px; }
  .courtesy-secondary { min-height:38px; font-size:12.5px; }
  .courtesy-tertiary { font-size:11.5px; padding:2px; }
  .courtesy-legal { margin-top:7px; font-size:10px; }
}
@media (min-width: 700px) { .courtesy-shell { padding: 40px 20px; } .courtesy-card { padding: 42px 65px; } .bonuses-panel { padding: 42px 24px; } }
@media (prefers-reduced-motion: reduce) { .estresa-courtesy, .estresa-courtesy *, .estresa-courtesy *::before, .estresa-courtesy *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Centra el pie en las paginas de cortesia/reposicion. */
body.customer-shell main > footer{margin-left:auto;margin-right:auto}