@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  --ju-bg: #f3f4f6;
  --ju-white: #ffffff;
  --ju-text: #1f2937;
  --ju-muted: #6b7280;
  --ju-border: #c9d4de;

  --ju-accent: #55847e;
  --ju-accent-strong: #3f6b65;
  --ju-accent-soft: #b8d0cc;
  --ju-accent-faint: #d7e6e3;
  --ju-accent-text: #ffffff;

  --ju-panel-dark: #304744;
  --ju-panel-mid: #5f7e7a;
  --ju-panel-light: #eef4f3;
  --ju-panel-faint: #f6faf9;
  --ju-panel-border: #c9d4de;
  --ju-panel-text: #ffffff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Ubuntu', Arial, sans-serif;
  background: var(--ju-bg);
  color: var(--ju-text);
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(79,93,149,.58) rgba(255,255,255,.22);
}

#bandejas,
#mensajes,
#panel,
.ju-form-grid textarea {
  scrollbar-width: thin;
}

#bandejas::-webkit-scrollbar,
#mensajes::-webkit-scrollbar,
#panel::-webkit-scrollbar,
.ju-form-grid textarea::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

#bandejas::-webkit-scrollbar-track,
#mensajes::-webkit-scrollbar-track,
#panel::-webkit-scrollbar-track,
.ju-form-grid textarea::-webkit-scrollbar-track {
  background: rgba(255,255,255,.16);
}

#bandejas::-webkit-scrollbar-thumb,
#mensajes::-webkit-scrollbar-thumb,
#panel::-webkit-scrollbar-thumb,
.ju-form-grid textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.18));
  border: 2px solid rgba(255,255,255,.16);
}

#panel::-webkit-scrollbar-track,
.ju-form-grid textarea::-webkit-scrollbar-track {
  background: #d9dfec;
}

#panel::-webkit-scrollbar-thumb,
.ju-form-grid textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ju-panel-mid), var(--ju-panel-dark));
  border: 2px solid #d9dfec;
}

#topbar {
  min-height: 68px;
  background: var(--ju-panel-dark);
  color: var(--ju-panel-text);
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
}

#marca {
  display: flex;
  align-items: center;
  gap: 10px;
}

#marca h1 {
  margin: 0;
  font-size: 20px;
}

#marca p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.ju-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  font-size: 20px;
  font-weight: 700;
  text-transform: lowercase;
}

.ju-logo-large {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

#search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

#search-input,
.ju-form-grid input,
.ju-form-grid select,
.ju-form-grid textarea {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  width: 100%;
  border: 1px solid var(--ju-border);
  background: var(--ju-white);
  color: var(--ju-text);
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  font: inherit;
}

#search-input {
  height: 42px;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--ju-white);
}

#search-input::placeholder {
  color: rgba(255,255,255,.60);
}

#search-input:focus,
.ju-form-grid input:focus,
.ju-form-grid select:focus,
.ju-form-grid textarea:focus {
  border-color: var(--ju-panel-mid);
  box-shadow: 0 0 0 4px rgba(126, 139, 184, .16);
}

#herramientas,
.ju-button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-btn,
.search-clear,
.toolbtn-link,
.ju-btn {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  transition: .2s ease;
}

.search-btn,
.search-clear {
  height: 42px;
  padding: 0 14px;
  background: rgba(255,255,255,.10);
  color: var(--ju-white);
}

.search-btn:hover,
.search-clear:hover,
.toolbtn-link:hover {
  background: rgba(255,255,255,.18);
}

.toolbtn-link {
  height: 39px;
  padding: 10px 14px;
  background: var(--ju-panel-mid);
  color: var(--ju-white);
}

.toolbtn-link.primario,
.ju-btn-primary {
  background: var(--ju-accent);
  color: var(--ju-accent-text);
}

.ju-btn-primary:hover,
.toolbtn-link.primario:hover {
  background: var(--ju-accent-strong);
}

.ju-btn-secondary {
  background: var(--ju-panel-mid);
  color: var(--ju-white);
}

.ju-btn-ghost {
  background: transparent;
  color: var(--ju-panel-dark);
  border: 1px solid var(--ju-border);
}

.ju-btn {
  padding: 11px 16px;
  min-width: 110px;
}

#app {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
}

#bandejas,
#mensajes,
#contenido {
  min-height: 0;
}

#bandejas {
  width: 260px;
  background: var(--ju-panel-dark);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overflow-x: visible;
  direction: rtl;
}

#bandejas > * {
  direction: ltr;
}

