/* Paleta alineada con tema Nonosky (nonosky.com / wp-content/themes/nonosky/style.css) */

:root {
  --nonosky-red: #c41e3a;
  --nonosky-red-hover: #a01830;
  --nonosky-dark: #2d2d2d;
  --nonosky-charcoal: #333333;
  --nonosky-white: #ffffff;
  /* Acento secundario usado en widgets del sitio (p. ej. botón flotante) */
  --nonosky-teal: #0d9488;
  --nonosky-teal-dim: #0f766e;

  --bg: var(--nonosky-charcoal);
  --surface: #3a3a3a;
  --card: var(--nonosky-dark);
  --text: var(--nonosky-white);
  --muted: rgba(255, 255, 255, 0.78);
  --accent: var(--nonosky-red);
  --accent-hover: var(--nonosky-red-hover);
  --focus-ring: var(--nonosky-teal);
  --warn: #fbbf24;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --radius: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--nonosky-red);
  color: var(--nonosky-white);
  z-index: 1000;
  border-radius: 6px;
}

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.corp-bar {
  background: var(--nonosky-red);
  color: var(--nonosky-white);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.corp-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.corp-bar-tag {
  font-weight: 500;
}

.corp-bar-link {
  color: var(--nonosky-white);
  font-weight: 600;
  text-decoration: none;
}

.corp-bar-link:hover {
  text-decoration: underline;
}

.top {
  background: var(--nonosky-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--nonosky-white);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--nonosky-charcoal);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-cloud {
  color: var(--nonosky-red);
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--nonosky-white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover {
  text-decoration: underline;
}

.hero {
  padding: 3rem 0 2.5rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.2);
  color: var(--nonosky-white);
  border: 1px solid rgba(196, 30, 58, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
  font-weight: 700;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--nonosky-red);
  color: var(--nonosky-white);
  box-shadow: 0 6px 22px rgba(196, 30, 58, 0.35);
}

.btn.primary:hover {
  background: var(--nonosky-red-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--nonosky-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 62ch;
}

.trust li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--nonosky-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.25);
}

.section {
  padding: 2.75rem 0;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

/* —— Cómo funciona (diagrama + pasos) —— */
.how-section {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.how-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(196, 30, 58, 0.14) 0%, transparent 55%),
    radial-gradient(700px 380px at 85% 60%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  pointer-events: none;
}

.how-inner {
  position: relative;
  z-index: 1;
}

.how-header {
  margin-bottom: 2.25rem;
  max-width: 52rem;
}

.how-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nonosky-teal);
}

.how-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
  font-weight: 700;
}

.how-subheading {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin: 1.5rem 0 0.85rem;
  line-height: 1.2;
  font-weight: 700;
}

.how-lead--intro {
  margin: 0 0 0.25rem;
  max-width: 62ch;
  font-size: 1.05rem;
}

.how-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 48rem;
}

.how-lead a,
.how-lead--intro a {
  color: var(--nonosky-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.how-lead a:hover,
.how-lead--intro a:hover {
  color: #5eead4;
}

@keyframes how-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-slab {
  background: linear-gradient(180deg, #ececec 0%, #dfdfdf 100%);
  color: #141414;
  border-radius: 16px;
  padding: 2rem 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-slab-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #0a0a0a;
}

.rack-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(196, 30, 58, 0.5) transparent;
}

.rack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 0 0.5rem;
  min-width: min(100%, 920px);
  margin: 0 auto;
  max-width: 1000px;
}

@media (max-width: 900px) {
  .rack-grid {
    grid-template-columns: repeat(6, minmax(148px, 1fr));
    min-width: 900px;
  }
}

.rack-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: how-rise 3.75s ease backwards;
  animation-delay: calc(450ms + var(--n) * 390ms);
}

@media (prefers-reduced-motion: reduce) {
  .rack-col {
    animation: none;
  }
}

.rack-title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  min-height: 2.6em;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.rack-dot-wrap {
  position: relative;
  width: 100%;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.65rem;
}

.rack-dot-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: #b8b8b8;
  border-radius: 2px;
  z-index: 0;
}

.rack-col:first-child .rack-dot-wrap::before {
  left: 50%;
}

.rack-col:last-child .rack-dot-wrap::before {
  right: 50%;
}

.rack-dot {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--nonosky-red);
  border: 3px solid #ececec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.rack-desc {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #2a2a2a;
  hyphens: auto;
}

