@font-face{font-family:Inter;src:local('Aptos'),local('Segoe UI')}*{box-sizing:border-box}body{margin:0;color:#23362e;background:#f6f6f0;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}a{color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}h1,h2,h3,p{margin-top:0}h1{font-size:35px;line-height:1.18;letter-spacing:-1.1px;margin-bottom:13px}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:15px}small,.muted{color:#77837b}.initial{padding:15vh 15vw;font:48px Georgia}.initial span{display:block;font:15px Arial;color:#748377;margin-top:20px}.layout{display:grid;grid-template-columns:234px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e5e9df;position:fixed;width:234px;height:100vh;display:flex;flex-direction:column;padding:32px 20px;z-index:20}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:30px;font-weight:650;letter-spacing:-1px}.brand img{width:39px;height:39px}.brand small{font-size:9px;letter-spacing:1.6px;display:block;text-transform:uppercase;font-weight:500;margin-top:-5px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#8a938b;margin:38px 14px 14px}.nav{display:flex;flex-direction:column;gap:7px}.nav a{display:flex;gap:11px;align-items:center;padding:12px 14px;color:#6d7b70;text-decoration:none;border-radius:9px;font-weight:500}.nav a:hover{background:#f6f7f2}.nav a.active{background:#eaf1e7;color:#24533d}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.sidebar-bottom{margin-top:auto}.credits-card{background:#f8f5e9;border:1px solid #eee8d4;padding:16px;border-radius:12px;margin:26px 0 18px}.credits-card strong{font-size:27px;color:#294e3c}.credits-card p{font-size:11px;color:#8a846d;margin:7px 0 0}.user-card{display:flex;align-items:center;gap:9px;border-top:1px solid #ebeee6;padding-top:17px}.avatar{background:#e2eada;color:#335e44;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-weight:700}.user-card strong{font-size:12px;display:block}.user-card small{font-size:10px}.logout{margin-left:auto;background:none;border:0;color:#758274;padding:4px}.main{grid-column:2}.topbar{height:76px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e8df;font-size:12px;color:#758274}.topbar b{color:#445747;font-weight:500}.badge{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe6d9;border-radius:30px;padding:6px 11px;font-size:10px;color:#5c7756;background:#fff}.dot{width:6px;height:6px;border-radius:50%;background:#89a76d}.content{max-width:1230px;margin:auto;padding:35px 42px 55px}.eyebrow{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#839274;font-weight:700;margin-bottom:12px}.intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.intro p{color:#7c867b;font-size:13px;max-width:560px;margin-bottom:0}.intro h1{font-family:Georgia,serif;font-weight:500;font-size:38px;letter-spacing:-1.5px}.btn{border:1px solid #dfe5d9;border-radius:8px;background:#fff;padding:11px 17px;color:#3b5141;display:inline-flex;gap:9px;align-items:center;justify-content:center;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}.btn:hover{background:#f0f3e9}.btn.primary{background:#245640;color:#fff;border-color:#245640}.btn.primary:hover{background:#173f2d}.btn.light{background:#f7f8f3}.btn.small{padding:7px 11px;font-size:11px}.btn.danger{color:#aa493f}.btn.full{width:100%}.builder{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}.panel{background:white;border:1px solid #e3e7dc;border-radius:13px;overflow:hidden}.steps{display:flex;padding:22px 25px;border-bottom:1px solid #e8ece2;gap:0}.step{flex:1;background:none;border:0;display:flex;align-items:center;gap:8px;text-align:left;color:#91998f;font-size:11px;padding:0}.step:not(:last-child):after{content:'';height:1px;background:#e5e9df;flex:1;margin:0 12px}.step span{border:1px solid #dde3d6;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:10px;flex-shrink:0}.step.active{color:#29553d;font-weight:700}.step.active span,.step.done span{background:#28593f;color:white;border-color:#28593f}.form-body{padding:28px}.section-title{display:flex;gap:13px;align-items:center;margin-bottom:23px}.section-icon{background:#f2f5eb;border-radius:9px;padding:10px;color:#799366}.section-title h2{font-size:17px;margin:0 0 3px}.section-title p{color:#939a8f;font-size:11px;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px 18px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:600;color:#52624f}.field label em{font-style:normal;color:#97a190;font-weight:400}.field input,.field select,.field textarea,.search{width:100%;border:1px solid #dfe5d8;background:#fff;border-radius:7px;padding:11px 12px;min-height:42px;font-size:12px;color:#33452e}.field textarea{resize:vertical;min-height:87px;line-height:1.65}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7e9f70;outline:2px solid #eaf1e3}.field small{font-size:10px;line-height:1.5}.level-options{display:flex;gap:10px;margin-bottom:23px}.level-option{flex:1;border:1px solid #e2e7da;border-radius:9px;padding:15px 8px;background:#fff;text-align:center;font-size:12px;color:#829079}.level-option.active{border-color:#98b488;background:#f2f6eb;color:#355f3c}.level-option .icon{display:block;margin:0 auto 7px;color:#8b9f7d}.profile-note{background:#f6f8f1;border:1px solid #e8eedf;border-radius:8px;padding:12px 14px;display:flex;gap:12px;margin-bottom:24px;font-size:11px;color:#738266;align-items:center}.profile-note a{margin-left:auto;font-size:10px}.profile-note b{display:block;color:#4d6845}.form-footer{padding:18px 28px;background:#fcfdf9;border-top:1px solid #e7ebdf;display:flex;align-items:center;justify-content:space-between;gap:12px}.form-footer small{font-size:10px}.side-note{padding:22px;background:#eef2e7;border:1px solid #e0e8d5;border-radius:13px}.side-note h3{font-size:13px;margin:10px 0}.side-note p{font-size:11px;color:#7b8870}.document-mini{padding:21px 17px;background:#fff;box-shadow:0 5px 16px #2c482412;border-radius:2px;min-height:236px;transform:rotate(-2deg);margin:13px 7px 23px}.mini-logo{width:18px;height:18px;background:#245640;border-radius:4px;display:inline-block;vertical-align:middle;margin-right:7px}.document-mini strong{font-size:8px;letter-spacing:.4px}.mini-sub{font-size:6px!important;color:#9da58f!important;margin:3px 0 13px}.mini-heading{background:#eaf0e3;padding:5px;font-size:6px;color:#3d5b34;margin:9px 0 6px}.mini-line{height:3px;background:#e7ebe2;margin:5px 0;border-radius:1px}.mini-grid{height:26px;border:1px solid #e7ebe2;background:repeating-linear-gradient(90deg,transparent,transparent 33%,#e7ebe2 33%,#e7ebe2 34%)}.feature-line{display:flex;gap:9px;align-items:center;font-size:10px;color:#677e58;margin:12px 0}.feature-line .icon{width:14px;height:14px}.quiet-note{padding:20px 4px;display:flex;gap:9px;color:#8a9580;font-size:10px}.quiet-note .icon{width:15px}.bottom-points{display:flex;justify-content:center;gap:27px;color:#929b89;font-size:10px;margin-top:26px}.bottom-points .icon{width:13px;height:13px;margin-right:4px}.notice{padding:12px 15px;border-radius:8px;background:#fff7e4;border:1px solid #efdfb5;color:#8c6c31;font-size:12px;margin-bottom:20px}.notice a{text-decoration:underline}.summary{display:grid;grid-template-columns:1fr 1fr;gap:15px}.summary div{padding:15px;border:1px solid #e5eade;border-radius:8px}.summary span{display:block;font-size:10px;color:#849079;margin-bottom:5px}.summary b{font-size:12px;font-weight:500}.summary .wide{grid-column:1/-1}.checklist{padding:0;list-style:none;font-size:12px;color:#738066}.checklist li{margin:10px 0}.checklist .icon{width:15px;margin-right:9px;color:#658953}.busy{padding:38px 20px;text-align:center}.spinner{width:33px;height:33px;border:3px solid #e2e9d9;border-top-color:#417447;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}.busy h3{font-size:18px}.busy p{font-size:12px;color:#7d8b75}@keyframes spin{to{transform:rotate(360deg)}}.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.image-tile{position:relative;padding:0;border:1px solid #e0e7d9;background:white;border-radius:9px;overflow:hidden;text-align:left;cursor:pointer}.image-tile.selected{outline:2px solid #5c8351;border-color:transparent}.image-tile img{width:100%;aspect-ratio:2;object-fit:contain;display:block}.image-tile b{display:block;padding:8px;font-size:10px}.image-tile input{position:absolute;right:8px;top:8px;accent-color:#245640}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px}.toolbar .search{max-width:330px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.lesson-card{border:1px solid #e1e7d8;background:#fff;border-radius:12px;padding:21px;display:flex;flex-direction:column;min-height:210px}.lesson-card .paper-icon{width:42px;height:48px;background:#f0f4e8;border:1px solid #e2e9d5;display:grid;place-items:center;color:#789260;border-radius:6px;margin-bottom:15px}.lesson-card h3{font-size:16px;line-height:1.4;margin-bottom:8px}.lesson-card p{font-size:11px;color:#87917f}.lesson-card .card-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding-top:17px}.pill{border-radius:4px;background:#f2f5eb;font-size:9px;padding:4px 7px;color:#758a63}.empty{text-align:center;padding:65px 25px;border:1px dashed #d7e1ce;border-radius:13px;background:#fbfcf7}.empty .icon{width:40px;height:40px;color:#8ea87a;margin-bottom:15px}.empty p{color:#89917f;font-size:13px}.empty .btn{margin:10px 5px}.profile-layout{display:grid;grid-template-columns:1fr 300px;gap:23px}.pad{padding:25px}.letter-preview{width:100%;max-height:260px;object-fit:contain;border:1px solid #e3e8dc;background:#fff;margin:12px 0}.upload{border:1px dashed #bacbb0;background:#f7faf2;padding:24px 12px;text-align:center;border-radius:9px;display:block;cursor:pointer}.upload .icon{color:#91a57b;display:block;margin:0 auto 12px}.upload b{font-size:12px;display:block}.upload small{font-size:10px}.upload input{width:100%;font-size:10px;margin-top:12px}.stack{display:flex;flex-direction:column;gap:17px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;color:#8c9781;font-size:10px;font-weight:500;background:#fafcf6;padding:13px 18px;white-space:nowrap}.data-table td{border-top:1px solid #ebeee5;padding:14px 18px}.data-table td small{display:block;font-size:10px}.amount{font-weight:700}.amount.positive{color:#3c814e}.amount.negative{color:#a47554}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:19px;margin-bottom:25px}.stat{background:#fff;border:1px solid #e3e8da;border-radius:11px;padding:20px}.stat span{font-size:11px;color:#8a967e}.stat strong{font-family:Georgia,serif;font-size:33px;font-weight:500;display:block;margin-top:7px}.editor-tools{display:flex;gap:8px;flex-wrap:wrap}.editor-layout{display:grid;grid-template-columns:1fr;gap:20px}.editor-section{background:white;border:1px solid #e0e6d7;border-radius:10px;margin-bottom:12px}.editor-section summary{padding:18px 22px;cursor:pointer;font-size:13px;font-weight:600;color:#45663e}.editor-section .form-grid{padding:5px 22px 22px}.editor-section textarea{min-height:90px}.editor-section h3{grid-column:1/-1;padding:10px 0 0;margin:0}.preview-frame{border:1px solid #e1e7d9;border-radius:10px;background:white;width:100%;height:75vh}.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-story{background:#eaf0e1;padding:55px 70px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story h1{font-family:Georgia,serif;font-size:56px;font-weight:400;line-height:1.12;max-width:490px;margin:70px 0 22px}.auth-story p{color:#819073;max-width:370px;font-size:14px;line-height:1.8}.auth-story .document-mini{max-width:260px;min-height:265px;margin:30px 50px;transform:rotate(-7deg);box-shadow:18px 25px 0 #dbe5d0}.auth-story .mini-line{margin:8px 0}.auth-foot{margin-top:auto;font-size:10px;color:#8b987d;padding-top:25px}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-box{width:100%;max-width:370px}.auth-box h2{font-family:Georgia,serif;font-size:32px;font-weight:500}.auth-box>p{font-size:12px;color:#8e9686;margin-bottom:28px}.auth-box .field{margin-bottom:18px}.auth-switch{margin-top:23px;text-align:center;font-size:11px}.auth-switch button{border:0;background:none;color:#427245;text-decoration:underline}.auth-note{font-size:10px;color:#929b88;margin-top:28px;text-align:center}.inline-error{color:#a0473e;font-size:12px;margin:12px 0;min-height:18px}.source-row{padding:14px 19px;border-bottom:1px solid #e9ede2;font-size:12px;display:flex;justify-content:space-between;gap:12px}.source-row a{color:#597944;overflow-wrap:anywhere}.sources-head{padding:21px}.sources-head p{font-size:12px;color:#8a9580}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#244f38;color:#fff;padding:13px 23px;border-radius:9px;box-shadow:0 8px 35px #17332130;font-size:12px;z-index:100;transition:transform .25s;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0)}#toast.error{background:#954d40}dialog{border:1px solid #dce4d3;border-radius:14px;width:450px;max-width:95vw;padding:27px;color:#33482b;box-shadow:0 18px 80px #142b2330}dialog::backdrop{background:#102b2445}dialog .field{margin-bottom:16px}dialog h2{font-size:21px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.mobile-brand{display:none}.api-state{font-size:10px;color:#8d957f}.danger-text{color:#a26343}.resources-intro{margin-bottom:25px}.resources-intro p{color:#86917b;font-size:12px}.checkbox-line{display:flex;gap:8px;font-size:11px;color:#788b6d;align-items:flex-start;margin-top:20px}.checkbox-line input{accent-color:#28593f}.save-sticky{position:sticky;top:0;background:#f6f6f0ee;padding:12px 0;z-index:10;backdrop-filter:blur(8px)}
@media(min-width:1450px){.content{padding-top:45px}.builder{grid-template-columns:minmax(0,1fr) 310px}.form-body{padding:32px}}
@media(max-width:1100px){.sidebar{width:205px;padding:28px 15px}.layout{grid-template-columns:205px 1fr}.content{padding:30px 25px}.topbar{padding:0 25px}.builder{grid-template-columns:1fr 240px;gap:18px}.steps{padding:20px 16px}.step:not(:last-child):after{margin:0 5px}.form-body{padding:23px}.cards{grid-template-columns:repeat(2,1fr)}.profile-layout{grid-template-columns:1fr 250px}.auth-story{padding:40px}.auth-story h1{font-size:45px}}
@media(max-width:850px){.builder{grid-template-columns:1fr}.builder aside{display:none}.profile-layout{grid-template-columns:1fr}.intro h1{font-size:32px}.topbar .badge{display:none}.bottom-points{gap:12px;font-size:9px}.auth-story{padding:35px}.auth-story h1{font-size:37px}.auth-story .document-mini{margin:25px 0}.intro{align-items:flex-start}.stats{gap:10px}.stat{padding:16px}}
@media(max-width:650px){.layout{display:block}.sidebar{position:static;width:auto;height:auto;padding:17px 18px;border-bottom:1px solid #e4e9dc}.sidebar .brand{font-size:25px}.brand img{width:32px;height:32px}.sidebar .nav-label,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow-x:auto;margin-top:17px;gap:5px}.nav a{font-size:10px;padding:9px 10px;white-space:nowrap;gap:5px}.nav .icon{width:16px;height:16px}.topbar{height:49px;padding:0 20px;font-size:10px}.content{padding:25px 18px}.intro{flex-direction:column;gap:13px;margin-bottom:23px}.intro h1{font-size:33px}.intro p{font-size:12px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-body{padding:20px}.steps{padding:17px 12px}.step{font-size:9px;gap:5px}.step span{width:22px;height:22px}.step:not(:last-child):after{margin:0 4px}.form-footer{padding:15px 20px}.form-footer small{font-size:9px}.image-grid{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr}.bottom-points{display:none}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none}.auth{grid-template-columns:1fr}.auth-story{padding:25px 30px}.auth-story h1{font-size:34px;margin:30px 0 10px;max-width:350px}.auth-story p,.auth-story .document-mini,.auth-foot{display:none}.auth-form{padding:35px 27px}.auth-box{max-width:440px}.auth-box h2{font-size:27px}.stats{grid-template-columns:1fr}.stat{display:flex;justify-content:space-between;align-items:center}.stat strong{font-size:27px;margin:0}.summary{grid-template-columns:1fr}.summary .wide{grid-column:auto}.editor-tools{gap:6px}.editor-tools .btn{font-size:10px;padding:9px 10px}.editor-section .form-grid{padding:5px 15px 18px}.source-row{font-size:10px}.auth-note{margin-top:20px}.profile-note{align-items:flex-start}.profile-note a{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Identidad PeruEduca.pro */
.brand{gap:8px;font-size:22px;letter-spacing:-.7px}.brand img{width:30px;height:30px;flex-shrink:0}.brand-copy{display:block;min-width:0;line-height:1.25}.brand small{font-size:8px;letter-spacing:0;text-transform:none;line-height:1.45;margin-top:5px;max-width:155px}.sidebar .brand{font-size:21px}.auth-story .brand{font-size:29px}.auth-story .brand small{max-width:none;font-size:10px}

/* Libro abierto y destello: identidad PeruEduca.pro. */
.brand{gap:9px}.brand img{width:37px;height:37px;filter:drop-shadow(0 3px 4px #194d3f14)}.brand-copy{font-weight:750;color:#194d3f;letter-spacing:-.9px}.brand-domain{color:#b95f46;font-size:.79em;letter-spacing:-.5px}.brand small{font-weight:450;letter-spacing:0;color:#708271}.sidebar .brand{font-size:20px}.auth-story .brand{font-size:32px}.auth-story .brand img{width:57px;height:57px}.auth-story .brand small{margin-top:7px;font-size:11px}.mini-logo{background:transparent url("perueduca-icon.svg") center/contain no-repeat!important;border-radius:0!important}

/* Identidad final: monograma de documento plegado y palabra vectorial. */
.brand .brand-lockup{width:100%;height:auto;max-width:204px;filter:none}.auth-story .brand .brand-lockup{width:360px;max-width:100%;height:auto}.sidebar .brand{width:100%}.mini-logo{background-image:url("perueduca-icon.svg?v=4")!important}@media(max-width:650px){.sidebar .brand .brand-lockup{width:225px;max-width:100%}.auth-story .brand .brand-lockup{width:310px}}

.brand .brand-lockup{background:transparent;border-radius:0}.auth-story .brand .brand-lockup{width:410px}
