/* ================================================================
   brief-os.css — Web-OS Brief Experience · Fresh Prince v3
   Estilos aislados del main — solo se cargan en /brief
   ================================================================ */

/* START: BRIEF-OS-ROOT */
.bos-frame {
  max-width: 820px; width: 100%; margin: 2rem auto; min-height: 70vh;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-bdr);
  border-top: 1px solid var(--glass-top);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 120px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
/* END: BRIEF-OS-ROOT */

/* START: BRIEF-OS-TOPBAR */
.bos-topbar {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--bdr);
  font-family: var(--font-m); font-size: .6875rem;
  letter-spacing: .15em; color: var(--txt2);
}
.bos-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bos-dot--r { background: #ff5f57; }
.bos-dot--y { background: #febc2e; }
.bos-dot--g { background: #28c840; }
.bos-title { margin-left: .5rem; opacity: .85; }
.bos-time { margin-left: auto; color: var(--cyan); opacity: .7; }
/* END: BRIEF-OS-TOPBAR */

/* START: BRIEF-OS-PROGRESS */
.bos-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--bdr);
  overflow-x: auto; scrollbar-width: none;
}
.bos-progress::-webkit-scrollbar { display: none; }

.bos-prog-step {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  flex-shrink: 0; cursor: default;
  opacity: .32; transition: opacity .4s, transform .4s;
}
.bos-prog-icon {
  font-size: 1.1rem; line-height: 1;
  transition: text-shadow .4s, transform .4s;
}
.bos-prog-label {
  font-family: var(--font-m); font-size: .52rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--c30); white-space: nowrap;
  transition: color .4s;
}

/* Línea conectora entre pasos */
.bos-prog-connector {
  flex: 1; min-width: .75rem; max-width: 2.5rem;
  height: 1px; background: rgba(0,232,255,.15);
  margin-bottom: 1.2rem; /* alinear con el ícono */
  transition: background .4s;
  flex-shrink: 1;
}

/* Estado activo */
.bos-prog-step.is-active {
  opacity: 1; transform: translateY(-1px);
}
.bos-prog-step.is-active .bos-prog-icon {
  color: var(--cyan); text-shadow: var(--glow-sm); transform: scale(1.2);
}
.bos-prog-step.is-active .bos-prog-label { color: var(--cyan); }

/* Estado completado */
.bos-prog-step.is-done { opacity: .75; }
.bos-prog-step.is-done .bos-prog-icon { color: var(--cyan); }
.bos-prog-step.is-done .bos-prog-label { color: rgba(0,232,255,.65); }
.bos-prog-step.is-done ~ .bos-prog-connector { background: rgba(0,232,255,.4); }
/* END: BRIEF-OS-PROGRESS */

/* START: BRIEF-OS-BODY */
.bos-body {
  flex: 1; padding: 2.5rem 2rem; position: relative;
  min-height: 420px;
}
.bos-stage {
  display: none;
}
.bos-stage.is-active {
  display: flex; flex-direction: column; gap: 1.5rem;
  animation: bos-stage-in .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes bos-stage-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
/* END: BRIEF-OS-BODY */

/* START: BRIEF-OS-FOOTBAR */
.bos-footbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-top: 1px solid var(--bdr); gap: 1rem;
}
.bos-step-label {
  font-family: var(--font-m); font-size: .625rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--c30);
}
.bos-btn {
  font-family: var(--font-m); font-size: .75rem;
  letter-spacing: .22em; text-transform: uppercase;
  padding: .625rem 1.25rem; cursor: pointer; transition: all .2s; border-radius: 0;
}
.bos-btn--primary { background: var(--cyan); border: 1px solid var(--cyan); color: var(--void); }
.bos-btn--primary:hover:not(:disabled) { box-shadow: var(--glow-sm); opacity: .88; }
.bos-btn--ghost { background: transparent; border: 1px solid rgba(0,232,255,.3); color: var(--cyan); }
.bos-btn--ghost:hover:not(:disabled) { border-color: var(--cyan); background: rgba(0,232,255,.06); }
.bos-btn:disabled { opacity: .3; cursor: not-allowed; }
/* END: BRIEF-OS-FOOTBAR */

/* START: BRIEF-OS-BOOT */
.bos-boot { display: flex; flex-direction: column; gap: 1.5rem; }
.bos-boot-lines {
  font-family: var(--font-m); font-size: .8125rem; line-height: 1.7;
  color: var(--cyan); white-space: pre-wrap; margin: 0; min-height: 14rem;
}
.bos-boot-skip {
  align-self: flex-end; background: transparent; border: none;
  font-family: var(--font-m); font-size: .6875rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--c30); cursor: pointer; transition: color .2s;
}
.bos-boot-skip:hover { color: var(--cyan); }
/* END: BRIEF-OS-BOOT */

/* START: BRIEF-OS-STAGE */
.bos-stage-hdr { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .5rem; }
.bos-kicker {
  font-family: var(--font-m); font-size: .625rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--cyan); opacity: .75; margin: 0;
}
.bos-stage-ttl {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  color: var(--txt); margin: 0; letter-spacing: .02em; line-height: 1.1;
}
.bos-stage-sub {
  font-family: var(--font-b); font-weight: 300; color: var(--txt2);
  margin: 0; font-size: .9375rem; line-height: 1.5;
}