.timeline-footnote {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #444;
  text-align: center;
}

.how-tech-strip {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(45, 45, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.how-tech-strip code {
  font-size: 0.82em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.how-tech-strip strong {
  color: var(--nonosky-white);
}

.section-form {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .section-form {
    /* Wizard primero en el DOM: columna ancha a la izquierda */
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.form-intro p {
  color: var(--muted);
  max-width: 48ch;
}

.sync-form {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sync-form fieldset {
  border: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.sync-form legend {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid .field:not(.check):nth-child(odd):last-child {
    grid-column: span 2;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field select {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  border-color: var(--nonosky-teal);
}

.field.check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.field.check span {
  font-weight: 500;
}

.opts .field.check {
  grid-column: span 2;
}

.opts .field:last-child {
  grid-column: span 2;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

.fineprint a {
  color: var(--nonosky-teal);
}

.fineprint a:hover {
  color: #5eead4;
}

.fineprint.ok {
  color: #6ee7b7;
}

.fineprint.warn {
  color: var(--warn);
}

.faq {
  display: grid;
  gap: 1rem;
  max-width: 70ch;
}

.faq dt {
  font-weight: 700;
  color: var(--text);
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--nonosky-dark);
}

.footer-inner {
  padding: 2rem 0;
}

.footer p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--nonosky-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hidden {
  display: none !important;
}

/* Planes de servicio — bloque claro a ancho completo (contrasta con el sitio oscuro) */
#precios {
  scroll-margin-top: 5.5rem;
}

.planes-section--contrast {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #141414;
  border-top: 5px solid var(--nonosky-red);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.planes-section--contrast .planes-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
}

.planes-head {
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.planes-section--contrast .planes-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #0a0a0a;
}

.planes-section--contrast .planes-lead {
  margin: 0;
  color: #3d3d3d;
  line-height: 1.55;
}

.planes-section--contrast .planes-lead strong {
  color: #111;
}

.planes-elegir {
  margin: 0 0 1rem;
  font-weight: 700;
  color: #222;
  font-size: 1rem;
}

.planes-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.planes-section--contrast .plan-card {
  position: relative;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.planes-section--contrast .plan-card:hover {
  border-color: rgba(13, 148, 136, 0.65);
}

.planes-section--contrast .plan-card:focus-within {
  outline: 2px solid #0d9488;
  outline-offset: 3px;
}

.planes-section--contrast .plan-card.is-selected {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35), 0 8px 28px rgba(0, 0, 0, 0.12);
}

.planes-section--contrast .plan-card--featured {
  border-color: rgba(196, 30, 58, 0.4);
}

.planes-section--contrast .plan-card--featured.is-selected {
  border-color: var(--nonosky-red);
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.25), 0 8px 28px rgba(0, 0, 0, 0.12);
}

.planes-section--contrast .plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 0.35rem;
}

.planes-section--contrast .plan-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #111;
}

.planes-section--contrast .plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.75rem;
}

.planes-section--contrast .plan-price small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #555;
  margin-top: 0.2rem;
}

.planes-section--contrast .plan-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.45;
}

.planes-section--contrast .plan-meta li + li {
  margin-top: 0.35rem;
}

.planes-section--contrast .plan-meta strong {
  color: #111;
  font-weight: 600;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* —— Asistente por pasos (migración) —— */
.wizard {
  max-width: 52rem;
}

.wizard-track {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
}

.wizard-track-item {
  flex: 1 1 auto;
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.wizard-track-item span {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  line-height: 1.65rem;
  margin: 0 auto 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
}

.wizard-track-item.is-active {
  color: var(--nonosky-teal);
}

.wizard-track-item.is-active span {
  background: rgba(13, 148, 136, 0.25);
  border-color: var(--nonosky-teal);
  color: var(--text);
}

.wizard-track-item.is-done span {
  background: rgba(13, 148, 136, 0.45);
  border-color: rgba(13, 148, 136, 0.6);
  color: var(--nonosky-white);
}

.wizard-panel {
  padding: 0.25rem 0 1.5rem;
}

.wizard-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.wizard-panel-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.wizard-register-cta {
  margin: 1rem 0 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.wizard-register-msg {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.wizard-register-btn {
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
}

.wizard-fieldset {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.wizard-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.verify-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 1.5rem;
}

.verify-banner--ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.verify-banner--bad {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn);
}

.verify-banner--pending {
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: #5eead4;
}

.step6-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--text);
}

.step6-summary .step6-summary-line {
  margin: 0.35rem 0 0;
}

.step6-summary .step6-summary-line:first-child {
  margin-top: 0;
}

.folder-preview-wrap {
  margin-top: 1.25rem;
}

.folder-preview-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.folder-preview-table-wrap {
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.folder-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.folder-preview-table th,
.folder-preview-table td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.folder-preview-table th {
  background: rgba(0, 0, 0, 0.25);
  font-weight: 700;
  color: var(--muted);
  position: sticky;
  top: 0;
}

.compare-summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.25);
  font-size: 0.92rem;
  line-height: 1.5;
}

.compare-summary p {
  margin: 0.35rem 0 0;
}

.compare-summary p:first-child {
  margin-top: 0;
}

.wizard-loading {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.step4-live {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.step4-live-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #6ee7b7;
}

.step4-chart-wrap {
  margin-bottom: 1rem;
}

.step4-chart-wrap canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.step4-chart-legend {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.step4-tail-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.step4-tail {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #a7f3d0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  min-height: 3.2em;
}

.wizard-log {
  margin-top: 1rem;
  padding: 1rem;
  max-height: 320px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6ee7b7;
  white-space: pre-wrap;
  word-break: break-word;
}

.wizard-footnote {
  margin-top: 1.5rem;
}

/* Continuar al paso siguiente: deshabilitado hasta verificar; verde al habilitar */
.wizard-next-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.nav .nav-about {
  opacity: 0.85;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: flex-end;
  }
}

.paypal-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.auth-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 2rem 0 3rem;
}

.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.admin-wrap {
  max-width: min(1100px, 100%);
}

.auth-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.auth-back a {
  color: var(--muted);
}

.auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.auth-lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.auth-lead--compact {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.auth-reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-forgot-wrap {
  margin: 0.5rem 0 0;
  text-align: center;
}

button.auth-forgot-link {
  background: none;
  border: none;
  padding: 0.35rem 0.25rem;
  font-size: 0.88rem;
  color: #6ee7b7;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

button.auth-forgot-link:hover {
  color: #a7f3d0;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-tab.is-active {
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}

.auth-form .field {
  display: block;
  margin-bottom: 1rem;
}

.auth-form .field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.auth-foot {
  margin-top: 2rem;
}

.admin-h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.admin-actions {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#admin-dash #admin-logout.btn.ghost {
  background: var(--nonosky-red);
  color: var(--nonosky-white);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

#admin-dash #admin-logout.btn.ghost:hover {
  background: var(--nonosky-red-hover);
  border-color: rgba(255, 255, 255, 0.35);
}

#admin-dash #admin-refresh.btn.ghost {
  background: #059669;
  color: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

#admin-dash #admin-refresh.btn.ghost:hover {
  background: #047857;
  border-color: rgba(167, 243, 208, 0.6);
  color: #fff;
}

.admin-live-status {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
}

.admin-table-wrap {
  max-height: none;
  overflow: visible;
}

.admin-table-users-wrap {
  overflow-x: visible;
  overflow-y: visible;
  max-height: none;
}

.folder-preview-table-wrap.admin-table-users-wrap {
  max-height: none;
  overflow: visible;
}

#tbl-users {
  table-layout: fixed;
  width: 100%;
}

#tbl-users th,
#tbl-users td {
  white-space: normal;
  word-break: break-word;
  font-size: 0.8rem;
  vertical-align: top;
}

.admin-id code {
  font-size: 0.75rem;
}

.admin-nowrap {
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.admin-plan-cell {
  vertical-align: top;
  min-width: auto;
  font-size: 0.8rem;
}

/* Plan mensual (ilimitado): celda Tokens sin controles */
#tbl-users td.admin-tokens-skip {
  padding: 0.25rem 0.35rem;
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.admin-plan-svc {
  vertical-align: top;
  min-width: 13.5rem;
  width: 18%;
}

#tbl-users select.admin-plan-sel {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  box-sizing: border-box;
}

.admin-plan-cell .admin-plan-days {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  box-sizing: border-box;
}

.admin-plan-chk {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
  cursor: pointer;
}

.admin-token-info {
  margin: 0 0 0.45rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.25;
}

.admin-plan-btns {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-user-btn--assign {
  background: #0e7490;
  color: #ecfeff;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.admin-user-btn--assign:hover:not(:disabled) {
  background: #155e75;
  color: #fff;
}

.admin-user-btn--cycle {
  background: #92400e;
  color: #ffedd5;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.admin-user-btn--cycle:hover:not(:disabled) {
  background: #b45309;
  color: #fff;
}

.admin-user-btn--add-tokens {
  background: #854d0e;
  color: #fef3c7;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.4);
}

.admin-user-btn--add-tokens:hover:not(:disabled) {
  background: #a16207;
  color: #fff;
}

.admin-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.admin-user-btn {
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.admin-user-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-user-btn--delete {
  background: #7f1d1d;
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.admin-user-btn--delete:hover:not(:disabled) {
  background: #991b1b;
  color: #fff;
}

.admin-user-btn--block {
  background: #14532d;
  color: #bbf7d0;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.admin-user-btn--block:hover:not(:disabled) {
  background: #166534;
  color: #fff;
}

.admin-user-btn--unblock {
  background: #7f1d1d;
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.admin-user-btn--unblock:hover:not(:disabled) {
  background: #991b1b;
  color: #fff;
}

.btn.ghost.wizard-next-btn.wizard-next-btn--ready:not(:disabled) {
  background: #10b981;
  color: #f0fdf4;
  border-color: #059669;
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn.ghost.wizard-next-btn.wizard-next-btn--ready:not(:disabled):hover {
  background: #059669;
  border-color: #047857;
  color: #fff;
}

/* —— Panel de usuario (/panel.html) —— */
.panel-page .panel-wrap {
  max-width: 920px;
}

/* Topbar: título+nav a la izquierda, info de cuenta a la derecha */
.panel-topbar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.panel-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.panel-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  min-width: 220px;
  align-self: start;
  position: sticky;
  top: 0.5rem;
}

.panel-email-inline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.panel-topbar-right .panel-cycle-bar {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.panel-topbar-right .panel-cycle-inner {
  gap: 0.4rem 0.75rem;
}

.panel-topbar-right .panel-cycle-item {
  font-size: 0.82rem;
}

.panel-topbar-right .panel-updated {
  margin: 0;
  font-size: 0.75rem;
}

/* Título mini para bloques compactos */
.panel-compact-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

/* Config global compacta en topbar */
.panel-global-compact {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem;
  width: 100%;
}

.panel-lote-block {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
}

/* Grid principal del bloque lote: [servidores apilados | guardar/borrar | csv] */
.panel-lote-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
}

.panel-lote-servers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.panel-lote-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

/* Label inline como prefijo del input */
.panel-lote-col .field--compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.panel-lote-col .field--compact span {
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.panel-lote-col .field--compact input {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem;
}

.panel-lote-portssl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.panel-lote-portssl .panel-global-select {
  font-size: 0.75rem;
  padding: 0.28rem 0.35rem;
}

.panel-lote-col .field--compact span { font-size: 0.72rem; }
.panel-lote-col .field--compact input {
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.panel-lote-portssl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.panel-lote-portssl .panel-global-select {
  font-size: 0.75rem;
  padding: 0.28rem 0.35rem;
  flex: 1;
  min-width: 0;
}

.panel-lote-btncol {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* Grupo CSV 2×2 compacto */
.panel-lote-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

.panel-lote-2x2 .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  font-size: 0.75rem;
  padding: 0.32rem 0.5rem;
  margin: 0;
}



.panel-global-compact-cols {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.panel-global-compact-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 140px;
}

.panel-global-compact-col .field--compact span {
  font-size: 0.72rem;
}

.panel-global-compact-col .field--compact input {
  font-size: 0.78rem;
  padding: 0.3rem 0.4rem;
}

.panel-global-compact-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panel-global-compact-row .panel-global-select {
  font-size: 0.75rem;
  padding: 0.28rem 0.35rem;
  flex: 1;
}

.panel-global-ssl-lbl {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.panel-global-compact-btns {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

.btn--sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  min-width: 5rem;
}

@media (max-width: 600px) {
  .panel-topbar-row { flex-direction: column; }
  .panel-topbar-right { align-items: flex-start; max-width: 100%; }
}

.panel-top-links {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-top-links a {
  color: #6ee7b7;
}

.panel-top-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.panel-link-btn {
  background: none;
  border: none;
  color: #6ee7b7;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.panel-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.panel-cycle-bar {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-cycle-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}

.panel-cycle-item {
  font-size: 0.92rem;
}

.panel-cycle-k {
  color: var(--muted);
  font-size: 0.82em;
  margin-right: 0.2rem;
}

.panel-cycle-msg {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.panel-cycle-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.panel-cycle-badge--warn {
  background: rgba(180, 83, 9, 0.35);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.panel-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-section:last-of-type {
  border-bottom: none;
}

.panel-section--pay {
  background: rgba(16, 185, 129, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.panel-h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.panel-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.panel-hint a {
  color: #6ee7b7;
}

.panel-job-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  gap: 0.5rem;
}

.panel-job-id {
  font-size: 0.85rem;
}

.panel-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.panel-badge--active {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.panel-badge--ok {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.panel-badge--bad {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.panel-badge--idle {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.panel-card-body {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.panel-k {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.panel-err {
  margin-top: 0.5rem;
  color: #fca5a5;
  font-size: 0.82rem;
}

.panel-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.panel-slot {
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 120px;
}

.panel-slot--free {
  border: 1px dashed rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
}

.panel-slot--busy {
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.08);
}
/* JobCard compacto dentro de ficha activa */
.panel-slot--busy.panel-slot--expanded {
  position: relative;
}
.panel-job-compact {
  padding: 0.1rem 0;
}
/* Botón minimizar flotante arriba a la derecha */
.panel-job-minmax-top {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  line-height: 1;
  z-index: 2;
}
.panel-job-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  gap: 0.4rem;
}
.panel-job-compact-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #60a5fa;
}
.panel-job-compact-btns {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-shrink: 0;
}
.panel-job-compact-stop {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}
.panel-job-compact-min {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}
.panel-job-compact-route {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-job-compact-log {
  font-size: 0.68rem;
  background: rgba(0,0,0,0.3);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  max-height: 3.8rem;
  overflow: hidden;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.35rem 0 0;
  line-height: 1.35;
}
.panel-job-err-compact {
  font-size: 0.73rem;
  color: #f87171;
  margin: 0.25rem 0 0;
}

/* Ficha en estado "enviando / en progreso / simulación" — azul */
.panel-slot--sending {
  border: 1px solid rgba(59, 130, 246, 0.55) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  transition: background 0.3s, border-color 0.3s;
}
.panel-slot--sending .panel-slot-free,
.panel-slot--sending .panel-slot-n {
  color: #60a5fa;
}
.panel-slot--sending .panel-pc-submit {
  background: #2563eb !important;
  color: #fff !important;
  cursor: default;
  opacity: 0.85;
}

/* Ficha terminada — naranja */
.panel-slot--finished {
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.08);
}
.panel-job-finished {
  padding: 0.1rem 0;
}
.panel-job-finished-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.panel-job-finished-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.panel-job-finished-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fb923c;
  flex: 1;
}
.panel-job-archive {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  margin-left: auto;
}
.panel-job-finished-stats {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
/* Tarjeta de estadística reutilizable (fichas terminadas + historial) */
.stat-card,
.panel-job-fstat,
.panel-hist-sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(251, 146, 60, 0.09);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 7px;
  padding: 0.28rem 0.7rem;
  min-width: 60px;
}
.stat-card-n,
.panel-job-fstat-n,
.panel-hist-sum-n {
  font-size: 0.97rem;
  font-weight: 700;
  color: #fdba74;
  line-height: 1.2;
}
.stat-card-l,
.panel-job-fstat-l,
.panel-hist-sum-l {
  font-size: 0.69rem;
  color: var(--muted);
}
/* Historial con detalle */
.panel-hist-detail {
  font-size: 0.75rem;
  color: var(--muted);
  flex: 1;
}
/* Toggle expandir historial */
.panel-hist-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0 0.3rem 0 0;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}
.panel-hist-toggle:hover,
.panel-hist-toggle--open {
  color: #fb923c;
}
/* Panel expandido del historial */
.panel-hist-expand {
  margin: 0 0 0.5rem 1.7rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.panel-hist-sum-grid {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
/* panel-hist-sum-item, panel-hist-sum-n, panel-hist-sum-l — ahora aliasados en .stat-card arriba */
.panel-hist-sum-route {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

/* Ficha activa compacta (igual aspecto que libre) */
.panel-slot--compact {
  cursor: default;
}
.panel-slot-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.panel-slot-sync-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.45rem;
}
.panel-slot-compact-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.panel-slot-compact-bar .panel-job-progress {
  flex: 1;
  height: 0.45rem;
}
.panel-slot-compact-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  white-space: nowrap;
}
.panel-slot-maxbtn {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}
.panel-dry-header-btns {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.panel-dry-header-btns .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

/* Overlay de resumen de simulación */
.panel-dry-overlay {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  margin-top: 0.5rem;
}
.panel-dry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: nowrap;
}
.panel-dry-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.02em;
}
.panel-dry-route {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  word-break: break-all;
}
.panel-dry-running {
  font-size: 0.85rem;
  color: #93c5fd;
  padding: 0.5rem 0;
}
.panel-dry-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.panel-dry-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  min-width: 70px;
}
.panel-dry-stat-n {
  font-size: 1.15rem;
  font-weight: 700;
  color: #93c5fd;
  line-height: 1.2;
}
.panel-dry-stat-l {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.panel-dry-log {
  font-size: 0.72rem;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  max-height: 100px;
  overflow: auto;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0.75rem;
}
.panel-dry-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.panel-dry-actions .btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

/* Sesión en curso: mismo lenguaje visual que el paso 4 del asistente (index) */
.panel-job-run-live {
  margin-top: 0;
  padding: 0.85rem 1rem;
}

.panel-job-run-live .wizard-loading {
  padding: 0.35rem 0 0.65rem;
  margin: 0;
}

.panel-job-run-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.1rem;
}

.panel-job-run-head .step4-live-title {
  margin: 0;
  flex: 1 1 12rem;
}

.panel-job-cancel {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.panel-job-progress-wrap {
  margin: 0.45rem 0 0.25rem;
}

.panel-job-progress {
  display: block;
  width: 100%;
  height: 0.65rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.panel-job-progress::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

.panel-job-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  border-radius: 6px;
}

.panel-job-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  border-radius: 6px;
}

.panel-job-progress-label {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.panel-job-log-tail {
  max-height: 110px;
}

.panel-job-run-status {
  margin-top: 0.5rem;
}

.panel-job-run-meta {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.panel-job-run-meta .panel-k {
  font-size: 0.78rem;
}

.panel-job-run-err {
  margin-top: 0.65rem;
}

.panel-job-tail-wrap {
  margin-top: 0.75rem;
}

.panel-job-tail-wrap .step4-tail {
  max-height: 7.5rem;
  overflow: auto;
}

.panel-slot-n {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.panel-slot-free {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6ee7b7;
}

.panel-slot-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.panel-slot-toggle:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

.panel-slot-toggle-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.panel-slot-expand {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 185, 129, 0.22);
}

.panel-slot--free.panel-slot--expanded,
.panel-slot--busy.panel-slot--expanded {
  grid-column: 1 / -1;
}

.panel-global-hint {
  margin: 0.25rem 0 0.75rem;
  max-width: 40rem;
}

.panel-global-servers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem 1rem;
  max-width: 52rem;
  align-items: end;
}

/* Puerto + SSL/TLS + botones en la misma fila */
.panel-global-port-ssl {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.panel-global-port-field {
  flex: 0 0 auto;
  min-width: 200px;
}

/* .panel-global-subtitle eliminado — texto incorporado en el label */

.panel-global-servers .field--compact span {
  font-size: 0.78rem;
}

.panel-global-servers .field--compact input,
.panel-global-servers .field--compact select {
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
}

.panel-global-servers .panel-global-check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.2rem;
}

.panel-global-servers .panel-global-check span {
  font-weight: 500;
  color: var(--text);
}

.panel-global-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.panel-global-save-status {
  margin: 0.4rem 0 0;
  min-height: 1.2em;
  color: #a7f3d0;
}

.panel-csv-queue {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  max-width: 48rem;
}

.panel-csv-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.panel-csv-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.panel-csv-code {
  font-size: 0.78em;
  padding: 0.08rem 0.2rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #a7f3d0;
  white-space: nowrap;
}

.panel-csv-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

.panel-csv-file-btn,
.panel-csv-template-btn {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.panel-csv-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}

.panel-csv-append {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
}

.panel-csv-append input {
  margin: 0;
}

.panel-queue-status {
  margin: 0.35rem 0 0;
}

.panel-load-sync-btn {
  flex-basis: 100%;
  margin-top: 0.25rem;
}

@media (min-width: 520px) {
  .panel-load-sync-btn {
    flex-basis: auto;
    margin-top: 0;
  }
}

.panel-load-sync-hint {
  margin: 0.5rem 0 0;
  max-width: 44rem;
}

/* === SLOT LIBRE — layout compacto === */
.panel-pc-formgrid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0 0.25rem;
}

/* Barra superior: simulación + Borrar datos + Iniciar */
.panel-pc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.1rem;
}

.panel-pc-topbar-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.panel-pc-dry {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

/* 2 columnas origen | destino */
.panel-pc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

@media (max-width: 640px) {
  .panel-pc-cols { grid-template-columns: 1fr; }
}

.panel-pc-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.panel-pc-form-title {
  margin: 0 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-pc-col .field--compact span {
  font-size: 0.75rem;
}

.panel-pc-col .field--compact input,
.panel-pc-col .field--compact select {
  font-size: 0.8rem;
  padding: 0.35rem 0.4rem;
}

/* Footer de columna: SSL + Comprobar en la misma fila */
.panel-pc-col-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.panel-pc-col-footer .field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.panel-pc-col-footer .field--check span {
  font-size: 0.78rem;
  margin: 0;
}

.panel-pc-slot-msg {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
}



.panel-pc-verify-badge {
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 1.1rem;
}

.pcvb--ok      { color: #10b981; }
.pcvb--bad     { color: #ef4444; }
.pcvb--pending { color: #f59e0b; }

/* Botón Comprobar — rojo por defecto, verde cuando OK */
.panel-pc-verify,
#panel-global-verify-o,
#panel-global-verify-d {
  background: var(--nonosky-red);
  color: #fff;
  border-color: var(--nonosky-red);
  font-weight: 700;
  min-width: 7.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.panel-pc-verify:hover,
#panel-global-verify-o:hover,
#panel-global-verify-d:hover {
  background: var(--nonosky-red-hover);
  border-color: var(--nonosky-red-hover);
}
.panel-pc-verify.verifying {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
  opacity: 0.85;
  cursor: wait;
}

.panel-pc-verify.verified-ok,
#panel-global-verify-o.verified-ok,
#panel-global-verify-d.verified-ok {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.panel-pc-verify.verified-ok:hover,
#panel-global-verify-o.verified-ok:hover,
#panel-global-verify-d.verified-ok:hover {
  background: #047857;
  border-color: #047857;
}

.panel-pc-submit:not(:disabled) {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-weight: 700;
}
.panel-pc-submit:not(:disabled):hover {
  background: #15803d;
  border-color: #15803d;
}
.panel-pc-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.panel-job-cancel--stop {
  width: 100%;
  margin: 0.5rem 0 0.25rem;
  background: var(--nonosky-red);
  border-color: var(--nonosky-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
}
.panel-job-cancel--stop:hover {
  background: var(--nonosky-red-hover);
  border-color: var(--nonosky-red-hover);
}
.panel-job-cancel--stop:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.panel-slot .panel-job-run {
  margin-top: 0.35rem;
}

.panel-paypal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.panel-paypal-hint {
  margin-top: 0.75rem;
}

.panel-empty.hidden {
  display: none;
}

.panel-mini code {
  font-size: 0.78rem;
}

/* ── Nueva migración ── */
.panel-nueva-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

.panel-nueva-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.panel-nueva-col .field--compact span { font-size: 0.8rem; }
.panel-nueva-col .field--compact input { font-size: 0.85rem; padding: 0.35rem 0.45rem; }

.panel-nueva-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.4rem;
}

/* ── Transferencias en curso ── */
.panel-activas-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.panel-activas-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.panel-activa-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.panel-activa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.panel-activa-route {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-activa-stop {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--nonosky-red);
  border-color: var(--nonosky-red);
  color: #fff;
  flex-shrink: 0;
}

.panel-activa-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-activa-progress {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  accent-color: #10b981;
}

.panel-activa-pct {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
}

.panel-activa-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.panel-activa-queued { color: #f59e0b; }

.panel-activa-log {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ── Historial ── */
.panel-historial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Cada entrada del historial: fila principal + panel expandido debajo */
.panel-hist-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Fila principal compacta */
.panel-hist-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.1rem;
  font-size: 0.82rem;
}

.panel-hist-icon { font-size: 1rem; flex-shrink: 0; }
.panel-hist-route {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.panel-hist-time {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .panel-nueva-grid { grid-template-columns: 1fr; }
}
