@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,560&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root{
  --ink:#0C2A1F; --ink2:#123828; --brand:#1B5E35; --brand2:#227A45; --gold:#B8913A; --gold-l:#E6D3A3;
  --bg:#F5F5F2; --paper:#FFFFFF; --sf2:#F8F8F6; --line:#DEDFDA; --line2:#ECEDE9;
  --tx:#13201A; --tx2:#56635C; --tx3:#89938D;
  --ok:#17803F; --ok-bg:#E7F4EB; --warn:#9A5B00; --warn-bg:#FBF1DE; --bad:#B42318; --bad-bg:#FCEBE9;
  --f:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif; --s:'IBM Plex Serif',Georgia,serif;
  --r:12px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--f);font-size:15px;line-height:1.5;color:var(--tx);background:var(--bg);-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
svg{width:18px;height:18px;flex:none}
.num{font-variant-numeric:tabular-nums}
.sub{color:var(--tx2);font-size:13px}
:focus-visible{outline:2px solid var(--brand2);outline-offset:2px;border-radius:6px}

.env{background:#2B1D00;color:#F8D27A;font-size:12px;text-align:center;padding:4px 12px}

/* Encabezado */
.top{background:var(--paper);border-bottom:1px solid var(--line)}
.top-in{max-width:1120px;margin:0 auto;padding:0 28px;height:68px;display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.mark{width:38px;height:38px;border-radius:8px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:600;font-size:13px;letter-spacing:-.02em}
.mark i{font-style:normal;color:#FF5A6E}
.logo b{display:block;font-family:var(--s);font-weight:500;font-size:17px;letter-spacing:-.01em}
.logo small{display:block;font-size:11.5px;color:var(--tx2)}
.sp{flex:1}
.secure{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--tx2);border:1px solid var(--line);border-radius:99px;padding:5px 12px 5px 9px;background:var(--sf2)}
.secure svg{width:15px;height:15px;color:var(--ok)}
.secure b{color:var(--tx);font-weight:500}
.help{font-size:13.5px;color:var(--brand);text-decoration:none;font-weight:500}

/* Rejilla */
.shell{max-width:1120px;margin:0 auto;padding:36px 28px 56px;display:grid;grid-template-columns:400px minmax(0,1fr);gap:32px;align-items:start}

/* Resumen (columna institucional) */
.lcol{position:sticky;top:20px}
.sum{background:var(--ink);color:#EAF1ED;border-radius:16px;overflow:hidden}
.sum-h{padding:26px 28px 22px;background:radial-gradient(500px 220px at 100% 0,rgba(34,122,69,.55),transparent 70%)}
.inst{font-size:12px;color:rgba(234,241,237,.6);line-height:1.4;margin-bottom:18px}
.stu{display:flex;gap:12px;align-items:center}
.stu .av{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center;font-weight:600;font-size:14px}
.stu b{display:block;font-weight:500;font-size:15.5px}
.stu span{font-size:12.5px;color:rgba(234,241,237,.65)}
.not-me{background:none;border:0;padding:0;color:var(--gold-l);font-size:12.5px;text-decoration:underline;text-underline-offset:3px;margin-top:2px}
.sum-l{padding:6px 28px 4px;border-top:1px solid rgba(255,255,255,.08)}
.sl{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px dashed rgba(255,255,255,.12);font-size:14px}
.sl:last-child{border-bottom:0}
.sl span{color:rgba(234,241,237,.75)}
.sl small{display:block;font-size:12px;color:rgba(234,241,237,.5)}
.sl.empty{color:rgba(234,241,237,.5);font-size:13.5px}
.total{padding:20px 28px 24px;border-top:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.14)}
.total .k{font-size:12.5px;color:rgba(234,241,237,.65);display:flex;justify-content:space-between}
.total .v{font-family:var(--s);font-size:42px;font-weight:500;letter-spacing:-.02em;line-height:1.1;margin-top:6px}
.total .v small{font-size:20px;color:rgba(234,241,237,.6)}
.total .cur{font-family:var(--f);font-size:13px;color:rgba(234,241,237,.6);margin-left:6px;letter-spacing:0}
.fixed{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:rgba(234,241,237,.62);margin-top:12px}
.fixed svg{width:14px;height:14px;margin-top:2px;color:var(--gold-l)}
.expire{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 28px;border-top:1px solid rgba(255,255,255,.08);font-size:12.5px;color:rgba(234,241,237,.65)}
.expire b{color:#fff;font-weight:500}
.trust{background:var(--paper);border:1px solid var(--line);border-radius:14px;margin-top:16px;padding:6px 20px}
.tr{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line2);font-size:13px;color:var(--tx2)}
.tr:last-child{border-bottom:0}
.tr svg{color:var(--brand);margin-top:1px}
.tr b{color:var(--tx);font-weight:500;display:block}

/* Flujo */
.flow{background:var(--paper);border:1px solid var(--line);border-radius:16px;min-width:0}
.steps{display:flex;padding:0 32px;border-bottom:1px solid var(--line2)}
.stp{display:flex;align-items:center;gap:10px;padding:18px 0;margin-right:28px;font-size:13.5px;color:var(--tx3);border-bottom:2px solid transparent;margin-bottom:-1px}
.stp .n{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-size:12px;font-weight:600}
.stp .n svg{width:13px;height:13px}
.stp.on{color:var(--tx);border-bottom-color:var(--ink);font-weight:500}
.stp.on .n{background:var(--ink);border-color:var(--ink);color:#fff}
.stp.done{color:var(--tx2)}
.stp.done .n{background:var(--ok);border-color:var(--ok);color:#fff}
.pane{padding:30px 32px 32px;display:none}
.pane.on{display:block;animation:in .22s ease-out}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
h1{font-family:var(--s);font-weight:500;font-size:26px;letter-spacing:-.015em;margin:0 0 6px;line-height:1.2}
.lead{color:var(--tx2);margin:0 0 24px;max-width:60ch}
h3{font-size:13px;font-weight:600;color:var(--tx2);margin:26px 0 10px}

/* Cargos */
.charges{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ch{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line2);cursor:pointer;background:var(--paper)}
.ch:last-child{border-bottom:0}
.ch:hover{background:var(--sf2)}
.ch input{position:absolute;opacity:0;pointer-events:none}
.cb{width:22px;height:22px;border-radius:6px;border:1.5px solid #B9BDB7;display:grid;place-items:center;color:#fff;background:var(--paper)}
.cb svg{width:14px;height:14px;opacity:0}
.ch.sel{background:#F3F8F4}
.ch.sel .cb{background:var(--brand);border-color:var(--brand)}
.ch.sel .cb svg{opacity:1}
.ch input:focus-visible + .cb{outline:2px solid var(--brand2);outline-offset:2px}
.ch b{font-weight:500;display:block}
.ch .tag{display:inline-block;font-size:11.5px;font-weight:500;border-radius:5px;padding:1px 7px;margin-left:6px;vertical-align:1px}
.tag.late{background:var(--bad-bg);color:var(--bad)} .tag.today{background:var(--warn-bg);color:var(--warn)} .tag.next{background:var(--sf2);color:var(--tx2);border:1px solid var(--line)}
.ch .amt{font-weight:600;font-size:15.5px;text-align:right}
.ch .amt small{display:block;font-weight:400;font-size:12px;color:var(--bad)}
.note{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--tx2);background:var(--sf2);border:1px solid var(--line2);border-radius:10px;padding:11px 14px;margin-top:14px}
.note svg{width:16px;height:16px;margin-top:2px;color:var(--tx3)}
.paid-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:16px;font-size:12.5px;color:var(--tx2)}
.paid-row i{font-style:normal;width:24px;height:24px;border-radius:6px;display:grid;place-items:center;font-size:11px;font-weight:600}
.paid-row .p{background:var(--ok);color:#fff} .paid-row .p svg{width:12px;height:12px}
.paid-row .d{background:var(--bad-bg);color:var(--bad);border:1px solid #F3C1BB}
.paid-row .f{border:1px solid var(--line);color:var(--tx3)}

/* Métodos */
.methods{display:flex;flex-direction:column;gap:10px}
.mt{display:grid;grid-template-columns:22px 48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r);cursor:pointer;background:var(--paper);transition:border-color .15s,box-shadow .15s}
.mt:hover{border-color:#B9BDB7}
.mt input{position:absolute;opacity:0;pointer-events:none}
.rd{width:20px;height:20px;border-radius:50%;border:1.5px solid #B9BDB7;display:grid;place-items:center}
.rd::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--brand);transform:scale(0);transition:transform .15s}
.mt.sel{border-color:var(--brand);box-shadow:0 0 0 3px rgba(27,94,53,.1)}
.mt.sel .rd{border-color:var(--brand)}
.mt.sel .rd::after{transform:scale(1)}
.mt input:focus-visible ~ .rd{outline:2px solid var(--brand2);outline-offset:2px}
.mi{width:48px;height:48px;border-radius:10px;background:var(--sf2);border:1px solid var(--line2);display:grid;place-items:center;color:var(--ink)}
.mi svg{width:22px;height:22px}
.mt b{display:block;font-weight:500}
.mt .sub{display:block}
.mt .via{font-size:12px;color:var(--tx2);text-align:right;white-space:nowrap}
.mt .via strong{display:block;color:var(--tx);font-weight:600;font-size:13px}
.field{margin-top:22px}
.field label{display:block;font-size:13px;font-weight:500;margin-bottom:6px}
.inp{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;padding:0 14px;background:var(--paper);font-size:15px}
.inp:focus{outline:0;border-color:var(--brand2);box-shadow:0 0 0 3px rgba(34,122,69,.14)}
.field .sub{margin-top:6px;display:block}
.chk{display:flex;gap:12px;align-items:flex-start;margin-top:20px;font-size:13.5px;color:var(--tx2);cursor:pointer}
.chk input{position:absolute;opacity:0}
.chk .cb{flex:none;margin-top:1px}
.chk.sel .cb{background:var(--brand);border-color:var(--brand)}
.chk.sel .cb svg{opacity:1}
.chk a{color:var(--brand);text-underline-offset:3px}

.actions{display:flex;gap:12px;align-items:center;margin-top:28px;flex-wrap:wrap}
.btn{height:50px;padding:0 22px;border-radius:10px;border:1px solid var(--line);background:var(--paper);font-weight:500;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.btn:hover{background:var(--sf2)}
.btn-p{background:var(--ink);border-color:var(--ink);color:#fff;min-width:260px}
.btn-p:hover{background:var(--ink2)}
.btn-p[disabled]{background:#C9CCC7;border-color:#C9CCC7;cursor:not-allowed}
.btn svg{width:17px;height:17px}
.btn-p .amt{font-variant-numeric:tabular-nums;opacity:.75;font-weight:400}
.actions .sub{flex:1;min-width:200px}
.err{color:var(--bad);font-size:13px;margin-top:10px;display:none}
.err.on{display:block}

/* Redirección */
.redir{text-align:center;padding:30px 0 10px}
.spin{width:64px;height:64px;margin:0 auto 22px;position:relative}
.spin svg{width:64px;height:64px;animation:rot 1.1s linear infinite}
.spin .lk{position:absolute;inset:0;display:grid;place-items:center;color:var(--ink)}
.spin .lk svg{width:22px;height:22px;animation:none}
@keyframes rot{to{transform:rotate(360deg)}}
.checks{max-width:420px;margin:24px auto 0;text-align:left;border:1px solid var(--line);border-radius:12px}
.ck{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line2);font-size:14px;color:var(--tx3);transition:color .2s}
.ck:last-child{border-bottom:0}
.ck .d{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;color:#fff;transition:.2s}
.ck .d svg{width:12px;height:12px}
.ck.on{color:var(--tx)}
.ck.on .d{background:var(--ok);border-color:var(--ok)}
.ck code{font-family:var(--f);font-weight:600;font-variant-numeric:tabular-nums}

/* Comprobante */
.res-h{display:flex;gap:16px;align-items:flex-start;margin-bottom:24px}
.badge-big{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;flex:none}
.badge-big svg{width:26px;height:26px}
.badge-big.ok{background:var(--ok-bg);color:var(--ok)} .badge-big.warn{background:var(--warn-bg);color:var(--warn)} .badge-big.bad{background:var(--bad-bg);color:var(--bad)}
.rcpt{border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative}
.rcpt-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:20px 22px;background:var(--sf2);border-bottom:1px dashed var(--line);flex-wrap:wrap}
.rcpt-top .v{font-family:var(--s);font-size:34px;font-weight:500;letter-spacing:-.02em;line-height:1}
.rcpt-top .k{font-size:12.5px;color:var(--tx2);margin-bottom:6px}
.stamp{border:1.5px solid var(--ok);color:var(--ok);border-radius:8px;padding:5px 12px;font-size:12px;font-weight:600;transform:rotate(-4deg);letter-spacing:.02em}
.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.kv div{padding:13px 22px;border-bottom:1px solid var(--line2)}
.kv div:nth-child(odd){border-right:1px solid var(--line2)}
.kv span{display:block;font-size:12px;color:var(--tx2)}
.kv b{display:block;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kv .full{grid-column:1/-1;border-right:0!important}
.verify{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 22px;font-size:12px;color:var(--tx2);flex-wrap:wrap}
.verify code{font-family:var(--f);font-weight:600;color:var(--tx);letter-spacing:.06em}
.copy{font-family:var(--f);letter-spacing:0;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--paper);border-radius:7px;padding:3px 9px;font-size:12px;font-weight:500;margin-left:8px;vertical-align:1px}
.copy svg{width:13px;height:13px}
.clabe{font-family:var(--s);font-size:22px;font-weight:500;letter-spacing:.06em}
.next{display:flex;flex-direction:column;gap:0;margin-top:22px;border:1px solid var(--line);border-radius:12px}
.nx{display:flex;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line2);font-size:14px}
.nx:last-child{border-bottom:0}
.nx .d{width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;flex:none;margin-top:1px}
.nx .d.w{background:var(--paper);border:1.5px solid var(--line);color:var(--tx3)}
.nx .d svg{width:12px;height:12px}
.nx .sub{display:block}

/* Pie */
.legal{max-width:1120px;margin:0 auto;padding:0 28px 40px;font-size:12px;color:var(--tx3);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px}
.legal a{color:var(--tx2);text-decoration:none;margin-right:16px}
.legal a:hover{text-decoration:underline}

@media (max-width:980px){
  .shell{grid-template-columns:1fr;gap:18px;padding:18px 16px 110px}
  .lcol{position:static}
  .inst,.sum-l{display:none}
  .sum-h{padding-top:20px;padding-bottom:18px}
  .total{border-top:1px solid rgba(255,255,255,.12)}
  .help .lg{display:none}
  .trust{display:none}
  .top-in{padding:0 16px}
  .secure{display:none}
}
@media (max-width:600px){
  .steps{padding:0 18px;overflow-x:auto}
  .stp{margin-right:18px;font-size:13px;white-space:nowrap}
  .stp .lbl-long{display:none}
  .pane{padding:22px 18px 24px}
  h1{font-size:22px}
  .sum-h,.sum-l,.total,.expire{padding-left:20px;padding-right:20px}
  .total .v{font-size:36px}
  .mt{grid-template-columns:22px 40px minmax(0,1fr);padding:14px}
  .mi{width:40px;height:40px}
  .mt .via{grid-column:3;text-align:left}
  .mt .via strong{display:inline;margin-right:4px}
  .btn-p{min-width:0;width:100%}
  .actions .btn{flex:1 1 100%}
  .kv{grid-template-columns:1fr}
  .kv div{border-right:0!important}
  .legal{padding:20px 16px 110px}
  .clabe{font-size:18px}
  .ch .tag{margin:3px 0 0;display:table}
  .demo{left:8px;right:8px;bottom:8px;justify-content:center}
  .demo span{display:none}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{.top,.env,.steps,.demo,.actions,.legal,.trust,.sum{display:none!important}.shell{display:block;padding:0}.flow{border:0}}

[hidden]{display:none!important}.pane.on{display:block}.ch.disabled{cursor:default}.logo img{width:38px;height:38px;object-fit:contain}.btn{text-decoration:none}.actions form{margin:0}.notice-error{padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--bad)}.mt input{position:static;opacity:1;pointer-events:auto}.single-shell{max-width:760px;display:block}.stu b,.stu span,.sl{overflow-wrap:anywhere}.sum .v{overflow-wrap:anywhere}.receipt-print{margin-top:20px}.step-note{margin:0 0 20px;color:var(--tx2)}

/* Identidad institucional y contraste del saludo */
.institution-logo-frame{position:relative;width:205px;height:68px;overflow:hidden;display:block;flex:none}.logo .institution-logo-frame img{position:absolute;width:205px;height:205px;max-width:none;top:50%;left:0;transform:translateY(-50%);object-fit:contain}.top-in{height:auto;min-height:88px}.flow h1{color:#0C2A1F;background:#E7F1EA;border-left:4px solid #B8913A;border-radius:0 8px 8px 0;padding:14px 16px;margin-bottom:16px}.flow .lead{color:#43564B}.stu b{color:#FFFFFF}.stu span{color:#D5E3D9}@media(max-width:760px){.institution-logo-frame{width:160px;height:53px}.logo .institution-logo-frame img{width:160px;height:160px}.top-in{flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:10px}.logo{flex-wrap:wrap;gap:8px}.top-in .secure{display:none}.top-in .sp{display:none}.help{margin-left:auto}.flow h1{padding:12px 14px}}@media(max-width:400px){.logo{width:100%}.help{margin-left:0}.shell{padding-left:12px;padding-right:12px}}

/* Acceso institucional: logo completo y fotografía lateral. */
.institution-logo-frame{width:220px;height:82px;overflow:hidden}
.logo .institution-logo-frame img{width:234px;height:234px;left:-8px;top:-73px;transform:none;image-rendering:auto}
.top-in{min-height:104px;gap:18px}.admin-entry{font-size:13px;font-weight:500;color:var(--g);text-decoration:none;white-space:nowrap}.admin-entry:hover{text-decoration:underline}
.access-layout{max-width:1160px;margin:38px auto 48px;display:grid;grid-template-columns:1fr 1fr;min-height:580px;background:var(--card,#fff);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.access-copy{padding:60px 44px;position:relative;z-index:1;align-self:center}.access-eyebrow{font-size:12px;letter-spacing:.15em;color:#466653;font-weight:600;margin:0 0 20px}.access-copy h1{font-family:var(--s);font-size:38px;font-weight:500;line-height:1.16;letter-spacing:-.025em;color:#0c2a1f;margin:0 0 22px}.access-copy .lead{line-height:1.7;margin-bottom:28px;color:#506357}.access-primary{display:inline-flex}.access-hint{font-size:12px;line-height:1.6;color:#65756c;margin:12px 0 28px}.access-admin{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.access-admin h2{font-family:var(--s);font-size:21px;font-weight:500;color:#0c2a1f;margin:0 0 10px}.access-admin p{font-size:14px;line-height:1.6;color:#506357;margin:0 0 18px}.access-support{display:block;margin-top:22px;color:#28563c;font-size:13px;text-decoration:none}.access-support:hover{text-decoration:underline}.access-photo{position:relative;min-height:580px}.access-photo img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:48% 50%}.access-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.55) 8%,rgba(255,255,255,0) 28%);pointer-events:none}.access-form{display:grid;gap:10px}.access-form label{font-size:14px;font-weight:500;color:#193c29}.access-form input{width:100%;box-sizing:border-box;padding:14px 16px;border:1px solid #bdcbc1;border-radius:8px;background:#fff;color:#142e20;font:inherit;font-size:16px;margin:0 0 10px}.access-form input:focus{outline:2px solid #56795e;outline-offset:2px}.access-form button{margin-top:10px;justify-content:center;cursor:pointer}.access-form .btn{width:100%}
@media(max-width:1000px){.access-layout{margin:24px 18px}.access-copy{padding:36px 28px}.access-copy h1{font-size:32px}.top-in .secure{display:none}}
@media(max-width:760px){.institution-logo-frame{width:180px;height:68px}.logo .institution-logo-frame img{width:192px;height:192px;left:-7px;top:-60px}.top-in{min-height:90px}.access-layout{grid-template-columns:1fr;margin:20px 14px;min-height:0}.access-copy{padding:30px 24px}.access-copy h1{font-size:30px}.access-photo{min-height:320px;grid-row:2}.access-photo img{object-position:50% 55%}.access-photo:after{background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.3) 12%,rgba(255,255,255,0) 32%)}.admin-entry{margin-left:auto}.help{margin-left:0}}
/* Contact supplied by the payer, separate from academic identity. */
#conekta-payment-form label{display:block;margin-bottom:.4rem;font-weight:500}
#conekta-payment-form input:not([type="hidden"]){display:block;width:100%;box-sizing:border-box;padding:.75rem;border:1px solid #879d91;border-radius:.5rem;background:#fff;color:#153b2a;min-height:44px}
#conekta-payment-form input:focus-visible{outline:2px solid #207b53;outline-offset:2px}
#conekta-payment-form{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid #b8c8bf}

/* PAGOS: dos entradas; conserva el acceso firmado y el checkout existente. */
.payment-entry{border:1px solid var(--line,#c9d4cc);border-radius:12px;padding:20px;margin:18px 0;background:#fff}
.payment-entry-label{font-size:11px;letter-spacing:.12em;font-weight:600;color:#42614d;margin:0 0 8px}
.payment-entry h2{font-family:var(--s);font-size:24px;color:#0c2a1f;margin:0 0 12px}
.payment-entry p,.first-payment-help li{font-size:14px;line-height:1.65;color:#43564b;overflow-wrap:anywhere}
.payment-entry .btn{white-space:normal;text-align:center;justify-content:center;min-height:44px}
.payment-entry .access-hint{margin-bottom:0}
.first-payment-help summary{cursor:pointer;font-weight:600;color:#174a31;padding:10px 0;min-height:44px}
.first-payment-help a{color:#174a31;text-decoration:underline}
.first-payment-help summary:focus-visible,.payment-entry a:focus-visible{outline:3px solid #b8913a;outline-offset:3px}
@media(max-width:760px){.payment-entry{padding:16px}.payment-entry .btn{width:100%;box-sizing:border-box}}
/* ==========================================================================
   IN4 PAGOS · capa visual "Recibo de confianza" (R2-azul)
   Paleta del escudo INCuatro: azul marino + dorado. Azul de acción para pagar.
   El rojo solo aparece en errores reales. Solo apariencia: no cambia formularios,
   campos, montos, avisos legales ni scripts. Gana por especificidad y !important.
   ========================================================================== */
body:not(.in4p), body:not(.in4p) .fp, body:not(.in4p) .fp[data-fp-theme],
body:not(.in4p) .in4-payment-refined, body:not(.in4p) .pi-payment {
  --ink:#14213D !important; --ink2:#1E3159 !important; --brand:#1F5BD8 !important; --brand2:#1747B0 !important;
  --gold:#B8924A !important; --gold-l:#E9D8B4 !important; --bg:#F3F5F9 !important; --paper:#FFFFFF !important;
  --sf2:#F7F9FC !important; --line:#DCE2EC !important; --line2:#E9EDF4 !important;
  --tx:#16213A !important; --tx2:#556179 !important; --tx3:#8390A6 !important;
  --ok:#1E7F4F !important; --ok-bg:#E8F5EE !important; --warn:#8A5A00 !important; --warn-bg:#FFF4DA !important;
  --f:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif !important; --s:"Fraunces",Georgia,serif !important; --r:12px !important;
  --fp-ink:#14213D !important; --fp-ink2:#1E3159 !important; --fp-green:#1F5BD8 !important; --fp-green2:#1747B0 !important;
  --fp-green-soft:#EEF3FC !important; --fp-gold:#B8924A !important; --fp-gold-l:#E9D8B4 !important;
  --fp-bg:#F3F5F9 !important; --fp-paper:#FFFFFF !important; --fp-sf:#F7F9FC !important;
  --fp-line:#DCE2EC !important; --fp-line2:#E9EDF4 !important;
  --fp-tx:#16213A !important; --fp-tx2:#556179 !important; --fp-tx3:#8390A6 !important;
  --fp-ui:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important;
  --fp-display:"Fraunces",Georgia,"Times New Roman",serif !important;
  --in4-pay-ink:#14213D !important; --in4-pay-muted:#556179 !important; --in4-pay-brand:#1F5BD8 !important;
  --in4-pay-soft:#F7F9FC !important; --in4-pay-line:#DCE2EC !important; --in4-pay-radius:12px !important;
  --sh-a:#1F5BD8 !important; --sh-ink:#14213D !important;
  --r24-blue:#1F5BD8 !important; --r24-ink:#14213D !important; --r24-line:#DCE2EC !important;
}
html body:not(.in4p){ background:#F3F5F9 !important; color:#16213A; font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif !important; -webkit-font-smoothing:antialiased; }
html body:not(.in4p) h1{ font-family:"Fraunces",Georgia,serif !important; font-weight:400 !important; letter-spacing:-.015em; color:#14213D !important; }
html body:not(.in4p) h2{ font-family:"Plus Jakarta Sans",system-ui,sans-serif !important; font-weight:700 !important; color:#14213D !important; letter-spacing:-.005em; }
html body:not(.in4p) a{ color:#1F5BD8; text-underline-offset:3px; }

/* 1. ENCABEZADO: blanco, línea dorada fina, "Conexión segura" como sello */
html body:not(.in4p) .top, html body:not(.in4p).in4-payments-r24 .top{ background:#fff !important; border-bottom:1px solid #E3E8F0 !important; box-shadow:inset 0 -2px 0 #B8924A; }
html body:not(.in4p) .top .logo b{ color:#14213D !important; font-family:"Fraunces",Georgia,serif !important; font-weight:400 !important; letter-spacing:.02em; }
html body:not(.in4p) .top .logo small{ color:#556179 !important; }
html body:not(.in4p) .top .secure{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:#E8F5EE; color:#1E7F4F !important; font-size:12px; font-weight:600; }
html body:not(.in4p) .top .secure b{ color:#1E7F4F !important; }
html body:not(.in4p) .top .help{ border-radius:999px !important; border:1px solid #DCE2EC !important; color:#14213D !important; }
html body:not(.in4p) .top .admin-entry{ color:#8390A6 !important; }

/* 2. BANDA: azul marino del escudo con la foto apenas visible */
html body:not(.in4p) .fp .fp-hero, html body:not(.in4p) .fp-hero, html body:not(.in4p).in4-payments-r24 .r24-story .fp-hero{
  height:230px !important; min-height:0 !important; border-radius:18px !important;
  background:linear-gradient(135deg,#14213D 0%,#1E3159 55%,#2A3959 100%) !important; box-shadow:0 24px 50px -32px rgba(20,33,61,.8) !important; }
html body:not(.in4p) .fp-photo{ opacity:.18 !important; filter:grayscale(.4); }
html body:not(.in4p) .fp .fp-hero .fp-wash, html body:not(.in4p) .fp-hero .fp-wash, html body:not(.in4p) .fp-wash{ background:linear-gradient(90deg,#14213D 0%,rgba(20,33,61,.85) 45%,rgba(20,33,61,.2) 100%) !important; }
html body:not(.in4p) .fp-kicker{ color:#E9D8B4 !important; letter-spacing:.16em !important; font-weight:600 !important; }
html body:not(.in4p) .fp-typed{ color:#fff !important; font-family:"Fraunces",Georgia,serif !important; font-weight:400 !important; text-decoration:none !important; }
html body:not(.in4p) .fp-hero em{ color:#E9D8B4 !important; font-style:italic; text-decoration:none !important; }
html body:not(.in4p) .fp-community-proof{ color:rgba(255,255,255,.72) !important; }
@media (max-width:640px){ html body:not(.in4p) .fp .fp-hero, html body:not(.in4p) .fp-hero{ height:170px !important; border-radius:0 0 18px 18px !important; } html body:not(.in4p) .fp-community-proof{ display:none !important; } }

/* 3. TARJETA PRINCIPAL */
html body:not(.in4p) .fp-main{ background:#fff !important; border:1px solid #E3E8F0 !important; border-radius:18px !important; box-shadow:0 2px 4px rgba(20,33,61,.04), 0 30px 60px -40px rgba(20,33,61,.45) !important; }
html body:not(.in4p) .fp-lead{ color:#556179 !important; font-size:16px !important; }

/* 4. QUÉ PAGAS: el resumen como recibo */
html body:not(.in4p) dl.preview-student{ background:#F7F9FC !important; border:1px solid #E3E8F0 !important; border-left:1px solid #E3E8F0 !important; border-radius:14px !important; padding:18px 20px 0 !important; margin:20px 0 28px !important; position:relative; overflow:hidden; }
html body:not(.in4p) dl.preview-student::before{ content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,#14213D,#2A3959 60%,#B8924A); }
html body:not(.in4p) dl.preview-student > div{ border-bottom:1px solid #E3E8F0 !important; padding-bottom:10px !important; }
html body:not(.in4p) dl.preview-student dt{ font-size:11.5px !important; font-weight:700 !important; letter-spacing:.08em !important; text-transform:uppercase !important; color:#8390A6 !important; }
html body:not(.in4p) dl.preview-student dd{ color:#14213D !important; font-weight:600 !important; font-size:15.5px !important; }
html body:not(.in4p) dl.preview-student .in4-payment-total{ grid-column:1 / -1 !important; display:flex !important; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin:4px -20px 0 !important; padding:16px 20px 18px !important; background:#fff !important; border-top:1px dashed #C9D2E0 !important; border-bottom:0 !important; }
html body:not(.in4p) dl.preview-student .in4-payment-total dt{ color:#14213D !important; font-size:12.5px !important; }
html body:not(.in4p) dl.preview-student .in4-payment-total dd{ font-family:"Fraunces",Georgia,serif !important; font-weight:400 !important; font-size:clamp(30px,5vw,40px) !important; font-variant-numeric:tabular-nums; color:#14213D !important; line-height:1.1; }

/* 5. CÓMO PAGAS: métodos como tarjetas limpias */
html body:not(.in4p) .in4-method-heading{ display:flex !important; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px !important; }
html body:not(.in4p) .in4-method-heading h2{ font-size:18px !important; margin:0 !important; }
html body:not(.in4p) .in4-processed-by{ font-size:12px !important; color:#556179 !important; background:#F3F5F9; border:1px solid #E3E8F0; border-radius:999px; padding:4px 10px; }
html body:not(.in4p) .in4-payment-methods{ gap:10px !important; }
html body:not(.in4p) .in4-payment-methods > div{ background:#fff !important; border:1px solid #DCE2EC !important; border-radius:12px !important; min-height:92px !important; box-shadow:0 1px 2px rgba(20,33,61,.04) !important; transition:border-color .2s, box-shadow .2s, transform .2s; }
html body:not(.in4p) .in4-payment-methods > div:hover{ border-color:#1F5BD8 !important; box-shadow:0 10px 22px -16px rgba(31,91,216,.7) !important; transform:translateY(-1px); }
html body:not(.in4p) .in4-payment-methods span{ color:#14213D !important; font-weight:700 !important; }
html body:not(.in4p) .in4-payment-methods small{ color:#556179 !important; }

/* Avisos informativos: azul suave con ícono, no alarmas */
html body:not(.in4p) .in4-method-disclosure, html body:not(.in4p) .fp-note{ position:relative; background:#EEF3FC !important; border:0 !important; border-radius:10px !important; color:#33415E !important; padding:12px 14px 12px 40px !important; font-size:13.5px !important; line-height:1.55 !important; }
html body:not(.in4p) .in4-method-disclosure::before, html body:not(.in4p) .fp-note::before{ content:"i"; position:absolute; left:13px; top:12px; width:18px; height:18px; border-radius:50%; background:#1F5BD8; color:#fff; font:700 12px/18px Georgia,serif; text-align:center; }

/* 6. QUIÉN PAGA: campos amplios y claros */
html body:not(.in4p) fieldset.fp-step{ border:0 !important; padding:22px 0 0 !important; margin-top:22px !important; border-top:1px solid #E3E8F0 !important; }
html body:not(.in4p) fieldset.fp-step legend{ font-size:18px !important; font-weight:700 !important; color:#14213D !important; padding:0 0 4px !important; }
html body:not(.in4p) .fp-field{ font-weight:600 !important; color:#16213A !important; font-size:14px !important; }
html body:not(.in4p) .fp-field input, html body:not(.in4p) .fp-field select{ min-height:52px !important; font-size:16px !important; border:1px solid #CBD4E1 !important; border-radius:10px !important; background:#fff !important; transition:border-color .15s, box-shadow .15s; }
html body:not(.in4p) .fp-field input:hover{ border-color:#9AA8BF !important; }
html body:not(.in4p) .fp-field input:focus{ border-color:#1F5BD8 !important; box-shadow:0 0 0 4px rgba(31,91,216,.15) !important; outline:none !important; }
html body:not(.in4p) .fp-field small{ color:#7A879C !important; font-weight:400 !important; }
html body:not(.in4p) .privacy-note{ color:#556179 !important; font-size:13px !important; }

/* 7. BOTONES: azul de acción con candado; secundarios en blanco */
html body:not(.in4p) .fp-pay, html body:not(.in4p) .btn-p, html body:not(.in4p).in4-payments-r24 .btn-p, html body:not(.in4p) .r35-actions .btn-p{
  background:linear-gradient(180deg,#2565E3,#1A4FC2) !important; border:0 !important; color:#fff !important; border-radius:12px !important;
  min-height:58px !important; font-size:16.5px !important; font-weight:700 !important; letter-spacing:.005em;
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -16px rgba(31,91,216,.9) !important; transition:transform .15s, box-shadow .15s, filter .15s; }
html body:not(.in4p) .fp-pay:hover, html body:not(.in4p) .btn-p:hover{ filter:brightness(1.06); transform:translateY(-1px); box-shadow:0 1px 0 rgba(255,255,255,.25) inset, 0 18px 32px -16px rgba(31,91,216,1) !important; }
html body:not(.in4p) .fp-pay::before{ content:""; display:inline-block; width:16px; height:16px; margin-right:8px; vertical-align:-2px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
html body:not(.in4p) .fp-pay[disabled], html body:not(.in4p) .btn-p[disabled]{ background:#C5CDDA !important; box-shadow:none !important; transform:none; }
html body:not(.in4p) .in4-mp-secondary{ background:#fff !important; border:1px solid #CBD4E1 !important; border-radius:12px !important; min-height:64px !important; transition:border-color .2s, box-shadow .2s; }
html body:not(.in4p) .in4-mp-secondary:hover{ border-color:#009EE3 !important; box-shadow:0 10px 22px -16px rgba(0,158,227,.8) !important; }
html body:not(.in4p) .in4-other-provider > p:first-child{ display:flex; align-items:center; gap:12px; color:#8390A6 !important; font-size:12.5px !important; text-transform:uppercase; letter-spacing:.12em; }
html body:not(.in4p) .in4-other-provider > p:first-child::before, html body:not(.in4p) .in4-other-provider > p:first-child::after{ content:""; flex:1; height:1px; background:#E3E8F0; }
html body:not(.in4p) .in4-provider-hint{ color:#8390A6 !important; }
html body:not(.in4p) .in4-ficha-exit .btn, html body:not(.in4p) .btn:not(.btn-p){ border-radius:10px !important; border-color:#DCE2EC !important; color:#556179 !important; background:#fff !important; }
html body:not(.in4p) .fp-name-help a{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:#E8F5EE; color:#1E7F4F !important; font-weight:600; text-decoration:none; }

/* 8. SENCILLEZ: fuera lo decorativo que distrae (nada de esto oculta montos,
      avisos legales, errores ni botones de pago) */
html body:not(.in4p) .fp-navi, html body:not(.in4p) aside.fp-navi.navi-free, html body:not(.in4p) aside.fp-navi.navi-free.navi-compact{ display:none !important; }
html body:not(.in4p) .in4-ficha-motion, html body:not(.in4p) svg .in4doc-assembly, html body:not(.in4p) .in4-ficha-ornament{ display:none !important; }

/* 9. TICKET Y ESTADOS: comprobante tipo recibo */
html body:not(.in4p) .r35-result-card{ border-radius:18px !important; border:1px solid #E3E8F0 !important; box-shadow:0 30px 60px -40px rgba(20,33,61,.45) !important; overflow:hidden; position:relative; }
html body:not(.in4p) .r35-result-card::before{ content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,#14213D,#2A3959 60%,#B8924A); }
html body:not(.in4p) .r35-eyebrow{ color:#B8924A !important; letter-spacing:.14em !important; text-transform:uppercase; font-size:12.5px !important; }
html body:not(.in4p) .r35-state p{ color:#556179 !important; }
html body:not(.in4p) .r35-state-icon{ background:#EEF3FC !important; color:#1F5BD8 !important; }
html body:not(.in4p) .r35-approved .r35-state-icon{ background:#1E7F4F !important; color:#fff !important; box-shadow:0 0 0 6px #E8F5EE; }
html body:not(.in4p) .r35-pending .r35-state-icon{ background:#FFF4DA !important; color:#8A5A00 !important; }
html body:not(.in4p) .r35-rejected .r35-state-icon{ background:#FFF4DA !important; color:#8A5A00 !important; }
html body:not(.in4p) .r35-summary{ background:linear-gradient(135deg,#14213D,#1E3159 60%,#2A3959) !important; border-radius:14px 14px 0 0 !important; border-bottom:3px solid #B8924A !important; }
html body:not(.in4p) .r35-summary strong{ font-family:"Fraunces",Georgia,serif !important; font-weight:400 !important; font-variant-numeric:tabular-nums; }
html body:not(.in4p) .r35-summary span{ color:#C9D4E8 !important; }
html body:not(.in4p) .r35-details{ background:#F7F9FC; border:1px solid #E3E8F0; border-top:0; border-radius:0 0 14px 14px; padding:6px 18px !important; margin-top:0 !important; }
html body:not(.in4p) .r35-details > div{ border-bottom:1px dashed #D4DBE7 !important; }
html body:not(.in4p) .r35-details > div:last-child{ border-bottom:0 !important; }
html body:not(.in4p) .r35-details dt{ color:#556179 !important; }
html body:not(.in4p) .r35-details dd{ color:#14213D !important; font-variant-numeric:tabular-nums; }
html body:not(.in4p) .r35-message{ background:#EEF3FC !important; color:#33415E !important; border:0 !important; border-radius:12px !important; }
html body:not(.in4p) .r35-registration{ background:#E8F5EE !important; color:#1B4D33 !important; border:1px solid #BFE0CC !important; border-radius:12px !important; }
html body:not(.in4p) .r35-registration h2{ color:#1B4D33 !important; }

/* 10. Ajustes finos */
html body:not(.in4p) .fp-hero-copy{ top:34px !important; bottom:auto !important; }
@media (max-width:640px){ html body:not(.in4p) .fp-hero-copy{ top:26px !important; } }
html body:not(.in4p) .btn-p, html body:not(.in4p) .r35-actions .btn-p, html body:not(.in4p) .fp-pay{ text-decoration:none !important; }
html body:not(.in4p) .r35-actions a:not(.btn-p){ border-radius:12px !important; }