.bos-field { display: flex; flex-direction: column; gap: .4rem; }
.bos-field label {
  font-family: var(--font-m); font-size: .6875rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--txt2); opacity: .8;
}
.bos-field input,
.bos-field textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(0,232,255,.25);
  color: var(--txt); font-family: var(--font-b); font-size: 1rem;
  padding: .6rem 0; outline: none; transition: border-color .2s;
  width: 100%; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.bos-field input::placeholder,
.bos-field textarea::placeholder { color: var(--c30); opacity: .55; }
.bos-field input:focus,
.bos-field textarea:focus { border-bottom-color: var(--cyan); }
.bos-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.bos-field input.is-invalid,
.bos-field textarea.is-invalid { border-bottom-color: #ff5f57; }

.bos-opt {
  font-family: var(--font-b); font-size: .6875rem; letter-spacing: 0;
  text-transform: none; color: var(--c30); margin-left: .4rem;
}
/* END: BRIEF-OS-STAGE */

/* START: BRIEF-OS-RADIO-CARD */
.bos-radio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.bos-radio-card { cursor: pointer; position: relative; }
.bos-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.bos-rc-body {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem 1.1rem; border: 1px solid var(--bdr);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bos-rc-ttl {
  font-family: var(--font-m); font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--txt);
}
.bos-rc-desc { font-family: var(--font-b); font-size: .8125rem; color: var(--txt2); opacity: .75; }
.bos-radio-card:hover .bos-rc-body { border-color: rgba(0,232,255,.5); }
.bos-radio-card input:checked + .bos-rc-body {
  border-color: var(--cyan); background: rgba(0,232,255,.06);
  box-shadow: inset 0 0 0 1px rgba(0,232,255,.3), var(--glow-sm);
}
.bos-radio-card input:focus-visible + .bos-rc-body {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
/* END: BRIEF-OS-RADIO-CARD */

/* START: BRIEF-OS-FIELDSET */
.bos-fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.bos-fieldset legend {
  font-family: var(--font-m); font-size: .6875rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--txt2); opacity: .8;
  padding: 0; margin-bottom: .25rem;
}
.bos-pill-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.bos-pill { cursor: pointer; position: relative; }
.bos-pill input { position: absolute; opacity: 0; pointer-events: none; }
.bos-pill span {
  display: inline-block; padding: .55rem 1.1rem;
  font-family: var(--font-m); font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--bdr); color: var(--c30);
  transition: border-color .2s, color .2s, background .2s;
}
.bos-pill:hover span { border-color: rgba(0,232,255,.4); color: var(--txt2); }
.bos-pill input:checked + span { border-color: var(--cyan); color: var(--cyan); background: rgba(0,232,255,.08); }
.bos-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* END: BRIEF-OS-FIELDSET */

/* START: BRIEF-OS-RECAP */
.bos-recap {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.25rem 1.15rem; border: 1px solid var(--bdr); border-radius: 6px;
  background: rgba(0,232,255,.03);
}
.bos-recap-row { display: flex; gap: 1rem; font-family: var(--font-m); font-size: .75rem; letter-spacing: .08em; }
.bos-recap-k { color: var(--cyan); opacity: .7; min-width: 9rem; text-transform: uppercase; }
.bos-recap-v { color: var(--txt); flex: 1; }

.bos-transmit-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1rem; }
.bos-btn--xl { padding: 1rem 2.25rem; font-size: .8125rem; }
.bos-transmit-note {
  font-family: var(--font-m); font-size: .625rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--c30); margin: 0;
}

.bos-success { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: 2rem 0; }
.bos-success-cv { width: 160px; height: 160px; }
.bos-success-title {
  font-family: var(--font-d); font-weight: 900; font-size: 1.15rem;
  letter-spacing: .15em; color: var(--cyan); text-shadow: var(--glow-sm); margin: 0;
}
.bos-success-sub { font-family: var(--font-b); color: var(--txt2); line-height: 1.6; margin: 0; max-width: 38ch; }
/* END: BRIEF-OS-RECAP */

/* START: BRIEF-OS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  .bos-stage.is-active { animation: none; }
  .bos-prog-step { transition: none; }
  .bos-btn, .bos-field input, .bos-field textarea,
  .bos-rc-body, .bos-pill span, .bos-boot-skip { transition: none; }
}
/* END: BRIEF-OS-REDUCED-MOTION */

/* START: BRIEF-OS-RESPONSIVE */
@media (max-width: 560px) {
  .bos-body { padding: 1.75rem 1.25rem; }
  .bos-radio-grid { grid-template-columns: 1fr 1fr; }
  .bos-title { display: none; }
  .bos-progress { padding: .875rem .75rem; gap: 0; }
  .bos-prog-icon { font-size: .95rem; }
  .bos-prog-label { font-size: .46rem; letter-spacing: .15em; }
  .bos-prog-connector { min-width: .4rem; max-width: 1.25rem; }
}
/* END: BRIEF-OS-RESPONSIVE */
