/* ==========================================================================
   ClientStudio: Human-First Accessible Onboarding Stylesheet
   Designed for extreme simplicity, accessibility, and zero tech friction.
   ========================================================================== */

:root {
  --cs-bg: #ffffff;
  --cs-surface: rgba(255, 255, 255, 0.92);
  --cs-surface-subtle: #f8fafc;
  --cs-border: #e2e8f0;
  --cs-border-crystal: rgba(16, 185, 129, 0.22);
  --cs-border-crystal-hover: rgba(16, 185, 129, 0.45);
  --cs-border-focus: #10b981;
  --cs-text-main: #0f172a;
  --cs-text-muted: #475569;
  --cs-text-dim: #94a3b8;
  --cs-primary: #10b981;
  --cs-primary-hover: #059669;
  --cs-primary-subtle: #ecfdf5;
  --cs-primary-glow: rgba(16, 185, 129, 0.35);
  --cs-success: #10b981;
  --cs-success-subtle: #ecfdf5;
  --cs-accent: #00ff87;
  --cs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cs-radius: 18px;
  --cs-radius-sm: 10px;
  --cs-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --cs-shadow-lg: 0 20px 40px -10px rgba(16, 185, 129, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.client-studio-body {
  font-family: var(--cs-font);
  background-color: var(--cs-bg);
  color: var(--cs-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Reactive Kryptonite Connections Canvas */
#kryptoniteCanvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Diffused Light Blobs (Crystalline Emerald Refraction on White) */
.ambient-glow-blob {
  position: fixed;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

.blob-top {
  position: fixed;
  top: -140px;
  left: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  filter: blur(140px);
}

.blob-middle {
  position: fixed;
  top: 38%;
  right: 8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
  filter: blur(140px);
}

.blob-bottom {
  position: fixed;
  bottom: -100px;
  left: 20%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
  filter: blur(140px);
}

/* Header */
.cs-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.16);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.04);
}

.cs-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cs-text-main);
  font-weight: 700;
  font-size: 1.05rem;
}

.vaxur-nav-logo-light {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vaxur-nav-logo-light:hover {
  transform: scale(1.02);
}

.cs-brand-separator {
  color: #10b981;
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.95rem;
}

.cs-brand-icon {
  width: 36px;
  height: 36px;
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--cs-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-badge-help {
  font-size: 0.85rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Main Container */
.cs-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  position: relative;
  z-index: 10;
}

/* Top Progress Bar */
/* Top Progress Bar */
.cs-progress-cluster {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--cs-radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
}

.cs-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cs-progress-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-text-main);
}

.cs-progress-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.cs-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.cs-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #00ff87 100%);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.35);
  border-radius: 99px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 25%;
}

.cs-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .cs-steps-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.cs-step-pill {
  padding: 10px 12px;
  border-radius: var(--cs-radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cs-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.cs-step-pill:hover {
  background: #f1f5f9;
  border-color: rgba(16, 185, 129, 0.3);
}

.cs-step-pill.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.18);
}

.cs-step-pill.completed {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
}

.cs-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}

.cs-step-pill.active .cs-step-num {
  background: #10b981;
  color: #fff;
}

.cs-step-pill.completed .cs-step-num {
  background: #059669;
  color: #fff;
}

/* Card Container */
.cs-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--cs-radius);
  padding: 36px 32px;
  box-shadow: 0 14px 36px -8px rgba(16, 185, 129, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  margin-bottom: 28px;
  transition: all 250ms ease;
}

@media (max-width: 640px) {
  .cs-card {
    padding: 24px 20px;
  }
}

.cs-card-header {
  margin-bottom: 28px;
}

.cs-badge-step {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cs-card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--cs-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cs-card-desc {
  font-size: 1.02rem;
  color: var(--cs-text-muted);
  line-height: 1.5;
}

/* Human Input Fields */
.cs-form-group {
  margin-bottom: 24px;
}

.cs-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-text-main);
  margin-bottom: 8px;
}

