/*
 * Rhema Colombia — Dashboard de Matrículas
 * dashboard.css v1.0.0
 * Autor: Guillermo Rodríguez
 *
 * Alcance: se aplica solo dentro de .rhema-page
 * para no interferir con Astra ni Elementor.
 */

/* ── Reset dentro del contenedor ── */
.rhema-page *{box-sizing:border-box;margin:0;padding:0}

/* ── Variables ── */
.rhema-page{
  --red:#C1271A;--red-dark:#A32020;--red-light:#FDE8E7;--red-mid:rgba(193,39,26,.12);
  --bg:#FAFAF8;--surface:#fff;--border:#E8E4E0;--border-light:#F0EDE9;
  --text:#1A1816;--text2:#6B6560;--text3:#A09A94;
  --green:#2D8653;--green-bg:#EAF3DE;
  --amber:#A06000;--amber-bg:#FFF4E0;
  --blue:#185FA5;--blue-bg:#E6F1FB;
  --serif:'Libre Baskerville',Georgia,serif;
  --sans:'DM Sans',system-ui,sans-serif;
  --mono:'DM Mono',monospace;
  --radius:12px;--rsm:8px;

  width:min(1120px,calc(100vw - 48px));
  max-width:1120px;
  margin:0 auto;
  padding:2.5rem 2rem 5rem;
  font-family:var(--sans);
  font-size:15px;
  color:var(--text);
  background:var(--bg);
  min-height:60vh;
}

/* ── Header ── */
.rhema-header{
  display:flex;align-items:center;justify-content:flex-end;
  margin-bottom:2rem;padding-bottom:1rem;
  border-bottom:.5px solid var(--border);
  gap:10px;
}
.session-chip{display:flex;align-items:center;gap:14px;padding:12px 16px 12px 12px;border:.5px solid var(--border);border-radius:999px;background:var(--surface);box-shadow:0 6px 22px rgba(0,0,0,.035);min-height:68px}
.session-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-right:2px}
.session-label{font-size:10px;line-height:1.1;text-transform:uppercase;letter-spacing:1px;color:var(--text3)}
.session-logout{font-size:12px;color:var(--red);text-decoration:none;border-left:.5px solid var(--border);padding-left:14px;white-space:nowrap;align-self:stretch;display:flex;align-items:center}
.session-logout:hover{color:var(--red-dark);text-decoration:underline}
.rhema-page .avatar{width:36px;height:36px;border-radius:50%;background:var(--red-light);color:var(--red);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}
.rhema-page .uname{font-size:15px;color:var(--text);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}

/* ── Year pill ── */
.year-pill{
  display:inline-flex;align-items:center;gap:5px;
  font-size:11px;font-weight:500;color:var(--red);
  background:var(--red-light);border:.5px solid rgba(193,39,26,.2);
  padding:4px 10px;border-radius:20px;
  white-space:nowrap;
}
.year-pill::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--red);display:inline-block}

