/* =========================================================
   DGP Academy — pantallas de la plataforma
   Landing · Acceso · Panel · Admin · Modales · Certificado
   ========================================================= */

/* ─────────────────────────── LANDING ─────────────────────────── */
#landing-screen { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; background: #fff; z-index: 1; scroll-behavior: smooth; }
.lp-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.lp-section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.lp-section[id] { scroll-margin-top: 72px; }
.lp-paper { background: var(--paper); }
.lp-dark { background: var(--ink); color: #fff; }
.lp-h2 { font: 700 clamp(34px, 4.6vw, 58px)/1.02 var(--font); letter-spacing: -.04em; color: var(--ink); margin: 18px 0 20px; text-wrap: balance; }

.lp-dark .lp-h2 { color: #fff; }
.lp-dark .lp-h2 .serif, .lp-cta h2 .serif, .auth-headline .serif { background-image: linear-gradient(100deg, #a8c0ff, #dbe5ff); }
.lp-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--text2); max-width: 560px; }
.lp-lead a { color: var(--accent); text-underline-offset: 3px; }
.lp-dark .lp-lead { color: rgba(255,255,255,.7); }
.eyebrow--light { color: var(--sky); }
.lp-section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.lp-section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.lp-nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.94); }
.lp-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-nav-links { display: flex; gap: 4px; }
.lp-nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text2); text-decoration: none; transition: color .2s, background .2s; }
.lp-nav-links a:hover { color: var(--ink); background: var(--bg2); }
.lp-nav-cta { display: flex; align-items: center; gap: 8px; }
.lp-nav-login { background: none; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 8px 12px; border-radius: 999px; }
.lp-nav-login:hover { background: var(--bg2); }
.lp-nav-toggle { display: none; }
.lp-mobile-menu { display: none; }

/* Hero */
.lp-hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(26,86,232,.10), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(184,145,58,.08), transparent 70%),
    #fff; }
.lp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .55; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-hero-title { font: 700 clamp(40px, 5.4vw, 74px)/.98 var(--font); letter-spacing: -.045em; color: var(--ink); margin: 24px 0 24px; text-wrap: balance; }

.lp-hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text2); max-width: 560px; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 40px; }
.lp-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 560px; }
.lp-hero-facts li { font-size: 14px; color: var(--text3); }
.lp-hero-facts strong { color: var(--ink); font-weight: 700; margin-right: 2px; }

.lp-hero-visual { position: relative; padding: 28px 0 28px 28px; }
.lp-hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.4; box-shadow: var(--shadow-lg); background: var(--bg3); }
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.lp-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,20,48,.35)); }
.float-card { position: absolute; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 20px 50px -18px rgba(10,20,48,.35), 0 2px 6px rgba(10,20,48,.06); backdrop-filter: blur(10px); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-progress { left: -8px; bottom: 54px; width: min(300px, 78%); padding: 16px 18px; }
.fc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.fc-icon svg, .fc-seal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-kicker { font: 500 11.5px/1.3 var(--font); color: var(--text3); }
.fc-title { font: 650 14.5px/1.3 var(--font); color: var(--ink); letter-spacing: -.01em; }
.fc-bar { height: 6px; border-radius: 6px; background: var(--bg3); overflow: hidden; }
.fc-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #4d7cff); }
.fc-meta { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px/1 var(--font-mono); color: var(--text3); }
.float-code { right: -6px; top: 4px; padding: 14px 16px; background: rgba(10,20,48,.94); border-color: rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 5px; animation-delay: -2.5s; }
.float-code code { font: 500 12px/1.4 var(--font-mono); color: #d6e0ff; white-space: nowrap; }
.float-code .c1 { color: #7d93c7; } .float-code .c2 { color: #6ee7a8; } .float-code .c3 { color: #93b4ff; }
.fc-dots { display: flex; gap: 5px; margin-bottom: 6px; }
.fc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2b3a66; }
.float-cert { right: 18px; bottom: -4px; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; animation-delay: -4.5s; }
.fc-seal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #e2c47a, var(--gold) 60%, #8a6a22); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }

/* Tools marquee */
.lp-tools { padding: 28px 0 36px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.lp-tools-head { font: 500 13px/1 var(--font); color: var(--text3); text-align: center; margin-bottom: 20px; }
.lp-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lp-tool { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; white-space: nowrap; }
.lp-tool svg { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }

/* Programa */
.lp-program { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lp-program-intro { position: sticky; top: 104px; }
.lp-program-photo { border-radius: 22px; overflow: hidden; margin: 32px 0 28px; aspect-ratio: 16/10; background: var(--bg3); }
.lp-program-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-program-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.lp-program-meta div { background: #fff; padding: 16px 18px; }
.lp-program-meta dt { font: 500 12px/1 var(--font); color: var(--text3); margin-bottom: 6px; }
.lp-program-meta dd { font: 600 15px/1.35 var(--font); color: var(--ink); }
.lp-syllabus { border: 1px solid var(--border); border-radius: 24px; padding: 8px; background: var(--paper); }
.lp-syllabus-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 14px; font-weight: 650; color: var(--ink); }
.lp-module { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 8px; transition: box-shadow .3s, border-color .3s; }
.lp-module[open] { box-shadow: var(--shadow); border-color: var(--border2); }
.lp-module summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; }
.lp-module summary::-webkit-details-marker { display: none; }
.lp-module-num { font: 500 13px/1 var(--font-mono); color: var(--accent); width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.lp-module-title { font: 650 17px/1.25 var(--font); color: var(--ink); letter-spacing: -.015em; }
.lp-module-title small { display: block; font: 400 14px/1.4 var(--font); color: var(--text3); margin-top: 3px; letter-spacing: 0; }
.lp-module-count { font: 500 12.5px/1 var(--font); color: var(--text3); white-space: nowrap; }
.lp-module-plus { width: 18px; height: 18px; fill: none; stroke: var(--text3); stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--ease); }
.lp-module[open] .lp-module-plus { transform: rotate(45deg); }
.lp-module ol { margin: 0 20px 18px 70px; padding: 6px 0 0; border-top: 1px dashed var(--border2); list-style: none; }
.lp-module ol li { padding: 10px 0; font-size: 15px; color: var(--text2); border-bottom: 1px solid var(--bg3); display: flex; gap: 12px; }
.lp-module ol li:last-child { border-bottom: 0; }
.lp-module ol li::before { content: counter(list-item, decimal-leading-zero); font: 500 12px/1.75 var(--font-mono); color: var(--accent); min-width: 22px; }
.lp-syllabus-cta { margin-top: 4px; height: 54px; border-radius: 16px; }

/* Steps + experience (dark) */
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; margin-bottom: clamp(48px, 6vw, 80px); }
.lp-steps li { background: var(--ink); padding: 28px 26px 30px; }
.lp-step-n { font: 500 13px/1 var(--font-mono); color: var(--sky); }
.lp-steps h3 { font: 650 20px/1.2 var(--font); letter-spacing: -.02em; margin: 40px 0 8px; }
.lp-steps p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.62); }
.lp-experience { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-features { list-style: none; display: grid; gap: 28px; }
.lp-features li { display: flex; gap: 16px; }
.lp-feature-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; color: var(--sky); }
.lp-feature-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-features h3 { font: 650 17px/1.3 var(--font); letter-spacing: -.01em; margin-bottom: 4px; }
.lp-features p { font-size: 15px; color: rgba(255,255,255,.62); line-height: 1.55; }

