/* ===== INOQUALAB — Checkout / Facturación ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0d1b2a;
  --navy-2: #102536;
  --navy-soft: #16304a;
  --ink: #1b2a3a;
  --muted: #6a7888;
  --muted-2: #93a0ad;
  --line: #e7ecf1;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --panel: #ffffff;
  --field: #f7f9fb;
  --green: #008bcd;
  --green-deep: #006fa3;
  --green-soft: #e4f2fb;
  --amber: #c98a14;
  --amber-soft: #fbf4e3;
  --red: #d24a43;
  --red-soft: #fbecea;
  --radius: 14px;
  --shadow-card: 0 14px 40px rgba(13,27,42,.10), 0 2px 6px rgba(13,27,42,.05);
  --shadow-soft: 0 6px 22px rgba(13,27,42,.07);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #f3f6f9;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar .hours { display: flex; align-items: center; gap: 9px; }
.topbar .hours svg { width: 15px; height: 15px; opacity: .8; }
.topbar .socials { display: flex; align-items: center; gap: 16px; }
.topbar .socials a { opacity: .8; transition: opacity .18s var(--ease), transform .18s var(--ease); display: inline-flex; }
.topbar .socials a:hover { opacity: 1; transform: translateY(-1px); }
.topbar .socials svg { width: 16px; height: 16px; }

/* ===== Main nav ===== */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 800; letter-spacing: -.5px; font-size: 23px; color: var(--navy); }
.brand b { color: var(--green); }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; color: var(--navy); transition: transform .18s var(--ease); background: none; border: none; padding: 0; }
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute; top: -7px; right: -9px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 2px 6px rgba(0,139,205,.4);
}
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.btn-login {
  display: inline-block; text-decoration: none;
  background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 13px;
  border: none; padding: 12px 22px; border-radius: 8px; transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-login:hover { background: var(--navy-soft); transform: translateY(-1px); }

/* ===== Page header band ===== */
.band {
  background:
    radial-gradient(1100px 360px at 82% -40%, rgba(0,139,205,.16), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff; position: relative; overflow: hidden;
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.band .container { position: relative; padding-top: 56px; padding-bottom: 64px; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 8px 16px; border-radius: 7px; white-space: nowrap;
}
.crumb .sep { color: var(--muted-2); font-weight: 600; }
.crumb .cur { color: var(--green-deep); }
.band h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 0; color: #fff; }
.band .lede { margin: 10px 0 0; color: rgba(255,255,255,.62); font-size: 15px; max-width: 460px; }

/* ===== Layout ===== */
.checkout { background: #f3f6f9; padding: 48px 0 72px; }
.grid { display: grid; grid-template-columns: 1fr 390px; gap: 32px; align-items: start; }

/* ===== Form card ===== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 36px; }
.form-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.form-card .sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 28px; max-width: 620px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.field label .req { color: var(--green); }
.control {
  background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px;
  font-size: 14.5px; color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  width: 100%;
}
.control::placeholder { color: var(--muted-2); }
.control:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(0,139,205,.13); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236a7888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.pw-wrap { position: relative; }
.pw-wrap .control { padding-right: 44px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); padding: 6px; border-radius: 6px; display: inline-flex; }
.pw-toggle:hover { color: var(--ink); }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 14px; }

/* ===== Summary column ===== */
.summary-col { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 16px; }

/* Order summary card */
.summary {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
  border: 1px solid var(--line);
}
.summary-head { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; padding: 22px 24px 20px; position: relative; }
.summary-head::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: rgba(255,255,255,.10); }
.summary-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.summary-head h3 { font-size: 21px; font-weight: 800; margin: 4px 0 0; letter-spacing: -.01em; }

.summary-body { padding: 20px 24px 24px; }

/* line item */
.line-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.li-thumb {
  width: 56px; height: 56px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.li-thumb svg { width: 26px; height: 26px; }
.li-main { flex: 1; min-width: 0; }
.li-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 3px 8px; border-radius: 5px; margin-bottom: 6px; }
.li-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.li-price { font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; margin-top: 2px; }
.li-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s var(--ease); }
.qty button:hover:not(:disabled) { background: var(--field); }
.qty button:disabled { color: var(--muted-2); cursor: not-allowed; }
.qty span { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; }
.li-remove { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px; border-radius: 7px; transition: color .15s var(--ease), background .15s var(--ease); }
.li-remove:hover { color: var(--red); background: var(--red-soft); }
.li-remove svg { width: 14px; height: 14px; }

/* totals */
.totals { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.trow { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.trow .lbl { color: var(--muted); font-weight: 500; }
.trow .val { font-weight: 700; color: var(--ink); white-space: nowrap; }
.trow.disc .lbl { color: var(--green-deep); display: inline-flex; align-items: center; gap: 7px; }
.trow.disc .lbl svg { width: 14px; height: 14px; }
.trow.disc .val { color: var(--green-deep); }
.disc-code { font-size: 10px; font-weight: 800; letter-spacing: .06em; background: var(--green-soft); color: var(--green-deep); padding: 2px 7px; border-radius: 5px; }
.totals-divider { height: 1px; background: var(--line-2); margin: 4px 0; }
.trow.total .lbl { font-size: 16px; font-weight: 800; color: var(--navy); }
.trow.total .val { font-size: 20px; font-weight: 800; color: var(--navy); }
.trow.total .val small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.save-note { font-size: 12px; color: var(--green-deep); font-weight: 700; text-align: right; margin-top: -4px; }

/* coupon */
.coupon { margin-top: 18px; }
.coupon-toggle {
  display: flex; align-items: center; gap: 9px; width: 100%; background: var(--field);
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink);
  font-weight: 700; font-size: 13.5px; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.coupon-toggle:hover { border-color: var(--green); background: var(--green-soft); }
.coupon-toggle svg { width: 17px; height: 17px; color: var(--green-deep); }
.coupon-toggle .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--muted); }
.coupon-toggle.open .chev { transform: rotate(180deg); }
.coupon-form { display: flex; gap: 9px; margin-top: 10px; }
.coupon-form .control { padding: 12px 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.coupon-apply {
  background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 0 18px; font-weight: 700;
  font-size: 13.5px; flex: 0 0 auto; transition: background .18s var(--ease);
}
.coupon-apply:hover { background: var(--navy-soft); }
.coupon-apply:disabled { opacity: .5; cursor: not-allowed; }
.coupon-msg { font-size: 12.5px; font-weight: 600; margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.coupon-msg.err { color: var(--red); }
.coupon-msg svg { width: 14px; height: 14px; }
.coupon-applied {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; background: var(--green-soft);
  border: 1px solid rgba(0,139,205,.3); border-radius: 10px; padding: 11px 13px;
}
.coupon-applied .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.coupon-applied .ic svg { width: 15px; height: 15px; }
.coupon-applied .txt { flex: 1; line-height: 1.3; }
.coupon-applied .txt b { font-size: 13px; color: var(--green-deep); display: block; }
.coupon-applied .txt span { font-size: 12px; color: var(--green-deep); opacity: .85; }
.coupon-applied .rm { background: none; border: none; color: var(--green-deep); padding: 6px; border-radius: 7px; display: inline-flex; }
.coupon-applied .rm:hover { background: rgba(0,139,205,.18); }
.coupon-applied .rm svg { width: 15px; height: 15px; }

/* pay button */
.pay-btn {
  margin-top: 22px; width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 11px;
  padding: 16px; font-size: 15px; font-weight: 800; letter-spacing: .03em; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 10px 24px rgba(13,27,42,.18);
}
.pay-btn:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13,27,42,.24); }
.pay-btn:active { transform: translateY(0); }
.pay-btn svg { width: 18px; height: 18px; }
.pay-btn { white-space: nowrap; }
.pay-btn:disabled { background: #b9c4cf; box-shadow: none; cursor: not-allowed; transform: none; }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 12px; font-weight: 600; }
.trust svg { width: 14px; height: 14px; color: var(--green-deep); }
.summary-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; }
.summary-foot .lbl { color: var(--muted); font-weight: 500; white-space: nowrap; }
.summary-foot .phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--navy); }
.summary-foot .phone svg { width: 15px; height: 15px; color: var(--green-deep); }

