/* ==========================================================================
   SIDIUM AI - COMPONENTS CSS
   Botones, Tarjetas de Precios, Calculadora ROI, Pestañas, Modales
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #C5A059 0%, #B08D57 50%, #9A773F 100%);
  color: var(--color-white);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #B08D57 100%);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

.btn-outline-gold:hover {
  background: rgba(176, 141, 87, 0.12);
  border-color: var(--color-accent-light);
  color: #F8FAFC;
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(11, 29, 58, 0.1);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: #F8FAFC;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   PRICING CARDS (STARTER & PRO)
   ========================================================================== */
.pricing-section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 40px;
}

.pricing-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(250, 250, 248, 0.35) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(11, 29, 58, 0.12), 0 0 0 1px rgba(176, 141, 87, 0.2);
}

.pricing-badge-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #C5A059 0%, #B08D57 100%);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(176, 141, 87, 0.35);
}

.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.automation-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(176, 141, 87, 0.12);
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid rgba(176, 141, 87, 0.25);
  box-shadow: 0 1px 4px rgba(176, 141, 87, 0.08);
}

.automation-category-tag svg {
  color: var(--color-accent);
}

/* Pyme Exclusive Badge */
.pyme-exclusive-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.28);
  color: var(--color-accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pyme-exclusive-badge .pyme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Audit Duration Badge */
.audit-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.32);
  color: #0284c7;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pre-start Time Alert Box */
