/* ============================================================
   Traslate · tema público 2026

   Sistema visual del home, espacio de usuario y enlaces compartidos.
   Todos los selectores están aislados del panel de operaciones.
   ============================================================ */

body:is(.landing-mode, .app-mode, .share-mode) {
  --bg: #f7f9fc;
  --bg-accent: #edf2f7;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --text: #102a43;
  --muted: #607084;
  --border: #dde4eb;
  --border-strong: #bcc8d3;
  --primary: #0d3f72;
  --primary-dark: #082d54;
  --primary-soft: #e7f2fb;
  --primary-button: #0d3156;
  --primary-button-hover: #061f3a;
  --on-primary: #ffffff;
  --accent: #168bb8;
  --accent-dark: #0c6f97;
  --accent-soft: #def5ff;
  --mint: #6fe6bd;
  --mint-soft: #e7fbf4;
  --violet: #9689ff;
  --violet-soft: #efedff;
  --sky: #68d6ff;
  --sky-soft: #e8f8ff;
  --yellow: #ffd86a;
  --green: #168363;
  --green-soft: #e5f6ef;
  --blue: #2979d8;
  --blue-soft: #e7f1fd;
  --red: #c83f4d;
  --red-soft: #fdecef;
  --amber: #a96c12;
  --amber-soft: #fdf2de;
  --gray: #6e7b8a;
  --gray-soft: #edf1f5;
  --header-bg: #ffffff;
  --hero-bg: #0d3156;
  --hero-text: #ffffff;
  --hero-muted: #c8d8e8;
  --radius: 20px;
  --radius-sm: 11px;
  --shadow-color: rgba(16, 42, 67, .07);
  --shadow-sm: 0 8px 24px rgba(16, 42, 67, .06);
  --shadow: 0 22px 60px rgba(16, 42, 67, .1);
  --shadow-lg: 0 34px 90px rgba(6, 31, 58, .2);
  --ring: 0 0 0 3px rgba(22, 139, 184, .17);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body:is(.landing-mode, .app-mode, .share-mode) .wrap {
  width: 100%;
  max-width: 1400px;
  padding-right: 48px;
  padding-left: 48px;
}

body:is(.landing-mode, .app-mode, .share-mode) .site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

body:is(.landing-mode, .app-mode, .share-mode) .header-inner { height: 76px; }
body:is(.landing-mode, .app-mode, .share-mode) .header-actions { display: flex; align-items: center; gap: 34px; min-width: 0; }
body.app-mode .site-links { display: none; }

body:is(.landing-mode, .app-mode, .share-mode) .brand { gap: 11px; }
body:is(.landing-mode, .app-mode, .share-mode) .logo { width: 35px; height: 35px; color: var(--primary-dark); }
body:is(.landing-mode, .app-mode, .share-mode) .brand-name {
  color: var(--text);
  font-size: 1.17rem;
  font-weight: 750;
  letter-spacing: -.04em;
}
body:is(.landing-mode, .app-mode, .share-mode) .brand-service {
  margin-top: 3px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .5rem;
  letter-spacing: .12em;
}

body.landing-mode .site-links { display: flex; align-items: center; gap: 30px; }
body.landing-mode .site-links a {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
body.landing-mode .site-links a:hover { color: var(--accent); }

body:is(.landing-mode, .app-mode, .share-mode) .btn {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: none;
}
body:is(.landing-mode, .app-mode, .share-mode) .btn-primary {
  background: var(--primary-button);
  color: #ffffff;
}
body:is(.landing-mode, .app-mode, .share-mode) .btn-primary:hover { background: var(--primary-button-hover); }
body:is(.landing-mode, .app-mode, .share-mode) .btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
body:is(.landing-mode, .app-mode, .share-mode) .btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
body:is(.landing-mode, .app-mode, .share-mode) .eyebrow {
  color: var(--accent-dark);
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* ================= Home ================= */

body.landing-mode main.wrap { overflow: hidden; }
body.landing-mode .landing:not([hidden]) { display: block; }
body.landing-mode .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 6vw, 96px);
  min-height: 650px;
  margin-top: 14px;
  padding: 66px 22px 62px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.landing-mode .hero-copy { max-width: 650px; }
body.landing-mode .hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 27px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.landing-mode .hero-kicker span {
  padding: 7px 10px;
  border: 1px solid #bce8f7;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
body.landing-mode .landing-hero h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.75rem, 5.7vw, 5.8rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.065em;
}
body.landing-mode .landing-hero h1 strong {
  color: var(--primary);
  font-weight: 600;
}
body.landing-mode .landing-hero .lead {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
body.landing-mode .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
body.landing-mode .hero-cta .btn { min-width: 145px; }
body.landing-mode .hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .74rem;
}
body.landing-mode .hero-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

body.landing-mode .hero-network { display: grid; place-items: center; min-width: 0; }
body.landing-mode .language-network {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1.12 / 1;
}
body.landing-mode .network-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.landing-mode .network-lines path {
  fill: none;
  stroke: #7d91a6;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .network-lines path:nth-child(2) { stroke: #a8b6c4; }
body.landing-mode .network-lines path:nth-child(3) { stroke: #c3cdd7; }
body.landing-mode .language-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 62px;
  height: 56px;
  border: 1px solid rgba(16, 42, 67, .08);
  border-radius: 9px;
  color: var(--primary-dark);
  font-size: 1.65rem;
  font-weight: 450;
  letter-spacing: -.05em;
  box-shadow: var(--shadow-sm);
}
body.landing-mode .tile-en { top: 7%; right: 13%; background: var(--sky); }
body.landing-mode .tile-es { right: 4%; bottom: 20%; background: var(--violet); }
body.landing-mode .tile-fr { bottom: 3%; left: 38%; background: var(--mint); }
body.landing-mode .tile-de { bottom: 17%; left: 2%; background: var(--yellow); }
body.landing-mode .tile-it { top: 11%; left: 7%; background: #ffabb5; }
body.landing-mode .network-node {
  position: absolute;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 7px;
  min-width: 96px;
  padding: 11px 12px;
  border: 1px solid #a9b8c7;
  border-radius: 11px;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(16, 42, 67, .08);
}
body.landing-mode .network-node svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .network-node small { font-size: .62rem; font-weight: 650; }
body.landing-mode .node-document { top: 28%; left: 1%; }
body.landing-mode .node-voice { top: 29%; right: 0; }
body.landing-mode .node-layout { right: 7%; bottom: 5%; }
body.landing-mode .network-core {
  position: absolute;
  top: 31%;
  left: 29%;
  display: flex;
  width: 43%;
  height: 39%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  border: 1px solid #95a9bc;
  border-radius: 38px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(16, 42, 67, .12);
}
body.landing-mode .network-core svg {
  width: 35px;
  height: 35px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .network-core > span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .52rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.landing-mode .network-core strong {
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.035em;
}
body.landing-mode .network-core > small { margin-top: 13px; color: var(--muted); font-size: .49rem; letter-spacing: .07em; }

body.landing-mode .trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
body.landing-mode .trust-strip > span {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 25px 27px;
  color: var(--text);
  text-align: left;
}
body.landing-mode .trust-strip > span + span { border-left: 1px solid var(--border); }
body.landing-mode .trust-strip b {
  grid-row: 1 / span 2;
  margin-top: 2px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: .58rem;
  font-weight: 500;
}
body.landing-mode .trust-strip strong { font-size: .81rem; font-weight: 700; }
body.landing-mode .trust-strip small { margin-top: 4px; color: var(--muted); font-size: .67rem; }

body.landing-mode .product-section { padding: 132px 0 30px; }
body.landing-mode .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .7fr);
  align-items: end;
  gap: 70px;
  max-width: none;
  margin: 0 0 48px;
}
body.landing-mode .section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -44px; }
body.landing-mode .section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 4.7vw, 4.65rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.06em;
}
body.landing-mode .section-heading > p:last-child {
  max-width: 470px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
}
body.landing-mode .product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.landing-mode .product-tabs::-webkit-scrollbar { display: none; }
body.landing-mode .product-tabs span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}
body.landing-mode .product-tabs span.active { border-color: #a7c9dc; color: var(--primary-dark); }
body.landing-mode .product-tabs svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .translator-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
body.landing-mode .translator-language-bar {
  display: grid;
  grid-template-columns: 1fr 44px 1fr auto;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--border);
}
body.landing-mode .translator-language-bar > span { display: flex; align-items: baseline; gap: 12px; padding: 0 28px; }
body.landing-mode .translator-language-bar small { color: var(--muted); font-size: .65rem; }
body.landing-mode .translator-language-bar b { color: var(--text); font-size: .83rem; }
body.landing-mode .translator-language-bar i { color: var(--accent); font-size: 1.1rem; font-style: normal; text-align: center; }
body.landing-mode .translator-language-bar > strong {
  margin-right: 24px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--sky-soft);
  color: var(--accent-dark);
  font-family: "DM Mono", monospace;
  font-size: .58rem;
  font-weight: 500;
}
body.landing-mode .translator-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
body.landing-mode .demo-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px;
  text-align: center;
}
body.landing-mode .demo-pane + .demo-pane { border-left: 1px solid var(--border); }
body.landing-mode .demo-result { background: #f6fbff; }
body.landing-mode .demo-file-icon,
body.landing-mode .demo-ready {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
}
body.landing-mode .demo-file-icon { background: var(--violet-soft); color: #6154cf; }
body.landing-mode .demo-ready { background: var(--mint-soft); color: var(--green); }
body.landing-mode .demo-file-icon svg,
body.landing-mode .demo-ready svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .demo-pane small { color: var(--muted); font-family: "DM Mono", monospace; font-size: .53rem; letter-spacing: .08em; }
body.landing-mode .demo-pane h3 { margin: 9px 0 7px; font-size: 1.12rem; font-weight: 650; letter-spacing: -.03em; }
body.landing-mode .demo-pane p { margin: 0; color: var(--muted); font-size: .75rem; }
body.landing-mode .demo-chip {
  margin-top: 24px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 650;
}
body.landing-mode .demo-progress { display: flex; width: min(220px, 80%); align-items: center; gap: 10px; margin-top: 26px; }
body.landing-mode .demo-progress i { height: 5px; flex: 1; border-radius: 99px; background: var(--mint); }
body.landing-mode .demo-progress span { color: var(--green); font-family: "DM Mono", monospace; font-size: .58rem; }
body.landing-mode .translator-footer {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 55px;
  padding: 0 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .64rem;
}
body.landing-mode .translator-footer span:first-child { margin-right: auto; color: var(--green); }
body.landing-mode .translator-footer i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--mint); }