/* ── Selector de año ── */
.year-selector{margin-bottom:2.5rem;text-align:center}
.year-selector-copy{max-width:720px;margin:0 auto 32px}
.rhema-page .year-selector h2{font-family:var(--serif);font-size:clamp(2rem,3vw,2.45rem);color:var(--text);margin-bottom:12px;line-height:1.18}
.rhema-page .year-selector p{font-size:16px;color:var(--text2);line-height:1.75}
.year-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.year-card{
  border:.5px solid var(--border);border-radius:var(--radius);
  min-height:280px;
  padding:30px 24px 24px;cursor:pointer;background:var(--surface);
  transition:all .3s cubic-bezier(.4,0,.2,1);text-align:center;
  position:relative;overflow:hidden;
}
.year-card::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,rgba(193,39,26,.03) 0%,transparent 60%);opacity:0;transition:opacity .3s}
.year-card:hover{border-color:#C8C2BC;transform:translateY(-3px);box-shadow:0 8px 28px rgba(0,0,0,.07)}
.year-card:hover::after{opacity:1}
.yc-bg{display:none!important}
.yc-rule{width:36px;height:1px;background:var(--red);margin:0 auto 16px;opacity:.5}
.yc-num{font-family:var(--serif);font-size:52px;font-weight:700;color:var(--red);margin-bottom:8px;line-height:1;font-style:normal}
.yc-label{font-size:11px;color:var(--text3);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:16px}
.yc-badge{font-size:13px;padding:7px 16px;border-radius:999px;display:inline-block;font-weight:500;color:var(--text2);background:var(--bg);border:.5px solid var(--border);letter-spacing:.2px}
.yc-desc{font-size:15px!important;color:var(--text2)!important;line-height:1.65!important;margin:18px 0 0!important}
.year-card:hover .yc-badge{border-color:var(--red);color:var(--red);background:var(--red-light)}

/* ── Panel costos ── */
.costs-panel{margin-bottom:2rem;border:.5px solid var(--border);border-radius:var(--radius);overflow:hidden;scroll-margin-top:1rem}
.costs-panel.show{display:block;animation:rhemaFadeUp .3s ease}
.costs-header{background:var(--red);padding:16px 20px;display:flex;align-items:center;justify-content:space-between}
.rhema-page .costs-header h3{font-family:var(--serif);font-size:18px;color:white;letter-spacing:.5px}
.rhema-page .costs-header p{font-size:13px;color:rgba(255,255,255,.76);margin-top:4px}
.costs-body{padding:16px 20px;background:var(--surface)}
.costs-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-bottom:.5px solid var(--border);margin-bottom:16px}
.ctab{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;padding:10px 12px;font-size:13px;color:var(--text3);cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;line-height:1.25;text-align:center;border-radius:8px 8px 0 0}
.ctab.on{color:var(--red);border-bottom-color:var(--red);font-weight:500}
.ctab-main{display:block;font-weight:600}
.ctab-sub{display:block;font-size:11px;color:var(--text3);font-weight:400;margin-top:3px}
.ctab.on .ctab-sub{color:var(--red)}
.cost-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.cost-option{border:.5px solid var(--border);border-radius:var(--rsm);padding:12px;text-align:center}
.co-main{font-family:var(--mono);font-size:20px;font-weight:500;color:var(--text);line-height:1.1}
.co-sub{font-size:12px;color:var(--text2);margin-top:4px;line-height:1.5}
.co-badge{font-size:9px;font-weight:500;padding:2px 7px;border-radius:10px;margin-bottom:6px;display:inline-block}
.badge-green{background:var(--green-bg);color:var(--green)}
.badge-amber{background:var(--amber-bg);color:var(--amber)}
.intl-box{background:var(--red-mid);border-radius:var(--rsm);padding:12px 14px;margin-top:12px}
.rhema-page .intl-box p{font-size:13px;color:var(--text2);line-height:1.8}
.intl-price{font-family:var(--mono);font-size:22px;font-weight:500;color:var(--red);margin-bottom:8px}
.cost-deadline-banner{margin-top:18px;background:linear-gradient(135deg,#c1271a 0%,#a91e14 100%);color:#fff;border-radius:14px;padding:16px 18px;display:flex;align-items:flex-start;gap:14px;box-shadow:0 16px 32px rgba(193,39,26,.14)}
.cost-deadline-icon{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-weight:700;font-size:20px;line-height:1;animation:rhemaAlertPulse 2.2s ease-in-out infinite}
.cost-deadline-copy strong{display:block;font-size:18px;color:#fff;margin-bottom:8px;letter-spacing:.2px}
.cost-deadline-copy p{margin:0;font-size:16px;line-height:1.75;color:rgba(255,255,255,.92)}
@keyframes rhemaAlertPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,255,255,.18)}50%{transform:scale(1.06);box-shadow:0 0 0 8px rgba(255,255,255,0)}}