#bandejas a {
  color: var(--ju-white);
  text-decoration: none;
  background: rgba(255,255,255,.08);
  padding: 14px 16px;
  display: block;
  font-weight: 700;
  position: relative;
  transition: .25s ease;
}

#bandejas a:hover {
  background: rgba(255,255,255,.18);
  transform: translateX(4px);
}

#bandejas a.activo {
  background: var(--ju-panel-mid);
  width: calc(100% + 20px);
  right: -20px;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  clip-path: none;
}

#bandejas a.activo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  width: 20px;
  background: var(--ju-panel-mid);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

#bandejas a.activo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  width: 20px;
  background:
    radial-gradient(circle at top left, var(--ju-panel-dark) 12px, transparent 13px) top left,
    radial-gradient(circle at bottom left, var(--ju-panel-dark) 12px, transparent 13px) bottom left;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.folder-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.folder-count,
.ju-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.14);
}

.badge-thread {
  background: var(--ju-accent-soft);
  color: var(--ju-accent-strong);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.cuenta {
  margin-top: auto;
  background: rgba(255,255,255,.05);
  color: #e6e9f2;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

#mensajes {
  width: 420px;
  background: var(--ju-panel-mid);
  padding: 20px 20px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overflow-x: visible;
  direction: rtl;
  position: relative;
}

#mensajes > * {
  direction: ltr;
}

#mensajes article {
  background: var(--ju-panel-light);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
  transition: .25s ease;
  overflow: visible;
}

#mensajes article:hover {
  transform: translateX(4px);
}

#mensajes article.activo {
  right: -20px;
  width: calc(100% + 20px);
  z-index: 4;
  box-shadow: 0 0 0 4px rgba(126,139,184,.12), 0 12px 26px rgba(0,0,0,.10);
  clip-path: none;
}

#mensajes article.activo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  width: 20px;
  background: var(--ju-panel-light);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

#mensajes article.activo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  width: 20px;
  background:
    radial-gradient(circle at top left, var(--ju-panel-mid) 12px, transparent 13px) top left,
    radial-gradient(circle at bottom left, var(--ju-panel-mid) 12px, transparent 13px) bottom left;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  z-index: 1;
}

#mensajes a {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
  z-index: 2;
}

.asunto-linea {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

#mensajes h3,
.ju-card h3,
.ju-login-card h3,
.ju-login-side h3 {
  margin: 0;
  font-size: 16px;
  color: #111827;
}

#mensajes time,
.thread-meta,
.ju-subtle,
.ju-card p,
.email-body p,
.ju-list,
.ju-login-card p,
.ju-login-side p {
  color: var(--ju-muted);
}

#mensajes time,
.thread-meta,
.ju-subtle {
  font-size: 12px;
}

#mensajes p,
.email-body p,
.ju-card p,
.ju-list,
.ju-login-card p,
.ju-login-side p {
  line-height: 1.5;
}

.color-accent,
.color-orange {
  box-shadow: inset 10px 0 0 var(--ju-accent), 0 2px 8px rgba(0,0,0,.06) !important;
}

.color-blue {
  box-shadow: inset 10px 0 0 #3b82f6, 0 2px 8px rgba(0,0,0,.06);
}

.color-green {
  box-shadow: inset 10px 0 0 #22c55e, 0 2px 8px rgba(0,0,0,.06);
}

.color-purple {
  box-shadow: inset 10px 0 0 #a855f7, 0 2px 8px rgba(0,0,0,.06);
}

#contenido {
  flex: 1;
  background: var(--ju-panel-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cabecera-contenido {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ju-border);
}

#cabecera-contenido h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

#cabecera-contenido p {
  margin: 0;
  color: var(--ju-muted);
  font-size: 13px;
}

#panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.email,
.ju-card,
.ju-login-side,
.ju-login-card,
.ju-mini-stat {
  background: var(--ju-white);
  border: 1px solid #dfe4ea;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.ju-login-corporativo{
	text-align:center;
}

