@charset "UTF-8";
/* ==========================================================================
   TutorLab — El Lab (/lab/): página de misterio. Matraz burbujeante, expediente censurado y aviso.
   ========================================================================== */
.page-lab { --lab-g: #7cf3c8; --lab-b: #2f6bff; }
.page-lab .marker { line-height: 1.25; }

/* Hero */
.lab-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(8rem, 13vw, 10rem); }
.lab-grid-bg { /* cuadrícula de "plano técnico" que se desvanece */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(124,243,200,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(124,243,200,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
  animation: lab-grid 30s linear infinite;
}
@keyframes lab-grid { to { background-position: 44px 44px, 44px 44px; } }
.lab-hero::after { content: ""; position: absolute; z-index: -1; right: 5%; top: 18%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,243,200,.22), rgba(47,107,255,.12) 55%, transparent); filter: blur(10px); pointer-events: none; }
.lab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lab-hero h1 { margin-top: 1rem; font-size: clamp(2.8rem, 7vw, 5.6rem); }
.lab-hero .lead-in { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34rem; }
.lab-status { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.8rem; padding: .5rem .95rem; border-radius: 999px; font: 600 .82rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--lab-g); background: rgba(124,243,200,.08); border: 1px solid rgba(124,243,200,.3); }
.lab-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lab-g); box-shadow: 0 0 10px var(--lab-g); animation: lab-blink 1.4s steps(1) infinite; }
@keyframes lab-blink { 50% { opacity: .2; } }
[data-decrypt] { font-variant-numeric: tabular-nums; }

/* Matraz */
.lab-flask-wrap { display: grid; place-items: center; }
.lab-flask { width: clamp(200px, 26vw, 320px); height: auto; overflow: visible; filter: drop-shadow(0 0 30px rgba(124,243,200,.25)); animation: lab-float 6s ease-in-out infinite; }
@keyframes lab-float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.lab-glass { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.75); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lab-shine { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 4; stroke-linecap: round; }
.lab-liquid { opacity: .85; }
.lab-wave { animation: lab-wave 3s linear infinite; }
@keyframes lab-wave { to { transform: translateX(-100px); } }
.lab-b { fill: rgba(255,255,255,.8); animation: lab-rise 3.2s ease-in infinite; }
.lab-b.b2 { animation-delay: .7s; animation-duration: 2.6s; } .lab-b.b3 { animation-delay: 1.4s; } .lab-b.b4 { animation-delay: 2s; animation-duration: 2.4s; } .lab-b.b5 { animation-delay: .3s; animation-duration: 3.6s; }
@keyframes lab-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(-80px); opacity: 0; } }
.lab-pop { fill: var(--lab-g); opacity: 0; animation: lab-pop 3s ease-out infinite; }
.lab-pop.p2 { animation-delay: 1s; } .lab-pop.p3 { animation-delay: 2s; }
@keyframes lab-pop { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-22px) scale(1.1); opacity: 0; } }

