:root{
  --bg:#06111f;--bg2:#0a1b2f;--panel:#0d2138;--panel2:#102945;
  --line:rgba(151,189,226,.22);--text:#f4f9ff;--muted:#a9bfd5;
  --cyan:#52e2ff;--green:#54e0a5;--violet:#a78bfa;--orange:#ffb25c;
  --shadow:0 28px 80px rgba(0,0,0,.38)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% 12%,#103458 0,transparent 34%),radial-gradient(circle at 88% 8%,#2b1852 0,transparent 28%),linear-gradient(155deg,var(--bg),#030910 72%);color:var(--text);font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;overflow-x:hidden}
button,input,a{font:inherit}
button,a{touch-action:manipulation}
.ambient{position:fixed;border-radius:50%;filter:blur(90px);opacity:.16;pointer-events:none;z-index:-1}.ambient-one{width:420px;height:420px;background:var(--cyan);left:-180px;top:34%}.ambient-two{width:360px;height:360px;background:var(--violet);right:-150px;bottom:-80px}

/* Pantalla de ingreso: el propio panel puede desplazarse en cualquier pantalla. */
.profile-gate{position:fixed;inset:0;z-index:100;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:clamp(18px,4vh,42px) 18px;background:rgba(3,9,16,.9);backdrop-filter:blur(16px)}
.profile-gate.hidden{display:none}
.gate-card{width:min(540px,100%);margin:auto 0;padding:clamp(24px,4vw,36px);border:1px solid var(--line);border-radius:30px;background:linear-gradient(165deg,rgba(16,41,69,.98),rgba(7,20,35,.98));box-shadow:var(--shadow);text-align:center}
.gate-kicker{display:inline-flex;align-items:center;justify-content:center;margin:0 0 18px;padding:8px 13px;border:1px solid rgba(82,226,255,.28);border-radius:999px;background:rgba(82,226,255,.08);color:#dffaff;font-size:.77rem;font-weight:950;letter-spacing:.17em}
.eyebrow{margin:0 0 8px;color:var(--cyan);font-size:.74rem;font-weight:900;letter-spacing:.18em}
.gate-card h1{margin:0;font-size:clamp(2.2rem,8vw,4rem);line-height:.94;letter-spacing:-.06em}
.gate-subtitle{max-width:430px;margin:14px auto 8px;color:#d7e7f7;font-size:1.04rem;line-height:1.5}
.project-credit{margin:18px 0 0;color:#fff}
.author-credit{margin:5px 0 24px;color:var(--muted);font-size:.86rem}
.profile-form{display:grid;gap:9px;text-align:left}
.profile-form label{font-size:.84rem;font-weight:800;color:#d7e7f7}
.profile-form label span{font-weight:500;color:var(--muted)}
.profile-form input{width:100%;border:1px solid var(--line);border-radius:14px;background:#071627;color:var(--text);padding:13px 14px;outline:none;transition:.2s}
.profile-form input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(82,226,255,.12)}
.primary-button{margin-top:9px;border:0;border-radius:14px;padding:14px 18px;background:linear-gradient(135deg,var(--cyan),var(--green));color:#04121d;font-weight:950;cursor:pointer;box-shadow:0 12px 30px rgba(82,226,255,.17)}
.primary-button:hover{transform:translateY(-1px)}
.form-message{min-height:20px;margin:0;color:#ffb4b4;text-align:center;font-size:.82rem}

.dashboard{min-height:100vh}
.site-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px clamp(18px,4vw,58px);border-bottom:1px solid var(--line);background:rgba(5,15,27,.82);backdrop-filter:blur(16px)}
.brand{display:flex;align-items:center;color:inherit;text-decoration:none}
.brand strong,.brand small{display:block}.brand strong{letter-spacing:.05em}.brand small{color:var(--muted);font-size:.72rem}
.student-session{display:flex;align-items:center;gap:9px;padding:7px 8px 7px 9px;border:1px solid var(--line);border-radius:16px;background:rgba(13,33,56,.82)}
.student-avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cyan),var(--violet));color:#07111f;font-weight:950}
.student-session small,.student-session strong{display:block}.student-session small{color:var(--muted);font-size:.66rem}.student-session strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}
.student-session button{border:1px solid var(--line);border-radius:10px;background:#122a45;color:#ddebfa;padding:7px 10px;font-weight:800;cursor:pointer;font-size:.76rem}

main{width:min(1280px,calc(100% - 34px));margin:0 auto}
.hero-section{display:grid;grid-template-columns:1.45fr .55fr;gap:28px;align-items:center;padding:clamp(52px,8vw,100px) 0 46px}
.hero-section h1{max-width:850px;margin:0;font-size:clamp(2.45rem,7vw,5.75rem);line-height:.94;letter-spacing:-.065em}
.hero-section>div>p:last-child{max-width:760px;color:#c4d7e9;font-size:clamp(1rem,2vw,1.2rem);line-height:1.62}
.hero-project-card{justify-self:end;width:min(300px,100%);padding:28px;border:1px solid var(--line);border-radius:28px;background:radial-gradient(circle at 15% 10%,rgba(82,226,255,.16),transparent 45%),linear-gradient(150deg,rgba(16,41,69,.94),rgba(7,20,35,.96));box-shadow:var(--shadow)}
.hero-project-card span,.hero-project-card strong,.hero-project-card small{display:block}
.hero-project-card span{margin-bottom:14px;color:var(--cyan);font-size:.69rem;font-weight:950;letter-spacing:.16em}
.hero-project-card strong{font-size:clamp(1.65rem,3vw,2.35rem);line-height:1;letter-spacing:-.045em}
.hero-project-card small{margin-top:15px;padding-top:15px;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem;line-height:1.4}

.module-section{padding:26px 0 68px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.section-heading h2,.quick-guide h2{margin:0;font-size:clamp(1.75rem,4vw,3rem);letter-spacing:-.04em}
.section-heading>p{max-width:360px;margin:0;color:var(--muted);text-align:right}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.module-card{position:relative;min-height:330px;padding:24px;border:1px solid var(--line);border-radius:25px;background:linear-gradient(155deg,rgba(16,41,69,.9),rgba(7,21,37,.96));box-shadow:0 18px 44px rgba(0,0,0,.2);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}
.module-card:after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-100px;top:-110px;background:var(--cyan);opacity:.07;filter:blur(4px)}
.module-card.featured{grid-column:span 2;min-height:360px;grid-template-columns:auto 1fr auto;grid-template-rows:1fr;align-items:center;gap:24px;background:radial-gradient(circle at 10% 30%,rgba(82,226,255,.15),transparent 35%),linear-gradient(145deg,rgba(17,48,79,.97),rgba(7,20,35,.97))}
.module-icon{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;font-size:2rem;font-weight:950;background:rgba(82,226,255,.12);border:1px solid rgba(82,226,255,.25);color:var(--cyan);z-index:1}
.featured .module-icon{width:104px;height:104px;border-radius:29px;font-size:3.4rem}.ball-icon{color:#f9dc75;background:rgba(249,220,117,.1);border-color:rgba(249,220,117,.24)}.sumo-icon{color:var(--orange);background:rgba(255,178,92,.1);border-color:rgba(255,178,92,.24)}.auto-icon{color:var(--violet);background:rgba(167,139,250,.11);border-color:rgba(167,139,250,.25)}
.module-copy{z-index:1}.module-tag{display:inline-block;margin:13px 0 8px;color:var(--cyan);font-size:.7rem;font-weight:950;letter-spacing:.13em}.module-card h3{margin:0;font-size:clamp(1.45rem,3vw,2.15rem);letter-spacing:-.035em}.module-card p{color:#bfd2e5;line-height:1.55}.module-card ul{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:15px 0 0;list-style:none;color:#cfe1f2;font-size:.82rem}.module-card li:before{content:"✓";margin-right:6px;color:var(--green);font-weight:900}
.module-button{z-index:1;justify-self:start;align-self:end;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(82,226,255,.32);border-radius:13px;background:#12304d;color:#effaff;text-decoration:none;padding:12px 15px;font-weight:900;transition:.2s}.module-button:hover{transform:translateY(-2px);border-color:var(--cyan);background:#174163}.featured .module-button{justify-self:end;align-self:center;white-space:nowrap;padding:14px 18px;background:linear-gradient(135deg,var(--cyan),var(--green));color:#03131d;border:0}
.quick-guide{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:center;margin-bottom:70px;padding:30px;border:1px solid var(--line);border-radius:26px;background:rgba(11,29,49,.78)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.steps div{min-height:120px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#0a1c30}.steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(82,226,255,.12);color:var(--cyan);margin-bottom:12px}.steps span{color:#d7e7f6;font-size:.9rem;line-height:1.4}
footer{display:flex;justify-content:space-between;gap:18px;padding:23px clamp(18px,4vw,58px);border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}footer strong{color:#fff}

@media(max-height:720px){.profile-gate{padding-block:14px}.gate-card{padding:22px}.gate-kicker{margin-bottom:12px}.gate-subtitle{margin-top:10px}.project-credit{margin-top:12px}.author-credit{margin-bottom:16px}}
@media(max-width:900px){.hero-section{grid-template-columns:1fr}.hero-project-card{justify-self:start;width:100%;max-width:520px}.module-grid{grid-template-columns:1fr}.module-card.featured{grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.featured .module-icon{width:74px;height:74px;font-size:2.4rem}.featured .module-button{justify-self:start}.quick-guide{grid-template-columns:1fr}.section-heading{align-items:start}.section-heading>p{text-align:left}.steps{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:640px){.site-header{padding:10px 12px}.student-session small{display:none}.student-session strong{max-width:105px}.student-session button{padding:7px}.hero-section{padding-top:48px}.hero-section h1{font-size:2.8rem}.module-card{padding:20px}.section-heading{display:block}.section-heading>p{margin-top:8px}.steps{grid-template-columns:1fr}.quick-guide{padding:21px}footer{display:block;text-align:center}footer span{display:block;margin-top:5px}.gate-card{padding:22px;border-radius:24px}.gate-kicker{margin-bottom:14px}.gate-card h1{font-size:clamp(2.15rem,13vw,3.15rem)}}
