/* NikaPlan v3: número de día claro, estados legibles en la tabla, calendario con avance y alerta de pendientes. */

/* número de día: "DÍA 1" */
.pe-dia-n { flex-direction: column; line-height: 1; width: 44px; height: 44px; border-radius: 13px; gap: 1px; }
.pe-dia-n small { font-size: .5rem; font-weight: 900; letter-spacing: 1.2px; opacity: .85; }
.pe-dia-head { grid-template-columns: 46px 1fr auto 130px 22px; }
.pe-dia-n { display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }

/* estados en la tabla: chip en una sola línea, con color */
.pe-est { display: inline-block; white-space: nowrap; padding: 4px 12px; border-radius: 99px; font-size: .74rem; font-weight: 800; border: 1px solid transparent; }
.pe-est.est-nuevo { color: var(--pe-mut); background: color-mix(in srgb, var(--pe-mut) 14%, transparent); border-color: color-mix(in srgb, var(--pe-mut) 30%, transparent); }
.pe-est.est-curso { color: #b45309; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .45); }
.pe-est.est-listo { color: #047857; background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .5); }
.pe-est.atrasado { color: #b91c1c; background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .5); }
body.dark-mode .pe-est.est-curso, body.tema-premium .pe-est.est-curso { color: #fcd34d; }
body.dark-mode .pe-est.est-listo, body.tema-premium .pe-est.est-listo { color: #6ee7b7; }
body.dark-mode .pe-est.atrasado, body.tema-premium .pe-est.atrasado { color: #fca5a5; }
.pe-tabla td:nth-child(7), .pe-tabla th:nth-child(7) { white-space: nowrap; }

/* calendario: días cumplidos en verde, con temas pendientes en ámbar */
.pe-cal-leyenda { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; font-size: .74rem; font-weight: 800; color: var(--pe-mut); }
.pe-cal-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pe-cal-leyenda i.ok { background: #10b981; } .pe-cal-leyenda i.pend { background: #f59e0b; } .pe-cal-leyenda i.hoy { background: transparent; box-shadow: inset 0 0 0 2px var(--pe-acc); } .pe-cal-leyenda i.ex { background: #ef4444; }
.pe-cal-c.pasado-ok { background: rgba(16, 185, 129, .22); border-color: rgba(16, 185, 129, .65); }
.pe-cal-c.pasado-pend { background: rgba(245, 158, 11, .2); border-color: rgba(245, 158, 11, .7); }
.pe-cal-ok { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #10b981; color: #fff; font-size: .62rem; margin-left: 4px; vertical-align: 1px; animation: pePop .4s ease both; }
.pe-cal-c.pasado-pend .pe-cal-h { color: #b45309; font-weight: 800; }
body.dark-mode .pe-cal-c.pasado-pend .pe-cal-h, body.tema-premium .pe-cal-c.pasado-pend .pe-cal-h { color: #fcd34d; }

/* alerta de temas sin estudiar */
.pe-pend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(245, 158, 11, .7);
  background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(239, 68, 68, .1)); }
.pe-pend > div { flex: 1; min-width: 220px; }
.pe-pend b { font-size: .96rem; font-weight: 900; }
.pe-pend p { margin: 3px 0 0; font-size: .84rem; opacity: .85; }
.pe-pend-ico { font-size: 1.7rem; animation: peLate 1.8s ease-in-out infinite; }
.pe-pend-lista { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: 40vh; overflow-y: auto; }
.pe-pend-dia { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); }
.pe-pend-dia > b { display: block; font-size: .84rem; margin-bottom: 6px; }
.pe-pend-t { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: .86rem; cursor: pointer; }
.pe-pend-t input { position: absolute; opacity: 0; pointer-events: none; }
.pe-modal-c .pe-field select { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #cbd5e1); background: transparent; color: inherit; }
.pe-item-t small.movido { color: #7c3aed; font-weight: 800; }
body.dark-mode .pe-item-t small.movido, body.tema-premium .pe-item-t small.movido { color: #c4b5fd; }

@media (prefers-reduced-motion: reduce) { .pe-pend-ico, .pe-cal-ok { animation: none; } }

/* guía sugerida, estimación de fin de temas y días de repaso */
.pe-oculto { display: none; }
.pe-sug { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 14px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(124, 58, 237, .5);
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(14, 165, 233, .08)); box-shadow: var(--pe-sombra); }
.pe-sug.on { border-color: #10b981; background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(14, 165, 233, .08)); }
.pe-sug-i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(124, 58, 237, .18); border: 1px solid rgba(124, 58, 237, .45); animation: peFlota 4.5s ease-in-out infinite; }
.pe-sug-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-sug-t b { font-size: 1rem; font-weight: 900; } .pe-sug-t small { color: var(--pe-mut); font-weight: 600; font-size: .78rem; }
.pe-sug-tag { align-self: flex-start; font-size: .64rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #fff; padding: 2px 9px; border-radius: 99px; background: linear-gradient(135deg, #7c3aed, #ec4899); }
@media (max-width: 640px) { .pe-sug { grid-template-columns: auto 1fr; } .pe-sug-a { grid-column: 1 / -1; } }
.pe-estim { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .88rem; border: 1px solid rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .1); }
.pe-estim.mal { border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .1); }
.pe-fin { margin: 8px 0 0; font-size: .86rem; font-weight: 700; color: #f5d0fe; }
.pe-fin b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pe-sug-i { animation: none; } }

/* práctica del examen: choices (gratis) y escrito (NikaMed+) */
.pe-prac { margin: 14px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--pe-bord); background: var(--pe-card); box-shadow: var(--pe-sombra); }
.pe-prac-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
.pe-prac-h b { font-size: 1rem; font-weight: 900; } .pe-prac-h span { font-size: .8rem; font-weight: 800; color: var(--pe-acc); }
.pe-prac-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pe-prac-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--pe-bord); background: var(--pe-card2); color: var(--pe-txt); text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
a.pe-prac-card:hover, button.pe-prac-card:hover { transform: translateY(-4px); border-color: var(--pe-acc); box-shadow: 0 16px 32px -18px var(--pe-acc); }
.pe-prac-card i { font-style: normal; font-size: 1.6rem; display: inline-block; animation: peFlota 4.6s ease-in-out infinite; }
.pe-prac-card b { font-size: .94rem; font-weight: 900; } .pe-prac-card small { font-size: .78rem; color: var(--pe-mut); font-weight: 600; line-height: 1.4; }
.pe-prac-card.esc { border-color: rgba(245, 158, 11, .55); background: linear-gradient(135deg, rgba(245, 158, 11, .12), var(--pe-card2)); }
.pe-prac-card.oral { cursor: default; border-style: dashed; }
.pe-plus { display: inline-block; font-size: .64rem; font-weight: 900; padding: 1px 8px; border-radius: 99px; color: #1c1300; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.pe-gratis { display: inline-block; font-size: .64rem; font-weight: 900; padding: 1px 8px; border-radius: 99px; color: #047857; background: rgba(16, 185, 129, .16); border: 1px solid rgba(16, 185, 129, .45); }
.pe-plus-lista { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .pe-prac-card i { animation: none; } }

/* vista previa de una guía sugerida */
.pe-sug-a { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pe-prev-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; text-align: center; }
.pe-prev-kpis > div { padding: 10px 6px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); background: rgba(124, 58, 237, .08); }
.pe-prev-kpis b { display: block; font-size: 1.4rem; font-weight: 900; color: #7c3aed; } .pe-prev-kpis span { font-size: .72rem; font-weight: 700; opacity: .8; }
.pe-prev-h { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 8px; opacity: .75; }
.pe-prev-uni { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-prev-chip { font-size: .78rem; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(124, 58, 237, .4); background: rgba(124, 58, 237, .1); }
.pe-prev-dia { padding: 14px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); display: flex; flex-direction: column; gap: 8px; }
.pe-prev-dia > b { font-size: .96rem; } .pe-prev-dia small { opacity: .75; font-size: .76rem; }
.pe-prev-dia ul { margin: 0; padding-left: 18px; font-size: .82rem; display: flex; flex-direction: column; gap: 4px; }
.pe-prev-temas { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; }
.pe-prev-temas i { font-style: normal; font-size: .64rem; font-weight: 900; padding: 2px 8px; border-radius: 99px; margin-right: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pe-prev-lista { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.pe-prev-lista details { border: 1px solid var(--border, #cbd5e1); border-radius: 12px; }
.pe-prev-lista summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: .84rem; }
.pe-prev-lista summary::-webkit-details-marker { display: none; }
.pe-prev-lista .n { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: .74rem; color: #fff; background: linear-gradient(135deg, #0284c7, #7c3aed); }
.pe-prev-lista .t { flex: 1; font-weight: 700; } .pe-prev-lista .h { font-size: .72rem; opacity: .7; white-space: nowrap; }
.pe-prev-lista ul { margin: 0; padding: 0 14px 10px 44px; font-size: .8rem; display: flex; flex-direction: column; gap: 3px; }
.pe-prev-slider { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; }
.pe-prev-slider input[type=range] { flex: 1; accent-color: #7c3aed; }
.pe-prev-slider output { min-width: 78px; text-align: right; font-weight: 900; color: #7c3aed; }

/* vista previa mejorada: controles, pestañas, calendario real y herramientas */
.pe-prev .pe-modal-c, .pe-modal-c.pe-prev { max-width: 780px; }
.pe-prev-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 16px; align-items: end; margin: 12px 0; padding: 12px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); background: rgba(124, 58, 237, .06); }
.pe-prev-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 800; opacity: .9; }
.pe-prev-ctl input[type=date], .pe-prev-ctl select { font: inherit; font-size: .86rem; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border, #cbd5e1); background: transparent; color: inherit; }
.pe-prev-ctl .pe-prev-slider { margin: 0; }
@media (max-width: 640px) { .pe-prev-ctl { grid-template-columns: 1fr; } }
.pe-prev-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.pe-prev-tabs button { font: inherit; font-size: .8rem; font-weight: 800; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border, #cbd5e1); background: transparent; color: inherit; cursor: pointer; transition: .2s; }
.pe-prev-tabs button:hover { border-color: #7c3aed; }
.pe-prev-tabs button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0284c7, #7c3aed); }
.pe-prev-body { min-height: 200px; max-height: 52vh; overflow-y: auto; padding-right: 4px; animation: peUp .3s ease both; }
.pe-prev-chip { border-color: color-mix(in srgb, var(--c, #7c3aed) 55%, transparent); background: color-mix(in srgb, var(--c, #7c3aed) 12%, transparent); display: inline-flex; align-items: center; gap: 6px; }
.pe-prev-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #7c3aed); display: inline-block; }
.pe-pv-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.pe-pv-mh { font-weight: 900; font-size: .88rem; margin-bottom: 6px; }
.pe-pv-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pe-pv-g u { text-decoration: none; text-align: center; font-size: .64rem; font-weight: 900; opacity: .6; }
.pe-pv-g .d, .pe-pv-g .v { min-height: 44px; border-radius: 9px; }
.pe-pv-g .d { border: 1px solid color-mix(in srgb, var(--border, #cbd5e1) 70%, transparent); padding: 3px 4px; display: flex; flex-direction: column; font-size: .7rem; font-family: inherit; color: inherit; background: transparent; text-align: left; }
.pe-pv-g .d b { font-size: .74rem; } .pe-pv-g .d small { font-size: .56rem; opacity: .85; font-weight: 700; }
.pe-pv-g button.d.on { cursor: pointer; background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); transition: transform .15s; }
.pe-pv-g button.d.on:hover { transform: translateY(-2px); }
.pe-pv-g button.d.sel { box-shadow: 0 0 0 2px var(--c); }
.pe-pv-g .d.ex { background: rgba(239, 68, 68, .2); border-color: #ef4444; }
.pe-pv-g .d.desc { opacity: .55; background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(148, 163, 184, .2) 5px 10px); }
.pe-pv-det { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); display: flex; flex-direction: column; gap: 3px; font-size: .84rem; }
.pe-pv-det.vacio { opacity: .7; text-align: center; border-style: dashed; }
.pe-pv-det ul { margin: 6px 0 0; padding-left: 18px; font-size: .8rem; }
.pe-prev-herr { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.pe-prev-herr > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border, #cbd5e1); }
.pe-prev-herr i { grid-row: 1 / 3; font-style: normal; font-size: 1.4rem; align-self: center; animation: peFlota 5s ease-in-out infinite; }
.pe-prev-herr b { font-size: .86rem; } .pe-prev-herr span { font-size: .76rem; opacity: .8; line-height: 1.4; }
/* herramientas dentro del plan */
.pe-herr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; padding: 10px 14px; border-radius: 16px; border: 1px dashed var(--pe-bord); background: var(--pe-card); }
.pe-herr-t { font-size: .76rem; font-weight: 900; color: var(--pe-mut); margin-right: 4px; }
.pe-herr { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--pe-bord); background: var(--pe-card2); color: var(--pe-txt); text-decoration: none; font-size: .78rem; font-weight: 800; transition: transform .2s, border-color .2s; }
.pe-herr:hover { transform: translateY(-2px); border-color: var(--pe-acc); }
.pe-herr i { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .pe-prev-herr i { animation: none; } .pe-prev-body { animation: none; } }

/* recorrido virtual de la guía */
.pe-tour-top { margin-bottom: 6px; padding-right: 36px; }
.pe-tour-k { font-size: .66rem; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, #0284c7, #7c3aed, #ec4899); }
.pe-tour-top h3 { margin: 8px 0 2px; }
.pe-tour-pasos { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.pe-tour-pasos button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .76rem; font-weight: 800; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border, #cbd5e1); background: transparent; color: inherit; cursor: pointer; opacity: .7; transition: .25s; white-space: nowrap; }
.pe-tour-pasos button i { font-style: normal; }
.pe-tour-pasos button.ok { opacity: 1; border-color: rgba(16, 185, 129, .6); }
.pe-tour-pasos button.on { opacity: 1; color: #fff; border-color: transparent; background: linear-gradient(135deg, #0284c7, #7c3aed); box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .9); }
@media (max-width: 560px) { .pe-tour-pasos button span { display: none; } .pe-tour-pasos button.on span { display: inline; } }
.pe-tour-bar { height: 4px; border-radius: 99px; background: rgba(148, 163, 184, .25); overflow: hidden; margin-bottom: 10px; }
.pe-tour-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pe-tour-anim { animation: peTourIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes peTourIn { from { opacity: 0; transform: translateX(26px); } }
.pe-tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border, #cbd5e1); }
.pe-tour-nav span { font-size: .78rem; font-weight: 800; opacity: .75; }
.pe-prev-body { max-height: 46vh; }
/* día por dentro */
.pe-dia-mock { border: 1px solid var(--border, #cbd5e1); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(124, 58, 237, .04); }
.pe-dm-h { display: flex; gap: 12px; align-items: center; }
.pe-dm-h .n { width: 46px; height: 46px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #0284c7, #7c3aed); }
.pe-dm-h .n small { font-size: .5rem; letter-spacing: 1.2px; opacity: .85; }
.pe-dm-h b { display: block; font-size: .94rem; } .pe-dm-h small { font-size: .74rem; opacity: .75; }
.pe-dm-caso { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(124, 58, 237, .4); background: rgba(124, 58, 237, .08); font-size: .8rem; }
.pe-dm-caso p { margin: 3px 0 0; opacity: .85; }
.pe-dia-mock h5 { margin: 6px 0 2px; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.pe-dm-temas, .pe-dm-dd { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pe-dm-temas li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border, #cbd5e1); font-size: .82rem; animation: peUp .4s ease both; animation-delay: calc(var(--i) * 90ms); }
.pe-dm-temas .bx { flex: 0 0 18px; height: 18px; border-radius: 6px; border: 2px solid rgba(148, 163, 184, .8); margin-top: 1px; animation: peCheckDemo 4s ease-in-out infinite; animation-delay: calc(var(--i) * 700ms); }
@keyframes peCheckDemo { 0%, 40% { background: transparent; border-color: rgba(148, 163, 184, .8); } 55%, 90% { background: #10b981; border-color: #10b981; } 100% { background: transparent; } }
.pe-dm-temas .tx { flex: 1; font-weight: 700; } .pe-dm-temas .tx small { display: block; font-weight: 600; opacity: .75; color: #d97706; margin-top: 2px; }
.pe-dm-temas .pr { font-style: normal; font-size: .62rem; font-weight: 900; padding: 2px 8px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pe-dm-dd { padding-left: 18px; list-style: disc; font-size: .8rem; opacity: .9; }
.pe-dm-ag { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.pe-dia-ag { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border, #cbd5e1); animation: peUp .4s ease both; animation-delay: calc(var(--i) * 100ms); }
.pe-dia-ag span { font-size: .74rem; font-weight: 900; color: #7c3aed; } .pe-dia-ag p { margin: 3px 0 0; font-size: .78rem; opacity: .85; }
.pe-prev-herr.grande > div { padding: 14px; }
.pe-prev-herr .v { color: #10b981; } .pe-prev-herr .a { color: #d97706; } .pe-prev-herr .r { color: #ef4444; }
.pe-fin-prev { text-align: center; padding: 18px 8px; }
.pe-fin-prev .big { font-size: 3rem; animation: peFlota 3.6s ease-in-out infinite; }
.pe-fin-prev h4 { margin: 4px 0 8px; font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .pe-tour-anim, .pe-dm-temas li, .pe-dia-ag, .pe-dm-temas .bx, .pe-fin-prev .big { animation: none !important; } .pe-tour-bar i { transition: none; } }

/* Pomodoro conectado al plan */
.pe-pomo-chip { display: inline-block; font-weight: 800; color: #b91c1c; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); padding: 0 8px; border-radius: 99px; font-size: .7rem; }
body.dark-mode .pe-pomo-chip, body.tema-premium .pe-pomo-chip { color: #fca5a5; }
.pe-kpi--pomo b { color: #ef4444; }
.pe-pomo-info { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; font-size: .84rem; border: 1px solid rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .07); }
.pe-pomo-info + .pe-herr-row { margin-top: 8px; }

/* recorrido: encabezado violeta degradado animado, horas por día y repaso visibles */
.pe-modal-c.pe-prev { overflow-x: hidden; }
.pe-tour-top { position: relative; overflow: hidden; margin: -22px -22px 14px; padding: 22px 56px 18px 22px; color: #fff; border-radius: 20px 20px 0 0;
  background: radial-gradient(520px 200px at 0% 0%, rgba(56, 189, 248, .55), transparent 60%), radial-gradient(520px 220px at 100% 100%, rgba(236, 72, 153, .55), transparent 60%), linear-gradient(135deg, #3b0764 0%, #6d28d9 50%, #a21caf 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%; animation: peAurora 12s ease-in-out infinite; }
.pe-tour-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%); transform: translateX(-120%); animation: peBrillo 5.5s ease-in-out infinite; pointer-events: none; }
.pe-tour-top h3 { color: #fff; position: relative; z-index: 1; font-size: 1.25rem; }
.pe-tour-top .pe-sub { color: #e9d5ff; position: relative; z-index: 1; }
.pe-tour-top .pe-tour-k { position: relative; z-index: 1; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.pe-modal-c.pe-prev .pe-modal-x { z-index: 3; color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.pe-pv-ritmo { font-size: .72rem; font-weight: 800; color: #7c3aed; margin-top: 2px; }
.pe-ritmo-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.pe-ritmo-box > div { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(124, 58, 237, .4); background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(14, 165, 233, .06)); }
.pe-ritmo-box i { grid-row: 1 / 3; font-style: normal; font-size: 1.5rem; animation: peFlota 4.5s ease-in-out infinite; }
.pe-ritmo-box b { font-size: 1.15rem; font-weight: 900; color: #7c3aed; } .pe-ritmo-box span { font-size: .72rem; font-weight: 700; opacity: .85; }
.pe-pv-g .d.on em { font-style: normal; font-size: .54rem; font-weight: 800; opacity: .9; }
.pe-pv-g button.d.repaso { background: repeating-linear-gradient(135deg, color-mix(in srgb, #f59e0b 22%, transparent) 0 6px, color-mix(in srgb, #f59e0b 10%, transparent) 6px 12px); border-style: dashed; }
.pe-pv-g .d, .pe-pv-g .v { min-height: 50px; }
@media (prefers-reduced-motion: reduce) { .pe-tour-top, .pe-tour-top::after, .pe-ritmo-box i { animation: none; } }

/* interruptor de Pomodoro por plan */
.pe-pomo-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pe-pomo-info.on { border-color: rgba(239, 68, 68, .6); background: linear-gradient(135deg, rgba(239, 68, 68, .12), rgba(245, 158, 11, .08)); }
.pe-pomo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pe-pomo-txt small { font-size: .76rem; opacity: .85; line-height: 1.4; }
.pe-switch { flex: 0 0 52px; height: 30px; border-radius: 99px; border: 1px solid var(--pe-bord); background: color-mix(in srgb, var(--pe-mut) 30%, transparent); position: relative; cursor: pointer; transition: background .25s, border-color .25s; padding: 0; }
.pe-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.pe-switch.on { background: linear-gradient(135deg, #ef4444, #f59e0b); border-color: transparent; }
.pe-switch.on i { transform: translateX(22px); }
.pe-switch:focus-visible { outline: 2px solid var(--pe-acc); outline-offset: 2px; }
.pe-pomo-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .06); cursor: pointer; }
.pe-pomo-check input { position: absolute; opacity: 0; pointer-events: none; }
.pe-pomo-check small { display: block; font-size: .76rem; opacity: .85; margin-top: 2px; font-weight: 600; }

/* ---- carga entre planes, fichas por día y notas «verificar con la cátedra» */
.pe-carga { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 0; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .1); font-size: .86rem; }
.pe-carga.mal { border-color: rgba(245, 158, 11, .65); background: rgba(245, 158, 11, .13); }
.pe-carga b { font-weight: 900; }
.pe-carga p { margin: 0; flex: 1 1 280px; color: var(--pe-txt); }
.pe-carga .pe-mini-f input { width: 64px; }
.pe-carga-chip { color: #b45309; font-weight: 800; }
.pe-item-t small.verificar { color: #0369a1; border-left: 3px solid #38bdf8; padding-left: 8px; margin-top: 4px; }
.pe-vfi { cursor: help; font-size: .9em; }
body.dark-mode .pe-carga-chip, body.tema-premium .pe-carga-chip { color: #fcd34d; }
body.dark-mode .pe-item-t small.verificar, body.tema-premium .pe-item-t small.verificar { color: #7dd3fc; }

/* tarjeta del hub: horas de lectura que faltan y acciones */
.pe-falta{margin:8px 0 0;font-size:.78rem;color:var(--pe-muted,#64748b)}
.pe-plan-acc{display:flex;gap:8px;margin-top:10px}
.pe-mini--del{color:#b91c1c}

/* ajustes: lista de dias */
.pe-aj-h{margin:14px 0 2px;font-size:.95rem}
.pe-aj-dias{list-style:none;margin:8px 0 10px;padding:0;max-height:240px;overflow:auto;display:grid;gap:6px}
.pe-aj-dia{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid rgba(100,116,139,.25);border-radius:10px;font-size:.8rem}
.pe-aj-dia.desc{background:rgba(16,185,129,.08)}
.pe-aj-f{flex:1;min-width:0}

.pe-kpi--clic{cursor:pointer;transition:transform .15s,box-shadow .2s}.pe-kpi--clic:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.18)}
.pe-det{max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:4px;margin:8px 0}
.pe-det-dia{display:flex;justify-content:space-between;margin-top:8px;padding:6px 10px;border-radius:8px;background:rgba(124,58,237,.12);font-size:.85rem}
.pe-det-ses{display:flex;flex-wrap:wrap;gap:4px 14px;padding:4px 10px;font-size:.78rem;opacity:.9}

.pe-graf{display:flex;align-items:flex-end;gap:5px;height:130px;margin:10px 0 4px;padding:6px 4px 0;border-bottom:1px solid rgba(148,163,184,.4);overflow-x:auto}
.pe-graf-c{position:relative;flex:1 0 20px;height:100%;display:flex;align-items:flex-end;justify-content:center}
.pe-graf-c i{position:absolute;bottom:14px;width:100%;max-height:calc(100% - 14px);border-radius:4px 4px 0 0}
.pe-graf-c i.meta{background:rgba(148,163,184,.35)}.pe-graf-c i.real{width:60%;background:#ef4444}.pe-graf-c i.real.ok{background:#22c55e}
.pe-graf-c small{position:absolute;bottom:0;font-size:.62rem;opacity:.7}.pe-graf-c.hoy small{font-weight:800;opacity:1}
.pe-graf-ley{display:flex;gap:14px;font-size:.72rem;opacity:.85;margin:2px 0 6px}.pe-graf-ley u{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;text-decoration:none}
.pe-graf-ley u.meta{background:rgba(148,163,184,.5)}.pe-graf-ley u.real{background:#ef4444}

.pe-det-fil{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.pe-det-fil select,.pe-det-mv{font-size:.76rem;padding:4px 6px;border-radius:8px;border:1px solid rgba(148,163,184,.5);background:inherit;color:inherit;max-width:100%}
.pe-det-mv{margin-left:auto}