/* Mockup de la plataforma */
.lp-mock { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); color: var(--ink); }
.lp-mock-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #eef1f7; border-bottom: 1px solid var(--border); }
.lp-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e6; }
.lp-mock-bar span { margin-left: 12px; flex: 1; max-width: 260px; height: 22px; border-radius: 7px; background: #fff; font: 500 10.5px/22px var(--font-mono); color: var(--text4); padding: 0 10px; }
.lp-mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 340px; }
.lp-mock-side { background: var(--paper); border-right: 1px solid var(--border); padding: 16px 12px; font-size: 11.5px; }
.m-title { font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; margin: 0 4px 10px; }
.m-prog { height: 4px; border-radius: 4px; background: var(--bg4); margin: 0 4px 14px; overflow: hidden; }
.m-prog span { display: block; height: 100%; background: var(--accent); }
.m-sec { font-size: 10px; font-weight: 600; color: var(--text3); margin: 10px 4px 6px; }
.m-item { padding: 6px 8px; border-radius: 7px; color: var(--text2); display: flex; align-items: center; gap: 7px; }
.m-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--border2); flex-shrink: 0; }
.m-item.done::before { background: var(--green); border-color: var(--green); }
.m-item.active { background: #fff; color: var(--accent); font-weight: 600; box-shadow: var(--shadow-sm); }
.m-item.active::before { border-color: var(--accent); }
.lp-mock-main { padding: 22px 26px; }
.m-tag { display: inline-block; font: 500 10px/1 var(--font-mono); color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 99px; }
.m-h1 { font: 700 21px/1.15 var(--font); letter-spacing: -.03em; margin: 12px 0 14px; }
.m-p { height: 7px; border-radius: 4px; background: var(--bg3); margin-bottom: 8px; }
.m-p.short { width: 62%; }
.m-code { background: #0b1634; border-radius: 10px; padding: 12px; margin: 16px 0; display: grid; gap: 7px; }
.m-code span { height: 6px; border-radius: 3px; background: #2a3c72; width: 80%; }
.m-code span:nth-child(2) { width: 58%; background: #3c5bb0; }
.m-code span.short { width: 40%; background: #2f6b58; }
.m-quiz { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.m-q { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.m-opt { font-size: 11.5px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; color: var(--text2); }
.m-opt.ok { border-color: var(--green); background: #ecf7f0; color: var(--green); font-weight: 600; }

/* Catálogo */
.lp-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-course { background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.lp-course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-course-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg3); }
.lp-course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lp-course:hover .lp-course-img img { transform: scale(1.04); }
.lp-course-img .chip { position: absolute; left: 14px; top: 14px; backdrop-filter: blur(8px); }
.lp-course-img .chip--dark { background: rgba(10,20,48,.6); }
.lp-course.is-soon .lp-course-img img { filter: saturate(.6); }
.lp-course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lp-course-kicker, .course-kicker { font: 500 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .02em; margin-bottom: 10px; }
.course-kicker--green { color: #047857; }
.lp-course h3 { font: 650 21px/1.2 var(--font); letter-spacing: -.025em; color: var(--ink); margin-bottom: 10px; }
.lp-course p { font-size: 15px; line-height: 1.55; color: var(--text3); flex: 1; }
.lp-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text3); }
.lp-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-weight: 650; font-size: 14.5px; color: var(--accent); }
.lp-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.lp-link:hover svg { transform: translateX(3px); }

/* Biblioteca */
.lp-library { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.lp-checks { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.lp-checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.lp-checks svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.lp-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 24px); padding: 40px 12px 36px; perspective: 1600px; }
.lp-shelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 22px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,20,48,.25), transparent); filter: blur(4px); }
.lp-shelf .book3d:nth-child(2) { transform: translateY(-18px) rotateY(-14deg); }
.lp-shelf .book3d:nth-child(3) { opacity: .9; }

/* Libro 3D (CSS) */
.book3d { --w: clamp(130px, 14vw, 190px); position: relative; width: var(--w); aspect-ratio: 2/3; transform: rotateY(-18deg); transform-style: preserve-3d; transition: transform .6s var(--ease); z-index: 1; }
.book3d:hover { transform: rotateY(-6deg) translateY(-6px); }
.book3d::before { content: ""; position: absolute; top: 3px; bottom: 3px; right: -14px; width: 14px; background: repeating-linear-gradient(90deg, #f3f0e8 0 1px, #e3ddd0 1px 2px); transform: rotateY(90deg) translateZ(-7px) translateX(7px); transform-origin: left; border-radius: 0 2px 2px 0; }
.book3d-cover { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; padding: 14% 12% 12%; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.18), inset 8px 0 10px -4px rgba(255,255,255,.18), 18px 26px 40px -16px rgba(10,20,48,.55); }
.book3d-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 38%); pointer-events: none; }
.book3d--blue .book3d-cover { background: radial-gradient(120% 80% at 90% 0%, #3b6dff 0%, transparent 55%), linear-gradient(160deg, #0a1430, #173086 70%, #1a56e8); }
.book3d--green .book3d-cover { background: radial-gradient(120% 80% at 90% 0%, #34d399 0%, transparent 50%), linear-gradient(160deg, #052e25, #065f46 70%, #059669); }
.book3d--ink .book3d-cover { background: linear-gradient(160deg, #1b2440, #2f3a5c); }
.b-kicker { font: 500 clamp(7.5px, .8vw, 9.5px)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.b-title { font: 800 clamp(40px, 4.6vw, 64px)/.9 var(--font); letter-spacing: -.05em; margin-top: auto; }
.b-title--sm { font: 800 clamp(19px, 2vw, 28px)/1 var(--font); letter-spacing: -.035em; }
.b-sub { font: 500 clamp(9px, .9vw, 11px)/1.35 var(--font); opacity: .78; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); }
.book3d--sm { --w: 112px; }
.book3d--sm .b-title { font-size: 34px; }
.book3d--sm .b-title--sm { font-size: 16px; }
.book3d--sm .b-kicker { font-size: 7px; }
.book3d--sm .b-sub { font-size: 8.5px; }

/* Asesorías */
.lp-mentor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.lp-mentor-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 5/4; background: var(--bg3); }
.lp-mentor-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-quote { margin-top: 32px; padding: 24px 26px; border-left: 2px solid var(--accent); background: var(--paper); border-radius: 0 18px 18px 0; }
.lp-quote p { font: 500 20px/1.45 var(--font); letter-spacing: -.015em; color: var(--ink); }
.lp-quote span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--text3); font-weight: 500; }

/* Certificado (sección landing) */
.lp-certsec { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.lp-certsec-visual { position: relative; }
.lp-certsec-visual::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 30px; background: radial-gradient(60% 60% at 50% 50%, rgba(184,145,58,.22), transparent 70%); filter: blur(20px); }
.cert-stage--preview { position: relative; transform: rotate(-1.6deg); box-shadow: 0 50px 90px -40px rgba(10,20,48,.5), 0 2px 8px rgba(10,20,48,.08); border-radius: 6px; overflow: hidden; }

/* Para quién */
.lp-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-aud { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--ink); isolation: isolate; }
.lp-aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s var(--ease); }
.lp-aud::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,48,0) 30%, rgba(10,20,48,.88) 100%); }
.lp-aud:hover img { transform: scale(1.05); }
.lp-aud-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; }
.lp-aud h3 { font: 650 24px/1.1 var(--font); letter-spacing: -.03em; margin-bottom: 8px; }
.lp-aud p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.8); }

