/* ============================================
   LANDING PAGE — CelControl (Rediseño Profesional)
   ============================================ */

body {
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============= HEADER ============= */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .landing-header {
  background: rgba(15, 23, 42, 0.85);
}

.landing-header .landing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-logo img {
  height: 34px;
  width: auto;
}

.landing-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.landing-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.landing-nav a:hover {
  color: var(--primary);
}

.landing-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 768px) {
  .landing-nav { display: none; }
}

@media (max-width: 640px) {
  .landing-container {
    padding: 0 1rem;
  }

  .landing-header {
    padding: 0.5rem 0;
  }

  .landing-logo {
    font-size: 1.1rem;
    gap: 0.4rem;
  }

  .landing-logo img {
    height: 24px;
  }

  .landing-cta {
    gap: 0.4rem;
  }

  .landing-cta .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    min-height: 34px;
    border-radius: 6px;
  }

  .landing-hero {
    padding: 2.25rem 0 1.5rem;
  }

  .landing-hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-badge {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    max-width: 320px;
    margin: 0 auto 1.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }

  .hero-stats strong {
    font-size: 1rem;
  }

  .hero-stats span {
    font-size: 0.725rem;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section-sub {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .mockup-window {
    border-radius: 10px;
    margin-top: 1.5rem;
  }

  .cta-box {
    padding: 2.5rem 1.25rem;
    border-radius: 16px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .cta-box p {
    font-size: 0.95rem;
  }
}

/* ============= HERO ============= */
.landing-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.landing-hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.hero-buttons .btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-buttons .btn-outline {
  border-color: var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}

.hero-buttons .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  max-width: 700px;
  margin: 0 auto;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats strong {
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Mockup Window Header */
.mockup-window {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  margin-top: 3.5rem;
  text-align: left;
}

.mockup-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  font-family: monospace;
}

.mockup-body img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .landing-hero { padding: 3rem 0 2.5rem; }
  .landing-hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
}

/* ============= SECTIONS ============= */
.landing-section {
  padding: 5.5rem 0;
}

.landing-alt {
  background: var(--bg-primary);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.65rem; }
  .landing-section { padding: 3.5rem 0; }
}

/* ============= FEATURES ============= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============= HOW IT WORKS (STEPS) ============= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============= PRICING ============= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
}

.pricing-popular {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.pricing-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-light);
  color: var(--success);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-features-summary {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ============= PAYMENT LOGOS ============= */
.pay-logo {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 100px !important;
  object-fit: contain !important;
  transition: transform 0.2s ease;
  vertical-align: middle;
  display: inline-block;
}

.pay-logo:hover {
  transform: scale(1.08);
}

.pay-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ============= TESTIMONIALS ============= */
.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

/* ============= FAQ ============= */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.025rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============= CTA FINAL ============= */
.landing-cta-section {
  padding: 5rem 0;
  background: var(--bg-card);
}

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.cta-box h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  color: #94a3b8;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-box .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ============= FOOTER ============= */
.landing-footer {
  background: var(--bg-primary);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-color);
}

.landing-footer .landing-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .landing-footer .landing-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.landing-footer strong {
  color: var(--text-primary);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.landing-footer p {
  max-width: 320px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: var(--transition);
  font-weight: 500;
}

.landing-footer a:hover {
  color: var(--primary);
}

.footer-copy {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   ESTILOS DEMO INTERACTIVA LOCAL (MISMA PESTAÑA)
   ============================================================ */

.demo-modal-workspace-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-workspace-overlay.active {
  opacity: 1;
  visibility: visible;
}

.demo-workspace-container {
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: demoModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes demoModalPop {
  0% { transform: scale(0.95) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.demo-workspace-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.demo-live-badge {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-nav-tabs {
  display: flex;
  background: var(--bg-primary);
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
  overflow-x: auto;
}

.demo-nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.demo-nav-tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.demo-nav-tab.active {
  background: var(--primary);
  color: white !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.demo-workspace-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-primary);
}

.demo-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.demo-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.demo-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.demo-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
}

.demo-stat-val {
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 800;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.demo-table th {
  background: var(--bg-primary);
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
}

.demo-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.demo-badge-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.demo-badge-yellow { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.demo-badge-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.demo-badge-purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; }

.demo-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.demo-form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.demo-btn-primary {
  background: var(--primary);
  color: white;
}
.demo-btn-primary:hover { background: #1d4ed8; }

.demo-btn-outline {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.demo-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.demo-btn-success { background: #10b981; color: white; }
.demo-btn-success:hover { background: #059669; }

.demo-btn-danger { background: #ef4444; color: white; }
.demo-btn-danger:hover { background: #dc2626; }

.demo-btn-sm { padding: 0.4rem 0.85rem; font-size: 0.825rem; }
.demo-btn-xs { padding: 0.25rem 0.55rem; font-size: 0.775rem; border-radius: 6px; }

/* Modal emergente de detalle */
.demo-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.demo-modal-backdrop.active { opacity: 1; visibility: visible; }

.demo-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.demo-modal-header {
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-modal-header h4 { margin: 0; font-size: 1.05rem; color: var(--text-primary); }
.demo-modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }

.demo-modal-body { padding: 1.25rem; }
.demo-modal-footer { padding: 1rem 1.25rem; background: var(--bg-primary); border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 0.75rem; }

.demo-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-size: 0.9rem;
}

/* Toast */
.demo-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 100001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.demo-toast.show { opacity: 1; transform: translateY(0); }
.demo-toast-success { border-left: 4px solid #10b981; }
.demo-toast-info { border-left: 4px solid #3b82f6; }

@media (max-width: 768px) {
  .demo-workspace-container { height: 95vh; border-radius: 12px; }
  .demo-modal-workspace-overlay { padding: 0.5rem; }
  .demo-detail-grid { grid-template-columns: 1fr; }
  .demo-workspace-header { padding: 0.75rem 1rem; }
  .demo-workspace-body { padding: 1rem; }
}

@keyframes demoHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.2); }
  100% { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.18); }
}

.demo-highlight-pulse {
  animation: demoHighlightPulse 1.5s ease-out;
}

