/* Presentación en pantalla interactiva. El contenido usa cuaderno.css (mismo diseño del PDF). */
:root { --z: 1.5; --navy: #1F3A5F; --teal: #0E6E6C; --amber: #B86E00; --ink: #1B2430; --mut: #5B6876; --rule: #C9D3DC; --paper: #F6F8FA; }
html { font-size: 16px; }
body { margin: 0; background: #EEF2F5; font-family: "Inter", system-ui, sans-serif; color: var(--ink); }
button { font: 600 15px "Poppins", sans-serif; cursor: pointer; border: 1.5px solid var(--navy); background: white; color: var(--navy); border-radius: 10px; padding: 10px 16px; min-height: 48px; }
button:hover { background: #E7EEF5; }
button.prim { background: var(--navy); color: white; }
button.prim:hover { background: #2B4C78; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; }

#barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; background: white; border-bottom: 4px solid var(--teal); padding: 8px 18px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px Poppins; color: var(--navy); }
.marca img { height: 42px; }
#migas { flex: 1; font: 500 15px Inter; color: var(--mut); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#migas a { color: var(--navy); text-decoration: none; font-weight: 600; }
.herr { display: flex; gap: 8px; }
#app { max-width: 1500px; margin: 0 auto; padding: 22px 26px 60px; }
#pie { text-align: center; font-size: 12px; color: var(--mut); padding: 12px; }

/* inicio y grado */
.portada-web { background: var(--navy); color: white; border-radius: 22px; padding: 34px 40px; }
.portada-web .eye { font: 600 15px Poppins; letter-spacing: 3px; text-transform: uppercase; color: #9FD3CF; }
.portada-web h1 { font: 700 40px/1.1 Poppins; margin: 8px 0; color: white; }
.portada-web p { font-size: 18px; color: #DCE7F0; margin: 0; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.tarjeta { display: block; background: white; border-radius: 18px; padding: 22px; text-decoration: none; border: 2px solid transparent; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.tarjeta:hover { border-color: var(--teal); }
.tarjeta .g { font: 800 46px Poppins; color: var(--navy); }
.tarjeta .s { color: var(--mut); font-size: 15px; }
.buscar { margin: 22px 0 8px; display: flex; gap: 10px; }
.buscar input { flex: 1; font: 500 20px Inter; padding: 12px 16px; border: 2px solid var(--rule); border-radius: 12px; }
.unidad-web { background: white; border-radius: 18px; padding: 18px 22px; margin-top: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.unidad-web h2 { font: 700 24px Poppins; color: var(--navy); margin: 0 0 4px; display: flex; gap: 12px; align-items: center; }
.unidad-web h2 .num { background: var(--navy); color: white; border-radius: 10px; padding: 2px 12px; font-size: 20px; }
.unidad-web .desc { color: var(--mut); margin-bottom: 10px; }
.lista-mod { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.mod-link { display: flex; gap: 12px; align-items: center; text-decoration: none; border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-height: 56px; }
.mod-link:hover { border-color: var(--teal); background: #F3FAF9; }
.mod-link .c { font: 700 17px Poppins; color: var(--navy); white-space: nowrap; }
.mod-link .t { font-size: 16px; flex: 1; }
.mod-link .pg { font-size: 13px; color: var(--mut); white-space: nowrap; }
.chipn { font: 700 11px Poppins; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; margin-left: 6px; }
.chipn.Refuerzo { background: var(--amber); color: white; }
.chipn.breve { background: var(--paper); color: var(--mut); border: 1px solid var(--rule); }
.prueba-link { display: flex; align-items: center; gap: 16px; margin-top: 18px; background: white; border: 2px solid var(--navy); border-radius: 18px; padding: 18px 22px; text-decoration: none; }
.prueba-link b { font: 700 22px Poppins; color: var(--navy); }

/* módulo */
.m-cab { display: flex; gap: 18px; align-items: flex-start; background: white; border: 2px solid var(--navy); border-radius: 18px; padding: 16px 20px; }
.m-cab .cod { background: var(--navy); color: white; font: 700 28px Poppins; border-radius: 12px; padding: 8px 14px; white-space: nowrap; }
.m-cab .cod small { display: block; font: 500 13px Inter; color: #CFE0EE; }
.m-cab h1 { font: 700 28px/1.15 Poppins; color: var(--navy); margin: 0; }
.m-cab .of { color: var(--mut); font-size: 15px; margin-top: 6px; }
.m-cab .meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.m-cab .meta span { border: 1px solid var(--teal); color: var(--teal); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.m-cab .meta span.pg { border-color: var(--navy); color: var(--navy); }
.pestanas { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.pestanas button { font-size: 18px; padding: 12px 22px; }
.pestanas button.on { background: var(--navy); color: white; }
.vista { background: white; border-radius: 18px; padding: 22px 26px; min-height: 55vh; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.zoom { zoom: var(--z); }
.navmod { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px; }

/* ejemplos paso a paso */
.ej-web .t { font: 700 15px Poppins; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.ej-web .dado { font-size: 22px; margin: 6px 0 10px; }
.ej-web .fig { margin: 6px 0 10px; }
.pasos-web { list-style: none; padding: 0; margin: 0; font-size: 21px; }
.pasos-web li { padding: 6px 0; border-bottom: 1px dashed #E1E7EC; }
.pasos-web li.oculto { visibility: hidden; }
.pasos-web li.nuevo { animation: aparece .35s ease; background: #FFFBEA; }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pasos-web .eq { display: inline-block; width: 20px; color: var(--mut); }
.ej-web .nota-w { margin-top: 12px; color: var(--mut); font-size: 16px; }
.controles { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.controles .info { color: var(--mut); font-size: 15px; margin: 0 6px; }

/* práctica proyectada */
.rejilla { display: grid; gap: 18px; }
.rejilla.n1 { grid-template-columns: 1fr; }
.rejilla.n2 { grid-template-columns: 1fr 1fr; }
.rejilla.n4 { grid-template-columns: 1fr 1fr; }
.ejw { border: 2px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.ejw .q { display: flex; gap: 12px; font-size: 21px; }
.ejw .q .k { background: var(--navy); color: white; font: 700 17px Poppins; border-radius: 50%; min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.ejw .fig { margin: 10px 0 0 48px; }
.ejw .fig svg { max-width: 100%; height: auto; }
.ejw ul.opw { list-style: none; margin: 12px 0 0 48px; padding: 0; font-size: 20px; }
.ejw ul.opw li { display: flex; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; }
.ejw .bur { width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%; font: 700 14px Poppins; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.ejw .rc { margin: 12px 0 0 48px; font: 600 16px Poppins; color: var(--navy); display: flex; gap: 10px; align-items: center; }
.ejw .rc span { display: inline-block; width: 180px; height: 40px; border: 2px solid var(--navy); border-radius: 8px; }
.ejw .partes { margin: 10px 0 0 48px; font-size: 19px; }
.ejw .partes div { margin: 6px 0; }
.ejw .ind { font: 600 12px Poppins; color: var(--mut); margin-left: 48px; margin-top: 8px; }
.corr .ok { background: #E4F4EA; outline: 2px solid #2E8B3E; }
.corr .ok .bur { background: #2E8B3E; color: white; border-color: #2E8B3E; }
.por { font-size: 14px; color: var(--mut); margin-left: 6px; }
.corr .ok .por { color: #1F6B33; font-weight: 600; }
.respw { margin: 12px 0 0 48px; background: #E4F4EA; border-radius: 10px; padding: 10px 14px; font-size: 18px; }
.aviso-maestro { background: #FFF4E0; border: 2px solid var(--amber); border-radius: 12px; padding: 10px 14px; font-weight: 600; color: #7A4A00; margin-bottom: 14px; }

/* pizarra */
#pizarra { position: fixed; inset: 0; z-index: 50; }
#lienzo { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.pz-herr { position: absolute; right: 18px; top: 80px; display: flex; flex-direction: column; gap: 8px; background: white; padding: 10px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.pz-herr .col { width: 48px; height: 48px; border-radius: 50%; border: 3px solid white; outline: 2px solid var(--rule); padding: 0; }
.pz-herr .col.on { outline: 3px solid var(--amber); }
#bPizarra.on { background: var(--amber); color: white; border-color: var(--amber); }

/* el contenido del cuaderno dentro de la web */
.ejw .fig svg, .ej-web .fig svg { width: min(100%, 340px); height: auto; }
.vista .figura svg.fig { width: min(100%, 420px); height: auto; }
.vista .figura svg { max-width: 100%; height: auto; }
.vista .tabla { width: auto; }
@media (max-width: 900px) { .rejilla.n2, .rejilla.n4 { grid-template-columns: 1fr; } :root { --z: 1.1; } }

/* mascota */
.coqui-box { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.coqui-box img { height: 130px; flex: none; }
.coqui-box .globo { position: relative; background: white; border: 2.5px solid #4C86AF; border-radius: 18px; padding: 12px 18px; font: 500 19px Inter; color: var(--ink); max-width: 760px; }
.coqui-box .globo::before { content: ""; position: absolute; left: -14px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right: 14px solid #4C86AF; border-left: 0; }
.coqui-box .globo b { color: var(--navy); }
.coqui-box.anim img { animation: salta .5s ease; }
@keyframes salta { 0% { transform: translateY(0); } 40% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
body.sin-coqui .coqui-box { display: none; }
#bCoqui.off { opacity: .45; }

/* Aviso de material no oficial, leyenda de etiquetas y guía de uso */
.aviso-of { margin-top: 8px; font-size: 15px; font-style: italic; color: #4A5A6A; }
.portada-web .aviso-of { color: inherit; opacity: .9; }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -4px 0 16px; font-size: 15px; color: #4A5A6A; }
.leyenda .chipn { margin: 0 6px 0 0; }
.como-usar { background: #fff; border: 1px solid #D5DEE6; border-radius: 14px; padding: 16px 22px; margin-top: 18px; font-size: 17px; }
.como-usar h2 { font: 700 20px "Poppins", sans-serif; margin: 0 0 8px; color: #1B3A5C; }
.como-usar ol { margin: 0; padding-left: 22px; line-height: 1.5; }

/* Inglés (programa bilingüe) */
#barra .idioma { font-weight: 800; letter-spacing: .04em; min-width: 52px; }
.tarjeta.pronto { opacity: .55; cursor: default; }
.m-cab .of .lbl { font-weight: 700; font-style: normal; }
.m-cab .of.en { margin-top: 6px; font-style: normal; color: var(--ink, #1B2430); }
.m-cab .of .nota-tr { display: block; margin-top: 3px; font-size: .82em; font-style: italic; color: #6B7785; }

/* Ciencias · modelos numerados y datos de laboratorio */
.acciones-inicio { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.acciones-inicio .prueba-link { flex: 1 1 14rem; margin: 0; }
.portada-web { background: linear-gradient(120deg, #1c365a, #086968); }
.modelos { margin: 1rem 0; }
.modelos img, .ejw .fig img { max-width: 100%; height: auto; }
.modelos figcaption { color: #435c71; font-size: .78em; }
.tabla-scroll { overflow-x: auto; }
.tabla-ciencias { width: 100%; border-collapse: collapse; color: #192b3d; font-size: .84em; }
.tabla-ciencias caption { text-align: left; color: #1c365a; font-weight: 700; padding: .35em 0; }
.tabla-ciencias th, .tabla-ciencias td { text-align: left; padding: .42em .55em; border-bottom: 1px solid #b7cbd3; vertical-align: top; }
.tabla-ciencias thead { background: #1c365a; color: #fff; }
.tabla-ciencias tbody tr:nth-child(odd) { background: #e8f4f2; }
.marca-estructura { display: inline-block; border-radius: 100%; min-width: 1.65em; color: white; text-align: center; }
#pie { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem; }
#pie img { height: auto; }
.modelos-columna { display: none; }
@media (max-width: 650px) {
  #barra { position: static; flex-wrap: wrap; gap: .4rem .75rem; }
  #migas { flex: 0 0 100%; }
  #barra .herr { width: 100%; flex-wrap: wrap; gap: .35rem; margin-left: 0; }
  #barra .herr button { font-size: .85rem; padding: .4rem .55rem; }
  .m-cab { flex-direction: column; gap: .65rem; }
  .m-cab h1 { font-size: 1.35rem; }
  .coqui-box img { height: 64px; }
  .coqui-box .globo { font-size: .95rem; padding: .55rem .65rem; }
  .modelos .modelos-panorama { display: none; }
  .modelos-columna { display: grid; gap: .5rem; }
  .modelos-columna img { width: min(100%, 19rem); }
}
#pie img { max-width: min(100%, 520px); height: auto; }
.flujo { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .55rem; padding: 0; list-style-position: inside; }
.flujo li { padding: .55rem; background: #e8f4f2; border-radius: .6rem; color: #1c365a; }
.flujo li:nth-child(2) { background: #e9eff9; }
.flujo li:nth-child(3) { background: #f1eaf9; }
.flujo li:nth-child(4) { background: #f9efe4; }
.vocabulario dt { font-weight: 700; color: #1c365a; }
.vocabulario dd { margin: 0 0 .45rem; }