.cs-helper {
  font-size: 0.85rem;
  color: var(--cs-text-muted);
  margin-bottom: 10px;
  display: block;
}

.cs-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  border-radius: var(--cs-radius-sm);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--cs-text-main);
  font-family: inherit;
  transition: all 200ms ease;
}

.cs-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.cs-input::placeholder {
  color: var(--cs-text-dim);
}

/* Callout Box (Explaining clearly) */
.cs-callout {
  background: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 18px 20px;
  border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cs-callout-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-callout-text {
  font-size: 0.92rem;
  color: var(--cs-text-main);
}

.cs-callout-text strong {
  font-weight: 700;
}

/* Action Buttons */
.cs-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 16px 28px;
  border-radius: var(--cs-radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.cs-btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.42);
}

.cs-btn-secondary {
  background: var(--cs-surface-subtle);
  color: var(--cs-text-main);
  border: 1px solid var(--cs-border);
  padding: 14px 22px;
  border-radius: var(--cs-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms ease;
  text-decoration: none;
}

.cs-btn-secondary:hover {
  background: #e2e8f0;
}

.cs-btn-link {
  background: transparent;
  color: var(--cs-text-muted);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-btn-link:hover {
  color: var(--cs-text-main);
}

/* Stepper Bottom Navigation */
.cs-stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

/* ==========================================================================
   Stripe Human-First Key Cards & Immediate Verification Styles
   ========================================================================== */

/* Tarjeta "¿No tienes cuenta de Stripe? Lee detenidamente antes de continuar" */
.cs-stripe-signup-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-top: 4px solid #635bff;
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.06);
}

.cs-stripe-signup-header {
  margin-bottom: 20px;
}

.cs-stripe-signup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cs-stripe-signup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-stripe-signup-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 6px 12px;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
  display: inline-block;
  margin-top: 4px;
}

.cs-stripe-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.cs-stripe-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.cs-stripe-step-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.cs-stripe-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99, 91, 255, 0.3);
}

.cs-stripe-step-body {
  flex: 1;
}

.cs-stripe-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.cs-stripe-step-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
}

.cs-btn-stripe-register {
  background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 15px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.35);
  transition: all 200ms ease;
}

.cs-btn-stripe-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(99, 91, 255, 0.5);
  color: #ffffff;
}

/* Botón "Obtener mis claves API" */
.cs-btn-stripe-apikeys {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 1.12rem;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  transition: all 220ms ease;
  animation: csHeroPulse 2.8s infinite ease-in-out;
}

.cs-btn-stripe-apikeys:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.55);
  color: #ffffff;
}

/* Tutorial Visual Container */
.cs-stripe-tutorial-section {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.cs-stripe-tutorial-header {
  margin-bottom: 20px;
}

.cs-stripe-tutorial-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.cs-stripe-tutorial-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
}

/* Banner de Soporte Telefónico Directo */
.cs-support-phone-banner {
  text-align: center;
  margin: 20px auto 10px auto;
  padding: 14px 22px;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cs-support-phone-banner:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.15);
}

.cs-support-phone-banner svg {
  color: #10b981;
  flex-shrink: 0;
}

.cs-support-phone-link {
  font-weight: 800;
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.cs-support-phone-link:hover {
  color: #047857;
  text-decoration-thickness: 2px;
}

/* Super Hero Launcher para Stripe */
.cs-stripe-hero-launcher {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 30px -4px rgba(16, 185, 129, 0.08);
  margin-bottom: 28px;
}

.cs-stripe-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.cs-stripe-hero-desc {
  font-size: 0.92rem;
  color: #475569;
  max-width: 560px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.cs-stripe-hero-btn {
  background: linear-gradient(135deg, #635bff 0%, #4338ca 100%);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 1.12rem;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
  transition: all 220ms ease;
  animation: csHeroPulse 2.8s infinite ease-in-out;
}

.cs-stripe-hero-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(99, 91, 255, 0.55);
}

@keyframes csHeroPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 12px 32px rgba(99, 91, 255, 0.65);
  }
}