/* Precio */
.lp-pricing { display: grid; grid-template-columns: 1fr 460px; gap: clamp(40px, 6vw, 96px); align-items: center; }
.lp-guarantee { display: flex; gap: 14px; margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); max-width: 560px; }
.lp-guarantee svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-guarantee p { font-size: 15px; line-height: 1.55; color: var(--text2); }
.lp-guarantee strong { color: var(--ink); }
.lp-price-card { background: #fff; border-radius: 28px; padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); position: relative; }
.lp-price-card::before { content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1px; background: linear-gradient(160deg, rgba(26,86,232,.5), transparent 40%, rgba(184,145,58,.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.lp-price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lp-price-label { font-size: 14px; font-weight: 600; color: var(--text2); }
.lp-price { font: 750 72px/1 var(--font); letter-spacing: -.05em; color: var(--ink); margin: 12px 0 6px; display: flex; align-items: flex-start; }
.lp-price .cur { font-size: 30px; margin: 8px 4px 0 0; letter-spacing: 0; }
.lp-price .per { font: 500 13px/1.3 var(--font); color: var(--text3); letter-spacing: 0; align-self: flex-end; margin: 0 0 10px 12px; }
.lp-price-old { font-size: 14px; color: var(--text3); }
.lp-cupos { margin: 24px 0; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--border); }
.lp-cupos-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text2); margin-bottom: 10px; }
.lp-cupos-row strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.lp-cupos-bar { height: 6px; border-radius: 6px; background: var(--bg4); overflow: hidden; }
.lp-cupos-bar span { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width 1s var(--ease); }
.lp-cupos.is-low { background: #fff5f2; border-color: #f6d5cc; }
.lp-cupos.is-low .lp-cupos-bar span { background: var(--coral); }
.lp-cupos.is-low strong { color: var(--coral); }
.lp-price-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.lp-price-list li { display: flex; gap: 12px; font-size: 15px; color: var(--text2); }
.lp-price-list svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-price-note { text-align: center; font-size: 13px; color: var(--text3); margin-top: 14px; }

/* FAQ */
.lp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lp-faq-list details { border-bottom: 1px solid var(--border); }
.lp-faq-list details:first-child { border-top: 1px solid var(--border); }
.lp-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 600 18px/1.35 var(--font); letter-spacing: -.015em; color: var(--ink); }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--text3); stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--ease); }
.lp-faq-list details[open] summary svg { transform: rotate(45deg); stroke: var(--accent); }
.lp-faq-list details p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--text2); }

/* CTA final */
.lp-cta { position: relative; overflow: hidden; color: #fff; padding: clamp(96px, 12vw, 160px) 0; isolation: isolate; text-align: center; }
.lp-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lp-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,48,.82), rgba(10,20,48,.92)), radial-gradient(60% 80% at 50% 0%, rgba(26,86,232,.4), transparent); }
.lp-cta h2 { font: 700 clamp(38px, 6vw, 76px)/1 var(--font); letter-spacing: -.045em; margin-bottom: 18px; text-wrap: balance; }