/* Product-name entrance animation: login only */
.ju-login-page .ju-login-product-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ju-login-page .ju-login-product-title .ju-title-clip {
  position: relative;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

.ju-login-page .ju-login-product-title .ju-title-move {
  display: inline-block;
  will-change: transform;
}

.ju-login-page .ju-login-product-title .ju-title-company .ju-title-move {
  color: var(--ju-white);
  transform: translateX(100%);
  animation: juLoginTitleCompany 3s;
  animation-delay: var(--ju-title-company-delay, 1.2s);
  animation-fill-mode: forwards;
}

.ju-login-page .ju-login-product-title .ju-title-product .ju-title-move {
  color: rgba(255,255,255,.72);
  transform: translateX(-100%);
  animation: juLoginTitleProduct 3s;
  animation-delay: var(--ju-title-product-delay, 4.4s);
  animation-fill-mode: forwards;
}

.ju-login-page .ju-login-product-title .ju-title-separator {
  width: 3px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 100px;
  background: var(--ju-white);
  animation: juLoginTitleSeparator 1s;
  animation-delay: var(--ju-title-separator-delay, 0s);
  animation-fill-mode: backwards;
}

@keyframes juLoginTitleSeparator {
  from { height: 0; }
  to { height: 40px; }
}

@keyframes juLoginTitleCompany {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes juLoginTitleProduct {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ju-login-page .ju-login-product-title .ju-title-move {
    animation: none;
    transform: none;
  }

  .ju-login-page .ju-login-product-title .ju-title-separator {
    animation: none;
    height: 40px;
  }
}
.email.other {
  margin-right: 20px;
}

.email.mine {
  margin-left: 20px;
  background: #f3f5fa;
}

.email-header {
  padding: 14px 18px;
  background: #f4f6fb;
  border-bottom: 1px solid #e5e7eb;
}

.email-header .linea1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 6px;
}

.email-body,
.ju-card {
  padding: 18px;
}

.ju-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ju-kpi {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 700;
  color: var(--ju-panel-dark);
}

.ju-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.ju-form-card {
  padding-top: 18px;
}

.ju-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ju-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.ju-form-full {
  grid-column: 1 / -1;
}

.folder-pop-item,
.message-pop-item {
  opacity: 1;
  transform: translateY(0);
}

.chaflan {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

#bandejas a,
#mensajes article,
.email,
.ju-card,
.ju-login-side,
.ju-login-card,
.ju-mini-stat,
.folder-count,
.badge-thread,
.ju-pill,
.cuenta {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.ju-login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 520px);
  gap: 24px;
  align-items: stretch;
}

.ju-login-side {
  background: linear-gradient(180deg, var(--ju-panel-dark), var(--ju-panel-mid));
  color: var(--ju-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: none;
}

.ju-login-side h3,
.ju-login-side h4,
.ju-login-side p,
.ju-login-side .ju-list,
.ju-login-side .ju-subtle {
  color: var(--ju-white);
}

.ju-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ju-login-brand h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.ju-login-side-copy h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ju-login-side-kpis {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ju-mini-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ju-white);
}

.ju-mini-stat strong {
  font-size: 22px;
  line-height: 1;
}

.ju-mini-stat span {
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

.ju-login-card {
  padding: 28px;
  background: var(--ju-white);
}

.ju-login-card-head {
  margin-bottom: 6px;
}

.ju-login-card-head h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.ju-login-card-head p {
  margin: 0;
}

.ju-login-form {
  margin-top: 18px;
}

.ju-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 400 !important;
}

.ju-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ju-accent);
  clip-path: none;
  box-shadow: none;
}

.ju-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.ju-text-link {
  color: var(--ju-accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.ju-text-link:hover {
  text-decoration: underline;
}

.ju-login-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px;
}

.ju-login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--ju-border);
}

.ju-login-divider span {
  position: relative;
  background: var(--ju-white);
  padding: 0 12px;
  color: var(--ju-muted);
  font-size: 13px;
}

.ju-login-alt {
  margin-bottom: 18px;
}

.ju-login-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eceff5;
}

@media (max-width: 1280px) {
  .ju-login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  #topbar {
    grid-template-columns: 1fr;
  }

  #app {
    flex-direction: column;
    overflow-y: auto;
  }

  #bandejas,
  #mensajes,
  #contenido {
    width: 100%;
  }

  #bandejas a.activo,
  #mensajes article.activo {
    width: 100%;
    right: 0;
  }

  #bandejas a.activo::after,
  #bandejas a.activo::before,
  #mensajes article.activo::after,
  #mensajes article.activo::before {
    display: none;
  }

  .ju-grid-2,
  .ju-form-grid,
  .ju-login-side-kpis {
    grid-template-columns: 1fr;
  }

  .ju-login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ju-login-actions .ju-text-link {
    text-align: center;
  }
}
.ju-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background:
    radial-gradient(circle at top left, var(--ju-accent-faint), transparent 35%),
    linear-gradient(180deg, #eef2f7, #e5ebf3);
}