.cs-stripe-hero-notice {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

/* Chrome superior que imita la ventana del navegador en Stripe */
.cs-stripe-mock-chrome {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-mock-chrome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cs-dot-red { background: #ef4444; }
.cs-dot-yellow { background: #f59e0b; }
.cs-dot-green { background: #10b981; }

.cs-mock-chrome-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
  max-width: 320px;
}

.cs-mock-chrome-badge {
  background: #635bff;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.cs-stripe-mock-panel-tag {
  background: #1e293b;
  color: #e2e8f0;
  padding: 8px 16px;
  border-bottom: 1px solid #334155;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.02em;
}

.cs-mock-preview-pill {
  background: rgba(99, 91, 255, 0.3);
  color: #c7d2fe;
  border: 1px solid #635bff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .cs-stripe-action-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cs-stripe-action-info strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 3px;
}

.cs-stripe-action-info span {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.cs-magic-paste-bar {
  background: #ecfdf5;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 28px;
  text-align: center;
}

.cs-magic-paste-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  transition: all 180ms ease;
  width: 100%;
  max-width: 520px;
}

.cs-magic-paste-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.cs-magic-feedback {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
}

/* Las 2 Cajas Principales */
.cs-key-box {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 220ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.cs-key-box.is-verified {
  border-color: #10b981;
  background: rgba(240, 253, 244, 0.95);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.cs-key-box.is-error {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.cs-key-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cs-key-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms ease;
}

.cs-key-box.is-verified .cs-key-number {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.cs-key-title-wrap {
  flex: 1;
}

.cs-key-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.cs-key-subtitle {
  font-size: 0.86rem;
  color: #64748b;
}

/* ==========================================================================
   Visual Replica Panels (Matching user's real Stripe screenshots)
   ========================================================================== */

.cs-stripe-mock-panel {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.28);
}

.cs-stripe-mock-panel-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 700;
}

.cs-stripe-mock-panel-body {
  background: #f6f9fc;
  padding: 18px;
}

/* Screenshot 1: Clave Publicable & Copy Icon Arrow */
.cs-mock-pubkey-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.cs-mock-input-row {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88rem;
  color: #334155;
  margin-top: 8px;
  position: relative;
  gap: 10px;
}

.cs-mock-copy-btn-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cs-mock-copy-icon {
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.cs-arrow-pointer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  animation: csPulseArrow 1.8s infinite ease-in-out;
  white-space: nowrap;
}

@keyframes csPulseArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

/* Señalización Visual: Círculo Rojo y Flecha Indicadora */
.cs-red-circle-target {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 2.5px solid #ef4444;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 0 16px rgba(239, 68, 68, 0.3);
  animation: csRedTargetPulse 2s infinite ease-in-out;
}

.cs-red-circle-target.btn-target {
  padding: 4px 6px;
  border-radius: 12px;
}

@keyframes csRedTargetPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 0 14px rgba(239, 68, 68, 0.28);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.35), 0 0 22px rgba(239, 68, 68, 0.45);
    transform: scale(1.03);
  }
}

.cs-red-pointer-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  animation: csArrowBounce 1.5s infinite ease-in-out;
  white-space: nowrap;
}

@keyframes csArrowBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

.cs-pointer-text {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cs-pointer-arrow-svg {
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.35));
  flex-shrink: 0;
}

/* Screenshot 1: Botón Crear Clave Secreta */
.cs-mock-secretkey-cta {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-mock-stripe-btn {
  background: #635bff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(99, 91, 255, 0.25);
}

/* Screenshot 2: Grid de 4 permisos */
.cs-perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
}

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

.cs-perm-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  transition: all 200ms ease;
}

.cs-perm-card.dimmed {
  opacity: 0.55;
  background: #fafafa;
}

.cs-perm-card.selected-refund {
  border-color: #ef4444;
  border-width: 2.5px;
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 4px 16px rgba(239, 68, 68, 0.08);
}