.audit-prestart-banner {
  background: rgba(176, 141, 87, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.25);
  border-left: 3px solid var(--color-accent-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.835rem;
  line-height: 1.45;
  color: var(--color-text-body);
}

.audit-prestart-banner .prestart-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.audit-prestart-banner strong {
  color: var(--color-primary);
}

/* Audit Diagnostic & Estimated Time Box */
.audit-diagnostic-info {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.audit-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-info-val {
  font-size: 0.825rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

.audit-info-val strong {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .audit-diagnostic-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.pricing-target {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-height: 42px;
}

.pricing-price-box {
  margin-bottom: 20px;
}

.pricing-main-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-from-tag {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
}

.price-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-type {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-retainer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid rgba(176, 141, 87, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.pricing-delivery-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: #475569;
  margin-top: 14px;
  font-weight: 500;
}

.pricing-features-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9125rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.feature-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card.featured .feature-check-icon {
  background: rgba(176, 141, 87, 0.18);
  color: var(--color-accent-dark);
}

.pricing-scope-box {
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.45;
}

.pricing-card-footer {
  margin-top: auto;
}

/* Scope Protection Alert Banner */
.scope-protection-banner {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(176, 141, 87, 0.30);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.scope-banner-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.scope-banner-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.roi-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(176, 141, 87, 0.30);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.roi-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.roi-controls {
  padding: 44px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.roi-controls-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.roi-controls-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.slider-group {
  margin-bottom: 28px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-label {
  font-size: 0.9125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.slider-value-badge {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: rgba(176, 141, 87, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  min-width: 70px;
  text-align: right;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  outline: none;
  transition: background var(--transition-fast);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(176, 141, 87, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-accent-light);
}

.roi-results-panel {
  background: linear-gradient(145deg, rgba(11, 29, 58, 0.65) 0%, rgba(6, 17, 34, 0.70) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-white);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.results-header-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 20px;
}

.results-main-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.metric-desc-label {
  font-size: 0.8125rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.metric-big-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #F87171;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-subnote {
  font-size: 0.775rem;
  color: #CBD5E1;
}

.results-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.breakdown-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.breakdown-label {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 4px;
}

.breakdown-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

.roi-recommendation-box {
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.recommendation-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 4px;
}

.recommendation-text {
  font-size: 0.8rem;
  color: #E2E8F0;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   USE CASES / SECTORS TABS
   ========================================================================== */
.use-cases-wrapper {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9125rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.sector-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(176, 141, 87, 0.30);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.sector-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.sector-col {
  padding: 24px;
  border-radius: var(--radius-md);
}

.sector-col-problem {
  background: rgba(254, 242, 242, 0.50);
  border: 1px solid rgba(254, 202, 202, 0.6);
  backdrop-filter: blur(8px);
}

.sector-col-solution {
  background: rgba(240, 253, 244, 0.50);
  border: 1px solid rgba(187, 247, 208, 0.6);
  backdrop-filter: blur(8px);
}

.sector-col-result {
  background: rgba(176, 141, 87, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.25);
  backdrop-filter: blur(8px);
}

.col-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}

.sector-col-problem .col-tag { color: #DC2626; }
.sector-col-solution .col-tag { color: #16A34A; }
.sector-col-result .col-tag { color: var(--color-accent-dark); }

.col-heading {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.col-desc {
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ==========================================================================
   AUDIT REQUEST MODAL (MULTI-STEP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 17, 34, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-white);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-normal);
  scrollbar-width: thin;
  scrollbar-color: rgba(176, 141, 87, 0.35) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(176, 141, 87, 0.35);
  border-radius: 10px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-dark);
}

/* Modal de Auditoría perfectamente simétrico y elegante */
#audit-modal .modal-card {
  border-radius: 20px;
  border: 1.5px solid rgba(176, 141, 87, 0.30);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35), 0 0 20px rgba(176, 141, 87, 0.12);
}

#audit-modal .modal-header {
  padding: 18px 26px 14px 26px;
}

#audit-modal .modal-header-text h3 {
  font-size: 1.25rem;
  margin-bottom: 3px;
}

#audit-modal .modal-body {
  padding: 22px 26px;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 28px 20px 28px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-text h3 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.modal-header-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-top: -2px;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--color-primary);
}

.modal-progress {
  height: 4px;
  background: #E2E8F0;
  position: relative;
}

.modal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  width: 33.33%;
  transition: width var(--transition-normal);
}

.modal-body {
  padding: 32px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
}

#audit-modal .form-group {
  margin-bottom: 12px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

#audit-modal .form-label {
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  font-size: 0.9375rem;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

#audit-modal .form-input,
#audit-modal .form-select {
  padding: 9px 12px;
  font-size: 0.86rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-radio-card {
  border: 1.5px solid rgba(11, 29, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  user-select: none;
}

.option-radio-card:hover {
  border-color: var(--color-accent);
  background: rgba(176, 141, 87, 0.03);
  transform: translateY(-1px);
}

.option-radio-card.selected {
  border-color: var(--color-accent-dark);
  background: rgba(176, 141, 87, 0.07);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(176, 141, 87, 0.12);
}

/* Radio check dot indicator - Corporate Minimalist */
.option-check-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  display: inline-block;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-radio-card:hover .option-check-dot {
  border-color: var(--color-accent);
}

.option-radio-card.selected .option-check-dot {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

/* Compact Options Grid for Operational Diagnostic */
.options-grid.compact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.compact-grid .option-radio-card {
  padding: 7px 11px;
  font-size: 0.8rem;
  line-height: 1.3;
  border-radius: var(--radius-sm);
}

.compact-grid .option-check-dot {
  width: 14px;
  height: 14px;
}

.compact-grid .option-radio-card.selected .option-check-dot {
  box-shadow: inset 0 0 0 2.5px #FFFFFF;
}

.metric-q-group {
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.metric-q-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.metric-q-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.metric-q-tag {
  background: rgba(176, 141, 87, 0.15);
  color: var(--color-accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .options-grid.compact-grid,
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Required Fields & Validation Feedback */
.required-asterisk {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  font-size: 0.75rem;
  color: #DC2626;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.field-error-msg.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

/* Success State */
.modal-success-box {
  text-align: center;
  padding: 32px 16px;
}

.success-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
}

.success-title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px auto;
}

/* ==========================================================================
   HEADER SEARCH (LUPA DE BÚSQUEDA)
   ========================================================================== */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(11, 29, 58, 0.04);
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  transition: all var(--transition-fast);
}

.search-box-wrapper:hover,
.search-box-wrapper:focus-within,
.search-box-wrapper.is-open {
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.search-toggle-btn:hover {
  color: var(--color-accent-dark);
  background: rgba(176, 141, 87, 0.1);
}

.header-search-input {
  width: 0;
  opacity: 0;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  outline: none;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
  pointer-events: none;
}

.search-box-wrapper.is-open .header-search-input,
.search-box-wrapper:focus-within .header-search-input,
.header-search-input.has-value {
  width: 170px;
  opacity: 1;
  padding: 6px 8px;
  pointer-events: auto;
}

.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  cursor: pointer;
  margin-right: 4px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-clear-btn[hidden],
.header-search-results[hidden] {
  display: none !important;
}

.search-clear-btn:hover {
  background: #CBD5E1;
  color: var(--color-primary);
}

/* Indicador de palabra clave detectada en el buscador */
@keyframes searchKeyFoundPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.search-box-wrapper.key-found {
  animation: searchKeyFoundPulse 0.6s ease-out;
  border-color: var(--color-accent-light) !important;
}

/* ==========================================================================
   BOTONES SECRETOS DEL MENÚ (Useria / Masteria / Adminia)
   ========================================================================== */
.secret-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.secret-role-btn[hidden] {
  display: none !important;
}

.role-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

/* Useria: Azul Ejecutivo */
.role-useria {
  color: #1E3A8A;
  background: rgba(30, 58, 138, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.25);
}

.role-useria .role-btn-dot {
  background: #2563EB;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
}

.role-useria:hover {
  background: rgba(30, 58, 138, 0.16);
  border-color: #1E3A8A;
  transform: translateY(-1px);
}

/* Masteria: Dorado Sidium */
.role-masteria {
  color: #8C6A2E;
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.4);
}

.role-masteria .role-btn-dot {
  background: #D4AF37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}

.role-masteria:hover {
  background: rgba(176, 141, 87, 0.22);
  border-color: #B08D57;
  transform: translateY(-1px);
}

/* Adminia: Ámbar / Rojo Seguridad */
.role-adminia {
  color: #B45309;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.role-adminia .role-btn-dot {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.role-adminia:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: #D97706;
  transform: translateY(-1px);
}

/* Animación de Revelación al ser Descubierto */
@keyframes roleRevealGlow {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
    box-shadow: 0 0 16px 4px rgba(212, 175, 55, 0.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
}

.secret-role-btn.revealed {
  animation: roleRevealGlow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   POPUP MODAL DE AUTENTICACIÓN POR ROL (#role-auth-modal)
   ========================================================================== */
.role-auth-modal-overlay {
  z-index: 2000;
}

.role-auth-card {
  max-width: 540px;
  border: 1px solid rgba(176, 141, 87, 0.25);
  box-shadow: 0 25px 50px -12px rgba(11, 29, 58, 0.35);
}

.role-modal-header {
  padding: 28px 28px 18px 28px;
}

.role-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-useria {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-masteria {
  background: rgba(176, 141, 87, 0.14);
  color: #9A773F;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.badge-adminia {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.role-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.role-modal-title {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.role-modal-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.quantum-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.quantum-security-badge svg {
  color: #10B981;
  flex-shrink: 0;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spinClockwise 1s linear infinite;
  flex-shrink: 0;
}

.role-modal-body {
  padding: 22px 28px 28px 28px;
}

/* Panel de Privilegios */
.role-privileges-panel {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.role-privileges-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.role-privileges-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privilege-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.privilege-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.15);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.privilege-icon svg {
  width: 12px;
  height: 12px;
}

.privilege-content {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.privilege-title {
  font-weight: 600;
  color: var(--color-primary);
}

.privilege-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Inputs con Iconos */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon .form-input {
  padding-left: 42px;
  width: 100%;
}

.input-with-password .form-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--color-primary);
  background: #F1F5F9;
}

.role-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.role-auth-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-auth-feedback.feedback-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.role-auth-feedback.feedback-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   RESPONSIVE (COMPONENTS)
   ========================================================================== */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-results-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sector-card-grid {
    grid-template-columns: 1fr;
  }

  .scope-protection-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .search-box-wrapper.is-open .header-search-input,
  .search-box-wrapper:focus-within .header-search-input,
  .header-search-input.has-value {
    width: 130px;
  }

  .secret-role-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .roi-controls,
  .roi-results-panel {
    padding: 24px 20px;
  }

  .results-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .role-modal-header,
  .role-modal-body {
    padding: 18px 20px;
  }

  .search-box-wrapper.is-open .header-search-input,
  .search-box-wrapper:focus-within .header-search-input,
  .header-search-input.has-value {
    width: 110px;
  }
}

/* ==========================================================================
   AUDIT SCHEDULER & CALENDAR (STEP 5)
   ========================================================================== */
.calendar-step-header {
  margin-bottom: 18px;
}

.calendar-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.calendar-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.calendar-step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.audit-scheduler-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  background: rgba(11, 29, 58, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  align-items: start;
}

/* Calendar Widget */
.audit-calendar-widget {
  background: var(--color-white);
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(11, 29, 58, 0.04);
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-nav-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-current-month {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-light-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-cell {
  height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  user-select: none;
}

.cal-day-cell:hover:not(.disabled) {
  background: rgba(176, 141, 87, 0.12);
  border-color: var(--color-accent);
}

.cal-day-cell.today {
  border-color: rgba(11, 29, 58, 0.25);
  font-weight: 700;
}

.cal-day-cell.selected {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(176, 141, 87, 0.35);
  border-color: var(--color-accent) !important;
}

.cal-day-cell.disabled {
  opacity: 0.28;
  color: var(--color-text-light-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Time Slots Widget */
.audit-time-slots-widget {
  display: flex;
  flex-direction: column;
}

.slots-header-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--color-border);
}

.slots-group-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.slots-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.time-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-slot-btn:hover:not(.busy):not(.selected) {
  border-color: var(--color-accent);
  background: rgba(176, 141, 87, 0.08);
  transform: translateY(-1px);
}

.time-slot-btn.selected {
  background: var(--color-primary) !important;
  color: var(--color-accent) !important;
  border-color: var(--color-primary) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 29, 58, 0.2);
}

.time-slot-btn.busy {
  opacity: 0.35;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Booking Preview Box */
.booking-selected-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(176, 141, 87, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.booking-preview-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.booking-preview-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
}

.booking-preview-sub {
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* Success Card Extras */
.audit-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 12px;
}

.booking-summary-card {
  background: rgba(11, 29, 58, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0 20px;
  text-align: left;
}

.booking-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(11, 29, 58, 0.08);
}

.booking-summary-item:last-child {
  border-bottom: none;
}

.booking-summary-label {
  color: var(--color-text-muted);
}

.booking-summary-val {
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================================================
   RESPONSIVE STYLES (COMPONENTS)
   ========================================================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-results-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sector-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  /* Buttons - Prevent horizontal blowout and allow wrapping */
  .btn {
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    word-break: normal;
    line-height: 1.35;
  }

  .btn-lg {
    padding: 13px 18px;
    font-size: 0.94rem;
  }

  /* Sector Tabs - Horizontal scrollable pill bar */
  .tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 2px 14px 2px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  /* Pricing Cards */
  .pricing-card {
    padding: 34px 22px;
  }

  .pricing-main-price {
    flex-wrap: wrap;
    gap: 6px;
  }

  .price-amount {
    font-size: 2.6rem;
  }

  .pricing-features-list {
    margin-bottom: 28px;
  }

  /* ROI Calculator */
  .roi-card {
    border-radius: var(--radius-lg);
  }

  .roi-controls {
    padding: 28px 18px;
  }

  .roi-controls-title {
    font-size: 1.2rem;
  }

  .roi-controls-subtitle {
    margin-bottom: 22px;
  }

  .roi-results-panel {
    padding: 28px 18px;
  }

  .metric-big-number {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
  }

  .results-breakdown-grid {
    gap: 12px;
    margin-bottom: 24px;
  }

  .custom-range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .custom-range::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }

  /* Sector Cards */
  .sector-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .sector-col {
    padding: 18px 16px;
  }

  .col-heading {
    font-size: 1.05rem;
  }

  .col-desc {
    font-size: 0.88rem;
  }

  /* Modals (Audit & Role Auth) */
  .modal-overlay {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    height: 100%;
    height: 100dvh;
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: var(--radius-lg);
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

  #audit-modal .modal-card {
    border-radius: 16px;
  }

  .modal-header {
    padding: 20px 18px 16px 18px;
  }

  .modal-header-text h3 {
    font-size: 1.15rem;
  }

  .modal-header-text p {
    font-size: 0.8rem;
  }

  .modal-body {
    padding: 20px 18px;
  }

  /* Prevent iOS Safari automatic zoom on inputs */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wizard-footer {
    margin-top: 20px;
    padding-top: 16px;
    gap: 10px;
  }

  /* Audit Scheduler (Step 5) */
  .audit-scheduler-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .audit-calendar-widget {
    padding: 12px 10px;
  }

  .calendar-month-name {
    font-size: 0.92rem;
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
  }

  .calendar-weekdays-row {
    gap: 2px;
    font-size: 0.7rem;
  }

  .calendar-days-grid {
    gap: 2px;
  }

  .cal-day-cell {
    font-size: 0.82rem;
    min-height: 36px;
    border-radius: 4px;
  }

  .slots-pill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .time-slot-btn {
    padding: 9px 4px;
    font-size: 0.78rem;
  }

  /* Secret Role Modals */
  .auth-modal-card {
    max-width: 100%;
    margin: 10px;
    padding: 24px 18px;
  }
}

/* Small SmartPhones (<= 480px) */
@media (max-width: 480px) {
  .pricing-card {
    padding: 26px 16px;
  }

  .pricing-badge-popular {
    font-size: 0.68rem;
    padding: 4px 12px;
    top: -12px;
  }

  .pricing-plan-name {
    font-size: 1.28rem;
  }

  .price-amount {
    font-size: 2.2rem;
  }

  .pricing-retainer-badge {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .roi-controls {
    padding: 20px 14px;
  }

  .roi-results-panel {
    padding: 20px 14px;
  }

  .results-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sector-card {
    padding: 18px 12px;
  }

  .sector-col {
    padding: 16px 12px;
  }

  .modal-header {
    padding: 16px 14px 12px 14px;
  }

  .modal-header-text h3 {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 16px 14px;
  }

  .slots-pill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .time-slot-btn {
    padding: 8px 2px;
    font-size: 0.74rem;
  }

  .search-box-wrapper.is-open .header-search-input,
  .search-box-wrapper:focus-within .header-search-input,
  .header-search-input.has-value {
    width: 105px;
    font-size: 0.82rem;
    padding: 4px 6px;
  }

  .wizard-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .wizard-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tool Chips Selection for Step 3 */
.tool-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tool-chip {
  background: #F1F5F9;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tool-chip:hover {
  border-color: var(--color-accent);
  background: #FFFFFF;
}
.tool-chip.selected {
  background: rgba(176, 141, 87, 0.15);
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* ==========================================================================
   TECH STACK & INTEGRATIONS BAND (B2B TRUST)
   ========================================================================== */
.tech-stack-band {
  background: linear-gradient(180deg, #07152B 0%, #0B1D3A 100%);
  border-top: 1px solid rgba(176, 141, 87, 0.28);
  border-bottom: 1px solid rgba(176, 141, 87, 0.28);
  padding: 26px 0;
  position: relative;
  z-index: 2;
}

.tech-stack-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tech-stack-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  text-align: center;
}

.tech-stack-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: 100%;
}

.tech-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 9999px;
  color: #E2E8F0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.22s ease;
  user-select: none;
}

.tech-logo-pill svg {
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.tech-logo-pill:hover {
  background: rgba(176, 141, 87, 0.14);
  border-color: var(--color-accent-light);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTOR CARD DIRECT CTA BAR
   ========================================================================== */
.sector-card-cta-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(176, 141, 87, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.sector-cta-hint {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-body);
}

@media (max-width: 768px) {
  .sector-card-cta-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   HEADER LIVE SEARCH DROPDOWN
   ========================================================================== */
.header-search {
  position: relative;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 340px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1.5px solid rgba(176, 141, 87, 0.38);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.22);
  padding: 6px;
  z-index: 1200;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item:focus {
  background: rgba(176, 141, 87, 0.10);
  outline: none;
}

.search-result-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
}

.search-result-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.search-result-empty {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   FASE 2: MÉTRICAS ANTES VS. DESPUÉS, VISTA DEL ENTREGABLE & TABLA COMPARATIVA
   ========================================================================== */

/* 1. Sector Metrics Strip (Antes vs. Después) */
.sector-metrics-strip {
  margin-top: 22px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(11, 29, 58, 0.96) 0%, rgba(19, 43, 83, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sector-metrics-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.sector-metrics-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.sector-metrics-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.sector-kpi-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sector-kpi-before {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.68);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.65);
}

.sector-kpi-after {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* 2. Vista Previa Tangible del Entregable (#metodo) */
.deliverable-showcase {
  margin-top: 48px;
  background: linear-gradient(135deg, #07152B 0%, #0D2242 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(7, 21, 43, 0.22);
  color: #FFFFFF;
}

.deliverable-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deliverable-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F5E0A0;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.deliverable-showcase-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: #FFFFFF;
  margin-bottom: 6px;
}

.deliverable-showcase-sub {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.82);
  max-width: 720px;
  line-height: 1.55;
}

.deliverable-sheets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deliverable-sheet-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.deliverable-sheet-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.65);
}

.sheet-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-doc-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F5E0A0;
  background: rgba(176, 141, 87, 0.18);
  padding: 3px 9px;
  border-radius: 6px;
}

.sheet-doc-format {
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.6);
  font-weight: 600;
}

.sheet-preview-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  margin-bottom: 14px;
  cursor: zoom-in;
  background: #07152B;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.sheet-preview-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.sheet-preview-thumb:hover img {
  transform: scale(1.03);
}

.sheet-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 29, 58, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #F5E0A0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.dossier-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 32, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dossier-lightbox-overlay.open {
  display: flex;
}

.dossier-lightbox-inner {
  position: relative;
  max-width: 920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dossier-lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.dossier-lightbox-close {
  background: var(--color-accent);
  color: #0B1D3A;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.sheet-doc-title {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.sheet-doc-desc {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.5;
  margin-bottom: 14px;
}

.sheet-checklist {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sheet-checklist li {
  font-size: 0.8rem;
  color: #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.sheet-checklist li::before {
  content: "✓";
  color: #F5E0A0;
  font-weight: 800;
  flex-shrink: 0;
}

/* 3. Tabla Comparativa B2B */
.comparison-matrix-wrapper {
  margin-top: 56px;
}

.comparison-matrix-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(176, 141, 87, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 29, 58, 0.08);
}

.comparison-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  line-height: 1.45;
  vertical-align: middle;
}

.comparison-table thead th {
  background: #0B1D3A;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-accent);
}

.comparison-table thead th.col-sidium {
  background: linear-gradient(135deg, #163360 0%, #0B1D3A 100%);
  color: #F5E0A0;
  border-left: 2px solid rgba(212, 175, 55, 0.45);
}

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

.comparison-table td.col-criterion {
  font-weight: 700;
  color: var(--color-primary);
  width: 23%;
  background: #F8FAFC;
}

.comparison-table td.col-alt {
  color: var(--color-text-muted);
  width: 24%;
}

.comparison-table td.col-sidium {
  background: rgba(176, 141, 87, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  border-left: 2px solid rgba(176, 141, 87, 0.35);
  width: 29%;
}

.comp-check {
  color: #059669;
  font-weight: 800;
  margin-right: 6px;
}

.comp-cross {
  color: #DC2626;
  font-weight: 700;
  margin-right: 6px;
}

.comp-warn {
  color: #D97706;
  font-weight: 700;
  margin-right: 6px;
}

@media (max-width: 960px) {
  .sector-metrics-kpis,
  .deliverable-sheets-grid {
    grid-template-columns: 1fr;
  }
  .deliverable-showcase {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   SIDIUM AI B2B HYBRID CHATBOT WIDGET (SOFÍA)
   ========================================================================== */
.sidium-chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9900;
  font-family: var(--font-body);
}

.sidium-chatbot-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0B1D3A 0%, #163360 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 12px 20px 12px 16px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 29, 58, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.sidium-chatbot-fab:hover {
  transform: translateY(-2px);
  border-color: #D4AF37;
  box-shadow: 0 14px 32px rgba(11, 29, 58, 0.45), 0 0 14px rgba(212, 175, 55, 0.3);
}

.sidium-fab-icon-chat {
  color: #D4AF37;
  flex-shrink: 0;
}

.sidium-fab-label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #F8FAFC;
}

.sidium-fab-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0B1D3A;
}

.sidium-chatbot-widget.is-open .sidium-fab-badge {
  display: none;
}

.sidium-chat-window {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #0B182E;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(4, 10, 22, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sidium-chatbot-widget.is-open .sidium-chat-window {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sidium-chat-header {
  background: linear-gradient(135deg, #071122 0%, #132A4E 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidium-chat-header-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidium-chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidium-chat-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidium-chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #071122;
}

.sidium-chat-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sidium-chat-status {
  font-size: 0.72rem;
  color: #94A3B8;
}

.sidium-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidium-chat-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94A3B8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sidium-chat-voice-btn .icon-vol-on {
  display: none;
}

.sidium-chat-voice-btn .icon-vol-off {
  display: block;
}

.sidium-chat-voice-btn.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  color: #F5E0A0;
}

.sidium-chat-voice-btn.is-active .icon-vol-on {
  display: block;
}

.sidium-chat-voice-btn.is-active .icon-vol-off {
  display: none;
}

.sidium-chat-voice-btn.is-speaking {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  border-color: #D4AF37;
}

.sidium-chat-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidium-chat-close:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #FFFFFF;
}

.sidium-chat-messages {
  padding: 14px;
  max-height: 295px;
  min-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0A162B;
}

.sidium-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.sidium-msg-bot {
  align-self: flex-start;
}

.sidium-msg-user {
  align-self: flex-end;
}

.sidium-msg-bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.48;
}

.sidium-msg-bot .sidium-msg-bubble {
  background: #132647;
  color: #F1F5F9;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom-left-radius: 4px;
}

.sidium-msg-user .sidium-msg-bubble {
  background: linear-gradient(135deg, #B08D57 0%, #8C6D3F 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.sidium-msg-speak-btn {
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.sidium-msg-speak-btn:hover {
  color: #F5E0A0;
}

.sidium-chat-lead-box {
  background: #0F213E;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: 12px 14px;
}

.sidium-lead-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #F5E0A0;
  margin-bottom: 8px;
}

.sidium-lead-box-close {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.8rem;
}

.sidium-lead-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidium-lead-form input,
.sidium-lead-form select {
  width: 100%;
  background: #081326;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.78rem;
  color: #F8FAFC;
  font-family: var(--font-body);
}

.sidium-lead-form input:focus,
.sidium-lead-form select:focus {
  outline: none;
  border-color: #D4AF37;
}

.sidium-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  background: #081326;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.sidium-chip {
  background: rgba(30, 58, 95, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #E2E8F0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidium-chip:hover {
  border-color: #D4AF37;
  color: #FFFFFF;
  background: rgba(176, 141, 87, 0.22);
}

.sidium-chip-gold {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  color: #F5E0A0;
}

.sidium-chip-outline {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
}

.sidium-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #071122;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.sidium-chat-input-bar input {
  flex: 1;
  background: #0F213E;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.8rem;
  color: #FFFFFF;
  font-family: var(--font-body);
}

.sidium-chat-input-bar input:focus {
  outline: none;
  border-color: #D4AF37;
}

.sidium-chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37 0%, #B08D57 100%);
  border: none;
  color: #0B1D3A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sidium-chat-send-btn:hover {
  transform: scale(1.06);
}

@media (max-width: 600px) {
  .sidium-chatbot-widget {
    right: 14px;
    bottom: 14px;
  }
  .sidium-fab-label {
    display: none;
  }
  .sidium-chatbot-fab {
    padding: 13px;
  }
}

/* ==========================================================================
   BOTÓN ESPECIAL "TRAZOS" · IMAGEN EN MOVIMIENTO (AUDITORÍA 100 PREGUNTAS POR SECTOR)
   ========================================================================== */
.btn-trazos-special {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #061224 0%, #0B1F3A 55%, #112A4E 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.72);
  border-radius: 12px;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(6, 17, 34, 0.55), 0 0 20px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  isolation: isolate;
}

.btn-trazos-special:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: #F5E0A0;
  box-shadow: 0 16px 36px rgba(6, 17, 34, 0.7), 0 0 28px rgba(212, 175, 55, 0.42), 0 0 14px rgba(56, 189, 248, 0.25);
}

.btn-trazos-special:active {
  transform: translateY(-1px) scale(0.995);
}

/* Variante Hero y Banner CTA */
.btn-trazos-hero {
  padding: 10px 20px 10px 12px;
  min-height: 76px;
}

/* Variante Compacta en Cabecera (Header) */
.btn-trazos-header {
  padding: 6px 13px 6px 8px;
  gap: 10px;
  border-radius: 10px;
  min-height: 46px;
}

/* Trazos vectoriales animados en el fondo del botón */
.trazos-bg-ambient-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}

.trazos-ambient-line-1 {
  stroke: #D4AF37;
  stroke-width: 1.6;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: trazosAmbientDraw 5.5s linear infinite;
}

.trazos-ambient-line-2 {
  stroke: #38BDF8;
  stroke-width: 1.2;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: trazosAmbientDraw 6.5s linear infinite reverse;
}

@keyframes trazosAmbientDraw {
  0% { stroke-dashoffset: 280; opacity: 0.2; }
  50% { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: -280; opacity: 0.2; }
}

/* Destello perimetral en movimiento */
.trazos-border-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(245, 224, 160, 0.16) 45%, rgba(56, 189, 248, 0.14) 55%, transparent 80%);
  background-size: 220% 100%;
  animation: trazosShimmerSweep 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes trazosShimmerSweep {
  0% { background-position: 180% 0; }
  100% { background-position: -60% 0; }
}

/* Visor de la Imagen en Movimiento (Hero) */
.trazos-motion-viewport {
  position: relative;
  width: 96px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(245, 224, 160, 0.55);
  background: #050E1D;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(56, 189, 248, 0.18);
  z-index: 1;
}

.trazos-motion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: trazosImageZoomPan 6s ease-in-out infinite alternate;
}

@keyframes trazosImageZoomPan {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.07) translate(-2px, -1px); }
}

/* Haz láser de escaneo dentro de la imagen en movimiento */
.trazos-scan-laser,
.trazos-thumb-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, #F5E0A0, #38BDF8, transparent);
  box-shadow: 0 0 8px #38BDF8, 0 0 12px #D4AF37;
  animation: trazosLaserSweep 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes trazosLaserSweep {
  0%, 100% { top: 4px; opacity: 0.75; }
  50% { top: calc(100% - 16px); opacity: 1; }
}

/* Overlay en vivo dentro del visor (Sector + Contador 100 Preguntas) */
.trazos-live-overlay {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(6, 17, 34, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-family: var(--font-body);
  line-height: 1;
}

.trazos-live-sector {
  font-size: 0.52rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trazos-live-qcount {
  font-size: 0.54rem;
  font-weight: 700;
  color: #F5E0A0;
  white-space: nowrap;
}

.trazos-live-qcount strong {
  color: #FFFFFF;
  font-weight: 800;
}

/* Mini-visor de Imagen en Movimiento para el botón de Cabecera */
.trazos-motion-thumb {
  position: relative;
  width: 52px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(245, 224, 160, 0.55);
  background: #050E1D;
  z-index: 1;
}

.trazos-thumb-counter {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(6, 17, 34, 0.92);
  border: 1px solid rgba(245, 224, 160, 0.5);
  color: #F5E0A0;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.1;
}

/* Bloque de texto del botón TRAZOS */
.trazos-btn-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trazos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
}

.trazos-pulse-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  animation: pulseDot 1.8s infinite;
}

.trazos-btn-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.trazos-title-word {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #F5E0A0;
  text-shadow: 0 1px 8px rgba(212, 175, 55, 0.45);
}

.btn-trazos-header .trazos-title-word {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.trazos-badge-100 {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D4AF37 0%, #B08D57 100%);
  color: #061224;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.btn-trazos-header .trazos-badge-100 {
  font-size: 0.6rem;
  padding: 1px 6px;
}

.trazos-btn-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.01em;
}

.btn-trazos-header .trazos-btn-sub {
  font-size: 0.65rem;
  color: #CBD5E1;
}

/* Toast flotante informativo al pulsar TRAZOS */
.trazos-preview-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #061224 0%, #0E2342 100%);
  border: 1.5px solid #D4AF37;
  border-radius: 12px;
  padding: 14px 22px;
  color: #FFFFFF;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.3);
  z-index: 10060;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.trazos-preview-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Variante para cada Sector en "Soluciones diseñadas para modelos de negocio de servicios" */
.sector-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-trazos-sector {
  padding: 8px 16px 8px 10px;
  min-height: 68px;
}

.btn-trazos-sector .trazos-motion-viewport {
  width: 88px;
  height: 54px;
}

.btn-trazos-sector .trazos-title-word {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

.btn-trazos-sector .trazos-btn-sub {
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .btn-trazos-header .trazos-btn-sub {
    display: none;
  }
}

@media (max-width: 768px) {
  .btn-trazos-header {
    display: none;
  }
  .sector-cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn-trazos-hero,
  .btn-trazos-sector {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MODAL POP-UP: SELECCIÓN DE AUDITORÍA POR TIPOLOGÍA (GRATUITA vs. DFA)
   ========================================================================== */
.typology-choice-overlay {
  z-index: 10040;
  padding: 20px;
}

.typology-choice-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 45%),
              radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 45%),
              linear-gradient(160deg, #061326 0%, #0B1F3A 55%, #051020 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 20px;
  padding: 32px 32px 30px;
  color: #FFFFFF;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.82), 0 0 45px rgba(212, 175, 55, 0.18);
  animation: modalFadeUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.typology-choice-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.typology-choice-close:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: scale(1.05);
}

.typology-choice-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 28px;
}

.typology-choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #F5E0A0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.typology-choice-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.typology-choice-desc {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

.typology-choice-desc strong {
  color: #F5E0A0;
}

.typology-choice-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.typology-option-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px 20px;
  border-radius: 16px;
  box-sizing: border-box;
  min-width: 0;
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.typology-option-free {
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.08) 0%, rgba(11, 27, 52, 0.75) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.typology-option-free:hover {
  border-color: rgba(245, 224, 160, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(212, 175, 55, 0.14);
}

.typology-option-dfa {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.09) 0%, rgba(8, 22, 44, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.typology-option-dfa:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(56, 189, 248, 0.16);
}

.typology-option-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F5E0A0;
  margin-bottom: 8px;
}

.typology-option-tag-dfa {
  color: #38BDF8;
}

.typology-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.typology-tag-dot-gold {
  background: #F5E0A0;
  box-shadow: 0 0 8px rgba(245, 224, 160, 0.8);
}

.typology-tag-dot-cyan {
  background: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
}

.typology-option-heading {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.typology-option-text {
  font-size: 0.83rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.typology-option-list {
  list-style: none;
  padding: 12px 14px;
  margin: 0;
  border-radius: 10px;
  background: rgba(6, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.typology-option-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #E2E8F0;
  font-weight: 500;
  line-height: 1.35;
}

.typology-option-list li span {
  color: #F5E0A0;
  font-weight: 800;
  flex-shrink: 0;
}

.typology-option-list-dfa li span {
  color: #38BDF8;
}

/* Botón Ejecutivo de Auditoría Gratuita (emparejado en altura con el botón DFA) */
.typology-free-cta-btn {
  width: 100%;
  min-height: 78px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #F5E0A0;
  background: linear-gradient(135deg, #D4AF37 0%, #B08D57 55%, #96723E 100%);
  color: #061224;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(176, 141, 87, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.typology-free-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.typology-free-cta-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(6, 18, 36, 0.9);
  border: 1px solid rgba(245, 224, 160, 0.6);
  color: #F5E0A0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.typology-free-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.typology-free-cta-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 18, 36, 0.78);
}

.typology-free-cta-main {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #061224;
  line-height: 1.2;
}

.typology-free-cta-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(6, 18, 36, 0.9);
}

/* Ajuste del Botón DFA dentro del Pop-up para que nunca desborde ni parta líneas */
.typology-dfa-btn {
  width: 100%;
  min-height: 78px;
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 10px 14px 10px 10px;
  gap: 12px;
}

.typology-dfa-btn .trazos-motion-viewport {
  width: 90px;
  height: 56px;
}

.typology-dfa-btn .trazos-btn-copy {
  min-width: 0;
  flex: 1;
}

.typology-dfa-btn .trazos-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typology-dfa-btn .trazos-title-word {
  font-size: 1.04rem;
}

.typology-dfa-btn .trazos-badge-100 {
  font-size: 0.65rem;
  padding: 2px 8px;
}

.typology-dfa-btn .trazos-btn-sub {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 780px) {
  .typology-choice-card {
    padding: 24px 18px 20px;
  }
  .typology-choice-header {
    padding: 0 12px;
  }
  .typology-choice-options {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   POP-UP EVOLUCIÓN EN AUDITORÍA (CONSULTAR ESTA TIPOLOGÍA)
   ========================================================================== */
.typology-evolution-card {
  max-width: 780px;
  padding: 34px 34px 30px;
}

.typology-evolution-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #F5E0A0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.evolution-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 16px;
}

.evolution-card-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(8, 20, 40, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.evolution-card-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.evolution-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #F5E0A0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.evolution-icon-badge.badge-cyan {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

.evolution-card-content h4 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.evolution-card-content p {
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}

.evolution-tipology-box {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  margin-bottom: 22px;
}

.evolution-tipology-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.evolution-tipology-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  font-weight: 600;
}

.evolution-tipology-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F5E0A0;
}

.evolution-tipology-hint {
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.4;
  margin: 0;
}

.typology-evolution-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

@media (max-width: 640px) {
  .typology-evolution-card {
    padding: 24px 18px 20px;
  }
  .evolution-feature-grid {
    grid-template-columns: 1fr;
  }
  .typology-evolution-footer {
    justify-content: stretch;
  }
  .typology-evolution-footer button,
  .typology-evolution-footer a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   DFA · DEEPFLOW AUDIT (AUDITORÍA DE FLUJO PROFUNDO) INTERACTIVE MODAL
   ========================================================================== */
.dfa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10090;
  background: rgba(3, 8, 18, 0.86);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dfa-modal-overlay.open {
  display: flex;
}

.dfa-modal-dialog {
  width: 100%;
  max-width: 1360px;
  height: 92vh;
  max-height: 920px;
  background: linear-gradient(165deg, #071122 0%, #0b182e 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
}

.dfa-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(4, 10, 22, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  flex-wrap: wrap;
}

.dfa-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dfa-topbar-badge {
  background: linear-gradient(135deg, #f5e0a0 0%, #d4af37 100%);
  color: #061224;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.dfa-topbar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.dfa-topbar-meta {
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
}

.dfa-topbar-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dfa-step-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dfa-step-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.dfa-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.dfa-sector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(10, 22, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-wrap: wrap;
}

.dfa-sector-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dfa-sector-bar-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* DFA lanzado desde la ficha de un lead del CRM */
.dfa-crm-link-badge {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 600;
}

.dfa-sector-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dfa-sector-tab {
  background: rgba(15, 30, 56, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dfa-sector-tab:hover {
  border-color: rgba(245, 224, 160, 0.5);
  color: #ffffff;
}

.dfa-sector-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(56, 189, 248, 0.2));
  border-color: #f5e0a0;
  color: #f5e0a0;
}

.dfa-sector-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.dfa-progress-track {
  width: 120px;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.dfa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #d4af37);
  transition: width 0.25s ease;
}

.dfa-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.dfa-step1-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.dfa-panel {
  background: rgba(11, 24, 46, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 16px;
}

.dfa-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dfa-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5e0a0;
  margin-bottom: 3px;
}

.dfa-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
}

.dfa-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 4px 0 0;
  line-height: 1.4;
}

.dfa-form-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.dfa-section-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dfa-badge-real {
  font-size: 0.64rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
}

.dfa-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dfa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dfa-field-full {
  grid-column: 1 / -1;
}

.dfa-field span {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

.dfa-field input,
.dfa-search-box input,
.dfa-q-input,
.dfa-ai-input-row input {
  background: rgba(5, 12, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.8rem;
}

.dfa-helper-note {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0 0 10px;
}

.dfa-processes-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.dfa-process-card {
  background: rgba(6, 15, 30, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}

.dfa-process-card.dfa-process-human {
  border-color: rgba(245, 158, 11, 0.4);
}

.dfa-process-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #f8fafc;
}

.dfa-role-tag {
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.dfa-process-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.71rem;
  color: #94a3b8;
  margin: 6px 0;
}

.dfa-process-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.dfa-process-inputs label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  color: #cbd5e1;
}

.dfa-process-inputs input {
  width: 68px;
  background: rgba(15, 28, 52, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #fff;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.76rem;
}

.dfa-process-hours-preview {
  margin-left: auto;
  font-size: 0.73rem;
  color: #f5e0a0;
}

.dfa-block-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.dfa-block-tab {
  background: rgba(6, 14, 28, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 7px 6px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.dfa-block-tab small {
  font-size: 0.66rem;
  color: #38bdf8;
}

.dfa-block-tab.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
}

.dfa-block-info {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
}

.dfa-block-info span {
  color: #94a3b8;
  font-size: 0.72rem;
}

.dfa-questions-scroll {
  max-height: 430px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.dfa-question-item {
  background: rgba(6, 14, 28, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

.dfa-question-item.answered {
  border-color: rgba(16, 185, 129, 0.45);
}

.dfa-question-header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 7px;
}

.dfa-q-num {
  background: rgba(212, 175, 55, 0.2);
  color: #f5e0a0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

.dfa-q-text {
  margin: 0;
  font-size: 0.8rem;
  color: #f1f5f9;
  line-height: 1.38;
}

.dfa-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.dfa-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.dfa-chip:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.dfa-q-input {
  width: 100%;
  box-sizing: border-box;
}

/* Respuesta abierta: caja de texto de dos líneas que crece hacia abajo */
.dfa-q-textarea {
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
  min-height: 48px;
}

/* Comentario opcional bajo las 4 opciones */
.dfa-q-note {
  margin-top: 6px;
  font-size: 0.76rem;
  border-style: dashed;
}

/* Informe: cifras, textos y comentarios de la empresa */
.dfa-client-answers-block {
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}

.dfa-client-answers-block summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.dfa-client-answers-block ul {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dfa-client-answers-block li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.dfa-client-answers-q {
  color: #94a3b8;
}

.dfa-client-answers-a {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.dfa-step1-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dfa-step1-footer-note {
  font-size: 0.73rem;
  color: #94a3b8;
}

.dfa-btn-primary,
.dfa-btn-gold {
  background: linear-gradient(135deg, #f5e0a0 0%, #d4af37 100%);
  color: #061224;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dfa-btn-primary:hover,
.dfa-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.dfa-btn-secondary {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 13px;
  border-radius: 9px;
  cursor: pointer;
}

.dfa-btn-sm {
  padding: 7px 12px;
  font-size: 0.75rem;
}

/* Paso 2: Revisión */
.dfa-step2-container {
  max-width: 860px;
  margin: 12px auto;
}

.dfa-review-card {
  background: rgba(11, 24, 46, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 24px;
}

.dfa-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin: 14px 0;
}

.dfa-alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.dfa-alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.dfa-alert-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.dfa-review-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.dfa-review-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(5, 12, 24, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 0.78rem;
}

.dfa-review-summary-strip span {
  display: block;
  color: #94a3b8;
  font-size: 0.7rem;
}

.dfa-review-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Paso 3: Informe Ejecutivo + Consultor IA Local */
.dfa-report-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: rgba(10, 22, 44, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dfa-report-hero h3 {
  margin: 2px 0 4px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ffffff;
}

.dfa-report-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dfa-quant-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  margin-bottom: 18px;
}

.dfa-quant-card {
  background: rgba(8, 18, 36, 0.92);
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dfa-quant-client {
  border-left: 4px solid #38bdf8;
}

.dfa-quant-estimated {
  border-left: 4px solid #d4af37;
}

.dfa-quant-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.dfa-quant-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dfa-quant-kpis span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.dfa-quant-kpis strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  margin-top: 2px;
}

.dfa-quant-kpis small {
  display: block;
  font-size: 0.66rem;
  color: #64748b;
}

.dfa-highlight-cyan {
  color: #38bdf8 !important;
}

.dfa-highlight-gold {
  color: #f5e0a0 !important;
}

.dfa-highlight-emerald {
  color: #34d399 !important;
}

.dfa-quant-tools {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.dfa-report-two-cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}

.dfa-report-section {
  background: rgba(10, 22, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.dfa-section-head h4 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #ffffff;
}

.dfa-opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dfa-opp-card {
  background: rgba(5, 13, 27, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 14px;
}

.dfa-opp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.dfa-opp-rank {
  background: linear-gradient(135deg, #f5e0a0, #d4af37);
  color: #061224;
  font-weight: 900;
  font-size: 0.95rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dfa-opp-title-wrap {
  flex: 1;
}

.dfa-opp-title-wrap h5 {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.dfa-opp-role {
  font-size: 0.72rem;
  color: #94a3b8;
}

.dfa-opp-score-badge {
  text-align: right;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
}

.dfa-opp-score-badge strong {
  display: block;
  font-size: 0.92rem;
  color: #38bdf8;
}

.dfa-opp-score-badge span {
  font-size: 0.64rem;
  color: #cbd5e1;
}

.dfa-opp-proposal,
.dfa-opp-why-rank {
  font-size: 0.78rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.dfa-opp-why-rank {
  border-left: 3px solid #f5e0a0;
}

/* Origen de las cifras y respuestas que sustentan cada proceso */
.dfa-opp-evidence {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.dfa-not-declared {
  color: #94a3b8;
  font-weight: 500;
}

.dfa-report-notice {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #f8fafc;
}

.dfa-report-notice-demo {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.dfa-report-notice-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.dfa-assumed-box {
  border-color: rgba(148, 163, 184, 0.35);
}

.dfa-assumed-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.dfa-assumed-list small {
  color: #94a3b8;
}

/* Preguntas numéricas: un campo con unidad en lugar de las opciones rápidas */
.dfa-numeric-answer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.dfa-opp-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.74rem;
}

.dfa-opp-metrics-row span {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
}

.dfa-criteria-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.7rem;
  color: #94a3b8;
}

.dfa-honesty-box {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(24, 18, 10, 0.55);
}

.dfa-no-auto-item {
  background: rgba(10, 16, 28, 0.85);
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.dfa-badge-stop {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.dfa-no-auto-tip {
  color: #38bdf8;
  margin: 6px 0 0;
}

.dfa-three-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dfa-level-card {
  background: rgba(5, 13, 26, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.76rem;
}

.dfa-level-card h5 {
  margin: 0 0 4px;
  font-size: 0.83rem;
  color: #f5e0a0;
}

.dfa-level-card p {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0 0 8px;
}

.dfa-level-card ul {
  padding-left: 15px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dfa-level-card small {
  display: block;
  color: #38bdf8;
  margin-top: 2px;
}

.dfa-phases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dfa-phase-card {
  background: rgba(5, 13, 26, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.dfa-phase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: #f5e0a0;
}

.dfa-phase-time {
  font-size: 0.72rem;
  color: #38bdf8;
}

.dfa-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.75rem;
}

.dfa-phase-grid span {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.7rem;
}

.dfa-phase-grid p {
  margin: 2px 0 0;
  color: #e2e8f0;
}

.dfa-methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dfa-method-card {
  background: rgba(5, 13, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.75rem;
}

.dfa-method-card h5 {
  margin: 4px 0 8px;
  font-size: 0.86rem;
  color: #ffffff;
}

.dfa-outcome-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.dfa-outcome-feedback {
  font-size: 0.74rem;
  color: #34d399;
  margin-top: 4px;
}

/* Sidebar Consultor IA Local gemma3:4b */
.dfa-report-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dfa-ai-box {
  background: linear-gradient(165deg, #07152b 0%, #0c2140 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dfa-ai-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.84rem;
}

.dfa-ai-header small {
  font-size: 0.7rem;
  color: #38bdf8;
}

.dfa-ai-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 6px;
}

.dfa-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dfa-ai-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #e0f2fe;
  font-size: 0.69rem;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
}

.dfa-ai-pill:hover {
  background: rgba(56, 189, 248, 0.24);
}

.dfa-ai-messages {
  height: 290px;
  overflow-y: auto;
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dfa-ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.dfa-ai-msg-user {
  align-self: flex-end;
}

.dfa-ai-msg-assistant {
  align-self: flex-start;
}

.dfa-ai-msg-bubble {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.dfa-ai-msg-user .dfa-ai-msg-bubble {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #fef3c7;
}

.dfa-ai-msg-assistant .dfa-ai-msg-bubble {
  background: rgba(15, 32, 60, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #f1f5f9;
}

.dfa-ai-msg-meta {
  font-size: 0.64rem;
  color: #64748b;
  margin-top: 2px;
}

.dfa-ai-input-row {
  display: flex;
  gap: 6px;
}

.dfa-ai-input-row input {
  flex: 1;
}

.dfa-ai-input-row button {
  background: #38bdf8;
  color: #061224;
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
}

.dfa-human-card {
  background: rgba(12, 24, 44, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.76rem;
}

.dfa-human-card h5 {
  margin: 4px 0 6px;
  font-size: 0.9rem;
  color: #ffffff;
}

.dfa-human-card p {
  color: #cbd5e1;
  line-height: 1.42;
  margin: 0 0 10px;
}

@media (max-width: 1024px) {
  .dfa-step1-grid,
  .dfa-quant-grid,
  .dfa-report-two-cols,
  .dfa-three-levels-grid,
  .dfa-methodology-grid {
    grid-template-columns: 1fr;
  }
  .dfa-quant-kpis,
  .dfa-opp-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   DFA · MODO VOZ BIDIRECCIONAL (PREGUNTAS Y RESPUESTAS EN VOZ + MICRÓFONO)
   ========================================================================== */
.dfa-voice-assistant-bar {
  background: linear-gradient(135deg, rgba(14, 34, 68, 0.96) 0%, rgba(8, 22, 46, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dfa-voice-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dfa-voice-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dfa-voice-btn-main {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #041022;
  border: none;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dfa-voice-btn-main.is-active {
  background: linear-gradient(135deg, #f5e0a0 0%, #d4af37 100%);
  color: #061224;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
}

.dfa-voice-btn-stop {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.dfa-voice-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dfa-voice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.dfa-voice-toggle input {
  accent-color: #38bdf8;
  cursor: pointer;
}

.dfa-voice-status {
  font-size: 0.73rem;
  color: #93c5fd;
  background: rgba(4, 10, 22, 0.65);
  padding: 5px 10px;
  border-radius: 7px;
  border-left: 3px solid #38bdf8;
}

.dfa-q-voice-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.dfa-q-voice-btn,
.dfa-q-mic-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dfa-q-mic-btn {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fef3c7;
}

.dfa-q-voice-btn:hover,
.dfa-q-mic-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.dfa-question-item.is-speaking {
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
  background: rgba(12, 30, 58, 0.95);
}

.dfa-question-item.is-listening {
  border-color: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.dfa-chip.selected {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.dfa-ai-mic-btn {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #fef3c7;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.dfa-ai-mic-btn.is-listening {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #ffffff;
}

.dfa-ai-msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}

.dfa-ai-speak-msg-btn {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.64rem;
  padding: 1px 7px;
  border-radius: 999px;
  cursor: pointer;
}

/* ==========================================================================
   INTRO CINEMÁTICA 3D (LOGOTIPO DE PERFIL -> DE CARA -> FONDO SIN LETRAS -> SALE DE PANTALLA)
   100% Coreografía idéntica a Test (60/120 FPS nativos)
   ========================================================================== */
.sidium-intro-3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  /* 100% OPACO: colores sólidos puros sin transparencia para no ver nunca la web de detrás */
  background-color: #030711;
  background-image:
    radial-gradient(circle at 50% 50%, #172b4d 0%, #091224 52%, #030711 100%);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1150px;
  perspective-origin: 50% 50%;
  user-select: none;
  cursor: pointer;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidium-intro-3d-overlay.is-fading-out {
  opacity: 0 !important;
  pointer-events: none;
}

.sidium-intro-3d-overlay.is-finished {
  opacity: 0;
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

/* Halo ambiental sin filter:blur (100% gradiente nativo para 60/120 FPS constantes) */
.sidium-intro-3d-ambient {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 960px;
  max-height: 960px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.19) 0%,
    rgba(30, 64, 175, 0.11) 38%,
    rgba(3, 7, 17, 0) 70%
  );
  pointer-events: none;
  will-change: transform, opacity;
}

/* Escenario 3D con preservación de profundidad real */
.sidium-intro-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Rig principal del logotipo 3D (Emblema + Bloque de Letras "BIENVENIDOS A" + "SIDIUM AI") */
.sidium-intro-3d-rig {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Cuando ya está de cara (0° Y), ocultamos las láminas laterales para que el zoom vaya a 60/120 FPS sin tirones */
.sidium-intro-3d-rig.is-face-front .is-depth-slice,
.sidium-intro-3d-rig.is-face-front .is-depth-text {
  display: none !important;
}

/* Grupo del Emblema 3D con capas de extrusión real en eje Z */
.sidium-intro-3d-emblem-group {
  position: relative;
  width: 185px;
  height: 185px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  flex-shrink: 0;
}

.sidium-intro-3d-emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  backface-visibility: visible;
}

/* Capas intermedias crean el canto/grosor metálico 3D al verse de perfil */
.sidium-intro-3d-emblem-layer.is-depth-slice {
  filter: brightness(0.8) sepia(0.85) saturate(2.2);
}

/* Cara frontal nítida sin filtros pesados durante el escalado */
.sidium-intro-3d-emblem-layer.is-front-face {
  filter: none;
}

/* Grupo de Letras 3D ("BIENVENIDOS A" + "SIDIUM AI") con extrusión volumétrica */
.sidium-intro-3d-letters-group {
  position: relative;
  height: 170px;
  min-width: 580px;
  display: flex;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.sidium-intro-3d-letters-layer {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-family: 'Cinzel', 'Plus Jakarta Sans', serif;
  transform-style: preserve-3d;
}

.sidium-intro-3d-welcome-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.25rem, 2.35vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
}

.sidium-intro-3d-brand-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
}

.sidium-intro-3d-letters-layer.is-front-text .word-welcome {
  color: #f3d27a;
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.45);
}

.sidium-intro-3d-letters-layer.is-front-text .welcome-line {
  display: inline-block;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), #d4af37, rgba(212, 175, 55, 0.15));
}

.sidium-intro-3d-letters-layer.is-front-text .word-sidium {
  color: #f8fafc;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.22);
}

.sidium-intro-3d-letters-layer.is-front-text .word-ai {
  color: #d4af37;
  text-shadow: 0 2px 16px rgba(212, 175, 55, 0.45);
}

/* Capas de extrusión 3D para que "BIENVENIDOS A" y "SIDIUM AI" tengan grosor sólido de perfil */
.sidium-intro-3d-letters-layer.is-depth-text .word-welcome {
  color: #8a6421;
}

.sidium-intro-3d-letters-layer.is-depth-text .welcome-line {
  display: inline-block;
  width: 42px;
  height: 2px;
  background: #8a6421;
}

.sidium-intro-3d-letters-layer.is-depth-text .word-sidium {
  color: #1e3a5f;
}

.sidium-intro-3d-letters-layer.is-depth-text .word-ai {
  color: #8a6421;
}

/* Botón discreto para saltar la intro */
.sidium-intro-3d-skip {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 100;
  background: #0f172a;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
}

.sidium-intro-3d-skip:hover {
  background: #1e293b;
  border-color: #d4af37;
  color: #ffffff;
}

@media (max-width: 768px) {
  .sidium-intro-3d-rig {
    flex-direction: column;
    gap: 18px;
  }
  .sidium-intro-3d-emblem-group {
    width: 135px;
    height: 135px;
  }
  .sidium-intro-3d-letters-group {
    min-width: 310px;
    height: 105px;
    justify-content: center;
  }
  .sidium-intro-3d-letters-layer {
    left: 50%;
    align-items: center;
  }
  .sidium-intro-3d-welcome-row {
    font-size: 1.05rem;
    letter-spacing: 0.24em;
  }
  .sidium-intro-3d-brand-row {
    font-size: 2.1rem;
    gap: 12px;
  }
}

/* ==========================================================================
   HERO FLUJO OPERATIVO AUTOMATIZADO — DESPLIEGUE PROGRESIVO CON SCROLL
   Al inicio (scroll = 0): Solo se ve la cabecera "Flujo Operativo Automatizado".
   Al hacer scroll hacia abajo: Se va desplegando paso a paso hasta verse completo.
   Al hacer scroll hacia arriba: Se vuelve a plegar suavemente.
   ========================================================================== */
.hero-grid {
  align-items: start;
}

.hero-visual {
  position: sticky;
  top: 108px;
}

#hero-funnel-card {
  transition: padding 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

#hero-funnel-card.is-scroll-collapsed {
  padding: 20px 26px;
}

#hero-funnel-header {
  cursor: pointer;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: margin-bottom 0.22s ease, padding-bottom 0.22s ease, border-color 0.22s ease;
}

#hero-funnel-card.is-scroll-expanding #hero-funnel-header,
#hero-funnel-card.is-scroll-expanded #hero-funnel-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.funnel-collapsible-body {
  overflow: hidden;
  max-height: 0px;
  opacity: 0;
  will-change: max-height, opacity;
  transition: max-height 0.14s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.14s linear;
}

[data-funnel-scroll-item],
[data-hero-action-scroll-item] {
  opacity: 0;
  transform: translate3d(0, -14px, 0) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 0.18s ease-out, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero-actions-box {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-actions-collapsible {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  overflow: hidden;
  max-height: 0px;
  opacity: 0;
  margin-top: 0px;
  will-change: max-height, opacity, margin-top;
  transition: max-height 0.14s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.14s linear, margin-top 0.18s ease;
}

#hero-actions-box.is-scroll-expanding .hero-actions-collapsible,
#hero-actions-box.is-scroll-expanded .hero-actions-collapsible {
  margin-top: 18px;
}

/* ==========================================================================
   TARJETAS DE PROBLEMA (#problem-cards-grid) — APILADAS UNA SOBRE OTRA Y
   DESPLAZÁNDOSE CON SCROLL HASTA QUEDAR EN 3 COLUMNAS
   ========================================================================== */
#problem-cards-grid {
  position: relative;
  perspective: 1000px;
}

#problem-cards-grid [data-problem-stack-card] {
  background: #FAF8F5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#problem-cards-grid [data-problem-stack-card="0"] {
  z-index: 3;
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.12);
}

#problem-cards-grid [data-problem-stack-card="1"] {
  z-index: 2;
  box-shadow: 0 14px 32px rgba(11, 29, 58, 0.1);
}

#problem-cards-grid [data-problem-stack-card="2"] {
  z-index: 1;
  box-shadow: 0 10px 24px rgba(11, 29, 58, 0.08);
}

/* ==========================================================================
   LOS 7 EFECTOS INTERACTIVOS DE SCROLL ADICIONALES (COREOGRAFÍA 60/120 FPS)
   ========================================================================== */

/* 1. Casos de Uso por Sector: KPIs Antes/Después y Botones desplegables con scroll */
.sector-scroll-collapsible {
  overflow: hidden;
  max-height: 0px;
  opacity: 0;
  will-change: max-height, opacity;
  transition: max-height 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s linear;
}

.sector-scroll-collapsible [data-sector-scroll-item] {
  will-change: transform, opacity;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s linear;
}

/* 2. Los 4 Pilares Estratégicos: Apilados en baraja tras 01 y deslizándose en tren */
#pillars-cards-grid {
  position: relative;
  perspective: 1000px;
}

#pillars-cards-grid [data-pillar-stack-card] {
  background: #102342 !important;
  border: 1px solid rgba(201, 169, 110, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#pillars-cards-grid [data-pillar-stack-card="0"] {
  z-index: 4;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

#pillars-cards-grid [data-pillar-stack-card="1"] {
  z-index: 3;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

#pillars-cards-grid [data-pillar-stack-card="2"] {
  z-index: 2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

#pillars-cards-grid [data-pillar-stack-card="3"] {
  z-index: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* 3. Las 4 Tipologías de Automatización: Cabecera compacta + Despliegue progresivo */
#pricing-cards-grid [data-pricing-scroll-card] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#pricing-cards-grid .pricing-scroll-collapsible {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-height: 0px;
  opacity: 0;
  will-change: max-height, opacity;
  transition: max-height 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s linear;
}

#pricing-cards-grid [data-pricing-scroll-card].is-scroll-collapsed .pricing-header {
  margin-bottom: 0;
  padding-bottom: 4px;
  border-bottom-color: transparent;
}

/* 4. El Método Sidium AI en 4 Pasos: Despliegue secuencial en línea de tiempo */
#process-timeline-grid {
  position: relative;
  perspective: 1000px;
}

#process-scroll-progress-line {
  display: none !important;
}

#process-timeline-grid [data-process-stack-card] {
  background: #FAF8F5 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#process-timeline-grid [data-process-stack-card]:hover {
  background: #FFFFFF !important;
}

#process-timeline-grid [data-process-stack-card="0"] {
  z-index: 4;
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.13);
}

#process-timeline-grid [data-process-stack-card="1"] {
  z-index: 3;
  box-shadow: 0 15px 34px rgba(11, 29, 58, 0.11);
}

#process-timeline-grid [data-process-stack-card="2"] {
  z-index: 2;
  box-shadow: 0 12px 28px rgba(11, 29, 58, 0.09);
}

#process-timeline-grid [data-process-stack-card="3"] {
  z-index: 1;
  box-shadow: 0 10px 22px rgba(11, 29, 58, 0.07);
}

/* 5. Las 3 Láminas del Dossier Entregable: Carpeta ejecutiva en abanico */
#deliverable-sheets-grid {
  position: relative;
  perspective: 1000px;
}

#deliverable-sheets-grid [data-dossier-stack-card] {
  background: #112239 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#deliverable-sheets-grid [data-dossier-stack-card="0"] {
  z-index: 3;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

#deliverable-sheets-grid [data-dossier-stack-card="1"] {
  z-index: 2;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

#deliverable-sheets-grid [data-dossier-stack-card="2"] {
  z-index: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* 6. Garantías apiladas + Tabla Comparativa desplegable fila a fila */
#guarantees-cards-grid {
  position: relative;
  perspective: 1000px;
}

#guarantees-cards-grid [data-guarantee-stack-card] {
  background: #FAF8F5 !important;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(176, 141, 87, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#guarantees-cards-grid [data-guarantee-stack-card="0"] {
  z-index: 3;
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.12);
}

#guarantees-cards-grid [data-guarantee-stack-card="1"] {
  z-index: 2;
  box-shadow: 0 14px 32px rgba(11, 29, 58, 0.1);
}

#guarantees-cards-grid [data-guarantee-stack-card="2"] {
  z-index: 1;
  box-shadow: 0 10px 24px rgba(11, 29, 58, 0.08);
}

#comparison-scroll-table tbody tr[data-comparison-row] {
  will-change: transform, opacity;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s linear;
}

/* 7. Tarjetas de Sede y Contacto Directo: Apiladas en el centro -> 3 columnas */
#contact-cards-grid {
  position: relative;
  perspective: 1000px;
}

#contact-cards-grid [data-contact-stack-card] {
  background: #0F172A !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#contact-cards-grid [data-contact-stack-card="0"] {
  z-index: 3;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

#contact-cards-grid [data-contact-stack-card="1"] {
  z-index: 2;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
}

#contact-cards-grid [data-contact-stack-card="2"] {
  z-index: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

/* ==========================================================================
   MODAL POP-UP: CONTACTO DIRECTO CARLOS MARTÍ LÓPEZ
   ========================================================================== */
.contact-carlos-overlay {
  z-index: 10050;
  padding: 16px;
}

.contact-carlos-card {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  box-sizing: border-box;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 42%),
              radial-gradient(circle at top left, rgba(212, 175, 55, 0.15), transparent 45%),
              linear-gradient(165deg, #07152B 0%, #0B1E38 52%, #061122 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 22px;
  padding: 32px 30px 24px;
  color: #FFFFFF;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(212, 175, 55, 0.18);
  animation: modalFadeUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.contact-carlos-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.contact-carlos-close:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: scale(1.06);
}

.contact-carlos-header {
  text-align: left;
  margin-bottom: 20px;
}

.contact-carlos-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: #F5E0A0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.contact-carlos-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.contact-carlos-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.contact-carlos-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.contact-carlos-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5E0A0 0%, #D4AF37 50%, #8C6D2D 100%);
  color: #07152B;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.38), 0 0 0 2px rgba(212, 175, 55, 0.45);
}

.contact-carlos-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2.5px solid #07152B;
  box-shadow: 0 0 8px #10B981;
}

.contact-carlos-profile-info {
  flex: 1;
}

.contact-carlos-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.contact-carlos-role {
  color: #38BDF8;
  font-size: 0.94rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.contact-carlos-company {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 500;
  display: block;
}

.contact-carlos-lead {
  font-size: 0.93rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid #D4AF37;
}

.contact-carlos-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-carlos-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1.2px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.contact-carlos-channel-card:hover {
  transform: translateY(-2px);
  background: rgba(26, 41, 71, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.contact-carlos-channel-card.channel-call:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.contact-carlos-channel-card.channel-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.65);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.contact-carlos-channel-card.channel-email:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.channel-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-call {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F5E0A0;
}

.channel-icon-whatsapp {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25D366;
}

.channel-icon-email {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38BDF8;
}

.channel-content {
  flex: 1;
  min-width: 0;
}

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.channel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F5E0A0;
}

.channel-tag.tag-green {
  color: #34D399;
}

.channel-tag.tag-blue {
  color: #38BDF8;
}

.channel-avail {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
}

.channel-value {
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.channel-hint {
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.35;
}

.channel-cta-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #F5E0A0;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.contact-carlos-channel-card:hover .channel-cta-arrow {
  background: #D4AF37;
  color: #07152B;
  border-color: #D4AF37;
  transform: translateX(3px);
}

.contact-carlos-channel-card.channel-whatsapp:hover .channel-cta-arrow {
  background: #25D366;
  color: #07152B;
  border-color: #25D366;
}

.contact-carlos-channel-card.channel-email:hover .channel-cta-arrow {
  background: #38BDF8;
  color: #07152B;
  border-color: #38BDF8;
}

.contact-carlos-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-carlos-office {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #CBD5E1;
  flex: 1;
  min-width: 250px;
}

.contact-carlos-office strong {
  color: #FFFFFF;
}

.contact-carlos-maps-link {
  color: #F5E0A0;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.contact-carlos-maps-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.contact-carlos-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .contact-carlos-card {
    padding: 24px 18px 20px;
  }
  .contact-carlos-profile {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .contact-carlos-header {
    text-align: center;
  }
  .contact-carlos-lead {
    text-align: left;
  }
  .contact-carlos-channel-card {
    padding: 12px 14px;
  }
  .channel-cta-arrow span {
    display: none;
  }
  .contact-carlos-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-carlos-actions {
    justify-content: flex-end;
  }
}


/* ==========================================================================
   DFA · Página privada de invitación (dfa.html) y opinión del cliente
   ========================================================================== */
.dfa-invite-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 45%), #07101e;
  color: #e2e8f0;
}

.dfa-invite-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.dfa-invite-header h1 {
  font-family: var(--font-heading, serif);
  font-size: 1.9rem;
  color: #f8fafc;
  margin: 6px 0 24px;
}

.dfa-invite-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 24px;
}

.dfa-invite-card h2 {
  font-size: 1.3rem;
  color: #f8fafc;
  margin: 0 0 10px;
}

.dfa-invite-privacy {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dfa-invite-privacy p {
  margin: 6px 0 12px;
  color: #cbd5e1;
}

.dfa-invite-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: #f8fafc;
}

.dfa-invite-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dfa-invite-error {
  min-height: 1.2em;
  margin: 8px 0;
  color: #f87171;
  font-size: 0.82rem;
}

.dfa-invite-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.dfa-invite-footer a {
  color: #94a3b8;
}

.dfa-invite-feedback {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dfa-invite-stars {
  display: flex;
  gap: 6px;
}

.dfa-invite-stars label {
  cursor: pointer;
}

.dfa-invite-stars input {
  position: absolute;
  opacity: 0;
}

.dfa-invite-stars span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #e2e8f0;
  font-weight: 700;
}

.dfa-invite-stars input:checked + span {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
  color: #fff;
}

.dfa-invite-stars input:focus-visible + span {
  outline: 2px solid #38bdf8;
}

.dfa-invite-feedback textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.82rem;
  resize: vertical;
}