.ju-login-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.ju-login-layout {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 520px);
  gap: 24px;
  align-items: stretch;
}
.ju-form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ju-form-card label > span,
.ju-fieldset strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ju-ink, #1f2937);
}

.ju-form-card input,
.ju-form-card select,
.ju-form-card textarea {
  width: 100%;
  border: 1px solid #d8dfeb;
  background: #f8fafc;
  color: #172033;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ju-form-card input:focus,
.ju-form-card select:focus,
.ju-form-card textarea:focus {
  border-color: var(--ju-accent, #ff7a18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ju-accent, #ff7a18) 18%, transparent);
  background: #ffffff;
}

.ju-form-card textarea {
  resize: vertical;
  min-height: 120px;
}

.ju-form-card select[multiple] {
  min-height: 140px;
}

.ju-form-card input[type="color"] {
  min-height: 48px;
  padding: 6px;
  cursor: pointer;
}

.ju-form-card input[type="range"] {
  padding: 8px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ju-form-card input[type="file"] {
  padding: 10px;
  background: #fff;
}

.ju-fieldset {
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ju-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.ju-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.ju-check input[type="checkbox"],
.ju-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ju-accent, #ff7a18);
}

.ju-inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ju-mini-stat {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid #e2e8f0;
}

.ju-mini-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.ju-mini-stat span {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .ju-inline-metrics {
    grid-template-columns: 1fr;
  }

  .ju-check-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   TABLES
   ========================= */

.ju-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ju-table-scroll {
  width: 100%;
  overflow: auto;
  margin-top: 14px;
  border: 1px solid #dfe4ea;
  background: #ffffff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.ju-table-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.ju-table-scroll::-webkit-scrollbar-track {
  background: #d9dfec;
}

.ju-table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ju-panel-mid), var(--ju-panel-dark));
  border: 2px solid #d9dfec;
}

.ju-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 14px;
  background: #ffffff;
  color: var(--ju-text);
  font-size: 14px;
}

.ju-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #dfe4ea;
  white-space: nowrap;
}

.ju-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf5;
  vertical-align: middle;
  line-height: 1.45;
}

.ju-table tbody tr {
  transition: background .18s ease, transform .18s ease;
}

.ju-table tbody tr:hover {
  background: #f8fbff;
}

.ju-table tbody tr:last-child td {
  border-bottom: none;
}

.ju-table td .ju-btn {
  min-width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.ju-table .ju-pill {
  background: var(--ju-accent-soft);
  color: var(--ju-accent-strong);
  font-size: 11px;
  padding: 5px 9px;
  white-space: nowrap;
}

.ju-table-striped tbody tr:nth-child(even) {
  background: #f8fafc;
}

.ju-table-striped tbody tr:nth-child(even):hover,
.ju-table-striped tbody tr:nth-child(odd):hover {
  background: #eef6ff;
}

.ju-table-dense {
  font-size: 13px;
}

.ju-table-dense thead th {
  padding: 10px 12px;
}

.ju-table-dense tbody td {
  padding: 10px 12px;
}

.ju-table-compact thead th {
  padding: 8px 10px;
}

.ju-table-compact tbody td {
  padding: 8px 10px;
  font-size: 13px;
}

.ju-table thead th:first-child,
.ju-table tbody td:first-child {
  padding-left: 18px;
}

.ju-table thead th:last-child,
.ju-table tbody td:last-child {
  padding-right: 18px;
}

.ju-table-wrap {
  border: 1px solid #dfe4ea;
  background: #ffffff;
  overflow: hidden;
  margin-top: 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.ju-table-wrap .ju-table {
  margin-top: 0;
}

.ju-table-wrap .ju-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ju-table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ju-table-caption .ju-subtle {
  margin: 0;
}

.ju-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ju-table-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--ju-muted);
  border: 1px dashed #d8dfeb;
  background: #f8fafc;
  margin-top: 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

/* Optional status variants */
.ju-pill.is-success {
  background: #dcfce7;
  color: #166534;
}

.ju-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.ju-pill.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.ju-pill.is-info {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 1100px) {
  .ju-grid-3 {
    grid-template-columns: 1fr;
  }

  .ju-table {
    font-size: 13px;
  }

  .ju-table thead th,
  .ju-table tbody td {
    padding: 10px 12px;
  }
}


/* =========================================================
   FULL BROWSER RIGHT PANE VERSION + TOASTS
   ========================================================= */

body.ju-browser-full {
  overflow: hidden;
}

body.ju-browser-full #topbar {
  min-height: 68px;
  height: 68px;
}