.lp-cta p { font-size: 19px; color: rgba(255,255,255,.75); margin-bottom: 36px; }
.lp-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.lp-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 72px 0 32px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.lp-footer-brand p { font-size: 14.5px; line-height: 1.6; margin-top: 18px; max-width: 340px; }
.lp-footer-col { display: flex; flex-direction: column; gap: 12px; }
.lp-footer-col h4 { font: 600 13px/1 var(--font); color: #fff; margin-bottom: 6px; }
.lp-footer-col a { font-size: 14.5px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.lp-footer-col a:hover { color: #fff; }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ─────────────────────────── AUTH ─────────────────────────── */
.auth-screen { min-height: 100vh; background: #fff; }
.auth-left { position: relative; flex: 1.1; min-height: 100vh; overflow: hidden; color: #fff; isolation: isolate; display: flex; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-left::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,48,.55) 0%, rgba(10,20,48,.35) 35%, rgba(10,20,48,.94) 78%), linear-gradient(90deg, rgba(10,20,48,.4), transparent); }
.auth-left-inner { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); width: 100%; }
.auth-headline { font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--font); letter-spacing: -.04em; max-width: 560px; margin-bottom: 32px; text-wrap: balance; }

.auth-courses { display: grid; gap: 8px; max-width: 520px; margin-bottom: 32px; }
.auth-course { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: 14.5px; font-weight: 500; }
.auth-course .chip { margin-left: auto; height: 22px; font-size: 11px; }
.auth-course.is-soon { color: rgba(255,255,255,.62); }
.auth-course .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.auth-course .dot--on { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.auth-stats { display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); max-width: 520px; }
.auth-stats strong { display: block; font: 700 32px/1 var(--font); letter-spacing: -.03em; }
.auth-stats span { font-size: 13px; color: rgba(255,255,255,.6); }
.auth-right { width: min(560px, 46vw); flex-shrink: 0; display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 64px) 40px; overflow-y: auto; max-height: 100vh; }
.auth-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.auth-mobile-brand { visibility: hidden; }
.auth-back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text3); padding: 8px 0; }
.auth-back:hover { color: var(--ink); }
.auth-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.auth-form-title { font: 700 36px/1.05 var(--font); letter-spacing: -.04em; color: var(--ink); margin-bottom: 10px; }
.auth-form-sub { font-size: 16px; color: var(--text3); margin-bottom: 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg3); margin-bottom: 24px; }
.auth-tab { height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text3); transition: background .2s, color .2s, box-shadow .2s; }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.form-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-forgot a { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.pw-field { position: relative; }
.pw-field .form-input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text3); }
.pw-toggle:hover { background: var(--bg2); color: var(--ink); }
.pw-rules { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 12px; }
.pw-rules[style*="none"] { display: none !important; }
.pw-rule { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text3); transition: color .2s; }
.pw-rule.ok { color: var(--green); }
.btn-auth { margin-top: 8px; position: relative; }
.btn-auth-loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-error { display: none; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.45; background: var(--coral-bg); border: 1px solid rgba(194,38,29,.2); color: var(--coral); }
.auth-error.show { display: block; animation: calloutIn .3s ease; }
.auth-error.is-ok { background: #ecf7f0; border-color: rgba(21,128,61,.25); color: var(--green); }
.auth-legal { font-size: 12.5px; color: var(--text3); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ─────────────────────────── DASHBOARD ─────────────────────────── */
.dash-screen, .admin-screen { min-height: 100vh; background: var(--paper); }
.dash-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--border); }
.dash-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-nav-right { display: flex; align-items: center; gap: 10px; }
.dash-admin-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.dash-admin-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-admin-btn:hover { background: #000; }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.dash-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--ink)); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.dash-user-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.2; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-email { font-size: 12px; color: var(--text3); line-height: 1.2; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-main { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 96px; }

.dash-hero { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 20px; margin-bottom: 20px; animation: lessonIn .6s var(--ease) both; }
.dash-hero-copy { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(28px, 4vw, 44px); color: #fff; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(77,124,255,.55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(184,145,58,.25), transparent 60%), var(--ink); }
.dash-hero-copy::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.dash-greeting { font: 500 14px/1 var(--font); color: rgba(255,255,255,.65); margin-bottom: 12px; }
.dash-title { font: 700 clamp(32px, 4.4vw, 52px)/1 var(--font); letter-spacing: -.045em; margin-bottom: 14px; }
.dash-sub { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.7); max-width: 460px; }
.dash-continue { border-radius: 26px; padding: 28px; background: linear-gradient(160deg, #13224a, #0a1430); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.dash-continue::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255,255,255,.04); }
.dash-continue-kicker { font: 500 12px/1 var(--font-mono); color: var(--sky); letter-spacing: .04em; }
.dash-continue-title { font: 650 22px/1.2 var(--font); letter-spacing: -.025em; margin: 14px 0 6px; }
.dash-continue-meta { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.dash-continue .ui-btn { margin-top: auto; align-self: flex-start; }
.dash-continue.is-locked .ui-btn { opacity: .6; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.dash-stat-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.dash-stat-ic--gold { background: var(--gold-soft); color: #8a6a22; }
.dash-stat-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-stat-label { font-size: 13px; color: var(--text3); }
.dash-stat-val { font: 700 24px/1.1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.dash-stat-val small { font-size: 14px; color: var(--text3); font-weight: 500; letter-spacing: 0; }
.dash-ring { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.dash-ring svg { width: 100%; height: 100%; }
.dash-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); color: var(--accent); }

.dash-activate { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; margin-bottom: 20px; border-radius: 20px; background: #fff; border: 1px solid #f0dcae; box-shadow: 0 0 0 4px rgba(184,145,58,.08); }
.dash-activate-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--gold-soft); color: #8a6a22; display: grid; place-items: center; }
.dash-activate-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash-activate h2 { font: 650 19px/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.dash-activate p { font-size: 14.5px; color: var(--text2); line-height: 1.5; max-width: 620px; }
.dash-activate-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; counter-reset: s; }
.dash-activate-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text3); }
.dash-activate-steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); background: var(--bg3); color: var(--text3); }
.dash-activate-steps li.done { color: var(--green); }
.dash-activate-steps li.done::before { content: "✓"; background: var(--green); color: #fff; font-family: var(--font); }
.dash-activate-actions { display: flex; flex-direction: column; gap: 8px; }

.dash-block { margin-top: 44px; }
.dash-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-block-head h2 { font: 700 24px/1.2 var(--font); letter-spacing: -.03em; color: var(--ink); }
.dash-block-sub { font-size: 14px; color: var(--text3); }

.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; animation: lessonIn .6s var(--ease) both; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card.is-soon { opacity: .82; }
.course-card.is-soon:hover { transform: none; box-shadow: none; }
.course-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card.is-soon .course-thumb img { filter: grayscale(.5); }
.course-status { position: absolute; left: 12px; top: 12px; }
.chip--light { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(8px); }
.chip--light.is-active { color: var(--green); }
.chip--light.is-done { color: #8a6a22; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-title, .book-title { font: 650 19px/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.course-desc, .book-desc { font-size: 14.5px; line-height: 1.55; color: var(--text3); margin-bottom: 16px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text3); }
.course-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.course-progress { margin-bottom: 16px; }
.course-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.course-progress-label b { font-weight: 650; color: var(--ink); }
.course-progress-bar, .book-read-bar-wrap { height: 6px; border-radius: 6px; background: var(--bg3); overflow: hidden; }
.course-progress-fill, .book-read-bar-fill { height: 100%; border-radius: 6px; background: var(--accent); transition: width .8s var(--ease); }
.book-read-bar-fill--green { background: #059669; }
.btn-course, .btn-book { height: 46px; border-radius: 14px; font-size: 14.5px; }
.btn-course.is-locked, .btn-book.is-locked { --b-bg: var(--bg2); --b-fg: var(--text3); --b-bd: var(--border); cursor: not-allowed; opacity: 1; }
.btn-course.is-active, .btn-book.is-active { --b-bg: var(--ink); --b-fg: #fff; }
.btn-course.is-active:hover, .btn-book.is-active:hover { --b-bg: var(--accent); }
.btn-course.is-done { --b-bg: var(--green); --b-fg: #fff; }
.btn-book.is-green { --b-bg: #065f46; }

.books-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.book-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; }
.book-card-cover { display: grid; place-items: center; padding: 28px 16px; perspective: 900px; background: radial-gradient(80% 80% at 50% 30%, #e6edff, #f6f8fc); }
.book-card-cover--green { background: radial-gradient(80% 80% at 50% 30%, #dcf5ea, #f4faf7); }
.book-body { padding: 22px 22px 22px 6px; display: flex; flex-direction: column; }
.book-read-progress { margin-bottom: 14px; }
.book-read-label { display: block; font: 500 12.5px/1 var(--font); color: var(--text3); margin-bottom: 8px; }

.dash-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dash-cert { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.dash-cert-thumb { width: 92px; flex-shrink: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.dash-cert-title { font: 650 16px/1.3 var(--font); color: var(--ink); letter-spacing: -.015em; }
.dash-cert-meta { font: 500 12px/1.4 var(--font-mono); color: var(--text3); margin: 4px 0 10px; }
.dash-cert-empty { grid-column: 1/-1; display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 18px; border: 1px dashed var(--border2); background: #fff; color: var(--text3); font-size: 15px; }
.dash-cert-empty svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-cert-empty strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }

/* ─────────────────────────── ADMIN ─────────────────────────── */
.admin-badge { margin-left: 6px; }
.admin-main { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 96px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-title { font: 700 32px/1.1 var(--font); letter-spacing: -.035em; color: var(--ink); }
.admin-sub { font-size: 15px; color: var(--text3); margin-top: 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.admin-stat-card--warn .admin-stat-num { color: var(--coral); }
.admin-stat-label { display: block; font-size: 12.5px; color: var(--text3); margin-bottom: 8px; }
.admin-stat-num { font: 700 28px/1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.admin-tools { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 20px; }
.admin-cupos-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.admin-cupos-row { display: flex; align-items: center; gap: 8px; }
.admin-cupos-input { width: 84px; height: 38px; text-align: center; font-family: var(--font-mono); }
.admin-ok { font-size: 13px; color: var(--green); font-weight: 500; }
.admin-search-row { display: flex; gap: 8px; align-items: flex-end; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.admin-search { height: 38px; }
.admin-user-list { display: grid; gap: 10px; }
.admin-user-card { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.admin-user-card:hover { border-color: var(--border2); box-shadow: var(--shadow-sm); }
.admin-user-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.admin-user-name { font-weight: 650; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-email, .admin-user-phone, .admin-user-date { font-size: 13px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-prog { margin-top: 8px; }
.admin-user-prog-label { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--font-mono); color: var(--text3); margin-bottom: 5px; }
.admin-user-prog-bar { height: 5px; border-radius: 5px; background: var(--bg3); overflow: hidden; }
.admin-user-prog-bar span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.admin-user-prog-bar span.is-done { background: var(--green); }
.admin-course-toggles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border2); background: #fff; color: var(--text2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .2s; }
.admin-toggle:hover { border-color: var(--ink); color: var(--ink); }
.admin-toggle.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-toggle.active.is-green { background: #059669; border-color: #059669; }
.admin-toggle.paid { background: var(--green); border-color: var(--green); color: #fff; }
.admin-toggle.unpaid { border-color: rgba(194,38,29,.35); color: var(--coral); background: #fff; }
.admin-toggle:disabled { opacity: .4; cursor: not-allowed; }
.admin-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.admin-search-row .ui-btn svg { width: 16px; height: 16px; }
.admin-empty { padding: 40px; text-align: center; color: var(--text3); background: #fff; border: 1px dashed var(--border2); border-radius: 18px; }
.admin-empty.is-error { color: var(--coral); }

/* ─────────────────────────── MODALES ─────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(10,20,48,.55); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: lessonIn .35s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font: 700 20px/1.2 var(--font); letter-spacing: -.025em; color: var(--ink); }
.modal-section { padding: 20px 24px 22px; border-bottom: 1px solid var(--border); }
.modal-section:last-child { border-bottom: 0; }
.modal-section h3 { font: 650 15px/1.3 var(--font); color: var(--ink); margin-bottom: 4px; }
.modal-hint { font-size: 13.5px; color: var(--text3); margin-bottom: 12px; }
.modal-section .form-input { margin-bottom: 10px; }
.modal-section .form-row { margin-top: 10px; }
.modal-ok { display: inline-block; margin-left: 10px; font-size: 13px; color: var(--green); font-weight: 500; }

/* ─────────────────────────── CERTIFICADO ─────────────────────────── */
.cert-overlay { position: fixed; inset: 0; z-index: 6000; background: rgba(6,12,30,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cert-overlay.show { opacity: 1; pointer-events: all; }
.cert-modal { width: 100%; max-width: 1040px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); }
.cert-overlay.show .cert-modal { transform: none; }
.cert-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.cert-modal-kicker { font: 500 12px/1 var(--font-mono); color: var(--gold); letter-spacing: .04em; }
.cert-modal-title { font: 700 19px/1.3 var(--font); letter-spacing: -.02em; color: var(--ink); margin-top: 4px; }
#cert-stage { margin: 0 22px; box-shadow: 0 0 0 1px var(--border), var(--shadow); border-radius: 4px; overflow: hidden; }
.cert-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 22px; flex-wrap: wrap; }
.cert-actions-note { font-size: 13px; color: var(--text3); }
.cert-actions-btns { display: flex; gap: 8px; margin-left: auto; }

/* El documento — se dimensiona en unidades de contenedor (cqw) */
.cert-stage { container-type: inline-size; background: #fff; }
.cert-doc { position: relative; width: 100cqw; aspect-ratio: 297/210; background: #fffdf8; color: var(--ink); overflow: hidden; font-family: var(--font); }
.cert-doc .c-guilloche { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert-doc .c-frame { position: absolute; inset: 3.4cqw; border: .12cqw solid rgba(184,145,58,.9); }
.cert-doc .c-frame::after { content: ""; position: absolute; inset: .55cqw; border: .06cqw solid rgba(184,145,58,.6); }
.cert-doc .c-inner { position: absolute; inset: 3.4cqw; padding: 3.6cqw 5.6cqw 3.2cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.c-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.c-brand { display: flex; align-items: center; gap: 1cqw; text-align: left; }
.c-brand svg { width: 3.4cqw; height: 3.4cqw; }
.c-brand b { display: block; font-weight: 700; font-size: 1.45cqw; letter-spacing: -.02em; line-height: 1.1; }
.c-brand span { display: block; font-size: .95cqw; color: var(--text3); }
.c-no { text-align: right; font-family: var(--font-mono); font-size: .9cqw; color: var(--text3); line-height: 1.5; }
.c-no b { display: block; color: var(--ink); font-weight: 500; font-size: 1.05cqw; letter-spacing: .02em; }
.c-title { margin-top: 2.4cqw; font-family: var(--serif); font-size: 5.6cqw; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.c-sub { margin-top: .9cqw; font-family: var(--font-mono); font-size: 1cqw; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.c-given { margin-top: 2.6cqw; font-size: 1.3cqw; color: var(--text3); }
.c-name { margin-top: .6cqw; font-family: var(--serif); font-style: italic; font-size: 5.4cqw; line-height: 1.12; color: var(--ink); padding: 0 3cqw .5cqw; border-bottom: .1cqw solid rgba(184,145,58,.7); max-width: 82%; overflow-wrap: anywhere; }
.c-for { margin-top: 1.8cqw; font-size: 1.3cqw; color: var(--text3); }
.c-course { margin-top: .6cqw; font-weight: 700; font-size: 2.3cqw; letter-spacing: -.03em; color: var(--ink); }
.c-detail { margin-top: .8cqw; font-size: 1.12cqw; color: var(--text2); max-width: 64%; line-height: 1.5; }
.c-bottom { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3cqw; }
.c-sig { text-align: center; }
.c-sig svg { width: 15cqw; height: 4.2cqw; display: block; margin: 0 auto -.4cqw; }
.c-sig-line { border-top: .08cqw solid var(--ink); padding-top: .7cqw; font-weight: 600; font-size: 1.12cqw; }
.c-sig-role { font-size: .95cqw; color: var(--text3); margin-top: .15cqw; }
.c-date { font-family: var(--serif); font-size: 2.1cqw; line-height: 1; padding-bottom: .5cqw; }
.c-seal { width: 11.5cqw; height: 11.5cqw; margin-bottom: -.4cqw; }
.cert-doc.is-book .c-sub { color: #047857; }

/* Impresión: solo el certificado, A4 horizontal */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { width: 297mm; height: 210mm; background: #fff !important; overflow: hidden !important; }
  body > *:not(#cert-overlay) { display: none !important; }
  #cert-overlay { position: static !important; display: block !important; opacity: 1 !important; background: none !important; backdrop-filter: none !important; padding: 0 !important; }
  .cert-modal { max-width: none !important; width: 297mm !important; max-height: none !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; overflow: visible !important; }
  .cert-modal-head, .cert-actions { display: none !important; }
  #cert-stage { margin: 0 !important; width: 297mm !important; box-shadow: none !important; border-radius: 0 !important; }
  .cert-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .lp-nav-links a { padding: 8px 9px; font-size: 14px; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-user-card { grid-template-columns: auto 1fr; }
  .admin-course-toggles { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 980px) {
  .lp-nav-links, .lp-nav-login { display: none; }
  .lp-nav-toggle { display: inline-grid; }
  .lp-mobile-menu { display: grid; gap: 2px; max-height: 0; overflow: hidden; padding: 0 var(--gutter); transition: max-height .4s var(--ease), padding .4s var(--ease); background: #fff; }
  .lp-nav.open .lp-mobile-menu { max-height: 560px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--border); }
  .lp-nav.open { background: #fff; }
  .lp-mobile-menu a { padding: 13px 4px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bg3); }
  .lp-mobile-actions { display: grid; gap: 8px; margin-top: 16px; }
  .lp-hero-grid, .lp-program, .lp-library, .lp-mentor, .lp-certsec, .lp-pricing, .lp-faq, .lp-experience, .lp-section-head--split { grid-template-columns: 1fr; }
  .lp-hero-visual { max-width: 560px; width: 100%; margin: 0 auto; padding: 24px 16px 32px; }
  .lp-program-intro { position: static; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-catalog, .lp-audience { grid-template-columns: 1fr 1fr; }
  .lp-audience .lp-aud:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .lp-pricing { gap: 40px; }
  .lp-price-card { max-width: 520px; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-brand { grid-column: 1 / -1; }
  .lp-mentor-photo { order: 2; }

  .auth-left { display: none; }
  .auth-right { width: 100%; max-height: none; min-height: 100vh; }
  .auth-mobile-brand { visibility: visible; }

  .dash-hero { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .dash-activate { grid-template-columns: auto 1fr; }
  .dash-activate-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .admin-tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-nav-inner { height: 64px; }
  .lp-nav-cta .ui-btn--sm { display: none; }
  .lp-hero { padding-top: 28px; }
  .lp-hero-ctas .ui-btn { width: 100%; }
  .lp-hero-facts { gap: 8px 20px; }
  .float-progress { left: 0; bottom: 30px; width: 76%; padding: 12px 14px; }
  .float-code { right: 0; top: 0; padding: 10px 12px; }
  .float-code code { font-size: 10.5px; }
  .float-cert { right: 8px; bottom: -14px; padding: 8px 12px 8px 8px; }
  .fc-seal { width: 32px; height: 32px; }
  .fc-title { font-size: 13px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-steps h3 { margin-top: 18px; }
  .lp-catalog, .lp-audience { grid-template-columns: 1fr; }
  .lp-audience .lp-aud, .lp-audience .lp-aud:last-child { aspect-ratio: 4/3.4; }
  .lp-module summary { grid-template-columns: auto 1fr auto; gap: 12px; padding: 16px; }
  .lp-module-count { display: none; }
  .lp-module ol { margin: 0 16px 14px 16px; }
  .lp-mock-body { grid-template-columns: 1fr; min-height: 0; }
  .lp-mock-side { display: none; }
  .lp-program-meta { grid-template-columns: 1fr; }
  .lp-shelf { padding: 24px 0 32px; gap: 10px; }
  .book3d { --w: 29vw; }
  .lp-price-card { padding: 24px 20px; border-radius: 24px; }
  .lp-price { font-size: 60px; }
  .lp-faq-list summary { font-size: 16.5px; padding: 20px 0; }
  .lp-faq-list details p { padding-right: 0; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-cta-btns .ui-btn { width: 100%; }

  .auth-right { padding: 18px 20px 32px; }
  .auth-back { font-size: 13px; }
  .auth-form-wrap { padding: 24px 0; }
  .auth-form-title { font-size: 30px; }
  .form-row { flex-direction: column; gap: 0; }
  .pw-rules { grid-template-columns: 1fr; }

  .dash-nav-inner { height: 60px; }
  .dash-user { padding: 0; border: 0; background: none; }
  .dash-user-text { display: none; }
  .dash-admin-btn .admin-label { display: none; }
  .dash-admin-btn { width: 40px; padding: 0; justify-content: center; }
  .dash-main { padding-top: 20px; }
  .dash-hero-copy, .dash-continue { border-radius: 22px; padding: 24px; }
  .dash-stats { gap: 8px; }
  .dash-stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .dash-stat-val { font-size: 21px; }
  .courses-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-body { padding: 20px 22px 22px; }
  .dash-activate { grid-template-columns: 1fr; padding: 20px; }
  .dash-activate-actions .ui-btn { flex: 1; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-search-row { flex-direction: column; align-items: stretch; }
  .cert-modal-head, .cert-actions { padding-left: 16px; padding-right: 16px; }
  #cert-stage { margin: 0 16px; }
  .cert-actions-btns { width: 100%; }
  .cert-actions-btns .ui-btn { flex: 1; }
  .modal-section .form-row { gap: 0; }
}

/* Verificación de certificados y mensajes de modales */
.modal-error { font-size: 13.5px; color: var(--coral); margin-top: 10px; }
#recovery-msg:empty, #verify-result:empty { display: none; }
#verify-result { margin-top: 14px; }
.verify-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; color: var(--text2); }
.verify-card strong { font-size: 15px; margin-bottom: 4px; }
.verify-card.is-ok { background: #ecf7f0; border: 1px solid rgba(21,128,61,.25); }
.verify-card.is-ok strong { color: var(--green); }
.verify-card.is-bad { background: var(--coral-bg); border: 1px solid rgba(194,38,29,.2); }
.verify-card.is-bad strong { color: var(--coral); }
.lp-checks a { color: var(--accent); text-underline-offset: 3px; }

/* Selector de idioma */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--border); flex-shrink: 0; }
.lang-switch button { height: 30px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 600 12.5px/1 var(--font); letter-spacing: .02em; color: var(--text3); transition: background .2s, color .2s, box-shadow .2s; }
.lang-switch button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.lang-switch button:hover:not(.is-on) { color: var(--ink); }
.lang-switch--sm button { height: 26px; min-width: 32px; padding: 0 8px; font-size: 11.5px; }
.lang-switch--block { display: flex; margin-bottom: 4px; }
.lang-switch--block button { flex: 1; height: 40px; font-size: 14px; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.sidebar-top .sidebar-back { margin-bottom: 0; }
.book-lang { margin-left: auto; }
.auth-top { gap: 12px; }
.auth-top .lang-switch { margin-left: auto; }
.auth-top .auth-back { margin-left: 0; }
@media (max-width: 980px) { .lp-nav-cta > .lang-switch { display: none; } }
@media (max-width: 640px) { .dash-nav-right { gap: 6px; } .dash-nav-right .lang-switch button { min-width: 32px; padding: 0 7px; } }

/* ═══════════════ Panel admin: pestañas, resumen, pagos, conciliación, configuración ═══════════════ */
.admin-head .ui-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; box-shadow: var(--shadow-sm); }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--text3); font: 600 14px/1 var(--font); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.adm-tab:hover { color: var(--ink); background: var(--bg2); }
.adm-tab.is-active { background: var(--ink); color: #fff; }
.adm-tab-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--amber); color: #fff; font: 700 11px/20px var(--font-mono); text-align: center; }
.adm-pane { display: none; }
.adm-pane.is-active { display: block; animation: lessonIn .35s var(--ease); }

.adm-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.adm-kpi::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--sky)); opacity: .9; }
.adm-kpi:first-child { background: var(--ink); border-color: var(--ink); }
.adm-kpi:first-child .adm-kpi-label, .adm-kpi:first-child .adm-kpi-foot { color: rgba(255,255,255,.7); }
.adm-kpi:first-child .adm-kpi-num { color: #fff; }
.adm-kpi--warn::after { background: linear-gradient(90deg, var(--amber), #f4c27a); }
.adm-kpi--warn .adm-kpi-num { color: var(--amber); }
.adm-kpi-label { font-size: 12.5px; font-weight: 500; color: var(--text3); }
.adm-kpi-num { font: 700 30px/1 var(--font); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-kpi-foot { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.adm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; margin-bottom: 12px; }
.adm-grid .adm-card { margin: 0; }
.adm-card--wide { grid-column: 1 / -1; }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-card-head h2 { display: flex; align-items: center; gap: 10px; font: 650 17px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink); }
.adm-card-sub { font-size: 13px; color: var(--text3); }
.adm-card-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-card-tools .ui-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-input--sm { height: 36px; padding: 0 12px; font-size: 13.5px; width: auto; }

.adm-chart svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--border); stroke-dasharray: 3 4; }
.ch-axis { font: 500 11.5px var(--font); fill: var(--text3); font-variant-numeric: tabular-nums; }
.ch-val { font: 650 12px var(--font); fill: var(--ink); }
.ch-bar { fill: var(--accent-soft); transition: fill .2s; }
.ch-bar.is-now { fill: var(--accent); }
.ch-bar:hover { fill: var(--accent-hover); }
.ch-line { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ch-sign { font: 700 12px var(--font); fill: #8a6a22; }
.ch-dot { fill: #fff; stroke: var(--gold); stroke-width: 2.4; }
.adm-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--text3); }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-rev { background: var(--accent); }
.lg-sign { background: var(--gold); border-radius: 50% !important; }

.adm-rows { display: grid; gap: 2px; }
.adm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.adm-row:last-child { border-bottom: 0; }
.adm-row-name { color: var(--ink); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row-val { color: var(--text2); font-variant-numeric: tabular-nums; }
.adm-row-val small { color: var(--text3); font-size: 12px; }
.adm-feed { list-style: none; display: grid; gap: 2px; }
.adm-feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.adm-feed-item:last-child { border-bottom: 0; }
.adm-feed-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.adm-feed-item.is-order .adm-feed-ic { background: var(--green-bg); color: var(--green); }
.adm-feed-item.is-certificate .adm-feed-ic { background: var(--gold-soft); color: #8a6a22; }
.adm-feed-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-feed-title { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-feed-sub { font-size: 12.5px; color: var(--text3); }
.adm-feed-item time { font-size: 12px; color: var(--text3); white-space: nowrap; }
.adm-feed-empty { padding: 20px 0; color: var(--text3); font-size: 14px; }
.adm-health { list-style: none; display: grid; gap: 10px; }
.adm-health li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); }
.adm-health li span:last-child { text-align: right; color: var(--text3); font-size: 13px; }
.adm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.adm-health li.is-warn .adm-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }
.admin-search-row { margin-bottom: 16px; }

/* Pagos */
.adm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.adm-toolbar-search { flex: 1 1 240px; height: 40px; }
.adm-toolbar .ui-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.adm-seg { display: inline-flex; padding: 3px; background: var(--bg3); border-radius: 12px; gap: 2px; }
.adm-seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: 600 13px var(--font); color: var(--text3); cursor: pointer; }
.adm-seg button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.adm-orders { display: grid; gap: 10px; }
.adm-order { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--border2); border-radius: 16px; }
.adm-order.is-pending { border-left-color: var(--amber); }
.adm-order.is-verified { border-left-color: var(--green); }
.adm-order.is-rejected { border-left-color: var(--coral); opacity: .85; }
.adm-order-name { font-weight: 650; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-order-mail, .adm-order-meta { font-size: 12.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-order-what { font-size: 14px; color: var(--text2); min-width: 0; }
.adm-order-ref { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-order-ref > span:first-child { font-size: 11.5px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.adm-order-ref code, .adm-table code { font: 600 13px var(--font-mono); color: var(--ink); background: var(--bg2); padding: 3px 7px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: inline-block; }
.adm-order-inv { font: 500 11.5px var(--font-mono); color: var(--text3); }
.adm-order-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font: 700 18px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-order-actions { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.pay-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font: 600 11.5px/1 var(--font); background: var(--bg3); color: var(--text3); white-space: nowrap; }
.pay-status.is-pending { background: var(--amber-bg); color: var(--amber); }
.pay-status.is-paid { background: var(--green-bg); color: var(--green); }
.pay-status.is-rejected { background: var(--coral-bg); color: var(--coral); }

.adm-manual { border-color: var(--accent-border); box-shadow: 0 0 0 4px var(--accent-bg); }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-field > span { font-size: 12.5px; font-weight: 600; color: var(--text2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.adm-field--wide { grid-column: 1 / -1; }
.adm-field textarea.form-input { height: auto; padding-top: 10px; resize: vertical; line-height: 1.45; }
.form-input.mono { font-family: var(--font-mono); font-size: 13.5px; }
.adm-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text2); cursor: pointer; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.adm-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.adm-form-actions .admin-ok { margin-right: auto; }
.admin-ok.is-error { color: var(--coral); }
.adm-hint { font-size: 13px; color: var(--text3); line-height: 1.5; margin: -4px 0 14px; }
.adm-hint:last-of-type { margin: 12px 0 0; }
.adm-secret { font-style: normal; font: 500 11.5px var(--font-mono); color: var(--amber); }
.adm-secret.is-set { color: var(--green); }
.adm-brand { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font: 800 14px/1 var(--font); color: #fff; flex: none; }
.adm-brand--zelle { background: #6d1ed4; }
.adm-brand--square { background: #111; font-size: 12px; }
.adm-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.adm-switch span { width: 40px; height: 24px; border-radius: 99px; background: var(--bg4); position: relative; transition: background .2s; }
.adm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10,20,48,.25); transition: transform .25s var(--ease); }
.adm-switch input:checked + span { background: var(--green); }
.adm-switch input:checked + span::after { transform: translateX(16px); }
.adm-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.adm-config .adm-card { margin: 0; }

/* Conciliación */
.adm-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 16px; border-radius: 16px; background: var(--accent-bg); border: 1px solid var(--accent-border); }
.adm-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-note p { font-size: 14px; color: var(--text2); line-height: 1.55; }
.adm-table-wrap { overflow-x: auto; margin: 0 -22px -20px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.adm-table th { text-align: left; font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text3); padding: 10px 14px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.adm-table th:first-child, .adm-table td:first-child { padding-left: 22px; }
.adm-table th:last-child, .adm-table td:last-child { padding-right: 22px; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table b { color: var(--ink); }
.adm-table tr.is-click { cursor: pointer; transition: background .15s; }
.adm-table tr.is-click:hover, .adm-table tr.is-sel { background: var(--accent-bg); }
.adm-table tr.is-empty td { color: var(--text4); }
.adm-table tr.is-total td { background: var(--bg2); font-weight: 600; color: var(--ink); border-bottom: 0; }
.adm-table tr.is-rec td { background: rgba(21,128,61,.035); }
.adm-td-empty { text-align: center; color: var(--text3); padding: 28px !important; }
.adm-muted { color: var(--text4); }
.rec-pill { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 99px; font: 600 12px var(--font-mono); }
.rec-pill.is-ok { background: var(--green-bg); color: var(--green); }
.rec-pill.is-warn { background: var(--amber-bg); color: var(--amber); }
.rec-check { display: inline-flex; cursor: pointer; }
.rec-check input { position: absolute; opacity: 0; }
.rec-check span { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border2); background: #fff; display: grid; place-items: center; transition: all .2s; }
.rec-check input:checked + span { background: var(--green); border-color: var(--green); }
.rec-check input:checked + span::after { content: ""; width: 10px; height: 5px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.rec-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.method-tag { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 7px; font: 600 12px var(--font); background: var(--bg3); color: var(--text2); }
.method-tag.is-zelle { background: rgba(109,30,212,.09); color: #6d1ed4; }
.method-tag.is-square { background: #111; color: #fff; }

/* ═══════════════ Estudiante: anuncio, pago, mis pagos ═══════════════ */
.dash-announce { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.dash-announce svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-announce p { font-size: 14.5px; font-weight: 500; }
.dash-pending-pay { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 13.5px; font-weight: 550; }
.dash-pending-pay.is-error { background: var(--coral-bg); color: var(--coral); }
.dash-pending-pay svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-pay-list { display: grid; gap: 8px; }
.dash-pay { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.dash-pay-title { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.dash-pay-meta { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.dash-pay-meta .mono { font-family: var(--font-mono); }
.dash-pay-amt { font: 700 16px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }

.modal--checkout { max-width: 520px; }
.co-summary { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 18px 24px; background: linear-gradient(180deg, var(--bg2), #fff); border-bottom: 1px solid var(--border); }
.co-summary-img img { width: 92px; height: 68px; object-fit: cover; border-radius: 12px; display: block; }
.co-kicker { font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.co-product { font: 650 16px/1.3 var(--font); color: var(--ink); margin: 3px 0 4px; letter-spacing: -.015em; }
.co-price { display: flex; align-items: baseline; gap: 10px; }
.co-price b { font: 700 26px/1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.co-price s { font-size: 14px; color: var(--text4); }
.co-body { padding: 20px 24px 24px; }
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.co-method { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; font: 650 14.5px var(--font); color: var(--text2); cursor: pointer; transition: border-color .2s, box-shadow .2s, color .2s; }
.co-method svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.co-method:hover { border-color: var(--border2); }
.co-method.is-active { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 4px var(--accent-bg); }
.co-method[hidden] { display: none; }
.co-pane { display: none; }
.co-pane.is-active { display: block; animation: lessonIn .3s var(--ease); }
.co-steps { list-style: none; counter-reset: co; display: grid; gap: 18px; }
.co-steps > li { counter-increment: co; position: relative; padding-left: 38px; font-size: 14.5px; color: var(--ink); }
.co-steps > li::before { content: counter(co); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 12px var(--font-mono); }
.co-copy-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.co-copy-row code { flex: 1; font: 600 14.5px var(--font-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.co-copy { height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--ink); color: #fff; font: 600 12.5px var(--font); cursor: pointer; }
.co-copy:hover { background: #000; }
.co-holder { font-size: 13.5px; color: var(--text3); margin-top: 8px; }
.co-ins { font-size: 13.5px; color: var(--text2); margin-top: 6px; line-height: 1.5; }
.co-ins:empty { display: none; }
.co-form { display: grid; gap: 10px; margin-top: 10px; }
.co-foot { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text3); margin-top: 14px; line-height: 1.5; }
.co-foot svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.co-card { min-height: 96px; margin-bottom: 12px; }
.co-off { padding: 18px; border-radius: 14px; background: var(--bg2); color: var(--text2); font-size: 14px; text-align: center; line-height: 1.5; }
.co-done { padding: 36px 28px 30px; text-align: center; }
.co-done-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; animation: lessonIn .4s var(--ease); }
.co-done-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.co-done h3 { font: 700 21px var(--font); letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.co-done p { font-size: 14.5px; color: var(--text2); line-height: 1.55; margin-bottom: 20px; }

@media (max-width: 1080px) {
  .adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-grid { grid-template-columns: 1fr 1fr; }
  .adm-order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .adm-order-ref { grid-column: 1 / 2; }
  .adm-order-actions { flex-direction: row; min-width: 0; grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 820px) {
  .adm-config { grid-template-columns: 1fr; }
  .adm-kpis--4 { grid-template-columns: 1fr 1fr; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-tabs { top: 64px; }
}
@media (max-width: 640px) {
  .adm-kpis { grid-template-columns: 1fr 1fr; }
  .adm-kpi:first-child { grid-column: 1 / -1; }
  .adm-kpi-num { font-size: 25px; }
  .adm-card { padding: 18px 16px; }
  .adm-table-wrap { margin: 0 -16px -18px; }
  .adm-table th:first-child, .adm-table td:first-child { padding-left: 16px; }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-order { grid-template-columns: 1fr auto; gap: 12px; }
  .adm-order-what, .adm-order-ref, .adm-order-actions { grid-column: 1 / -1; }
  .adm-order-amt { grid-row: 1; grid-column: 2; }
  .adm-order-actions { justify-content: stretch; }
  .adm-order-actions .ui-btn { flex: 1; }
  .adm-seg { width: 100%; overflow-x: auto; }
  .adm-seg button { flex: 1 0 auto; }
  .dash-pay { grid-template-columns: 1fr auto; }
  .dash-pay .pay-status { grid-column: 1 / -1; justify-self: start; }
  .co-summary { grid-template-columns: 72px 1fr; padding: 16px 18px; }
  .co-summary-img img { width: 72px; height: 56px; }
  .co-body { padding: 18px; }
}
@media (max-width: 640px) {
  .admin-badge { display: none; }
  .brand-name { white-space: nowrap; }
  .admin-screen .dash-nav-right .ui-btn { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .admin-screen .dash-nav-right .ui-btn svg { margin: 0; }
}