.cs-perm-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.cs-perm-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.cs-perm-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 8px;
}

/* Fila de Input y Botón */
.cs-key-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .cs-key-input-row {
    flex-direction: column;
  }
}

.cs-key-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 180ms ease;
}

.cs-key-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.cs-btn-paste-key {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.cs-btn-paste-key:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42);
}

/* Cartel de Confirmación Enorme */
.cs-key-confirm-banner {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 200ms ease;
}

.cs-key-confirm-banner.pending {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.cs-key-confirm-banner.verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #10b981;
}

.cs-key-confirm-banner.error {
  background: #fee2e2;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}

/* Semáforo de Progreso Global */
.cs-keys-summary-status {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 250ms ease;
}

.cs-keys-summary-status.incompleted {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
}

.cs-keys-summary-status.partial {
  background: #fefce8;
  border: 1.5px solid #fde047;
  color: #854d0e;
}

.cs-keys-summary-status.completed {
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

/* ==========================================================================
   PASO 3: SELECTOR DE COLORES, IDENTIDAD, SUBIDA Y DESIGN MD
   ========================================================================== */

.cs-section-block {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 200ms ease;
}

.cs-section-block:hover {
  border-color: #cbd5e1;
}

.cs-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  background: #ecfdf5;
  color: #047857;
  margin-bottom: 8px;
}

.cs-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.cs-section-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 18px 0;
  line-height: 1.5;
}

/* 1. Paletas Predefinidas */
.cs-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cs-palette-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 180ms ease;
  user-select: none;
}

.cs-palette-card:hover {
  border-color: #10b981;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.08);
}

.cs-palette-card.active {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.cs-palette-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.cs-palette-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cs-palette-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.cs-palette-desc {
  font-size: 0.75rem;
  color: #64748b;
}

/* 2. Selectores de Color Personalizados */
.cs-custom-pickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cs-color-picker-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 150ms ease;
}

.cs-color-picker-box:hover {
  border-color: #cbd5e1;
}

.cs-native-color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
  flex-shrink: 0;
}

.cs-native-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.cs-native-color-input::-webkit-color-swatch {
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.cs-color-info {
  flex: 1;
}

.cs-color-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.cs-color-hex-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
}

/* 3. Tarjeta de Previsualización en Vivo */
.cs-live-preview-card {
  border-radius: 14px;
  padding: 22px 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 250ms ease;
  margin-bottom: 12px;
}

.cs-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.cs-preview-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

.cs-preview-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-preview-sample-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 4. Cuestionario de Identidad Visual */
.cs-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cs-quiz-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-quiz-card:hover {
  border-color: #10b981;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.06);
}

.cs-quiz-card.active {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.cs-quiz-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cs-quiz-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.cs-quiz-card-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 150ms ease;
}

.cs-quiz-card.active .cs-quiz-card-check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.cs-quiz-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

/* Chips de Sensaciones */
.cs-vibe-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cs-vibe-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-vibe-chip:hover {
  border-color: #10b981;
  background: #ffffff;
  color: #047857;
}

.cs-vibe-chip.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

/* 5. Subida de Imágenes */
.cs-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
}

.cs-upload-dropzone:hover,
.cs-upload-dropzone.drag-over {
  border-color: #10b981;
  background: #f0fdf4;
}

.cs-upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.cs-upload-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.cs-upload-helper {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
}

.cs-upload-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 12px;
  border-radius: 99px;
}

.cs-upload-count-badge.limit-reached {
  background: #fef08a;
  color: #854d0e;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cs-gallery-item {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 180ms ease;
  display: flex;
  flex-direction: column;
}

.cs-gallery-item:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cs-gallery-thumb-wrap {
  width: 100%;
  height: 95px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cs-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-gallery-meta {
  padding: 8px;
  font-size: 0.72rem;
  color: #475569;
  background: #ffffff;
}

.cs-gallery-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cs-gallery-size {
  color: #94a3b8;
  font-size: 0.68rem;
}

.cs-gallery-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  backdrop-filter: blur(4px);
}