body.ju-browser-full #app {
  height: calc(100vh - 68px);
}

body.ju-browser-full #bandejas,
body.ju-browser-full #mensajes {
  display: none;
}

body.ju-browser-full #contenido {
  width: 100vw;
  flex: 1 1 auto;
  min-width: 0;
  height: calc(100vh - 68px);
  background:
    radial-gradient(circle at top right, var(--ju-accent-faint), transparent 38%),
    linear-gradient(180deg, var(--ju-panel-light), #ffffff);
}

body.ju-browser-full #cabecera-contenido {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
}

body.ju-browser-full #panel {
  height: 100%;
  padding: 24px;
}

.ju-browser-stage {
  min-height: calc(100vh - 68px - 88px - 48px);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
}

.ju-browser-hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.76)),
    radial-gradient(circle at 80% 20%, var(--ju-accent-faint), transparent 36%);
  border: 1px solid #dfe4ea;
  box-shadow: 0 18px 46px rgba(31,41,55,.08);
}

.ju-browser-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: -.05em;
  line-height: .95;
  color: var(--ju-panel-dark);
}

.ju-browser-hero p {
  max-width: 760px;
  color: var(--ju-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ju-browser-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ju-browser-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ju-feature-list {
  display: grid;
  gap: 14px;
}

.ju-feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--ju-white);
  border: 1px solid #dfe4ea;
  box-shadow: 0 6px 18px rgba(31,41,55,.05);
}

.ju-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ju-accent-soft);
  color: var(--ju-accent-strong);
  font-weight: 800;
}

.ju-feature-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ju-feature-item p {
  margin: 0;
  color: var(--ju-muted);
  line-height: 1.5;
}

.ju-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ju-window-card {
  padding: 18px;
  background: var(--ju-white);
  border: 1px solid #dfe4ea;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
}

.ju-window-card strong {
  display: block;
  margin-bottom: 8px;
}

.ju-window-card span {
  color: var(--ju-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ju-toast-page {
  overflow: auto;
}

.ju-toast-demo-layout {
  min-height: calc(100vh - 68px);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
  gap: 24px;
  background:
    radial-gradient(circle at top left, var(--ju-accent-faint), transparent 34%),
    linear-gradient(180deg, #eef2f7, #e5ebf3);
}

.ju-toast-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ju-toast-preview {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.58)),
    repeating-linear-gradient(135deg, rgba(85,132,126,.06) 0 1px, transparent 1px 18px);
  border: 1px solid #dfe4ea;
  box-shadow: 0 18px 42px rgba(31,41,55,.08);
}

.ju-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: min(420px, calc(100vw - 44px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.ju-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid #dfe4ea;
  box-shadow: 0 18px 38px rgba(31,41,55,.14);
  transform: translateX(22px);
  opacity: 0;
  animation: juToastIn .28s ease forwards;
  overflow: hidden;
}

.ju-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--ju-accent);
}

.ju-toast.is-success::before { background: #22c55e; }
.ju-toast.is-warning::before { background: #f59e0b; }
.ju-toast.is-danger::before { background: #ef4444; }
.ju-toast.is-info::before { background: #3b82f6; }

.ju-toast-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ju-accent-soft);
  color: var(--ju-accent-strong);
  font-weight: 800;
}

.ju-toast.is-success .ju-toast-icon { background:#dcfce7; color:#166534; }
.ju-toast.is-warning .ju-toast-icon { background:#fef3c7; color:#92400e; }
.ju-toast.is-danger .ju-toast-icon { background:#fee2e2; color:#991b1b; }
.ju-toast.is-info .ju-toast-icon { background:#dbeafe; color:#1d4ed8; }

.ju-toast-title {
  margin: 0 0 3px;
  font-weight: 800;
  color: #111827;
}

.ju-toast-text {
  margin: 0;
  color: var(--ju-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ju-toast-close {
  border: 0;
  background: transparent;
  color: var(--ju-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.ju-toast.is-leaving {
  animation: juToastOut .22s ease forwards;
}

@keyframes juToastIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes juToastOut {
  to {
    transform: translateX(24px);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .ju-browser-stage,
  .ju-toast-demo-layout {
    grid-template-columns: 1fr;
  }

  .ju-browser-metrics,
  .ju-window-grid {
    grid-template-columns: 1fr;
  }

  body.ju-browser-full #topbar {
    height: auto;
  }

  body.ju-browser-full #app,
  body.ju-browser-full #contenido {
    height: auto;
    min-height: calc(100vh - 68px);
  }
}

