/* Tipografía Inter (licencia OFL), guardada en LIBRERIAS/INTER: funciona sin conexión */
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url('../LIBRERIAS/INTER/inter-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url('../LIBRERIAS/INTER/inter-greek-wght-normal.woff2') format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
:root{--blue:#315df2;--ink:#19263d;--muted:#637b9b;--bg:#f5f8fc;--line:#dce5f1;--purple:#7952e8;--green:#16a36a;--red:#e34e58}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif;font-size:14px}.topbar{height:76px;background:#fff;border-bottom:1px solid #e1e8f1;display:flex;align-items:center;padding:0 22px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--blue);color:white;display:grid;place-items:center;font-family:Georgia,serif;font-weight:bold;font-style:italic;font-size:29px}.brand strong{display:block;font-size:16px;font-weight:700}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.page-shell{max-width:1500px;margin:auto;padding:54px 25px 62px;min-height:calc(100vh - 126px)}.screen[hidden]{display:none}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--blue);margin:22px 0 13px}.screen h1{font-size:38px;letter-spacing:-1.6px;margin:0 0 6px;font-weight:750}.lead{font-size:16px;color:var(--muted);margin:0 0 27px;line-height:1.6}.back-link{border:0;background:none;color:var(--blue);font:inherit;padding:0;cursor:pointer;font-size:14px}.back-link:hover{text-decoration:underline}.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:34px}.lab-card{position:relative;text-align:left;min-height:310px;padding:27px 29px;background:#fff;border:1px solid var(--line);border-radius:19px;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden;transition:transform .2s,box-shadow .2s}.lab-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #263d6012}.card-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;font-size:25px;font-weight:600;margin-bottom:21px}.card-icon.blue{background:#edf2ff;color:var(--blue)}.card-icon.purple{background:#f2edff;color:var(--purple)}.card-kicker{font-size:10px;letter-spacing:1.8px;color:var(--muted);font-weight:700;margin-bottom:9px}.lab-card>strong{font-size:22px;margin-bottom:10px}.card-desc{color:var(--muted);line-height:1.6;max-width:430px}.card-link{color:var(--blue);font-weight:650;margin-top:auto;padding-top:22px}.card-link b{font-size:18px;margin-left:5px}.mini-graph{position:absolute;right:32px;top:46px;width:135px;height:86px;opacity:.8}.mini-graph:before,.mini-graph:after{content:"";position:absolute;background:#dce3ed}.mini-graph:before{left:0;right:0;top:50%;height:1px}.mini-graph:after{top:0;bottom:0;left:50%;width:1px}.line-mini i{position:absolute;width:145px;height:3px;background:var(--blue);transform:rotate(-27deg);top:44px;left:-5px;border-radius:4px}.line-mini b{display:none}.parabola-mini i{position:absolute;width:88px;height:65px;border:3px solid var(--purple);border-bottom:0;border-radius:50% 50% 0 0;left:23px;top:14px;transform:rotate(180deg)}.home-note{text-align:center;color:var(--muted);margin:40px 0 0;font-size:13px}.workspace{display:grid;grid-template-columns:306px minmax(0,1fr);gap:20px;align-items:stretch}.control-panel,.graph-panel{background:white;border:1px solid var(--line);border-radius:18px}.control-panel{padding:24px;min-width:0}.control-panel h2,.graph-heading h2{font-size:17px;margin:0;font-weight:650}.equation{background:#edf2ff;color:var(--blue);border-radius:11px;padding:16px 10px;text-align:center;font-size:20px;font-weight:700;margin:18px 0 23px;min-height:55px}.control-group{margin:0 0 20px}.control-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px;font-weight:650}.control-head output{color:var(--blue);font-weight:700;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:var(--blue);cursor:pointer;margin:0}.range-labels{display:flex;justify-content:space-between;color:#8b9bb2;font-size:11px;margin-top:7px}.control-group p,.tip-card p{font-size:11.5px;color:var(--muted);line-height:1.5;margin:8px 0 0}.info-card{border-radius:10px;padding:12px 13px;font-size:12px;line-height:1.6;margin:13px 0 19px}.red-info{background:#fff5f5;color:#8c3d46;border:1px solid #f5dddd}.vertex-info{background:#f0f8f4;border:1px solid #d8eee2;color:#126746;font-weight:600}.check-line{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:600;cursor:pointer}.check-line input{accent-color:var(--blue);width:15px;height:15px}.section-divider{height:1px;background:#edf0f5;margin:20px 0}.control-panel h3{font-size:13px;margin:0 0 12px}.secondary-btn{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 13px;color:var(--ink);font:600 12px Inter,sans-serif;cursor:pointer}.secondary-btn:hover{border-color:#9db3ef;background:#f9fbff}.full{width:100%}.saved-lines{margin:12px 0;font-size:11px;color:var(--muted)}.saved-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0f5;gap:8px}.saved-item button{border:0;background:none;color:#b44b54;cursor:pointer;font-size:15px}.saved-swatch{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.intersection-toggle{margin:13px 0}.small-info{font-size:11px;line-height:1.5;color:var(--muted);min-height:32px}.tip-card{border-left:3px solid #829cff;background:#f7f9fc;padding:13px 13px;margin:19px 0 17px;font-size:11.5px;line-height:1.5}.tip-card p{margin-top:6px}.reset-btn{margin-top:2px}.graph-panel{padding:24px;min-width:0}.graph-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:12px}.graph-heading span{font-size:10.5px;color:var(--muted)}.graph-board{width:100%;height:560px;border:0;border-radius:4px;background:white;touch-action:pan-y}.graph-legend{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;color:var(--muted);font-size:10.5px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.blue-dot{background:var(--blue)}.red-dot{background:var(--red)}.green-dot{background:var(--green)}.purple-dot{background:var(--purple)}.dash-line{display:inline-block;width:15px;border-top:2px dashed var(--green);margin-right:5px;vertical-align:middle}.muted{color:#91a0b4}footer{text-align:center;padding:20px;color:#8b9bb2;font-size:11px}footer span{padding:0 5px}

/* ---------- Laboratorios (como FunciLab) ----------
   Ordenador: deslizadores a la izquierda y gráfica a la derecha.
   Tableta y móvil (menos de 1100 px): una columna, con la gráfica fija arriba y los deslizadores debajo.
   La ecuación va en la cabecera de la gráfica, para que se vea siempre junto a la curva. */
.workspace{grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}
.control-panel{order:1}.graph-panel{order:2;position:sticky;top:16px}
.control-panel h2{margin-bottom:20px}
.graph-heading{flex-wrap:wrap}
.graph-heading .equation{margin:0;padding:8px 16px;font-size:19px;min-height:0;text-align:left;font-variant-numeric:tabular-nums}
.equation.purple-eq{background:#f2edff;color:var(--purple)}
.graph-hint{font-size:10.5px;color:var(--muted)}
.graph-board{height:calc(100vh - 170px);height:calc(100svh - 170px);min-height:420px;max-height:680px}
.ctrl-col>:first-child{margin-top:0}
.ctrl-col+.ctrl-col{border-top:1px solid #edf0f5;padding-top:20px;margin-top:4px}

@media(max-width:1099px){
  .page-shell{padding-top:35px}
  .workspace{grid-template-columns:minmax(0,1fr);gap:15px}
  .graph-panel{order:1;top:0;z-index:5;padding:10px 12px;border-radius:14px;box-shadow:0 8px 24px #263d600d}
  .control-panel{order:2;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 36px;align-items:start}
  .ctrl-col+.ctrl-col{border-top:0;padding-top:0;margin-top:0}
  /* gráfica cuadrada, como mucho media pantalla de alto */
  .graph-board{height:auto;min-height:0;aspect-ratio:1/1;max-height:50vh;max-height:50svh}
  .graph-heading{margin-bottom:8px}.graph-heading .equation{font-size:17px;padding:6px 12px}
  .graph-legend{gap:6px 12px;font-size:10px;margin-top:8px}
}
@media(max-width:600px){.topbar{height:68px;padding:0 16px}.brand-mark{width:38px;height:38px}.page-shell{padding:27px 14px 40px}.screen h1{font-size:29px}.lead{font-size:14px}.home-grid{grid-template-columns:1fr;gap:14px;margin-top:23px}.lab-card{min-height:260px;padding:22px}.mini-graph{right:18px;top:35px;transform:scale(.8);transform-origin:top right}.control-panel{padding:18px;grid-template-columns:1fr}.ctrl-col+.ctrl-col{border-top:1px solid #edf0f5;padding-top:18px;margin-top:10px}.graph-hint{display:none}input[type=range]{height:28px}.eyebrow{margin-top:19px}}