.cs-gallery-remove-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.cs-gallery-badge-logo {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* 6. Explicación Libre e Historia del Negocio */
.cs-story-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.cs-story-guide-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-story-guide-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

.cs-story-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.6;
  resize: vertical;
  background: #ffffff;
  transition: all 180ms ease;
}

.cs-story-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.cs-story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.cs-story-example-btn {
  background: none;
  border: none;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* 7. Documento de Diseño Automático (design_[nombre].md) */
.cs-design-md-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 14px;
  padding: 24px;
  margin-top: 28px;
  border: 1.5px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.cs-design-md-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-design-filename-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-design-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-btn-download-md {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.cs-btn-download-md:hover {
  background: #059669;
  transform: translateY(-1px);
}

.cs-btn-copy-md {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
}

.cs-btn-copy-md:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.cs-design-preview-block {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   BANNER DE SALTAR PASO (DESIGN MD)
   ========================================================================== */
.cs-skip-banner {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-btn-skip-pill {
  background: #ffffff;
  color: #047857;
  border: 1.5px solid #86efac;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cs-btn-skip-pill:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   SECCIÓN ESPECÍFICA: LOGOTIPOS OFICIALES (TEMA CLARO Y TEMA OSCURO)
   ========================================================================== */
.cs-logo-detect-alert {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: csFadeIn 200ms ease forwards;
}

.cs-logos-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.cs-logo-slot-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 180ms ease;
}

.cs-logo-slot-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cs-logo-slot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cs-slot-tag-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cs-slot-tag-badge.req {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.cs-slot-tag-badge.opt {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.cs-logo-slot-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms ease;
}

.cs-logo-slot-dropzone.light {
  background: #f8fafc;
}

.cs-logo-slot-dropzone.light:hover,
.cs-logo-slot-dropzone.light.drag-over {
  border-color: #10b981;
  background: #f0fdf4;
}

.cs-logo-slot-dropzone.dark {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.cs-logo-slot-dropzone.dark:hover,
.cs-logo-slot-dropzone.dark.drag-over {
  border-color: #6366f1;
  background: #1e1b4b;
}

.cs-logo-slot-dropzone.dark .cs-upload-title {
  color: #f8fafc;
}

.cs-logo-slot-dropzone.dark .cs-upload-helper {
  color: #94a3b8;
}

.cs-upload-icon-circle.dark {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.cs-logo-slot-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 12px 14px;
  gap: 12px;
}

.cs-logo-slot-preview.light {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

.cs-logo-slot-preview.dark {
  background: #0f172a;
  border: 1.5px solid #334155;
}

.cs-logo-slot-preview.dark strong {
  color: #f8fafc !important;
}

.cs-logo-thumb-canvas {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.cs-logo-thumb-canvas.light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.cs-logo-thumb-canvas.dark {
  background: #020617;
  border: 1px solid #334155;
}

.cs-logo-preview-img {
  max-height: 40px;
  max-width: 56px;
  object-fit: contain;
}

/* Barra de Herramientas de Correo (Tema y Selección de Logo) */
.cs-email-toolbar-bar {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-email-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-toolbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.cs-theme-toggle-pills,
.cs-logo-select-pills {
  display: flex;
  gap: 6px;
}

.cs-theme-pill-btn,
.cs-logo-pill-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 160ms ease;
}

.cs-theme-pill-btn:hover,
.cs-logo-pill-btn:hover {
  border-color: #10b981;
  color: #065f46;
}

.cs-theme-pill-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.cs-logo-pill-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.cs-theme-pill-btn.disabled,
.cs-logo-pill-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.cs-theme-lock-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cs-dark-locked-alert {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  margin-bottom: 14px;
  flex-wrap: wrap;
  animation: csFadeIn 200ms ease forwards;
}

.cs-btn-back-to-step3 {
  background: #ffffff;
  border: 1px solid #f59e0b;
  color: #b45309;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-btn-back-to-step3:hover {
  background: #fef3c7;
}

/* Soporte para Modo Oscuro en el Marco del Cliente de Correo (Neutro sin tonos azul marino) */
.cs-email-client-frame.dark-mode {
  border-color: #262626;
  background: #121212;
}

.cs-email-client-frame.dark-mode .cs-email-client-header {
  background: #171717;
  border-bottom-color: #262626;
}

.cs-email-client-frame.dark-mode #emailTemplateTitleBadge {
  color: #f8fafc;
}

.cs-email-client-frame.dark-mode .cs-email-client-meta {
  background: #141414;
  border-bottom-color: #262626;
}

.cs-email-client-frame.dark-mode .cs-email-meta-label {
  color: #737373;
}

.cs-email-client-frame.dark-mode .cs-email-meta-value {
  color: #e5e5e5;
}

.cs-email-client-frame.dark-mode .cs-email-meta-subject {
  color: #ffffff;
}

.cs-email-client-frame.dark-mode .cs-email-body-viewport {
  background: #0a0a0a;
}

/* ==========================================================================
   PASO 4: PLANTILLAS DE CORREO ELECTRÓNICO (VISTA HIPERREALISTA)
   ========================================================================== */
.cs-email-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.cs-email-tab-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
}

.cs-email-tab-btn:hover {
  background: #ffffff;
  border-color: #10b981;
  color: #065f46;
}

.cs-email-tab-btn.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.cs-email-client-frame {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.cs-email-client-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-email-window-dots {
  display: flex;
  gap: 6px;
}

.cs-email-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cs-email-client-meta {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-email-meta-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cs-email-meta-label {
  font-weight: 700;
  color: #64748b;
  min-width: 50px;
}

.cs-email-meta-value {
  color: #0f172a;
}

.cs-email-meta-subject {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.88rem;
}

.cs-btn-edit-pencil {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 180ms ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.cs-btn-edit-pencil:hover {
  background: #059669;
  transform: translateY(-1px);
}

.cs-email-body-viewport {
  padding: 32px 16px;
  background: #e2e8f0;
  display: flex;
  justify-content: center;
}

.cs-email-sheet {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
}

/* ==========================================================================
   POP-UP MODAL: EDICIÓN DE TEXTOS CON LÁPIZ
   ========================================================================== */
.cs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: csFadeIn 180ms ease forwards;
}

.cs-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.cs-modal-header {
  padding: 20px 24px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.cs-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.cs-modal-close-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.cs-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cs-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-modal-footer {
  padding: 16px 24px;
  border-top: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PASO 5: FINALIZAR Y EMPAQUETAR ZIP
   ========================================================================== */
.cs-zip-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}

.cs-zip-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}

.cs-zip-check-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cs-zip-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-btn-download-zip {
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 180ms ease;
}

.cs-btn-download-zip:hover {
  background: #1e293b;
  border-color: #334155;
  transform: translateY(-1px);
}

.cs-delivery-section {
  margin-top: 24px;
}

.cs-email-dispatch-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 24px 22px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.cs-dispatch-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cs-dispatch-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-dispatch-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0 0 3px 0;
}

.cs-dispatch-desc {
  font-size: 0.86rem;
  color: #047857;
  margin: 0;
  line-height: 1.45;
}

.cs-dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-dispatch-input-wrap {
  display: flex;
  flex-direction: column;
}

.cs-dispatch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-btn-send-email {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
  transition: all 180ms ease;
}

.cs-btn-send-email:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42);
}

.cs-btn-send-email:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cs-dispatch-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: csFadeIn 200ms ease forwards;
}

.cs-dispatch-feedback.success {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}

.cs-dispatch-feedback-icon {
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hidden steps */
.cs-step-view {
  display: none;
}

.cs-step-view.active {
  display: block;
  animation: csFadeIn 250ms ease forwards;
}

@keyframes csFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
}