/* Expediente clasificado */
.lab-file-sec { padding-top: 0; }
.lab-file {
  position: relative; max-width: 44rem; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.lab-file-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lab-file-head b { color: var(--ink); font-weight: 700; }
.lab-stamp {
  position: absolute; right: clamp(1rem, 4vw, 2.4rem); top: clamp(3.4rem, 7vw, 4rem); padding: .35rem .8rem; border: 3px solid #ff5a5f; border-radius: 8px;
  font: 800 clamp(.9rem, 2vw, 1.2rem)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ff5a5f; transform: rotate(-12deg); opacity: .85;
  mix-blend-mode: screen;
}
.lab-file.is-visible .lab-stamp, .lab-file.reveal.is-in .lab-stamp { animation: lab-stamp .5s cubic-bezier(.2,1.6,.4,1) .3s backwards; }
@keyframes lab-stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }
.lab-file dl { margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.lab-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.lab-row dt { font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.lab-row dd { margin: 0; }
.lab-redact {
  position: relative; display: inline-block; width: calc(var(--w) * 1.25ch); max-width: 100%; height: 1.25em; vertical-align: middle; border-radius: 3px;
  color: transparent; background: var(--ink); cursor: help; overflow: hidden; user-select: none; outline: none;
  transition: transform .2s;
}
.lab-redact::after { /* brillo que recorre la barra */
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: lab-sheen 4.5s ease-in-out infinite; animation-delay: calc(var(--w) * .2s);
}
@keyframes lab-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.lab-redact[data-msg]::before {
  content: attr(data-msg); position: absolute; inset: 0; display: grid; place-items: center start; padding-left: .5em; z-index: 1;
  color: #000; font: 700 .8rem/1 var(--font); white-space: nowrap; background: var(--lab-g);
}
.lab-redact:hover, .lab-redact:focus-visible { transform: scaleY(1.12); }
.lab-file-note { margin-top: 1.6rem; font-size: .8rem; color: var(--ink-3); }

/* Lo que sí podemos decir */
.lab-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lab-head h2, .lab-notify h2 { margin-top: .9rem; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.lab-can-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lab-can { padding: 1.6rem; border-radius: 22px; background: var(--glass-bg); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.lab-can-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(124,243,200,.1); border: 1px solid rgba(124,243,200,.3); }
.lab-can-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--lab-g); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lab-can h3 { margin-top: 1.1rem; font-size: 1.25rem; }
.lab-can p { margin-top: .5rem; color: var(--ink-2); }

/* Aviso */
.lab-notify-box { text-align: center; display: grid; justify-items: center; max-width: 42rem; }
.lab-notify p { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }
.lab-notify .btn { margin-top: 1.8rem; }
.lab-notify .lab-note { font-size: .82rem; color: var(--ink-3); margin-top: 1rem; }
.lab-notify .btn svg { transform-origin: 50% 10%; animation: lab-ring 3s ease-in-out infinite; }
@keyframes lab-ring { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

@media (max-width: 900px) {
  .lab-hero-grid { grid-template-columns: 1fr; }
  .lab-flask-wrap { order: -1; }
  .lab-flask { width: 180px; }
  .lab-can-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lab-row { grid-template-columns: 1fr; gap: .4rem; } .lab-stamp { top: 1.2rem; } }
@media (prefers-reduced-motion: reduce) {
  .lab-grid-bg, .lab-flask, .lab-wave, .lab-b, .lab-pop, .lab-redact::after, .lab-status i, .lab-notify .btn svg { animation: none; }
  .lab-b, .lab-pop { opacity: 0; }
}
.lab-stamp { top: clamp(5rem, 9vw, 6rem); } /* debajo del encabezado, sin tapar el número del expediente */

/* ---------- Video de portada (logo de TutorLab entre dispositivos) ----------
   Mismo patrón que los otros videos: opaco, desenfocado y fundido con el negro de la página,
   para que el título siga siendo lo principal. */
.lab-cover { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%); }
.lab-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: blur(3px) saturate(1.05) brightness(.85); transform: scale(1.1); }
.lab-cover::after { /* velo que oscurece detrás del texto (izquierda) y deja respirar el centro */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 22% 50%, color-mix(in srgb, var(--paper) 70%, transparent), transparent 75%),
              linear-gradient(90deg, color-mix(in srgb, var(--paper) 45%, transparent), transparent 55%);
}
@media (max-width: 900px) {
  .lab-cover video { opacity: .3; filter: blur(2px) brightness(.8); }
  .lab-cover::after { background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--paper) 55%, transparent) 55%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .lab-cover video { display: none; } }

/* El matraz vive junto al expediente; el hero queda solo con el texto sobre el video */
.lab-hero-grid { grid-template-columns: minmax(0, 46rem); }
.lab-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.lab-file-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lab-file-row .lab-file { margin: 0; max-width: none; }
.lab-file-row .lab-flask-wrap { position: relative; }
.lab-file-row .lab-flask-wrap::before { content: ""; position: absolute; z-index: -1; inset: 5% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,243,200,.2), rgba(47,107,255,.1) 55%, transparent); filter: blur(10px); }
.lab-file-row .lab-flask { width: clamp(200px, 24vw, 300px); }
@media (max-width: 900px) {
  .lab-file-row { grid-template-columns: 1fr; }
  .lab-file-row .lab-flask { width: 170px; }
}