/* empty state */
.empty { text-align: center; padding: 26px 8px 8px; }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: var(--field); color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.empty .ic svg { width: 26px; height: 26px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.empty .back { display: inline-flex; align-items: center; gap: 8px; color: var(--green-deep); font-weight: 800; font-size: 14px; }

/* ===== Sandbox panel ===== */
.sandbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.sandbox-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; cursor: pointer; transition: background .15s var(--ease); }
.sandbox-head:hover { background: #fafbfc; }
.sandbox-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); border: 1px solid rgba(0,139,205,.28); padding: 4px 9px; border-radius: 6px; white-space: nowrap; flex: 0 0 auto; }
.sandbox-badge svg { width: 13px; height: 13px; }
.sandbox-head .ttl { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.sandbox-head .chev { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); display: inline-flex; }
.sandbox-head .chev.open { transform: rotate(180deg); }
.sandbox-body { padding: 0 18px 18px; }
.sandbox-body > .intro { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; padding-top: 2px; }
.test-list { display: flex; flex-direction: column; gap: 8px; }
.test-row { display: flex; align-items: flex-start; gap: 11px; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; }
.test-row .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; }
.test-row.ok .dot { background: var(--green); }
.test-row.no .dot { background: var(--red); }
.test-row.pse .dot { background: #3b82c4; }
.test-row .info { flex: 1; min-width: 0; }
.test-row .info .h { display: flex; align-items: center; gap: 8px; }
.test-row .info .h b { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.test-row.ok .h b { color: var(--green-deep); }
.test-row.no .h b { color: var(--red); }
.test-row.pse .h b { color: #2f6ca3; }
.test-row .meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.chip { font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 5px; }
.chip .k { color: var(--muted-2); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 10px; }
.copy-chip { cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.copy-chip:hover { border-color: var(--green); background: var(--green-soft); }
.copy-chip.copied { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.test-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.coupon-hint { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.coupon-hint .h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.coupon-hint .h svg { width: 13px; height: 13px; color: var(--green-deep); }
.coupon-hint .codes { display: flex; flex-wrap: wrap; gap: 7px; }
.code-pill { font-size: 11px; font-weight: 700; border-radius: 7px; padding: 5px 9px; border: 1px dashed rgba(0,139,205,.4); color: var(--green-deep); background: var(--green-soft); cursor: pointer; transition: transform .15s var(--ease); white-space: nowrap; }
.code-pill:hover { transform: translateY(-1px); }
.code-pill b { font-family: ui-monospace, monospace; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 30px 30px; opacity: .6; }
.footer .container { position: relative; padding: 56px 32px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 18px; }
.footer p { font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; transition: color .15s var(--ease); }
.footer ul a:hover { color: var(--green); }
.footer .contact-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; margin-bottom: 14px; }
.footer .contact-row svg { width: 18px; height: 18px; color: var(--green); margin-top: 2px; flex: 0 0 auto; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { padding: 18px 32px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom b { color: rgba(255,255,255,.78); }

/* ===== Cart page ===== */
.cart-page-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 30px 34px 26px; }
.cp-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.cp-title span { color: var(--green-deep); }
.cp-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.cp-head-row { display: grid; grid-template-columns: 1fr 132px 132px 40px; align-items: center; gap: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.cp-head-row span { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.cp-head-row .c-qty, .cp-head-row .c-price { text-align: center; }
.cp-item { display: grid; grid-template-columns: 1fr 132px 132px 40px; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.cp-prod { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cp-thumb { width: 66px; height: 66px; border-radius: 12px; flex: 0 0 auto; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cp-thumb svg { width: 30px; height: 30px; }
.cp-info { min-width: 0; }
.cp-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 3px 8px; border-radius: 5px; margin-bottom: 7px; }
.cp-name { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.cp-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.cp-qty-cell { display: flex; justify-content: center; }
.cp-price-cell { text-align: center; }
.cp-price-cell .amt { font-size: 16px; font-weight: 800; color: var(--navy); }
.cp-price-cell .unit { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.cp-remove { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted-2); display: flex; align-items: center; justify-content: center; transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease); }
.cp-remove:hover { color: var(--red); background: var(--red-soft); border-color: rgba(210,74,67,.3); }
.cp-remove svg { width: 17px; height: 17px; }
.cp-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 14px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-size: 13.5px; font-weight: 700; padding: 12px 20px; border-radius: 10px; transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); transform: translateY(-1px); }
.btn-ghost svg { width: 17px; height: 17px; }
.btn-ghost, .btn-solid, .cart-empty-btn, .cart-cta { white-space: nowrap; }
.btn-ghost.danger:hover { border-color: rgba(210,74,67,.4); color: var(--red); background: var(--red-soft); }
.cp-empty { text-align: center; padding: 48px 20px 36px; }
.cp-empty .ic { width: 84px; height: 84px; border-radius: 20px; background: var(--field); color: var(--muted-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cp-empty .ic svg { width: 40px; height: 40px; }
.cp-empty h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.cp-empty p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.cp-empty .actions { display: flex; gap: 12px; justify-content: center; }
.btn-solid { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 10px; transition: background .18s var(--ease), transform .18s var(--ease); text-decoration: none; }
.btn-solid:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-solid svg { width: 18px; height: 18px; color: var(--green); }

.go-pay { margin-top: 22px; width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 11px; padding: 16px; font-size: 15px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); box-shadow: 0 10px 24px rgba(13,27,42,.18); }
.go-pay:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13,27,42,.24); }
.go-pay svg { width: 18px; height: 18px; }
.go-pay { white-space: nowrap; }
.go-pay .arr { transition: transform .2s var(--ease); }
.go-pay:hover .arr { transform: translateX(4px); }
.coupon-note { display: flex; align-items: flex-start; gap: 9px; background: var(--green-soft); border-radius: 10px; padding: 11px 13px; margin-top: 16px; font-size: 12.5px; color: var(--green-deep); font-weight: 600; line-height: 1.45; }
.coupon-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }

@media (max-width: 640px) {
  .cart-page-card { padding: 22px 18px; }
  .cp-head-row { display: none; }
  .cp-item { grid-template-columns: 1fr auto; grid-template-areas: 'prod remove' 'qty price'; row-gap: 14px; }
  .cp-prod { grid-area: prod; }
  .cp-remove { grid-area: remove; }
  .cp-qty-cell { grid-area: qty; justify-content: flex-start; }
  .cp-price-cell { grid-area: price; text-align: right; }
  .cp-actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-ghost { justify-content: center; }
}

/* ===== Client area / Panel ===== */
.pnl { background: #eef2f6; min-height: 100vh; }
.pnl-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.pnl-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; gap: 16px; }
.pnl-brand { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.5px; text-decoration: none; }
.pnl-tab, .pnl-avatar { text-decoration: none; }
.pnl-brand b { color: var(--green); }
.pnl-brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-left: 3px; }
.pnl-navtabs { display: flex; gap: 6px; margin: 0 auto; }
.pnl-tab { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; color: var(--muted); background: none; border: none; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); white-space: nowrap; }
.pnl-tab svg { width: 17px; height: 17px; }
.pnl-tab:hover { background: var(--field); color: var(--ink); }
.pnl-tab.active { background: var(--navy); color: #fff; }
.pnl-tab.active svg { color: var(--green); }
.pnl-avatar { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); }
.pnl-avatar svg { width: 22px; height: 22px; }
.pnl-main { max-width: 1180px; margin: 0 auto; padding: 32px 28px 72px; }
.pnl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }

/* welcome */
.pnl-welcome { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; padding: 38px 42px; overflow: hidden; }
.pnl-welcome .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); }
.pnl-welcome h1 { font-size: 30px; font-weight: 800; margin: 10px 0 12px; letter-spacing: -.02em; }
.pnl-welcome p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 22px; max-width: 520px; }
.pnl-welcome .w-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; text-decoration: none; font-size: 14px; font-weight: 800; padding: 13px 22px; border-radius: 11px; transition: background .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.pnl-welcome .w-cta:hover { background: var(--navy-soft); transform: translateY(-2px); }
.pnl-welcome .w-cta svg { width: 17px; height: 17px; color: var(--green); }
.pnl-illus { display: flex; justify-content: center; }
.pnl-illus svg { width: 100%; max-width: 320px; height: auto; }

/* stats */
.pnl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 20px 22px; display: flex; gap: 15px; align-items: center; }
.stat-card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stat-card .ic svg { width: 23px; height: 23px; }
.stat-card .n { font-size: 25px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 5px; }

.pnl-sec-title { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 16px; }
.pnl-sec-title h3 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pnl-sec-title a { font-size: 13px; font-weight: 800; color: var(--green-deep); text-decoration: none; white-space: nowrap; }