/* ── Progress bar ── */
.rhema-page .progress{display:flex;align-items:flex-start;margin-bottom:2rem;position:relative;scroll-margin-top:1.5rem}
.rhema-page .progress::before{content:'';position:absolute;top:16px;left:16px;right:16px;height:1px;background:var(--border-light)}
.progress-fill{position:absolute;top:16px;left:16px;height:1px;background:var(--red);transition:width .6s cubic-bezier(.4,0,.2,1)}
.pstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;z-index:2}
.pdot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500;border:1.5px solid var(--border);background:var(--bg);color:var(--text3);transition:all .4s}
.pdot.done{background:var(--red);border-color:var(--red);color:white}
.pdot.done::after{content:'✓';font-size:13px;animation:rhemaCkpop .3s cubic-bezier(.4,0,.2,1)}
@keyframes rhemaCkpop{from{transform:scale(0) rotate(-20deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
.pdot.active{background:var(--surface);border:2px solid var(--red);color:var(--red);animation:rhemaPpulse 2.5s ease-in-out infinite}
@keyframes rhemaPpulse{0%,100%{box-shadow:0 0 0 4px var(--red-light)}50%{box-shadow:0 0 0 8px rgba(193,39,26,.06)}}
.plabel{font-size:11px;color:var(--text3);text-align:center;line-height:1.35;letter-spacing:.15px;transition:color .3s;max-width:108px}
.plabel.active{color:var(--red);font-weight:500}
.plabel.done{color:var(--text2)}

/* ── Panels ── */
.rhema-page .panel{display:none}
.rhema-page .panel.show{display:block;animation:rhemaFadeUp .4s cubic-bezier(.4,0,.2,1)}
@keyframes rhemaFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* ── Card ── */
.rhema-page .card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:0}
.rhema-page .card.active-card{border-color:var(--red)}
.rhema-page .card-top{padding:28px 28px 0}
.rhema-page .chip{display:inline-block;font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:var(--red);background:var(--red-light);padding:5px 11px;border-radius:20px;margin-bottom:12px}
.rhema-page .card h2{font-family:var(--serif);font-size:28px;font-weight:700;color:var(--text);margin-bottom:8px;line-height:1.25}
.rhema-page .card .sub{font-size:15px;color:var(--text2);line-height:1.75;padding-bottom:20px}
.rhema-page .card-body{padding:0 28px 28px}

/* ── Tabs ── */
.rhema-page .tabs{display:flex;border-bottom:.5px solid var(--border);margin-bottom:20px}
.rhema-page .tab{padding:12px 18px;font-size:14px;color:var(--text3);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-.5px;transition:all .2s}
.rhema-page .tab.on{color:var(--red);border-bottom-color:var(--red);font-weight:500}
.rhema-page .tp{display:none}
.rhema-page .tp.on{display:block}

/* ── Fields ── */
.rhema-page .field{margin-bottom:16px}
.rhema-page .field label{display:block;font-size:12px;font-weight:500;color:var(--text2);margin-bottom:6px;letter-spacing:.3px;text-transform:uppercase}
.rhema-page .field input,
.rhema-page .field select,
.rhema-page .field textarea{width:100%;padding:12px 14px;border:.5px solid var(--border);border-radius:var(--rsm);font-size:15px;background:var(--surface);color:var(--text);outline:none;font-family:var(--sans);transition:border-color .2s}
.rhema-page .field input:focus,
.rhema-page .field select:focus,
.rhema-page .field textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px var(--red-light)}
.rhema-page .field textarea{resize:vertical;min-height:80px}
.rhema-page .field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rhema-page .prefix-select{width:120px;max-width:120px;flex:0 0 120px;padding:12px 8px;border:.5px solid var(--border);border-radius:var(--rsm);font-size:14px;background:var(--surface);color:var(--text);outline:none;font-family:var(--sans)}
.rhema-page #rwa{min-width:0}

/* ── Buttons ── */
.rhema-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:12px 22px;border-radius:var(--rsm);font-size:14px;font-weight:600;cursor:pointer;border:none;transition:all .2s;font-family:var(--sans);text-decoration:none;position:relative;overflow:hidden}
.rhema-page .btn-r{background:var(--red);color:white}
.rhema-page .btn-r:hover:not(:disabled){background:var(--red-dark);transform:translateY(-1px);box-shadow:0 4px 12px rgba(193,39,26,.25)}
.rhema-page .btn-r:disabled{background:var(--border);color:var(--text3);cursor:not-allowed}
.rhema-page .btn-o{background:transparent;color:var(--text2);border:.5px solid var(--border)}
.rhema-page .btn-o:hover{background:var(--bg);border-color:var(--text3)}
.rhema-page .btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;align-items:center}
.rhema-page .btns.center,.rhema-page .card-body>.btns:only-child{justify-content:center}
@keyframes rhemaShimmer{0%{transform:translateX(-100%)}100%{transform:translateX(200%)}}
.rhema-page .btn-r:not(:disabled)::before{content:'';position:absolute;top:0;left:0;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transform:translateX(-100%)}
.rhema-page .btn-r:not(:disabled):hover::before{animation:rhemaShimmer .6s ease}