/* Matraz: en vez de burbujas suben ceros y unos (código "cocinándose") */
.lab-b, .lab-pop { font: 700 15px/1 ui-monospace, "SF Mono", Menlo, monospace; text-anchor: middle; }
.lab-b { fill: rgba(255,255,255,.9); }
.lab-b.b1, .lab-b.b4 { font-size: 18px; }
.lab-b.b6 { animation-delay: 1.1s; animation-duration: 2.9s; }
.lab-pop { fill: var(--lab-g); font-size: 13px; }

/* Barras censuradas: el mensaje se ve completo aunque la barra sea corta,
   y el brillo se hace con el fondo (sin desbordar la barra) */
.lab-redact {
  overflow: visible;
  background: linear-gradient(100deg, var(--ink) 40%, #fff 50%, var(--ink) 60%) 0 0 / 300% 100% no-repeat, var(--ink);
  background-color: var(--ink);
  animation: lab-sheen2 4.5s ease-in-out infinite; animation-delay: calc(var(--w) * .2s);
}
.lab-redact::after { content: none; }
@keyframes lab-sheen2 { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.lab-redact[data-msg]::before { right: auto; min-width: 100%; width: max-content; padding: 0 .6em; border-radius: 3px; box-shadow: 0 6px 18px -6px rgba(124,243,200,.6); }
@media (prefers-reduced-motion: reduce) { .lab-redact { animation: none; } }

/* Íconos de las apps que salen del matraz: Secretario, Verb Rush, Dashboard, TutorLab Notes y una app
   en desarrollo (sin ícono todavía). Cada uno sale por la boca, sube girando un poco y se desvanece. */
.lab-flask-wrap { position: relative; }
.lab-apps { position: absolute; left: 50%; top: 14%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.lab-app { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; opacity: 0;
  animation: lab-app 7.5s cubic-bezier(.25,.7,.3,1) infinite; animation-delay: calc(var(--i) * 1.5s); }
.lab-app img, .lab-app-new { display: block; width: 100%; height: 100%; border-radius: 22.5%; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7), 0 0 24px rgba(124,243,200,.25); }
.lab-app-new { display: grid; place-items: center; font: 700 1.5rem/1 ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; color: var(--lab-g, #7cf3c8);
  background: linear-gradient(150deg, #1b2230, #0d1118); border: 1.5px dashed rgba(124,243,200,.55); box-sizing: border-box; }
@keyframes lab-app {
  0%   { opacity: 0; transform: translate(0, 40px) scale(.2) rotate(0); }
  8%   { opacity: 1; transform: translate(0, -6px) scale(.7) rotate(0); }
  42%  { opacity: 1; transform: translate(calc(var(--dx) * 1.3), -70px) scale(1) rotate(var(--r)); }
  56%  { opacity: 0; transform: translate(calc(var(--dx) * 1.45), -85px) scale(.95) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.45), -85px) scale(.95) rotate(var(--r)); }
}
@media (max-width: 760px) {
  .lab-app { width: 44px; height: 44px; left: -22px; top: -22px; }
  @keyframes lab-app {
    0%   { opacity: 0; transform: translate(0, 30px) scale(.2); }
    8%   { opacity: 1; transform: translate(0, -8px) scale(.75); }
    45%  { opacity: 1; transform: translate(calc(var(--dx) * .9), -55px) scale(1) rotate(var(--r)); }
    62%, 100% { opacity: 0; transform: translate(calc(var(--dx) * 1), -68px) scale(.95) rotate(var(--r)); }
  }
  .lab-file-row .lab-flask-wrap { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-app { animation: none; opacity: 1; transform: translate(var(--dx), -100px) rotate(var(--r)); }
}