/* section header card */
.pnl-head { padding: 24px 28px; }
.pnl-head h2 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pnl-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* progress course cards */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.pc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pc-media { height: 124px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-media::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.pc-media .cap { position: relative; z-index: 1; width: 44px; height: 44px; color: var(--green); opacity: .92; }
.pc-media .pc-cat { position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding: 4px 9px; border-radius: 6px; }
.pc-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,27,42,.12); }
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-year { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--field); padding: 5px 11px; border-radius: 7px; }
.pc-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; white-space: nowrap; }
.pc-badge.progress { background: #e3f1fb; color: var(--green-deep); }
.pc-badge.pending { background: #fbf4e3; color: #b07d12; }
.pc-badge.done { background: #eafaf0; color: #167a3e; }
.pc-badge.expired { background: var(--red-soft); color: var(--red); }
.pc-title { font-size: 16.5px; font-weight: 800; line-height: 1.35; margin: 16px 0 0; color: var(--ink); }
.pc-track { height: 8px; border-radius: 5px; background: var(--line-2); margin: 18px 0 8px; overflow: hidden; }
.pc-fill { height: 100%; width: var(--p, 0%); border-radius: 5px; background: linear-gradient(90deg, var(--green), #0072a8); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.pc-foot .col .k { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pc-foot .col .v { font-size: 15px; font-weight: 800; color: var(--navy); margin-top: 2px; white-space: nowrap; }
.pc-foot .col.r { text-align: right; }
.pc-btn { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--navy); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 800; padding: 12px; border-radius: 11px; transition: background .18s var(--ease), transform .18s var(--ease); }
.pc-btn:hover { background: var(--navy-soft); transform: translateY(-1px); }
.pc-btn svg { width: 16px; height: 16px; color: var(--green); }
.pc-btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.pc-btn.ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.pc-btn.ghost svg { color: var(--green-deep); }

/* filter tabs */
.pnl-filter { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; box-shadow: var(--shadow-soft); margin-bottom: 22px; flex-wrap: wrap; }
.pnl-filter button { padding: 9px 17px; border: none; background: none; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.pnl-filter button:hover { color: var(--ink); }
.pnl-filter button.active { background: var(--navy); color: #fff; }

/* table */
.pnl-tablewrap { padding: 8px 28px 22px; overflow-x: auto; }
.pnl-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.pnl-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 14px 16px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.pnl-table td { padding: 17px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink); vertical-align: middle; }
.pnl-table tr:last-child td { border-bottom: none; }
.pnl-table .doc-title { font-weight: 700; display: flex; align-items: center; gap: 13px; }
.pnl-table .doc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pnl-table .doc-ic svg { width: 19px; height: 19px; }
.pnl-table .muted { color: var(--muted); font-weight: 500; }
.t-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.t-badge.paid { background: #eafaf0; color: #167a3e; }
.t-badge.pend { background: #fbf4e3; color: #b07d12; }
.t-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dl-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #fff; border: none; font-size: 12.5px; font-weight: 700; padding: 9px 15px; border-radius: 9px; cursor: pointer; text-decoration: none; transition: background .15s var(--ease); white-space: nowrap; }
.dl-btn:hover { background: var(--navy-soft); }
.dl-btn svg { width: 15px; height: 15px; color: var(--green); }
.dl-btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.dl-btn.ghost svg { color: var(--green-deep); }
.dl-btn.ghost:hover { border-color: var(--green); background: var(--green-soft); }
.pnl-tfoot { padding: 16px 28px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); }

/* search */
.pnl-search { display: flex; gap: 10px; padding: 22px 28px; }
.pnl-search .wrap { position: relative; flex: 1; }
.pnl-search .wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }
.pnl-search input { width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 15px 13px 42px; font-size: 14.5px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.pnl-search input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(0,139,205,.12); }
.pnl-search .go { background: var(--navy); color: #fff; border: none; border-radius: 11px; width: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s var(--ease); }
.pnl-search .go:hover { background: var(--navy-soft); }
.pnl-search .go svg { width: 19px; height: 19px; }

/* config form */
.pnl-form { padding: 8px 32px 32px; }
.pnl-form .intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 26px; max-width: 760px; }
.pnl-save { margin-top: 26px; width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: background .18s var(--ease), transform .18s var(--ease); box-shadow: 0 10px 24px rgba(13,27,42,.16); }
.pnl-save:hover { background: var(--navy-soft); transform: translateY(-2px); }
.control[readonly] { background: #eef2f6; color: var(--muted); cursor: not-allowed; }

/* greeting */
.pnl-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pnl-greet h1 { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.pnl-greet .date { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 5px; text-transform: capitalize; }
.pnl-streak { display: inline-flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px 16px; box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 700; color: var(--ink); }
.pnl-streak .ic { width: 34px; height: 34px; border-radius: 9px; background: #fbeee3; color: #e0664a; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pnl-streak .ic svg { width: 18px; height: 18px; }
.pnl-streak b { color: var(--navy); font-size: 15px; }

/* resume hero */
.resume { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.resume-media { position: relative; background: radial-gradient(400px 200px at 50% 30%, #1a3a55, var(--navy)); display: flex; align-items: center; justify-content: center; min-height: 212px; overflow: hidden; }
.resume-media::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.resume-play { position: absolute; z-index: 2; width: 66px; height: 66px; border-radius: 50%; background: var(--green); color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 38px rgba(0,139,205,.5); cursor: pointer; transition: transform .2s var(--ease); text-decoration: none; }
.resume-play:hover { transform: scale(1.07); }
.resume-play svg { width: 27px; height: 27px; margin-left: 4px; }
.resume-pill { position: absolute; z-index: 2; bottom: 14px; left: 14px; background: rgba(13,27,42,.7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 7px; }
.resume-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.resume-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); }
.resume-body h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 9px 0 0; }
.resume-next { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.resume-next svg { width: 15px; height: 15px; color: var(--green-deep); flex: 0 0 auto; }
.resume-prog { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.resume-prog .track { flex: 1; height: 8px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.resume-prog .track i { display: block; height: 100%; width: var(--p, 0%); border-radius: 5px; background: linear-gradient(90deg, var(--green), #0072a8); }
.resume-prog .pct { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.resume-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.resume-actions a { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800; padding: 12px 20px; border-radius: 11px; text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); }
.resume-actions .go { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(13,27,42,.16); }
.resume-actions .go:hover { background: var(--navy-soft); transform: translateY(-2px); }
.resume-actions .go svg { width: 16px; height: 16px; color: var(--green); }
.resume-actions .ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.resume-actions .ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }

/* inicio two-column */
.inicio-cols { display: grid; grid-template-columns: 1fr 326px; gap: 24px; align-items: start; margin-top: 30px; }
.inicio-rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.goal-card, .dl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 22px; }
.goal-card h4, .dl-card h4 { font-size: 14px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
.goal-ring { display: flex; align-items: center; gap: 18px; }
.donut2 { position: relative; width: 86px; height: 86px; flex: 0 0 auto; }
.donut2 svg { transform: rotate(-90deg); }
.donut2 .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut2 .lbl b { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1; }
.donut2 .lbl span { font-size: 9px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.goal-ring .txt b { font-size: 15px; font-weight: 800; color: var(--ink); }
.goal-ring .txt p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 0; }
.goal-days { display: flex; gap: 6px; margin-top: 18px; }
.goal-days span { flex: 1; height: 30px; border-radius: 8px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--muted-2); }
.goal-days span.on { background: var(--green); color: #fff; }
.deadline { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.deadline:last-child { border-bottom: none; padding-bottom: 0; }
.deadline .d { width: 46px; height: 46px; border-radius: 11px; background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.deadline .d b { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1; }
.deadline .d span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.deadline .info { min-width: 0; }
.deadline .info b { font-size: 13px; font-weight: 700; color: var(--ink); display: block; line-height: 1.35; }
.deadline .info span { font-size: 12px; font-weight: 700; margin-top: 3px; display: inline-block; }
.deadline .info span.soon { color: var(--red); }
.deadline .info span.ok { color: var(--muted); }

@media (max-width: 1000px) {
  .inicio-cols { grid-template-columns: 1fr; }
  .inicio-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .inicio-rail > * { flex: 1; min-width: 260px; }
}
@media (max-width: 700px) {
  .resume { grid-template-columns: 1fr; }
  .resume-media { min-height: 150px; }
}

@media (max-width: 1040px) {
  .pnl-navtabs { gap: 2px; flex-shrink: 1; min-width: 0; }
  .pnl-tab { padding: 9px 11px; }
  .pnl-tab span { display: none; }
}
@media (max-width: 900px) {
  .pnl-welcome { grid-template-columns: 1fr; text-align: left; }
  .pnl-illus { display: none; }
  .pnl-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pnl-main { padding: 22px 16px 60px; }
  .pnl-nav-inner { padding: 0 14px; }
  .pnl-brand { display: none; }
  .pnl-stats { grid-template-columns: 1fr; }
}

/* entrance — kept subtle and always ends visible */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .55s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ===== Cart drawer (slide-out) ===== */
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(13,27,42,.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); z-index: 100;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 430px; max-width: 92vw; background: #fff;
  box-shadow: -28px 0 70px rgba(13,27,42,.30); transform: translateX(105%); transition: transform .4s var(--ease);
  z-index: 101; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }

.cart-drawer-head {
  background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto;
}
.cdh-title { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.cdh-title svg { width: 22px; height: 22px; color: var(--green); }
.cdh-count { font-size: 12px; font-weight: 800; background: var(--green); color: #fff; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cdh-close { background: rgba(255,255,255,.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; transition: background .18s var(--ease), transform .18s var(--ease); }
.cdh-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.cdh-close svg { width: 18px; height: 18px; }

.cart-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cart-item:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(13,27,42,.08); }
.ci-thumb { width: 54px; height: 54px; border-radius: 11px; flex: 0 0 auto; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.ci-thumb svg { width: 25px; height: 25px; }
.ci-main { flex: 1; min-width: 0; }
.ci-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 3px 7px; border-radius: 5px; margin-bottom: 6px; }
.ci-name { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.ci-price { font-size: 14px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ci-remove { background: none; border: none; color: var(--muted-2); padding: 6px; border-radius: 8px; display: inline-flex; flex: 0 0 auto; transition: color .15s var(--ease), background .15s var(--ease); }
.ci-remove:hover { color: var(--red); background: var(--red-soft); }
.ci-remove svg { width: 16px; height: 16px; }
.cart-reassure { display: flex; align-items: center; gap: 9px; color: var(--green-deep); font-size: 12.5px; font-weight: 600; background: var(--green-soft); border-radius: 10px; padding: 11px 13px; margin-top: 2px; }
.cart-reassure svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cart-includes { margin-top: 14px; background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 16px; }
.cart-includes h5 { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cart-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cart-includes li { display: flex; gap: 11px; align-items: center; font-size: 13px; color: var(--ink); font-weight: 600; }
.cart-includes li .c { width: 22px; height: 22px; border-radius: 7px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cart-includes li .c svg { width: 13px; height: 13px; }
.ci-badge { display: inline-block; font-size: 10px; font-weight: 800; background: var(--green); color: #fff; padding: 2px 7px; border-radius: 5px; margin-left: 6px; }
.ci-pricewrap { display: flex; flex-direction: column; align-items: flex-end; }
.ci-old { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; margin-top: 2px; }
.cd-coupon { display: flex; align-items: center; gap: 8px; background: var(--green-soft); border: 1px solid rgba(0,139,205,.25); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; color: var(--green-deep); margin-bottom: 14px; }
.cd-coupon svg { width: 14px; height: 14px; flex: 0 0 auto; }
.cd-rows { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.cd-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.cd-row span { color: var(--muted); font-weight: 500; }
.cd-row b { color: var(--ink); font-weight: 700; }
.cd-row.disc span, .cd-row.disc b { color: var(--green-deep); }
.cd-row.total { padding-top: 11px; border-top: 1px solid var(--line-2); }
.cd-row.total span { font-size: 15px; font-weight: 800; color: var(--navy); }
.cd-row.total b { font-size: 19px; font-weight: 800; color: var(--navy); }
.cart-vercarrito { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--green-soft); color: var(--green-deep); border-radius: 11px; padding: 13px; font-size: 13.5px; font-weight: 800; text-decoration: none; margin-bottom: 10px; transition: background .15s var(--ease); }
.cart-vercarrito:hover { background: #d6ecf9; }
.cart-vercarrito svg { width: 16px; height: 16px; }

.cart-foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 18px 20px 22px; background: #fff; }
.cart-foot-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.cart-foot-row span { color: var(--muted); font-weight: 600; }
.cart-foot-row b { font-size: 21px; font-weight: 800; color: var(--navy); }
.cart-foot-note { font-size: 12px; color: var(--muted); margin: 6px 0 16px; }
.cart-cta {
  width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 11px; padding: 16px;
  font-size: 15px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); box-shadow: 0 10px 24px rgba(13,27,42,.18);
}
.cart-cta:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13,27,42,.24); }
.cart-cta svg { width: 17px; height: 17px; }
.cart-cta .arr { transition: transform .2s var(--ease); }
.cart-cta:hover .arr { transform: translateX(4px); }
.cart-keep { width: 100%; background: none; border: none; color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 14px 0 2px; transition: color .15s var(--ease); }
.cart-keep:hover { color: var(--navy); }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.cart-empty .ic { width: 72px; height: 72px; border-radius: 18px; background: var(--field); color: var(--muted-2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cart-empty .ic svg { width: 34px; height: 34px; }
.cart-empty h4 { font-size: 19px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.cart-empty p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; max-width: 280px; }
.cart-empty-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 13px 20px; font-size: 14px; font-weight: 700; transition: background .18s var(--ease), transform .18s var(--ease); }
.cart-empty-btn:hover { background: var(--navy-soft); transform: translateY(-1px); }
.cart-empty-btn svg { width: 18px; height: 18px; color: var(--green); }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .summary-col { position: static; }
  .footer .container { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
}

/* ===== Course detail page ===== */
.course-hero {
  background:
    radial-gradient(1100px 420px at 78% -30%, rgba(0,139,205,.18), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff; position: relative; overflow: hidden;
}
.course-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; }
.course-hero .container { position: relative; padding: 50px 32px 185px; }
.ch-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.course-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 14px 0 0; max-width: 760px; color: #fff; }
.ch-rating { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.ch-stars { display: inline-flex; gap: 3px; color: #f5b740; }
.ch-stars svg { width: 17px; height: 17px; }
.ch-rating .score { font-size: 14px; font-weight: 700; }
.ch-rating .reviews { font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; max-width: 680px; color: rgba(255,255,255,.78); font-size: 13.5px; font-weight: 500; }
.ch-meta span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ch-meta svg { width: 16px; height: 16px; color: var(--green); }

.course-body { background: #fff; }
.course-body .container { padding: 0 32px; }
.course-grid { display: grid; grid-template-columns: 1fr 366px; gap: 48px; align-items: start; }
.course-content { padding: 56px 0 64px; min-width: 0; }
.cs-block + .cs-block { margin-top: 38px; }
.cs-block h2 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
.cs-block p { color: #46586a; font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.cs-rule { height: 1px; background: var(--line); margin: 38px 0; }
.learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.learn-list li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: #3c4d5e; }
.learn-list li .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.learn-list li .ck svg { width: 13px; height: 13px; }

/* ===== Package detail ===== */
.pkg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 28px 30px; }
.pkg-card + .pkg-card { margin-top: 24px; }
.pkg-card h2 { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
.pkg-card h2 svg { width: 21px; height: 21px; color: var(--green-deep); flex: 0 0 auto; }
.pkg-card > p { color: #46586a; font-size: 15px; line-height: 1.75; margin: 0; }
.pkg-courses { display: flex; flex-direction: column; gap: 12px; }
.pkg-course { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; text-decoration: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.pkg-course:hover { border-color: var(--green); box-shadow: var(--shadow-soft); transform: translateX(3px); }
.pkg-course .pc-ic { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pkg-course .pc-ic svg { width: 22px; height: 22px; }
.pkg-course .pc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pkg-course .pc-name { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.35; text-transform: uppercase; letter-spacing: .01em; }
.pkg-course .pc-cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 5px; }
.pkg-course .pc-go { color: var(--muted-2); flex: 0 0 auto; transition: color .15s var(--ease), transform .15s var(--ease); }
.pkg-course:hover .pc-go { color: var(--green-deep); transform: translateX(3px); }
.pkg-course .pc-go svg { width: 19px; height: 19px; }

/* "Sobre este paquete" enriquecido */
.pkg-about { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pkg-about > p { margin: 0; }
.pkg-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.pkg-feat { background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.pkg-feat .fi { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 11px; flex: 0 0 auto; }
.pkg-feat .fi svg { width: 19px; height: 19px; }
.pkg-feat b { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pkg-feat span { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; }

/* Header de "Cursos incluidos" con contador y barra de ahorro */
.pkg-card .pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; flex-wrap: wrap; }
.pkg-card .pkg-head h2 { margin: 0; }
.pkg-save { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: var(--green-deep); background: var(--green-soft); padding: 7px 13px; border-radius: 20px; white-space: nowrap; }
.pkg-save svg { width: 14px; height: 14px; }
.pkg-course .pc-n { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); border: none; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .15s var(--ease); }
.pkg-course:hover .pc-n { background: var(--green); border-color: var(--green); color: #fff; }
.pkg-course .pc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 3px 8px; border-radius: 5px; margin-left: auto; flex: 0 0 auto; }
.pkg-course .pc-tag svg { width: 12px; height: 12px; }

/* "Sobre este paquete" con highlights */
.pkg-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.pkg-hl { display: flex; align-items: center; gap: 11px; background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.pkg-hl .hi { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pkg-hl .ht b { font-size: 14px; font-weight: 800; color: var(--ink); display: block; line-height: 1.2; }
.pkg-hl .ht span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* Ruta de aprendizaje (path) */
.pkg-path { position: relative; margin-top: 4px; }
.pkg-path::before { content: ''; position: absolute; left: 30px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.pkg-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.pkg-step .node { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; position: relative; z-index: 1; order: -1; transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease); }
.pkg-steplink { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 18px; text-decoration: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.pkg-steplink:hover { border-color: var(--green); box-shadow: var(--shadow-soft); transform: translateX(3px); }
.pkg-steplink:hover ~ .node, .pkg-step:hover .node { border-color: var(--green); background: var(--green); color: #fff; }
.pkg-steplink .sl-info { flex: 1; min-width: 0; }
.pkg-steplink .sl-name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.pkg-steplink .sl-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pkg-steplink .sl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pkg-steplink .sl-meta svg { width: 13px; height: 13px; color: var(--green-deep); }
.pkg-steplink .sl-go { color: var(--muted-2); flex: 0 0 auto; transition: color .15s var(--ease), transform .15s var(--ease); }
.pkg-steplink:hover .sl-go { color: var(--green-deep); transform: translateX(3px); }
.pkg-steplink .sl-go svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .pkg-about-grid { grid-template-columns: 1fr; } }

/* ===== Lista de paquetes ===== */
.pkglist { background: #f3f6f9; padding: 44px 0 72px; }
.pkglist-count { font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 0 2px 18px; }
.pkglist-count b { color: var(--navy); font-weight: 800; }
.pkglist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 360px)); gap: 24px; }
.plcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.plcard:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(13,27,42,.16); border-color: var(--green); }
.plcard-media { position: relative; aspect-ratio: 16/10; background: radial-gradient(420px 200px at 50% 30%, #1a3a55, var(--navy)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plcard-media::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.plcard-media .pkico { position: relative; z-index: 1; width: 56px; height: 56px; color: var(--green); }
.plcard-badge { position: absolute; z-index: 2; top: 14px; left: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 6px; }
.plcard-off { position: absolute; z-index: 2; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--green); padding: 5px 11px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,139,205,.4); }
.plcard-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.plcard-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.plcard-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ink); margin: 8px 0 0; letter-spacing: -.01em; }
.plcard-meta { display: flex; gap: 16px; margin: 13px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.plcard-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plcard-meta svg { width: 14px; height: 14px; color: var(--green-deep); }
.plcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.plcard-price { display: flex; flex-direction: column; line-height: 1.1; }
.plcard-price .now { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.plcard-price .now small { font-size: 12px; font-weight: 700; color: var(--muted); }
.plcard-price .was { font-size: 12.5px; color: var(--muted-2); text-decoration: line-through; margin-top: 2px; }
.plcard-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; padding: 11px 18px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease); }
.plcard-btn:hover { background: var(--navy-soft); transform: translateY(-1px); }
.plcard-btn svg { width: 15px; height: 15px; color: var(--green); transition: transform .18s var(--ease); }
.plcard:hover .plcard-btn svg { transform: translateX(3px); }

.buy-priceband { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; padding: 22px 24px; }
.buy-priceband .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.buy-priceband .amt { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 7px; }
.buy-priceband .amt .cur { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.6); margin-left: 4px; }
.buy-incl { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.buy-incl li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #3c4d5e; font-weight: 600; }
.buy-incl li svg { width: 18px; height: 18px; color: var(--green-deep); flex: 0 0 auto; }

/* purchase card */
.buy-card {
  position: sticky; top: 88px; margin-top: -296px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(13,27,42,.16), 0 4px 12px rgba(13,27,42,.08); overflow: hidden;
}
.buy-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); display: flex; align-items: center; justify-content: center; }
.buy-media .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.55); }
.buy-media .ph svg { width: 46px; height: 46px; color: var(--green); }
.buy-media .ph span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.buy-media .play-badge { position: absolute; bottom: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: rgba(13,27,42,.7); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; }
.buy-media .play-badge svg { width: 15px; height: 15px; color: var(--green); }
.buy-pad { padding: 22px 24px 24px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price .amt { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.buy-price .cur { font-size: 14px; font-weight: 700; color: var(--muted); }
.buy-price .note { margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 20px; white-space: nowrap; }
.buy-was { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.buy-was s { color: var(--muted-2); }
.buy-details { margin: 20px 0 0; display: flex; flex-direction: column; }
.buy-details .row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.buy-details .row:last-child { border-bottom: none; }
.buy-details .row .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--field); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.buy-details .row .ic svg { width: 16px; height: 16px; }
.buy-details .row .lbl { color: var(--muted); font-weight: 500; }
.buy-details .row .val { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }
.buy-qty { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.buy-qty .lbl { font-size: 14px; font-weight: 700; color: var(--ink); }
.buy-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.buy-primary { width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 11px; padding: 15px; font-size: 14.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); box-shadow: 0 10px 24px rgba(13,27,42,.18); }
.buy-primary:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(13,27,42,.24); }
.buy-primary svg { width: 17px; height: 17px; color: var(--green); }
.buy-outline { width: 100%; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 11px; padding: 14px; font-size: 14.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.buy-outline:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.buy-outline svg { width: 17px; height: 17px; }
.buy-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; }
.buy-foot .lbl { color: var(--muted); font-weight: 500; }
.buy-foot .phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--navy); }
.buy-foot .phone svg { width: 15px; height: 15px; color: var(--green-deep); }

/* curriculum + certifier (grey) */
.course-extra { background: #f3f6f9; border-top: 1px solid var(--line); }
.course-extra .container { padding: 60px 32px 70px; }
.cur-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.cur-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.cur-stats { display: flex; gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 78px; box-shadow: var(--shadow-soft); }
.stat .n { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .l { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.acc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; background: #fff; border: none; text-align: left; transition: background .15s var(--ease); }
.acc-head:hover { background: #fafbfc; }
.acc-head .idx { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.acc-head.open .idx { background: var(--green); }
.acc-head .ttl { font-size: 15px; font-weight: 700; color: var(--ink); flex: 1; }
.acc-head .meta { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.acc-head .chev { color: var(--muted); transition: transform .25s var(--ease); display: inline-flex; }
.acc-head .chev svg { width: 20px; height: 20px; }
.acc-head.open .chev { transform: rotate(180deg); }
.acc-body { border-top: 1px solid var(--line-2); padding: 6px 0; }
.lesson { display: flex; align-items: center; gap: 13px; padding: 11px 22px 11px 24px; font-size: 14px; color: #45566a; transition: background .15s var(--ease); }
.lesson:hover { background: var(--green-soft); color: var(--green-deep); }
.lesson .pl { color: var(--green-deep); display: inline-flex; flex: 0 0 auto; }
.lesson .pl svg { width: 18px; height: 18px; }
.lesson .num { font-size: 12px; color: var(--muted-2); font-weight: 700; width: 22px; flex: 0 0 auto; }

.certifier { margin-top: 40px; }
.certifier h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 20px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 32px 36px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cert-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--green), var(--navy)); }
.cert-left { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cert-avatar { width: 132px; height: 132px; border-radius: 20px; position: relative; overflow: hidden; background: linear-gradient(155deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(13,27,42,.22), 0 0 0 4px #fff, 0 0 0 5px var(--line); flex: 0 0 auto; }
.cert-avatar image-slot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cert-avatar svg { width: 56px; height: 56px; }
.cert-avatar::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(13,27,42,.35)); pointer-events: none; }
.cert-avatar .v-dot { position: absolute; z-index: 3; bottom: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,139,205,.5); }
.cert-avatar .v-dot svg { width: 16px; height: 16px; }
.cert-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
.cert-verified svg { width: 13px; height: 13px; }
.cert-info { min-width: 0; }
.cert-info .name { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.cert-info .role { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--green); padding: 7px 13px; border-radius: 7px; line-height: 1.4; }: 7px; margin: 9px 0 18px; line-height: 1.5; white-space: nowrap; }
.cert-creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.cert-creds li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #46586a; line-height: 1.45; }
.cert-creds li .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--field); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cert-creds li .ic svg { width: 17px; height: 17px; }

/* Contenido del curso — encabezado enriquecido */
.cur-head { flex-direction: column; align-items: stretch; gap: 0; margin-top: 8px; margin-bottom: 0; }
.cur-head-top { display: block; }
.cur-head-top h2 { margin: 0; }
.cur-head .lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 8px 0 0; max-width: 620px; }
.course-content .cur-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.course-content .cur-stats .stat { min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; }
.course-content .cur-stats .stat .n { font-size: 20px; }
.course-content .cur-stats .stat .l { margin-top: 0; }
.cur-acc-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 14px; flex-wrap: wrap; }
.cur-acc-actions .info { font-size: 13px; color: var(--muted); font-weight: 600; }
.cur-acc-actions .info b { color: var(--navy); font-weight: 800; }
.cur-expand { background: none; border: none; color: var(--green-deep); font-size: 13px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 6px 4px; }
.cur-expand:hover { text-decoration: underline; }
.cur-expand svg { width: 15px; height: 15px; }
.lesson .tag { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); background: var(--field); padding: 3px 8px; border-radius: 5px; flex: 0 0 auto; }
.lesson .tag.quiz { color: var(--green-deep); background: var(--green-soft); }

/* Certificador dentro de columna angosta — evita overflow */
.course-content .cert-card { grid-template-columns: 1fr; gap: 22px; text-align: center; padding: 28px 24px; }
.course-content .cert-left { flex-direction: column; justify-content: center; }
.course-content .cert-info .name { justify-content: center; }
.course-content .cert-info .role { white-space: normal; line-height: 1.5; height: auto; padding-top: 8px; padding-bottom: 8px; }
.course-content .cert-creds { grid-template-columns: 1fr; gap: 12px; text-align: left; }
.course-content .cert-stats { justify-content: center; }

/* Certificador — versión sencilla */
.cert-card.cert-simple { grid-template-columns: auto 1fr; gap: 26px; align-items: center; text-align: left; padding: 26px 30px; }
.cert-simple .cert-avatar { width: 96px; height: 96px; border-radius: 16px; box-shadow: none; }
.cert-simple .cert-avatar svg { width: 42px; height: 42px; }
.cert-simple .cert-info .name { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; justify-content: flex-start; }
.cert-simple .cert-info .role { white-space: normal; margin: 9px 0 14px; padding: 6px 13px; }
.cert-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cert-lines li { font-size: 14px; color: #46586a; line-height: 1.5; }

/* Cursos relacionados */
.related { background: #f3f6f9; padding: 60px 0 72px; }
.related h2 { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; margin: 0 auto; }
.rel-price { display: flex; align-items: baseline; gap: 8px; }
.rel-price .now { font-size: 19px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.rel-price .was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.related .ccard-media .relimg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; max-width: 380px; } }
@media (max-width: 560px) { .cert-card.cert-simple { grid-template-columns: 1fr; text-align: center; } .cert-simple .cert-info .name, .cert-simple .cert-avatar { justify-content: center; margin-left: auto; margin-right: auto; } }

/* Certificador — nombre con check + stats */
.cert-info .name { display: flex; align-items: center; gap: 9px; }
.cert-stats { display: flex; gap: 26px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.cert-stat { display: flex; flex-direction: column; }
.cert-stat .n { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.cert-stat .l { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 4px; white-space: nowrap; }

@media (max-width: 720px) {
  .cert-card { grid-template-columns: 1fr; gap: 22px; text-align: center; padding: 28px 22px; }
  .cert-left { flex-direction: row; justify-content: center; }
  .cert-creds { grid-template-columns: 1fr; text-align: left; }
}

/* ===== Aula / course player ===== */
.aula { background: #f3f6f9; min-height: 70vh; padding: 26px 0 64px; }
.aula-head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ah-left { min-width: 0; }
.aula-back { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12.5px; font-weight: 700; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 9px; box-shadow: var(--shadow-soft); transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease); white-space: nowrap; text-decoration: none; }
.aula-back:hover { color: var(--green-deep); border-color: var(--green); background: var(--green-soft); }
.ah-progress { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 16px 20px; min-width: 250px; }
.ahp-top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ahp-top b { font-size: 16px; font-weight: 800; color: var(--green-deep); }
.ahp-course { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.ahp-bar { height: 8px; border-radius: 5px; background: var(--line-2); margin: 11px 0 9px; overflow: hidden; }
.ahp-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--green), #0072a8); transition: width .5s var(--ease); }
.ahp-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.ahp-sub b { color: var(--navy); font-weight: 800; }
.aula-back svg { width: 16px; height: 16px; }
.aula-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.aula-head .crumbline { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 5px; }
.aula-head .crumbline b { color: var(--green-deep); }
.aula-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

/* lesson panel */
.lesson-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.lp-video { position: relative; aspect-ratio: 16/9; background: radial-gradient(800px 400px at 50% 0, #1a3a55, var(--navy)); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.lp-video::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 26px 26px; opacity: .6; }
.lp-play { position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(0,139,205,.45); transition: transform .2s var(--ease), filter .2s var(--ease); }
.lp-play:hover { transform: scale(1.07); filter: brightness(1.05); }
.lp-play svg { width: 34px; height: 34px; margin-left: 5px; }
.lp-video .lp-tag { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; background: rgba(13,27,42,.6); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.lp-video .lp-tag svg { width: 15px; height: 15px; color: var(--green); }
.lp-video .lp-dur { position: absolute; z-index: 2; bottom: 16px; right: 16px; background: rgba(13,27,42,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; }
.lp-video.playing .lp-play { opacity: 0; pointer-events: none; }
.lp-video .lp-playing-label { position: absolute; z-index: 2; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .25s var(--ease); display: flex; align-items: center; gap: 10px; }
.lp-video.playing .lp-playing-label { opacity: 1; }
.lp-eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.lp-eq span { width: 3px; background: var(--green); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.lp-eq span:nth-child(2){ animation-delay: .2s; } .lp-eq span:nth-child(3){ animation-delay: .4s; } .lp-eq span:nth-child(4){ animation-delay: .1s; }
@keyframes eq { 0%,100%{ height: 6px; } 50%{ height: 18px; } }

.lp-body { padding: 26px 30px 28px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.lp-kicker svg { width: 14px; height: 14px; }
.lp-title { font-size: 25px; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 0; }
.lp-desc { color: #46586a; font-size: 15px; line-height: 1.7; margin: 14px 0 0; }
.lp-rule { height: 1px; background: var(--line); margin: 24px 0; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav-circle { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-size: 13.5px; font-weight: 700; padding: 11px 18px; border-radius: 11px; transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.nav-circle:hover:not(:disabled) { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.nav-circle:disabled { opacity: .4; cursor: not-allowed; }
.nav-circle svg { width: 17px; height: 17px; }
.lp-complete { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; padding: 12px 22px; border-radius: 11px; transition: background .18s var(--ease), transform .18s var(--ease); box-shadow: 0 8px 20px rgba(13,27,42,.16); white-space: nowrap; }
.lp-complete:hover { background: var(--navy-soft); transform: translateY(-1px); }
.lp-complete svg { width: 17px; height: 17px; color: var(--green); }
.lp-complete.done { background: var(--green-soft); color: var(--green-deep); box-shadow: none; cursor: default; }
.lp-complete.done svg { color: var(--green-deep); }

/* reading content */
.read-content h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 14px; letter-spacing: .01em; }
.read-content .term { font-size: 14.5px; line-height: 1.7; color: #46586a; margin: 0 0 12px; }
.read-content .term b { color: var(--navy); }
.concept-title { font-size: 16px; font-weight: 800; margin: 28px 0 16px; }
.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.concept { border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.concept:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--green); }
.concept .tile { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.concept .tile svg { width: 32px; height: 32px; }
.concept .tile.a { background: linear-gradient(150deg, #1f9d57, #137a40); }
.concept .tile.b { background: linear-gradient(150deg, var(--navy), var(--navy-soft)); }
.concept .tile.c { background: linear-gradient(150deg, #e0664a, #c14b30); }
.concept .tile.d { background: linear-gradient(150deg, var(--green), #0072a8); }
.concept .lbl { font-size: 15px; font-weight: 800; color: var(--navy); }

/* quiz */
.quiz-wrap { max-width: 640px; margin: 0 auto; }
.quiz-top { text-align: center; padding-bottom: 8px; }
.quiz-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--green); padding: 5px 13px; border-radius: 6px; }
.quiz-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 12px 0 0; }
.quiz-rule { height: 1px; background: var(--line); margin: 22px 0; }
.quiz-qhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.quiz-q { font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.quiz-count { font-size: 16px; font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.quiz-count b { color: var(--navy); }
.quiz-options { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.quiz-opt { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .15s var(--ease), background .15s var(--ease); text-align: left; width: 100%; }
.quiz-opt:hover:not(.locked) { border-color: var(--green); background: var(--green-soft); }
.quiz-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; transition: border-color .15s var(--ease); }
.quiz-opt .radio svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.quiz-opt.sel { border-color: var(--green); background: var(--green-soft); }
.quiz-opt.sel .radio { border-color: var(--green); background: var(--green); }
.quiz-opt.sel .radio svg { opacity: 1; }
.quiz-opt.correct { border-color: #1f9d57; background: #eafaf0; }
.quiz-opt.correct .radio { border-color: #1f9d57; background: #1f9d57; }
.quiz-opt.correct .radio svg { opacity: 1; }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-soft); }
.quiz-opt.wrong .radio { border-color: var(--red); background: var(--red); }
.quiz-opt.wrong .radio svg { opacity: 1; }
.quiz-opt.locked { cursor: default; }
.quiz-feedback { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; font-weight: 700; padding: 12px 15px; border-radius: 11px; }
.quiz-feedback.ok { color: #167a3e; background: #eafaf0; }
.quiz-feedback.no { color: var(--red); background: var(--red-soft); }
.quiz-feedback svg { width: 17px; height: 17px; }
.quiz-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.quiz-next { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; font-size: 14px; font-weight: 800; padding: 13px 24px; border-radius: 11px; transition: background .18s var(--ease), transform .18s var(--ease), opacity .18s; box-shadow: 0 8px 20px rgba(13,27,42,.16); }
.quiz-next:hover:not(:disabled) { background: var(--navy-soft); transform: translateY(-1px); }
.quiz-next:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.quiz-next svg { width: 16px; height: 16px; }
.quiz-done { text-align: center; padding: 20px 10px; }
.quiz-done .ic { width: 70px; height: 70px; border-radius: 50%; background: #eafaf0; color: #1f9d57; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.quiz-done .ic svg { width: 34px; height: 34px; }
.quiz-done h3 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.quiz-done p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.quiz-done .score { font-size: 15px; font-weight: 800; color: var(--green-deep); }

/* doc lesson */
.doc-card { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--field); }
.doc-card .ic { width: 56px; height: 56px; border-radius: 13px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.doc-card .ic svg { width: 28px; height: 28px; }
.doc-card .info { flex: 1; }
.doc-card .info b { font-size: 16px; font-weight: 800; color: var(--ink); }
.doc-card .info span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.doc-dl { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: none; font-size: 13.5px; font-weight: 700; padding: 12px 18px; border-radius: 10px; transition: background .18s var(--ease); white-space: nowrap; }
.doc-dl:hover { background: var(--navy-soft); }
.doc-dl svg { width: 16px; height: 16px; color: var(--green); }

/* sidebar */
.aula-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.avance-card { padding: 20px 22px; }
.avance-card .h { display: flex; align-items: center; justify-content: space-between; }
.avance-card .h .t { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.avance-card .h .pct { font-size: 22px; font-weight: 800; color: var(--green-deep); letter-spacing: -.01em; }
.progress-track { height: 9px; border-radius: 6px; background: var(--line-2); margin: 14px 0 10px; overflow: hidden; }
.progress-fill { height: 100%; width: var(--pct, 0%); border-radius: 6px; background: linear-gradient(90deg, var(--green), #0072a8); transition: width .5s var(--ease); }
.avance-card .sub { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.avance-card .sub span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.avance-card .sub b { color: var(--navy); font-weight: 800; }

.lessons-card .lc-head { padding: 17px 20px; border-bottom: 1px solid var(--line-2); }
.lessons-card .lc-head .t { font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.lessons-card .lc-head .n { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.lessons-list { max-height: 560px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lessons-list::-webkit-scrollbar { width: 8px; }
.lessons-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.lesson-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 11px; background: var(--field); border: 1px solid transparent; text-align: left; transition: background .15s var(--ease), border-color .15s var(--ease); cursor: pointer; }
.lesson-row:hover { background: #eef3f7; }
.lesson-row .lr-ic { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all .15s var(--ease); }
.lesson-row .lr-ic svg { width: 16px; height: 16px; }
.lesson-row .lr-title { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.lesson-row .lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lesson-row .lr-meta { font-size: 10.5px; color: var(--muted-2); font-weight: 700; margin-top: 2px; }
.lesson-row.active .lr-meta, .lesson-row.done .lr-meta { color: rgba(255,255,255,.55); }
.lesson-row .lr-status { width: 20px; height: 20px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lesson-row .lr-status svg { width: 17px; height: 17px; }
/* done state */
.lesson-row.done { background: var(--navy); border-color: var(--navy); }
.lesson-row.done .lr-ic { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.lesson-row.done .lr-title { color: #fff; }
.lesson-row.done .lr-status { color: var(--green); }
/* active state */
.lesson-row.active { background: var(--green); border-color: var(--green); box-shadow: 0 8px 20px rgba(0,139,205,.3); }
.lesson-row.active .lr-ic { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.lesson-row.active .lr-title { color: #fff; }
.lesson-row.active .lr-status { color: #fff; }

.examen-card { padding: 20px 22px; display: flex; align-items: center; gap: 15px; }
.examen-card .ex-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--field); color: var(--muted-2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.examen-card .ex-ic svg { width: 23px; height: 23px; }
.examen-card .ex-info { flex: 1; }
.examen-card .ex-info b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.examen-card .ex-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.examen-card.ready { cursor: pointer; }
.examen-card.ready .ex-ic { background: var(--green-soft); color: var(--green-deep); }
.examen-card.ready:hover { background: #fafbfc; }
.examen-card .ex-arrow { color: var(--muted-2); }
.examen-card.ready .ex-arrow { color: var(--green-deep); }
.examen-card .ex-arrow svg { width: 18px; height: 18px; }

@media (max-width: 940px) {
  .aula-grid { grid-template-columns: 1fr; }
  .aula-side { position: static; }
  .lessons-list { max-height: 420px; }
}
@media (max-width: 600px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-body { padding: 22px 18px; }
}

/* ===== utility classes (sin estilos inline) ===== */
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.input-icon-wrap { position: relative; }
.control.has-lead-icon { padding-left: 42px; }
.input-lead-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 18px; height: 18px; pointer-events: none; }
.complete-row { display: block; }
.complete-row .lp-complete { width: 100%; justify-content: center; }
.lp-body.tight { padding-top: 0; }
.lp-navnote { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.trow .val.free { color: var(--green-deep); }
.test-note.tight { margin: 6px 0 0; }
.buy-media image-slot, .lp-video image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===== Added-to-cart modal ===== */
.added-overlay { position: fixed; inset: 0; background: rgba(13,27,42,.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 200; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s var(--ease); }
.added-overlay.open { opacity: 1; visibility: visible; }
.added-modal { width: 100%; max-width: 540px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(13,27,42,.45); transform: translateY(18px) scale(.97); transition: transform .32s var(--ease); }
.added-overlay.open .added-modal { transform: none; }
.added-head { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.added-head-title { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.added-check { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.added-check svg { width: 16px; height: 16px; }
.added-close { background: rgba(255,255,255,.1); border: none; color: #fff; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; transition: background .18s var(--ease), transform .18s var(--ease); }
.added-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.added-close svg { width: 17px; height: 17px; }
.added-body { padding: 24px 26px 26px; }
.added-prod { display: flex; align-items: center; gap: 16px; }
.added-thumb { width: 58px; height: 58px; border-radius: 12px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.added-thumb svg { width: 28px; height: 28px; }
.added-name { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.added-ref { font-size: 13px; color: var(--muted-2); font-weight: 600; margin-top: 3px; }
.added-divider { height: 1px; background: var(--line); margin: 20px 0; }
.added-rows { display: flex; flex-direction: column; gap: 12px; }
.added-row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.added-row span { color: var(--muted); font-weight: 500; }
.added-row b { color: var(--ink); font-weight: 700; }
.added-subtotal { display: flex; align-items: center; justify-content: space-between; }
.added-subtotal span { font-size: 18px; font-weight: 800; color: var(--navy); }
.added-subtotal b { font-size: 26px; font-weight: 800; color: var(--green-deep); letter-spacing: -.01em; }
.added-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.added-primary, .added-secondary { white-space: nowrap; }
.added-primary { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 11px; padding: 16px; font-size: 14.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 9px; transition: filter .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); box-shadow: 0 10px 24px rgba(0,139,205,.28); }
.added-primary:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,139,205,.34); }
.added-primary svg { width: 17px; height: 17px; }
.added-secondary { width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 11px; padding: 16px; font-size: 14.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: background .18s var(--ease), transform .18s var(--ease); }
.added-secondary:hover { background: var(--navy-soft); transform: translateY(-2px); }

@media (max-width: 920px) {
  .course-grid { display: flex; flex-direction: column; gap: 0; }
  .buy-card { position: static; order: -1; margin-top: -150px; margin-bottom: 36px; max-width: 460px; width: 100%; }
  .course-content { padding-top: 6px; }
  .learn-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .course-hero .container { padding: 40px 18px 150px; }
  .cur-head { flex-direction: column; align-items: flex-start; }
  .cert-card { flex-direction: column; }
}

/* ===== Aula v2 — Coursera-style learning experience ===== */
.lv * { box-sizing: border-box; }
.lv { background: #fff; min-height: 100vh; }

/* top bar */
.lv-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.lv-topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 18px; }
.lv-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 9px; transition: background .15s var(--ease), color .15s var(--ease); white-space: nowrap; }
.lv-back:hover { background: rgba(255,255,255,.08); color: #fff; }
.lv-back svg { width: 16px; height: 16px; }
.lv-course { min-width: 0; flex: 1; }
.lv-course .c1 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.lv-course .c2 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ring { display: flex; align-items: center; gap: 11px; }
.lv-ring .donut { position: relative; width: 42px; height: 42px; flex: 0 0 auto; }
.lv-ring .donut svg { transform: rotate(-90deg); }
.lv-ring .donut .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.lv-ring .meta { line-height: 1.2; }
.lv-ring .meta .a { font-size: 13px; font-weight: 800; }
.lv-ring .meta .b { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 600; }
.lv-rail-toggle { background: rgba(255,255,255,.08); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: none; align-items: center; justify-content: center; }
.lv-rail-toggle svg { width: 18px; height: 18px; }

/* shell */
.lv-shell { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; align-items: stretch; min-height: calc(100vh - 72px); }

/* left rail */
.lv-rail { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.lv-rail::-webkit-scrollbar { width: 9px; }
.lv-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.lv-rail-head { padding: 20px 22px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; }
.lv-rail-head .t { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.lv-rail-head .bar { height: 7px; border-radius: 5px; background: var(--line-2); margin: 12px 0 8px; overflow: hidden; }
.lv-rail-head .bar i { display: block; height: 100%; width: var(--pct, 0%); border-radius: 5px; background: linear-gradient(90deg, var(--green), #0072a8); transition: width .5s var(--ease); }
.lv-rail-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lv-rail-head .sub b { color: var(--green-deep); }

.lv-mod { border-bottom: 1px solid var(--line-2); }
.lv-mod-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 22px; background: #fff; border: none; text-align: left; transition: background .15s var(--ease); }
.lv-mod-head:hover { background: #fafbfc; }
.lv-mod-head .mi { width: 30px; height: 30px; border-radius: 9px; background: var(--field); color: var(--navy); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lv-mod-head.alldone .mi { background: var(--green); color: #fff; }
.lv-mod-head .mt { flex: 1; min-width: 0; }
.lv-mod-head .mt .tt { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.lv-mod-head .mt .ss { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.lv-mod-head .chev { color: var(--muted-2); transition: transform .22s var(--ease); }
.lv-mod-head .chev svg { width: 18px; height: 18px; display: block; }
.lv-mod-head.open .chev { transform: rotate(180deg); }
.lv-mod-body { background: #fafbfd; padding: 4px 0 8px; }

.lv-lesson { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 20px; background: transparent; border: none; border-left: 3px solid transparent; text-align: left; cursor: pointer; transition: background .14s var(--ease); }
.lv-lesson:hover { background: #eef3f7; }
.lv-lesson.active { background: #e3f1fb; border-left-color: var(--green); }
.lv-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #fff; transition: all .15s var(--ease); cursor: pointer; }
.lv-check svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.lv-check.done { background: var(--green); border-color: var(--green); }
.lv-check.done svg { opacity: 1; }
.lv-check:hover { border-color: var(--green); }
.lv-lesson .li-ic { color: var(--muted); flex: 0 0 auto; display: inline-flex; }
.lv-lesson.active .li-ic { color: var(--green-deep); }
.lv-lesson .li-ic svg { width: 15px; height: 15px; }
.lv-lesson .li-main { flex: 1; min-width: 0; }
.lv-lesson .li-title { font-size: 12.8px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.lv-lesson.active .li-title { font-weight: 800; color: var(--navy); }
.lv-lesson .li-meta { font-size: 11px; color: var(--muted-2); font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }

/* main */
.lv-main { min-width: 0; background: #fff; display: flex; flex-direction: column; }
.lv-content { flex: 1 0 auto; }
.lv-stage { background: #000; position: relative; aspect-ratio: 16/9; height: min(calc(100vh - 130px), 660px); width: auto; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lv-stage-bg { position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 35%, #173249, #06101b); }
.lv-stage-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 30px 30px; opacity: .5; }
.lv-bigplay { position: relative; z-index: 3; width: 92px; height: 92px; border-radius: 50%; background: var(--green); color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(0,139,205,.5); transition: transform .2s var(--ease), opacity .2s; }
.lv-bigplay:hover { transform: scale(1.06); }
.lv-bigplay svg { width: 38px; height: 38px; margin-left: 6px; }
.lv-stage.playing .lv-bigplay { opacity: 0; pointer-events: none; }
.lv-stage-title { position: absolute; z-index: 2; top: 22px; left: 24px; right: 24px; color: #fff; }
.lv-stage-title .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.lv-stage-title .h { font-size: 20px; font-weight: 800; margin-top: 4px; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.lv-cc { position: absolute; z-index: 2; bottom: 78px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; max-width: 80%; text-align: center; opacity: 0; transition: opacity .25s var(--ease); }
.lv-stage.playing .lv-cc.on { opacity: 1; }

/* control bar */
.lv-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 10px 16px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }
.lv-scrub { height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; position: relative; }
.lv-scrub i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--green); position: relative; }
.lv-scrub i::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.lv-cbar { display: flex; align-items: center; gap: 14px; margin-top: 9px; color: #fff; }
.lv-cbtn { background: none; border: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 4px; border-radius: 7px; transition: background .15s var(--ease); cursor: pointer; }
.lv-cbtn:hover { background: rgba(255,255,255,.16); }
.lv-cbtn svg { width: 20px; height: 20px; }
.lv-cbtn.play svg { width: 22px; height: 22px; }
.lv-time { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.9); }
.lv-cbar .spacer { flex: 1; }
.lv-chip { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.16); cursor: pointer; transition: background .15s var(--ease); }
.lv-chip:hover { background: rgba(255,255,255,.28); }
.lv-chip.active { background: var(--green); }

/* lesson header + tabs */
.lv-content { background: #fff; }
.lv-content > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.lv-lhead { padding: 26px 36px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lv-lhead .lk { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); display: inline-flex; align-items: center; gap: 7px; }
.lv-lhead .lk svg { width: 14px; height: 14px; }
.lv-lhead h1 { font-size: 26px; font-weight: 800; letter-spacing: -.015em; margin: 9px 0 0; }
.lv-lhead .lmeta { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lv-lhead .lmeta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lv-lhead .lmeta svg { width: 15px; height: 15px; }
.lv-markbtn { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; font-size: 13.5px; font-weight: 800; padding: 12px 20px; border-radius: 11px; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease); box-shadow: 0 8px 20px rgba(13,27,42,.16); }
.lv-markbtn:hover { background: var(--navy-soft); transform: translateY(-1px); }
.lv-markbtn svg { width: 16px; height: 16px; color: var(--green); }
.lv-markbtn.done { background: var(--green-soft); color: var(--green-deep); box-shadow: none; }
.lv-markbtn.done svg { color: var(--green-deep); }

.lv-tabs { display: flex; gap: 4px; padding: 22px 36px 0; border-bottom: 1px solid var(--line); }
.lv-tab { background: none; border: none; padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--muted); position: relative; cursor: pointer; transition: color .15s var(--ease); }
.lv-tab:hover { color: var(--ink); }
.lv-tab.active { color: var(--navy); }
.lv-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.lv-tab .badge { display: inline-block; margin-left: 7px; font-size: 11px; font-weight: 800; background: var(--green-soft); color: var(--green-deep); padding: 1px 7px; border-radius: 10px; }

.lv-pane { padding: 28px 36px 36px; max-width: 820px; }
.lv-pane p { color: #46586a; font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.lv-pane .term { color: #46586a; font-size: 15px; line-height: 1.75; margin: 0 0 12px; }
.lv-pane .term b { color: var(--navy); }
.lv-pane h3 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }

/* resources / notes */
.lv-reslist { display: flex; flex-direction: column; gap: 12px; }
.lv-res { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.lv-res:hover { border-color: var(--green); box-shadow: var(--shadow-soft); }
.lv-res .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lv-res .ic svg { width: 22px; height: 22px; }
.lv-res .info { flex: 1; min-width: 0; }
.lv-res .info b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.lv-res .info span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lv-res .dl { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all .15s var(--ease); }
.lv-res .dl:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.lv-res .dl svg { width: 17px; height: 17px; }
.lv-notes { width: 100%; min-height: 180px; border: 1.5px solid var(--line); border-radius: 13px; padding: 16px; font-family: inherit; font-size: 14.5px; line-height: 1.6; color: var(--ink); resize: vertical; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.lv-notes:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,139,205,.12); }
.lv-notes-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lv-notes-foot svg { width: 14px; height: 14px; color: var(--green-deep); }

/* concept grid reuse */
.lv-concepts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.lv-concept { border: 1px solid var(--line); border-radius: 14px; padding: 20px 14px; text-align: center; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.lv-concept:hover { transform: translateY(-3px); border-color: var(--green); }
.lv-concept .tile { width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center; color: #fff; }
.lv-concept .tile svg { width: 29px; height: 29px; }
.lv-concept .tile.a { background: linear-gradient(150deg,#1f9d57,#137a40); }
.lv-concept .tile.b { background: linear-gradient(150deg,var(--navy),var(--navy-soft)); }
.lv-concept .tile.c { background: linear-gradient(150deg,#e0664a,#c14b30); }
.lv-concept .tile.d { background: linear-gradient(150deg,var(--green),#0072a8); }
.lv-concept .lbl { font-size: 14px; font-weight: 800; color: var(--navy); }

/* quiz (reuse shell but in v2 white) */
.lv-quiz { padding: 22px 36px 44px; max-width: 100%; margin: 0; }
.lv-quiz .quiz-qhead { margin-bottom: 6px; }
.lv-quiz .quiz-q { font-size: 17px; line-height: 1.65; }
.lv-quiz .quiz-options { margin-top: 22px; }
.lv-quiz .quiz-opt { padding: 17px 20px; font-size: 15.5px; }
.lv-quiz .quiz-foot { margin-top: 26px; }
.lv-quiz .quiz-done { padding: 36px 10px; }
.donut circle.prog { transition: stroke-dashoffset .5s ease; }
.lv-pane h3.spaced { margin-top: 26px; }

/* footer nav */
.lv-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 36px 34px; border-top: 1px solid var(--line); max-width: 100%; }
.lv-fbtn { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 18px; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); min-width: 0; max-width: 46%; }
.lv-fbtn:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.lv-fbtn:disabled { opacity: .4; cursor: not-allowed; }
.lv-fbtn svg { width: 18px; height: 18px; color: var(--green-deep); flex: 0 0 auto; }
.lv-fbtn .fb-txt { min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.lv-fbtn .fb-txt .l { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lv-fbtn .fb-txt .t { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-fbtn.next { text-align: right; }
.lv-fbtn.next .fb-txt { text-align: right; }

/* autoplay toast */
.lv-toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(13,27,42,.4); padding: 16px 18px; width: 320px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.lv-toast.show { transform: none; opacity: 1; pointer-events: auto; }
.lv-toast .tk { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.lv-toast .tt { font-size: 14.5px; font-weight: 800; margin: 5px 0 12px; line-height: 1.3; }
.lv-toast .ta { display: flex; gap: 9px; }
.lv-toast .ta button { flex: 1; border: none; border-radius: 9px; padding: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.lv-toast .ta .go { background: var(--green); color: #fff; }
.lv-toast .ta .no { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 1000px) {
  .lv-shell { grid-template-columns: 1fr; }
  .lv-rail { position: fixed; top: 72px; left: 0; bottom: 0; width: 320px; z-index: 55; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 20px 0 50px rgba(13,27,42,.2); height: calc(100vh - 72px); }
  .lv-rail.open { transform: none; }
  .lv-rail-toggle { display: inline-flex; }
  .lv-stage { aspect-ratio: 16/9; max-height: none; }
}
@media (max-width: 620px) {
  .lv-concepts { grid-template-columns: repeat(2, 1fr); }
  .lv-lhead, .lv-tabs, .lv-pane, .lv-foot, .lv-quiz { padding-left: 18px; padding-right: 18px; }
  .lv-ring .meta { display: none; }
}

/* ===== Course catalog ===== */
.catalog { background: #f3f6f9; padding: 44px 0 72px; }
.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }

/* filter sidebar */
.cat-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.fblock { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 20px 20px 22px; }
.fblock h4 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 15px; display: flex; align-items: center; gap: 9px; }
.fblock h4::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--green); }
.fsearch { position: relative; }
.fsearch input { width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 40px; font-size: 14px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
.fsearch input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(0,139,205,.12); }
.fsearch .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 17px; height: 17px; pointer-events: none; }
.fopt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 0; background: none; border: none; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink); font-weight: 600; transition: color .15s var(--ease); }
.fopt:hover { color: var(--green-deep); }
.fopt .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; transition: all .15s var(--ease); }
.fopt .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.fopt.round .box { border-radius: 50%; }
.fopt.on .box { background: var(--green); border-color: var(--green); }
.fopt.on .box svg { opacity: 1; }
.fopt.on { color: var(--navy); font-weight: 800; }
.fopt .lbl { flex: 1; min-width: 0; }
.fopt .cnt { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.fopt .stars { display: inline-flex; gap: 2px; color: #f5b740; }
.fopt .stars svg { width: 15px; height: 15px; }
.fopt .stars .off { color: var(--line); }
.fclear { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--green-deep); background: none; border: none; cursor: pointer; padding: 4px 0; }
.fclear:hover { text-decoration: underline; }

/* main toolbar */
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-soft); padding: 12px 18px; margin-bottom: 22px; flex-wrap: wrap; }
.cat-count { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cat-count b { color: var(--navy); font-weight: 800; }
.cat-tools { display: flex; align-items: center; gap: 14px; }
.view-toggle { display: inline-flex; background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.view-toggle button { width: 32px; height: 30px; border: none; background: none; border-radius: 7px; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.view-toggle button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(13,27,42,.12); }
.view-toggle button svg { width: 17px; height: 17px; }
.cat-sort { appearance: none; background: var(--field); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 36px 9px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a7888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.cat-sort:focus { outline: none; border-color: var(--green); }

/* grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 22px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); display: flex; flex-direction: column; text-decoration: none; }
.ccard:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(13,27,42,.14); border-color: var(--green); }
.ccard-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); overflow: hidden; }
.ccard-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.ccard-media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(0,139,205,.6); }
.ccard-media .ph svg { width: 44px; height: 44px; }
.ccard-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.ccard-badge.free { background: var(--green); color: #fff; }
.ccard-badge.premium { background: rgba(13,27,42,.82); color: #fff; backdrop-filter: blur(4px); }
.ccard-off { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 11px; font-weight: 800; color: #fff; background: var(--green); padding: 5px 11px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,139,205,.4); }
.ccard-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(13,27,42,.55), rgba(13,27,42,.1)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .22s var(--ease); }
.ccard:hover .ccard-overlay { opacity: 1; }
.ccard-overlay .btn { background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; padding: 11px 20px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; transform: translateY(8px); transition: transform .22s var(--ease); }
.ccard:hover .ccard-overlay .btn { transform: none; }
.ccard-overlay .btn svg { width: 15px; height: 15px; color: var(--green-deep); }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ccard-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.ccard-title { font-size: 15.5px; font-weight: 800; line-height: 1.35; color: var(--ink); margin: 7px 0 0; letter-spacing: .01em; text-transform: uppercase; }
.ccard-rating { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; }
.ccard-rating .stars { display: inline-flex; gap: 2px; color: #f5b740; }
.ccard-rating .stars svg { width: 14px; height: 14px; }
.ccard-rating .stars .off { color: var(--line); }
.ccard-rating .num { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.ccard-meta { display: flex; gap: 14px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ccard-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ccard-meta svg { width: 14px; height: 14px; color: var(--green-deep); }
.ccard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ccard-price { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; display: flex; flex-direction: column; line-height: 1.2; }
.ccard-price .now { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ccard-price small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ccard-price .was { font-size: 12.5px; font-weight: 700; color: var(--muted-2); text-decoration: line-through; margin-top: 2px; white-space: nowrap; }
.ccard-price.free { color: var(--green-deep); }
.ccard-cta { font-size: 12.5px; font-weight: 800; color: #fff; background: var(--navy); padding: 10px 16px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease); }
.ccard:hover .ccard-cta { background: var(--navy-soft); }
.ccard-cta svg { width: 15px; height: 15px; color: var(--green); transition: transform .18s var(--ease); }
.ccard:hover .ccard-cta svg { transform: translateX(3px); }

/* list view */
.cat-grid.list { grid-template-columns: 1fr; gap: 16px; }
.cat-grid.list .ccard { flex-direction: row; }
.cat-grid.list .ccard-media { width: 280px; aspect-ratio: auto; flex: 0 0 auto; }
.cat-grid.list .ccard-body { padding: 22px 24px; }
.cat-grid.list .ccard-title { font-size: 18px; }

.cat-empty { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 60px 20px; text-align: center; }
.cat-empty .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--field); color: var(--muted-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cat-empty .ic svg { width: 30px; height: 30px; }
.cat-empty p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.cat-empty button { background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer; }

@media (max-width: 920px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .cat-side .fblock { flex: 1; min-width: 220px; }
}
@media (max-width: 560px) {
  .cat-grid.list .ccard { flex-direction: column; }
  .cat-grid.list .ccard-media { width: 100%; aspect-ratio: 16/10; }
}

/* avatar menu */
.pnl-user { position: relative; flex: 0 0 auto; }
.pnl-user .pnl-avatar { cursor: pointer; transition: border-color .15s var(--ease); }
.pnl-user .pnl-avatar:hover { border-color: var(--green); }
.pnl-menu { position: absolute; right: 0; top: 56px; width: 236px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 54px rgba(13,27,42,.24); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s var(--ease), visibility .18s var(--ease), transform .18s var(--ease); z-index: 70; }
.pnl-menu.open { opacity: 1; visibility: visible; transform: none; }
.pnl-menu .uhead { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.pnl-menu .uhead .av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; }
.pnl-menu .uhead .av svg { width: 20px; height: 20px; }
.pnl-menu .uhead b { font-size: 14px; font-weight: 800; color: var(--ink); display: block; line-height: 1.2; }
.pnl-menu .uhead span { font-size: 12px; color: var(--muted); word-break: break-all; }
.pnl-menu button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; text-align: left; padding: 11px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s var(--ease); }
.pnl-menu button:hover { background: var(--field); }
.pnl-menu button svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.pnl-menu button.danger { color: var(--red); }
.pnl-menu button.danger svg { color: var(--red); }
.pnl-menu .msep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.pnl-nav .lv-rail-toggle { background: var(--field); color: var(--navy); }
.pnl-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.pnl-bell { position: relative; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.pnl-bell:hover { background: var(--field); border-color: var(--green); color: var(--green-deep); }
.pnl-bell svg { width: 19px; height: 19px; }
.pnl-bell .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.pnl-usertrigger { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 4px 14px 4px 4px; cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.pnl-usertrigger:hover { border-color: var(--green); box-shadow: var(--shadow-soft); }
.pnl-usertrigger .pnl-avatar { width: 34px; height: 34px; border: none; }
.pnl-usertrigger .pnl-avatar svg { width: 18px; height: 18px; }
.pnl-uname { font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pnl-chev { color: var(--muted); display: inline-flex; transition: transform .2s var(--ease); }
.pnl-chev svg { width: 15px; height: 15px; }
.pnl-user:has(.pnl-menu.open) .pnl-chev { transform: rotate(180deg); }
.pnl-nav.scrolled { box-shadow: 0 6px 22px rgba(13,27,42,.09); }
@media (max-width: 760px) { .pnl-uname, .pnl-chev, .pnl-bell { display: none; } .pnl-usertrigger { padding: 4px; border-radius: 50%; } }

/* ===== Config v2 ===== */
.cfg-profile { display: flex; align-items: center; gap: 20px; padding: 26px 30px; flex-wrap: wrap; }
.cfg-av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cfg-av svg { width: 34px; height: 34px; }
.cfg-id { flex: 1; min-width: 0; }
.cfg-id b { font-size: 19px; font-weight: 800; color: var(--ink); display: block; }
.cfg-id > span { font-size: 13.5px; color: var(--muted); }
.cfg-role { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green-deep); background: var(--green-soft); padding: 4px 10px; border-radius: 20px; }
.cfg-photo { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-size: 13px; font-weight: 700; padding: 11px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.cfg-photo:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.cfg-photo svg { width: 16px; height: 16px; }
.cfg-stack > .pnl-card + .pnl-card { margin-top: 22px; }
.cfg-notes { padding: 4px 30px 24px; display: flex; flex-direction: column; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch-row:last-child { border-bottom: none; }
.switch-row b { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
.switch-row .stxt span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 20px; transition: background .2s var(--ease); }
.switch i::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::before { transform: translateX(20px); }

/* ===== Documentos v2 ===== */
.doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; margin-bottom: 22px; flex-wrap: wrap; }
.doc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-chips button { display: inline-flex; align-items: center; gap: 7px; background: var(--field); border: 1px solid var(--line); border-radius: 30px; padding: 8px 15px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.doc-chips button span { font-size: 11px; font-weight: 800; background: #fff; color: var(--muted); padding: 1px 7px; border-radius: 10px; }
.doc-chips button:hover { color: var(--ink); }
.doc-chips button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-chips button.active span { background: rgba(255,255,255,.2); color: #fff; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.doc-card { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 18px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13,27,42,.1); border-color: var(--green); }
.dc-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dc-ic.cert { background: var(--green-soft); color: var(--green-deep); }
.dc-ic.fact { background: #eef2f6; color: var(--navy); }
.dc-ic svg { width: 24px; height: 24px; }
.dc-main { flex: 1; min-width: 0; }
.dc-title { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.dc-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-badge { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.dc-badge.cert { background: var(--green-soft); color: var(--green-deep); }
.dc-badge.fact { background: #eef2f6; color: var(--navy); }
.dc-dl { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.doc-card:hover .dc-dl { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.dc-dl svg { width: 18px; height: 18px; }
.doc-empty { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 14.5px; }

/* ===== Órdenes minimalista + detalle ===== */
.ord-summaryline { font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 18px 2px 16px; }
.ord-summaryline b { color: var(--navy); font-weight: 800; }
.ord-chips { margin-bottom: 18px; }
.ord-rows { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.ord-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line-2); padding: 18px 24px; cursor: pointer; transition: background .15s var(--ease); }
.ord-row:last-child { border-bottom: none; }
.ord-row:hover { background: var(--field); }
.ord-row .o-main { min-width: 0; }
.ord-row .o-num { font-size: 12px; font-weight: 800; color: var(--green-deep); letter-spacing: .03em; }
.ord-row .o-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-row .o-date { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ord-row .o-tot { text-align: right; }
.ord-row .o-tot .v { font-size: 15px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ord-row .o-tot .t-badge { margin-top: 6px; }
.ord-row .o-chev { color: var(--muted-2); display: flex; }
.ord-row .o-chev svg { width: 18px; height: 18px; }

.ord-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 94vw; background: #fff; box-shadow: -28px 0 70px rgba(13,27,42,.3); transform: translateX(106%); transition: transform .4s var(--ease); z-index: 120; display: flex; flex-direction: column; }
.ord-drawer.open { transform: none; }
.ord-dh { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; flex: 0 0 auto; }
.ord-dh .t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.ord-dh h3 { font-size: 21px; font-weight: 800; margin: 5px 0 0; }
.od-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--field); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; transition: background .15s var(--ease); }
.od-close:hover { background: #eef2f6; }
.od-close svg { width: 17px; height: 17px; }
.ord-db { flex: 1; overflow-y: auto; padding: 24px 26px; }
.od-r { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.od-r span { color: var(--muted); font-weight: 600; }
.od-r b { color: var(--ink); font-weight: 800; }
.od-div { height: 1px; background: var(--line-2); margin: 16px 0; }
.od-item { display: flex; gap: 14px; align-items: center; }
.od-it-ic { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.od-it-ic svg { width: 23px; height: 23px; }
.od-item .it-main { flex: 1; min-width: 0; }
.od-item .it-main b { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; display: block; }
.od-item .it-main span { font-size: 12px; color: var(--muted); }
.od-item .it-price { font-size: 14px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.od-tot { display: flex; flex-direction: column; gap: 11px; }
.od-tr { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.od-tr span { color: var(--muted); font-weight: 500; }
.od-tr b { color: var(--ink); font-weight: 700; }
.od-tr.total { padding-top: 12px; border-top: 1px solid var(--line-2); }
.od-tr.total span { font-size: 16px; font-weight: 800; color: var(--navy); }
.od-tr.total b { font-size: 18px; font-weight: 800; color: var(--navy); }
.ord-df { border-top: 1px solid var(--line); padding: 18px 26px; display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.ord-df a, .ord-df button { display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; padding: 14px; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; border: none; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.ord-df .primary { background: var(--navy); color: #fff; }
.ord-df .primary:hover { background: var(--navy-soft); }
.ord-df .primary svg { width: 16px; height: 16px; color: var(--green); }
.ord-df .ghost2 { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.ord-df .ghost2:hover { border-color: var(--green); color: var(--green-deep); }
@media (max-width: 560px) { .ord-row { grid-template-columns: 1fr auto; } .ord-row .o-chev { display: none; } }

/* ===== Órdenes v2 ===== */
.ord-list { display: flex; flex-direction: column; gap: 14px; }
.ord-card { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 18px 22px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ord-card:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(13,27,42,.08); }
.ord-ic { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ord-ic svg { width: 26px; height: 26px; }
.ord-main { min-width: 0; }
.ord-num { font-size: 12px; font-weight: 800; color: var(--green-deep); letter-spacing: .03em; }
.ord-title { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; margin: 5px 0 4px; }
.ord-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.ord-right { text-align: right; }
.ord-total { font-size: 16.5px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ord-right .t-badge { margin-top: 7px; }
.ord-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 720px) {
  .ord-card { grid-template-columns: auto 1fr; }
  .ord-right { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 12px; }
  .ord-right .t-badge { margin-top: 0; }
  .ord-actions { grid-column: 1 / -1; }
}
.lv-rail-head .rc { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