/* ── WhatsApp btn ── */
.wa-btn{display:inline-flex;align-items:center;gap:8px;background:#25D366;color:white;border:none;border-radius:30px;padding:10px 20px;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;font-family:var(--sans);transition:all .2s}
.wa-btn:hover{background:#1da851;transform:translateY(-1px);box-shadow:0 4px 14px rgba(37,211,102,.3)}

/* ── Notes ── */
.rhema-page .note{display:flex;gap:10px;border-radius:var(--rsm);padding:12px 14px;margin-top:14px}
.rhema-page .note-i{font-size:12px;font-weight:700;flex-shrink:0;margin-top:1px}
.rhema-page .note p{font-size:14px;line-height:1.65}
.rhema-page #cp-neto,.rhema-page #cv-neto,.rhema-page #cp-9sub,.rhema-page #cv-9sub{white-space:pre-line}
.rhema-page .note p a{color:inherit;font-weight:500}
.note-warn{background:var(--amber-bg)}.note-warn .note-i,.note-warn p{color:var(--amber)}
.note-info{background:var(--red-light)}.note-info .note-i,.note-info p{color:var(--red)}
.note-ok{background:var(--green-bg)}.note-ok .note-i,.note-ok p{color:var(--green)}
.note-blue{background:var(--blue-bg)}.note-blue .note-i,.note-blue p{color:var(--blue)}
.igleco-note{margin-top:12px;background:#242322;color:#fff;border-radius:var(--rsm);padding:14px 16px}
.igleco-note p{font-size:14px;line-height:1.65;color:#fff}
.igleco-note a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* ── Checklist ── */
.ck-list{list-style:none;display:flex;flex-direction:column;gap:9px;margin:12px 0 16px}
.ck-list li{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:var(--text2);line-height:1.6}
.ck-b{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;cursor:pointer;transition:all .2s;font-size:10px;color:transparent}
.ck-b.on{background:var(--red);border-color:var(--red);color:white}

/* ── Timeline ── */
.rhema-page .timeline{display:flex;flex-direction:column;padding:4px 0}
.tl-item{display:flex;gap:14px}
.tl-left{display:flex;flex-direction:column;align-items:center}
.tl-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0;margin-top:4px;transition:all .4s}
.tl-dot.done{background:var(--red)}
.tl-dot.pending{background:var(--border);border:1.5px solid var(--border)}
.tl-dot.act{background:white;border:2.5px solid var(--red);box-shadow:0 0 0 3px var(--red-light);animation:rhemaTlpulse 2s infinite}
@keyframes rhemaTlpulse{0%,100%{box-shadow:0 0 0 3px var(--red-light)}50%{box-shadow:0 0 0 6px rgba(193,39,26,.08)}}
.tl-line{width:1.5px;flex:1;min-height:28px;background:var(--border-light);margin:3px 0;transition:background .4s}
.tl-line.done{background:var(--red)}
.tl-content{padding-bottom:20px}
.tl-title{font-size:15px;font-weight:500;color:var(--text);margin-bottom:2px;transition:color .3s}
.tl-title.muted{color:var(--text3)}
.tl-sub{font-size:13px;color:var(--text3);line-height:1.6}

/* ── Status badge ── */
.rhema-page .status{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;padding:5px 11px;border-radius:20px}
.s-ok{background:var(--green-bg);color:var(--green)}
.s-wait{background:var(--amber-bg);color:var(--amber)}
.s-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.s-wait .s-dot{animation:rhemaSdot 1.5s infinite}
@keyframes rhemaSdot{0%,100%{opacity:1}50%{opacity:.3}}

/* ── State card ── */
.state-card{background:var(--bg);border-radius:var(--rsm);border:.5px solid var(--border);padding:16px 18px}
.state-card h4{font-size:15px;font-weight:500;color:var(--text);margin-bottom:6px}
.state-card p{font-size:14px;color:var(--text2);line-height:1.7}

/* ── Sync pago ── */
.payment-sync-card{
  display:none;
  background:var(--surface);
  border:.5px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  margin:-1rem 0 1.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
}
.payment-sync-card.show{display:block;animation:rhemaFadeUp .25s ease}
.payment-sync-card h4{font-size:15px;font-weight:600;color:var(--text);margin:10px 0 6px}
.payment-sync-card p{font-size:13px;color:var(--text2);line-height:1.6}
.payment-sync-card .status{width:max-content}
.payment-sync-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.payment-sync-order,.payment-sync-raw{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:var(--bg);border:.5px solid var(--border-light);font-size:12px;color:var(--text2)}
.payment-sync-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.payment-sync-card.is-wait{border-color:rgba(160,96,0,.18);background:linear-gradient(180deg,#fff 0%,#fffaf1 100%)}
.payment-sync-card.is-ok{border-color:rgba(45,134,83,.2);background:linear-gradient(180deg,#fff 0%,#f6fcf7 100%)}
.payment-sync-card.is-error{border-color:rgba(193,39,26,.18);background:linear-gradient(180deg,#fff 0%,#fff7f6 100%)}

/* ── Estado bloqueado del flujo ── */
.flow-lock-card{
  display:none;
  background:linear-gradient(180deg,#fff 0%,#fffaf1 100%);
  border:.5px solid rgba(160,96,0,.18);
  border-radius:var(--radius);
  padding:16px 18px;
  margin:-.75rem 0 1.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,.035);
}
.flow-lock-card.show{display:block;animation:rhemaFadeUp .25s ease}
.flow-lock-card h4{font-size:15px;font-weight:600;color:var(--text);margin:10px 0 6px}
.flow-lock-card p{font-size:13px;color:var(--text2);line-height:1.6}
.initial-year-actions[hidden]{display:none!important}

/* ── Referencia persistente de costos ── */
.cost-reference{
  display:none;
  background:var(--surface);
  border:.5px solid var(--border);
  border-radius:var(--radius);
  margin:-.75rem 0 1.5rem;
  overflow:hidden;
}
.cost-reference summary{
  list-style:none;
  cursor:pointer;
  padding:14px 18px;
  font-size:14px;
  font-weight:600;
  color:var(--red);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cost-reference summary::-webkit-details-marker{display:none}
.cost-reference summary::after{content:'+';font-family:var(--mono);font-size:16px;color:var(--text3)}
.cost-reference[open] summary::after{content:'-'}
.cost-reference-body{padding:0 16px 16px}
.cost-reference-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:.5px solid var(--border-light)}
.cost-reference-head span{font-size:13px;color:var(--text2)}
.cost-reference-head strong{font-size:13px;color:var(--red)}
.cost-reference-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.cost-reference-grid div{border:.5px solid var(--border-light);border-radius:var(--rsm);padding:10px;background:var(--bg)}
.cost-reference-grid span{display:block;font-size:11px;color:var(--text3);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.cost-reference-grid strong{font-size:14px;color:var(--text)}
.cost-reference p{font-size:13px;color:var(--text2);line-height:1.65;margin-top:8px}
.cost-reference-meta{color:var(--text3)!important;font-style:italic}

/* ── Sum rows ── */
.sum-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:.5px solid var(--border-light)}
.sum-row:last-child{border:none}
.sum-row span{font-size:14px;color:var(--text2)}
.sum-row strong{font-size:14px;font-weight:500;color:var(--text)}

/* ── Success ── */
.success-wrap{text-align:center;padding:36px 24px}
.success-icon{width:64px;height:64px;border-radius:50%;background:var(--red-light);margin:0 auto 18px;display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--red);animation:rhemaSpop .5s cubic-bezier(.4,0,.2,1)}
@keyframes rhemaSpop{0%{transform:scale(0);opacity:0}60%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}
.success-wrap h3{font-family:var(--serif);font-size:26px;margin-bottom:10px;color:var(--text)}
.success-wrap p{font-size:15px;color:var(--text2);line-height:1.75;max-width:440px;margin:0 auto 22px}

/* ── Modal (overlay global) ── */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:99999;padding:1rem;backdrop-filter:blur(3px)}
.overlay.show{display:flex;animation:rhemaOvfade .2s ease}
@keyframes rhemaOvfade{from{opacity:0}to{opacity:1}}
.modal{background:var(--surface);border-radius:var(--radius);width:100%;max-width:400px;overflow:hidden;border:.5px solid var(--border);animation:rhemaMslide .25s cubic-bezier(.4,0,.2,1)}
@keyframes rhemaMslide{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:.5px solid var(--border)}
.modal-hd h3{font-size:15px;font-weight:500;font-family:var(--sans)}
.modal-hd button{background:none;border:none;font-size:20px;color:var(--text3);cursor:pointer;line-height:1;padding:2px 4px;border-radius:4px;transition:background .15s}
.modal-hd button:hover{background:var(--bg);color:var(--text)}
.modal-bd{padding:20px;font-family:var(--sans)}
.woo-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text3);margin-bottom:14px}
.woo-dot{width:8px;height:8px;border-radius:50%;background:#7F54B3}
.price-line{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:.5px solid var(--border);margin-bottom:16px}
.price-line span{font-size:14px;color:var(--text2)}
.price-line strong{font-size:18px;font-weight:500;color:var(--text)}
#wooOv .modal{width:min(1120px,96vw);max-width:1120px;max-height:92vh;display:flex;flex-direction:column}
#wooOv .modal-bd{padding:18px;overflow:auto}
#wooOv .price-line{margin-bottom:12px}
#wooOv #wooProductFrame{min-height:78vh;border-radius:12px}
#wooOv .modal-hd{position:relative;padding-right:56px}
#wooOv .modal-hd button{position:absolute;top:10px;right:14px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--red);font-size:26px;font-weight:700;border:1px solid rgba(193,39,26,.2);box-shadow:0 4px 14px rgba(0,0,0,.08);z-index:20}
#wooOv .modal-hd button:hover{background:rgba(193,39,26,.16);color:var(--red-dark)}
.card-preview{background:linear-gradient(135deg,#C1271A,#8B1410);border-radius:10px;padding:14px 16px;margin-bottom:16px;color:white}
.card-preview .cn{font-size:14px;letter-spacing:2px;margin-bottom:10px;font-family:monospace}
.card-preview .cr{display:flex;justify-content:space-between;font-size:11px;opacity:.8}

/* ── Dots loader ── */
.dots{display:inline-flex;gap:5px;align-items:center}
.dots span{width:7px;height:7px;border-radius:50%;background:var(--red);display:inline-block;animation:rhemaBlink 1.2s infinite}
.dots span:nth-child(2){animation-delay:.2s}
.dots span:nth-child(3){animation-delay:.4s}
@keyframes rhemaBlink{0%,80%,100%{opacity:.2}40%{opacity:1}}

/* ── Métodos de pago ── */
.pay-method{display:flex;align-items:center;gap:10px;padding:12px 14px;border:.5px solid var(--border);border-radius:var(--rsm);cursor:pointer;transition:all .2s;background:var(--surface)}
.pay-method:hover,.pay-method.on{border-color:var(--red);background:var(--red-light)}
.pm-label{flex:1;font-size:14px;color:var(--text)}
.pm-arrow{font-size:18px;color:var(--text3);margin-left:auto}

/* ── Slots entrevista ── */
.ent-slot{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:.5px solid var(--border);border-radius:var(--rsm);cursor:pointer;transition:all .2s;background:var(--surface);font-size:14px}
.ent-slot:hover,.ent-slot.selected{border-color:var(--red);background:var(--red-light)}
.ent-slot.selected{font-weight:500;color:var(--red)}
.ent-slot-day{color:var(--text2);font-size:12px}

/* ── Footer ── */
.rhema-footer{display:none!important}
.rhema-footer span{font-size:12px;color:var(--text3)}

body:has(.rhema-page) .qlwapp,
body:has(.rhema-page) #qlwapp,
body:has(.rhema-page) .joinchat,
body:has(.rhema-page) .wa__btn_popup,
body:has(.rhema-page) .wa__widget_container,
body:has(.rhema-page) [class*="whatsapp"][style*="fixed"],
body:has(.rhema-page) [href*="wa.me"]{
  display:none!important;
}

/* ── Responsive ── */
@media(max-width:980px){
  .rhema-page{
    width:min(100vw - 32px,920px);
    padding:2rem 1.5rem 4.5rem;
  }
  .year-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:720px){
  .rhema-page{
    width:min(100vw - 24px,100%);
    padding:1.5rem 1rem 4rem;
  }
  .rhema-header{justify-content:center;align-items:stretch;flex-wrap:wrap}
  .session-chip{width:100%;justify-content:flex-start}
  .session-copy{flex:1}
  .year-selector-copy{margin-bottom:24px}
  .rhema-page .year-selector h2{font-size:clamp(1.75rem,7vw,2.2rem)}
  .rhema-page .year-selector p{font-size:15px}
  .year-cards{grid-template-columns:1fr;gap:16px}
  .year-card{min-height:auto}
  .cost-grid{grid-template-columns:1fr}
  .cost-deadline-banner{padding:14px 15px}
  .cost-reference-grid{grid-template-columns:1fr}
  .rhema-page .field-row{grid-template-columns:1fr}
  .rhema-page .tabs{overflow-x:auto;scrollbar-width:none}
  .rhema-page .tabs::-webkit-scrollbar{display:none}
  .rhema-page .card-top{padding:24px 22px 0}
  .rhema-page .card-body{padding:0 22px 24px}
}

@media(max-width:520px){
  .rhema-page{width:min(100vw - 16px,100%);padding:1.25rem .75rem 4rem}
  .rhema-header{justify-content:center;align-items:stretch}
  .session-chip{width:100%;justify-content:flex-start}
  .session-copy{flex:1}
  .rhema-page .progress{overflow-x:auto;padding-bottom:8px}
  .pstep{min-width:86px}
  .plabel{font-size:10px}
  .pdot{width:28px;height:28px;font-size:10px}
  .rhema-page .card-top{padding:22px 20px 0}
  .rhema-page .card-body{padding:0 20px 22px}
  .rhema-page .progress::before,.progress-fill{top:14px;left:14px}
  #wooOv .modal{width:min(100vw - 16px,1120px);max-height:94vh}
  #wooOv .modal-bd{padding:12px}
  #wooOv #wooProductFrame{min-height:70vh}
}

/* Ajuste de ancho para Elementor Full Width */
.elementor-page .rhema-page {
  width:min(1120px,calc(100vw - 48px));
  max-width:1120px;
}