body.landing-mode .capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
body.landing-mode .capability-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid rgba(16, 42, 67, .06);
  border-radius: 20px;
}
body.landing-mode .tone-sky { background: var(--sky-soft); }
body.landing-mode .tone-violet { background: var(--violet-soft); }
body.landing-mode .tone-mint { background: var(--mint-soft); }
body.landing-mode .capability-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 72px;
  border: 1px solid rgba(16, 42, 67, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .62);
  color: var(--primary);
}
body.landing-mode .capability-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing-mode .capability-card > span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .54rem; letter-spacing: .08em; }
body.landing-mode .capability-card h3 { margin: 10px 0 13px; font-size: 1.42rem; font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
body.landing-mode .capability-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }

body.landing-mode .process-section {
  display: grid;
  grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr);
  gap: 90px;
  padding: 132px 0 126px;
}
body.landing-mode .process-intro { align-self: start; position: sticky; top: 112px; }
body.landing-mode .process-intro h2 {
  margin: 12px 0 21px;
  font-size: clamp(2.7rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.055em;
}
body.landing-mode .process-intro > p:last-child { max-width: 420px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
body.landing-mode .steps { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }
body.landing-mode .step {
  display: grid;
  grid-template-columns: 50px 1fr 52px;
  align-items: center;
  gap: 22px;
  min-height: 146px;
  padding: 25px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
body.landing-mode .step-num { color: var(--accent); font-family: "DM Mono", monospace; font-size: .59rem; }
body.landing-mode .step b { display: block; margin-bottom: 7px; font-size: 1.02rem; }
body.landing-mode .step div > span { display: block; max-width: 530px; color: var(--muted); font-size: .81rem; line-height: 1.55; }
body.landing-mode .step svg {
  width: 43px;
  height: 43px;
  padding: 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-mode .final-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 80px;
  min-height: 410px;
  margin-bottom: 90px;
  padding: 66px 70px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--primary-dark);
  color: #ffffff;
}
body.landing-mode .final-cta > *:not(.cta-shapes) { position: relative; z-index: 2; }
body.landing-mode .final-cta .eyebrow { color: var(--sky); }
body.landing-mode .final-cta h2 {
  margin: 13px 0 0;
  font-size: clamp(3rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}
body.landing-mode .final-cta h2 strong { color: var(--mint); font-weight: 600; }
body.landing-mode .final-cta-action { max-width: 440px; }
body.landing-mode .final-cta-action p { margin: 0 0 24px; color: #c7d7e5; font-size: .86rem; line-height: 1.7; }
body.landing-mode .btn-light { border-color: #ffffff; background: #ffffff; color: var(--primary-dark); }
body.landing-mode .cta-shapes { position: absolute; inset: 0; pointer-events: none; }
body.landing-mode .cta-shapes i { position: absolute; display: block; border-radius: 18px; transform: rotate(12deg); }
body.landing-mode .cta-shapes i:nth-child(1) { top: -56px; right: 25%; width: 150px; height: 150px; border: 1px solid rgba(255, 255, 255, .18); }
body.landing-mode .cta-shapes i:nth-child(2) { right: -55px; bottom: 30px; width: 190px; height: 190px; background: var(--violet); }
body.landing-mode .cta-shapes i:nth-child(3) { right: 74px; bottom: -72px; width: 146px; height: 146px; background: var(--sky); }

/* ================= Espacio de usuario ================= */

body.app-mode .workspace-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin: 54px 0 30px;
  padding: 0 4px 24px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}
body.app-mode .workspace-hero::after { display: none; }
body.app-mode .workspace-hero .eyebrow { display: flex; align-items: center; gap: 9px; }
body.app-mode .workspace-hero .eyebrow span { width: 18px; height: 2px; border-radius: 10px; background: var(--sky); }
body.app-mode .workspace-hero h1 {
  max-width: 930px;
  margin: 10px 0 11px;
  color: var(--text);
  font-size: clamp(2.7rem, 4.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}
body.app-mode .workspace-hero .lead { max-width: 780px; margin: 0; color: var(--muted); font-size: .93rem; }
body.app-mode .workspace-status {
  flex: 0 0 190px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .53rem;
  box-shadow: var(--shadow-sm);
}
body.app-mode .workspace-status .header-status { margin-top: 7px; color: var(--text); font-family: "Manrope", sans-serif; font-size: .74rem; }

body.app-mode .card { border-radius: 22px; box-shadow: var(--shadow-sm); }
body.app-mode .upload-card { padding: 0; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
body.app-mode .upload-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0;
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
body.app-mode .upload-card-head h2 { margin: 6px 0 0; font-size: 1.55rem; font-weight: 550; letter-spacing: -.04em; }
body.app-mode .upload-card-head > p { max-width: 460px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
body.app-mode .composer { display: block; min-height: 0; }
body.app-mode .composer > .tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
}
body.app-mode .composer > .tabs .tab {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  min-width: 210px;
  min-height: 76px;
  padding: 13px 20px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  text-align: left;
  box-shadow: none;
}
body.app-mode .composer > .tabs .tab:hover { color: var(--text); }
body.app-mode .composer > .tabs .tab.active { border-bottom-color: var(--accent); background: transparent; color: var(--primary-dark); box-shadow: none; }
body.app-mode .composer > .tabs .tab-asset { width: 24px; height: 24px; }
body.app-mode .composer > .tabs .tab b,
body.app-mode .composer > .tabs .tab small { display: block; }
body.app-mode .composer > .tabs .tab b { font-size: .83rem; }
body.app-mode .composer > .tabs .tab small { margin-top: 3px; color: var(--muted); font-size: .61rem; font-weight: 500; }
body.app-mode .composer-body { min-width: 0; padding: 30px 34px 36px; background: var(--surface); }

body.app-mode .quota-bar {
  margin: 0 0 22px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
body.app-mode .quota-bar.locked { background: var(--amber-soft); }
body.app-mode .quota-bar.admin { background: var(--green-soft); }
body.app-mode #bookPanel > .upload-controls { margin: 0 0 18px; }
body.app-mode .upload-controls { gap: 18px; }
body.app-mode .field { color: var(--muted); font-size: .69rem; }
body.app-mode .field select,
body.app-mode .field input {
  min-height: 46px;
  border-color: var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
  font-size: .86rem;
}
body.app-mode .field select:focus,
body.app-mode .field input:focus { border-color: var(--accent); box-shadow: var(--ring); }
body.app-mode .lang-arrow { padding-bottom: 11px; color: var(--accent); }

body.app-mode .dropzone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  border: 1px dashed #9bb5c8;
  border-radius: 17px;
  background: #fbfdff;
}
body.app-mode .dropzone:hover,
body.app-mode .dropzone:focus-visible,
body.app-mode .dropzone.dragover { border-color: var(--accent); background: var(--sky-soft); transform: none; }
body.app-mode .drop-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 24px; text-align: center; }
body.app-mode .drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  padding: 10px;
  border: 1px solid #a6cbda;
  border-radius: 14px;
  background: var(--sky-soft);
  color: var(--accent-dark);
}
body.app-mode .drop-title { margin: 5px 0 4px; font-size: .96rem; }
body.app-mode .drop-sub { font-size: .75rem; }
body.app-mode .drop-file { border-radius: 8px; }
body.app-mode .drop-assurance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 26px;
  border-left: 1px solid #cde8f3;
  background: var(--sky-soft);
  color: var(--primary-dark);
  text-align: left;
}
body.app-mode .drop-assurance span { margin-bottom: 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
body.app-mode .drop-assurance strong { position: relative; padding-left: 17px; font-size: .75rem; font-weight: 650; }
body.app-mode .drop-assurance strong::before { content: ""; position: absolute; top: .38em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

body.app-mode .adv { margin-top: 20px; border-color: var(--border); border-radius: 13px; background: var(--surface-2); }
body.app-mode .adv > summary { border-radius: 13px; font-size: .76rem; }
body.app-mode .preset-cards { gap: 10px; }
body.app-mode .preset-card .preset-body { border-radius: 12px; }
body.app-mode .preset-card input:checked + .preset-body { border-color: var(--accent); background: var(--sky-soft); }
body.app-mode .hero-field input { min-height: 58px; padding: 15px 17px !important; font-size: .95rem; }

body.app-mode .queue-section { margin: 62px 0 94px; }
body.app-mode .queue-head { margin-bottom: 17px; padding: 0 3px; }
body.app-mode .queue-head h2 { font-size: 1.55rem; font-weight: 550; letter-spacing: -.04em; }
body.app-mode .archive-toggle { padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
body.app-mode .archive-toggle .tab { padding: 7px 12px; border-radius: 8px; }
body.app-mode .archive-toggle .tab.active { background: var(--primary-soft); color: var(--primary); }
body.app-mode .job-list { gap: 11px; }
body.app-mode .job {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
body.app-mode .job:hover { border-color: #a7bac9; box-shadow: var(--shadow); transform: none; }
body.app-mode .job[data-status] { border-left-width: 3px; }
body.app-mode .job-kind { border-radius: 7px; }
body.app-mode .action { border-radius: 9px; }
body.app-mode .progress-bar { height: 6px; }
body.app-mode .empty-state { border-width: 1px; border-radius: 18px; background: var(--surface); }

/* ================= Acceso, visores y entrega ================= */

body:is(.landing-mode, .app-mode) .modal { background: rgba(5, 22, 40, .76); }
body:is(.landing-mode, .app-mode) .modal-box {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
body:is(.landing-mode, .app-mode) #authTitle { font-size: 1.9rem; font-weight: 550; letter-spacing: -.045em; }

body.share-mode .share-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: end;
  gap: 44px;
  min-height: 310px;
  margin: 34px 0 22px;
  padding: 48px 54px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--primary-soft);
  color: var(--text);
}
body.share-mode .share-hero::after {
  content: "";
  position: absolute;
  top: -55px;
  right: 18%;
  width: 155px;
  height: 155px;
  border: 1px solid #a9c4d5;
  border-radius: 30px;
  transform: rotate(16deg);
}
body.share-mode .share-hero > * { position: relative; z-index: 1; }
body.share-mode .share-hero h1 {
  max-width: 900px;
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.06em;
}
body.share-mode .share-hero .lead { margin: 0; color: var(--muted); }
body.share-mode .share-hero-meta {
  padding: 18px;
  border: 1px solid #b6d2df;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
body.share-mode .share-hero-meta span,
body.share-mode .share-hero-meta small { color: var(--muted); }
body.share-mode .share-hero-meta strong { color: var(--accent); }
body.share-mode .share-stage,
body.share-mode .share-error { padding: 26px; border-radius: 20px; box-shadow: var(--shadow-sm); }
body.share-mode .share-video,
body.share-mode .share-reader,
body.share-mode .share-pdf { border-radius: 13px; }

body:is(.landing-mode, .app-mode, .share-mode) .site-footer {
  border-color: var(--border);
  background: var(--surface);
}

/* ================= Tema oscuro ================= */

@media (prefers-color-scheme: dark) {
  body:is(.landing-mode, .app-mode, .share-mode) {
    --bg: #0b1727;
    --bg-accent: #101f31;
    --surface: #122238;
    --surface-2: #172a41;
    --text: #edf5fb;
    --muted: #9eb0c1;
    --border: #293c52;
    --border-strong: #465b70;
    --primary: #84c9ee;
    --primary-dark: #d9eefb;
    --primary-soft: #16364e;
    --primary-button: #1d6f99;
    --primary-button-hover: #2786b3;
    --accent: #68d6ff;
    --accent-dark: #8be1ff;
    --accent-soft: #153a4b;
    --mint-soft: #173b35;
    --violet-soft: #29264d;
    --sky-soft: #153747;
    --green: #6fe6bd;
    --green-soft: #173b35;
    --blue: #75b7ff;
    --blue-soft: #182f4c;
    --red: #ff8894;
    --red-soft: #48242b;
    --amber: #efbd64;
    --amber-soft: #3d301d;
    --gray: #a0afbd;
    --gray-soft: #213249;
    --header-bg: #0d1b2c;
    --shadow-color: rgba(0, 0, 0, .26);
    color-scheme: dark;
  }
  body.landing-mode .network-lines path { stroke: #62778c; }
  body:is(.landing-mode, .app-mode, .share-mode) .logo { color: #168bb8; }
  body.landing-mode .network-lines path:nth-child(2) { stroke: #40566c; }
  body.landing-mode .network-lines path:nth-child(3) { stroke: #33485d; }
  body.landing-mode .language-tile { color: #0b233a; }
  body.landing-mode .network-node { border-color: #587086; }
  body.landing-mode .demo-result { background: #102a3d; }
  body.landing-mode .capability-card { border-color: rgba(255, 255, 255, .07); }
  body.landing-mode .capability-icon { background: rgba(18, 34, 56, .65); }
  body.app-mode .dropzone { background: #0f2034; }
  body.app-mode .drop-assurance { border-left-color: #285065; }
}

/* ================= Adaptación de pantalla ================= */

@media (max-width: 1120px) {
  body.landing-mode .landing-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 72px; }
  body.landing-mode .hero-copy { max-width: 850px; }
  body.landing-mode .hero-network { width: min(100%, 660px); justify-self: center; }
  body.landing-mode .capability-grid { grid-template-columns: 1fr 1fr; }
  body.landing-mode .capability-card:last-child { grid-column: 1 / -1; min-height: 260px; }
  body.landing-mode .capability-card:last-child .capability-icon { margin-bottom: 42px; }
  body.landing-mode .process-section { gap: 54px; }
}

@media (max-width: 840px) {
  body:is(.landing-mode, .app-mode, .share-mode) .wrap { padding-right: 24px; padding-left: 24px; }
  body.landing-mode .site-links { display: none; }
  body.landing-mode .landing-hero { min-height: 0; padding-right: 0; padding-left: 0; }
  body.landing-mode .trust-strip { grid-template-columns: 1fr; }
  body.landing-mode .trust-strip > span + span { border-top: 1px solid var(--border); border-left: 0; }
  body.landing-mode .section-heading { grid-template-columns: 1fr; gap: 22px; }
  body.landing-mode .section-heading .eyebrow { grid-column: auto; margin: 0; }
  body.landing-mode .translator-panes { grid-template-columns: 1fr; }
  body.landing-mode .demo-pane { min-height: 280px; }
  body.landing-mode .demo-pane + .demo-pane { border-top: 1px solid var(--border); border-left: 0; }
  body.landing-mode .capability-grid { grid-template-columns: 1fr; }
  body.landing-mode .capability-card:last-child { grid-column: auto; min-height: 330px; }
  body.landing-mode .capability-card:last-child .capability-icon { margin-bottom: 72px; }
  body.landing-mode .process-section { grid-template-columns: 1fr; }
  body.landing-mode .process-intro { position: static; }
  body.landing-mode .final-cta { grid-template-columns: 1fr; gap: 34px; }
  body.app-mode .workspace-hero { align-items: flex-start; flex-direction: column; gap: 22px; }
  body.app-mode .workspace-status { flex: none; width: 100%; }
  body.share-mode .share-hero { grid-template-columns: 1fr; }
  body.share-mode .share-hero-meta { display: none; }
}

@media (max-width: 640px) {
  body:is(.landing-mode, .app-mode, .share-mode) .wrap { padding-right: 16px; padding-left: 16px; }
  body:is(.landing-mode, .app-mode, .share-mode) .header-inner { min-height: 68px; height: auto; }
  body.landing-mode .landing-hero { margin-top: 4px; padding-top: 54px; }
  body.landing-mode .hero-kicker { align-items: flex-start; flex-direction: column; }
  body.landing-mode .landing-hero h1 { font-size: clamp(3rem, 14vw, 4.15rem); }
  body.landing-mode .hero-cta { flex-direction: column; }
  body.landing-mode .hero-cta .btn { width: 100%; }
  body.landing-mode .language-network { width: 110%; margin-left: -5%; }
  body.landing-mode .language-tile { width: 46px; height: 43px; border-radius: 7px; font-size: 1.15rem; }
  body.landing-mode .network-node { min-width: 0; grid-template-columns: 24px; padding: 9px; }
  body.landing-mode .network-node small { display: none; }
  body.landing-mode .network-node svg { width: 22px; height: 22px; }
  body.landing-mode .network-core { padding: 18px; border-radius: 24px; }
  body.landing-mode .network-core svg { width: 27px; height: 27px; margin-bottom: 8px; }
  body.landing-mode .network-core > span,
  body.landing-mode .network-core > small { display: none; }
  body.landing-mode .network-core strong { font-size: .9rem; }
  body.landing-mode .product-section { padding-top: 90px; }
  body.landing-mode .section-heading h2 { font-size: 2.8rem; }
  body.landing-mode .translator-language-bar { grid-template-columns: 1fr 30px 1fr; }
  body.landing-mode .translator-language-bar > span { display: block; padding: 0 16px; }
  body.landing-mode .translator-language-bar small,
  body.landing-mode .translator-language-bar > strong { display: none; }
  body.landing-mode .translator-language-bar b { display: block; font-size: .77rem; }
  body.landing-mode .demo-pane { padding: 36px 20px; }
  body.landing-mode .translator-footer { justify-content: center; padding: 0 15px; }
  body.landing-mode .translator-footer span:first-child { margin-right: 0; }
  body.landing-mode .translator-footer span:not(:first-child) { display: none; }
  body.landing-mode .capability-card { min-height: 300px; padding: 28px; }
  body.landing-mode .capability-icon,
  body.landing-mode .capability-card:last-child .capability-icon { margin-bottom: 54px; }
  body.landing-mode .process-section { padding: 90px 0; }
  body.landing-mode .step { grid-template-columns: 38px 1fr; gap: 12px; padding: 23px 20px; }
  body.landing-mode .step svg { display: none; }
  body.landing-mode .final-cta { min-height: 480px; padding: 45px 28px 110px; }
  body.landing-mode .final-cta h2 { font-size: 3rem; }
  body.landing-mode .cta-shapes i:nth-child(2) { right: -70px; bottom: -45px; }
  body.landing-mode .cta-shapes i:nth-child(3) { right: 65px; bottom: -85px; }
  body.app-mode .workspace-hero { margin-top: 36px; padding-right: 0; padding-left: 0; }
  body.app-mode .workspace-hero h1 { font-size: 3rem; }
  body.app-mode .upload-card-head { align-items: flex-start; flex-direction: column; padding: 25px 21px; }
  body.app-mode .composer > .tabs { padding: 0; }
  body.app-mode .composer > .tabs .tab { min-width: 0; flex: 1; padding: 12px; }
  body.app-mode .composer > .tabs .tab small { display: none; }
  body.app-mode .composer-body { padding: 24px 19px 28px; }
  body.app-mode #bookPanel > .upload-controls { align-items: stretch; flex-direction: column; }
  body.app-mode #bookPanel > .upload-controls .lang-pickers { flex-wrap: nowrap; }
  body.app-mode #bookPanel > .upload-controls .field { flex: 1; min-width: 0; }
  body.app-mode #bookPanel > .upload-controls select { width: 100%; min-width: 0; }
  body.app-mode .dropzone { grid-template-columns: 1fr; }
  body.app-mode .drop-assurance { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; border-top: 1px solid #cde8f3; border-left: 0; }
  body.app-mode .drop-assurance span { width: 100%; }
  body.app-mode .queue-head { align-items: flex-start; }
  body.share-mode .share-hero { min-height: 270px; margin-top: 18px; padding: 36px 28px; }
}

@media (max-width: 430px) {
  body:is(.landing-mode, .app-mode, .share-mode) .header-actions { gap: 7px; }
  body:is(.landing-mode, .app-mode, .share-mode) .brand-service { display: none; }
  body:is(.landing-mode, .app-mode) .auth-nav .who { display: none; }
  body:is(.landing-mode, .app-mode) .auth-nav .btn { min-height: 38px; padding-right: 10px; padding-left: 10px; font-size: .74rem; }
  body.landing-mode .landing-hero h1 { font-size: 2.85rem; }
  body.landing-mode .section-heading h2 { font-size: 2.55rem; }
  body.landing-mode .network-core strong { font-size: .77rem; }
  body.app-mode .composer > .tabs .tab { grid-template-columns: 21px 1fr; gap: 7px; padding: 11px 9px; }
  body.app-mode .composer > .tabs .tab-asset { width: 19px; height: 19px; }
  body.app-mode .composer > .tabs .tab b { font-size: .74rem; }
  body.app-mode .workspace-hero h1 { font-size: 2.6rem; }
}
