/**
 * landing/assets/css/fidelizacion-de-clientes.css
 * Estilos específicos para la landing: Fidelización de Clientes y Clubes de Beneficios
 * Troop Software Factory
 */

:root {
  --loyalty-primary: var(--troop-primary, #00bf80);
  --loyalty-primary-hover: #00a86b;
  --loyalty-gold: #f59e0b;
  --loyalty-gold-hover: #d97706;
  --loyalty-gold-glow: rgba(245, 158, 11, 0.4);
  --loyalty-green-glow: rgba(0, 191, 128, 0.4);
  --loyalty-dark-bg: var(--troop-dark-bg, #0b1120);
  --loyalty-dark-card: rgba(15, 23, 42, 0.75);
  --loyalty-dark-card-border: rgba(255, 255, 255, 0.08);
  --loyalty-dark-card-hover: rgba(0, 191, 128, 0.25);
  --loyalty-light-bg: #f8fafc;
  --loyalty-light-card: #ffffff;
  --loyalty-light-border: #e2e8f0;
  --loyalty-text-muted-dark: #94a3b8;
  --loyalty-text-body-dark: #cbd5e1;
  --loyalty-text-dark: #0f172a;
}

/* ==========================================================================
   TIPOGRAFÍA Y CONTRASTE BASE
   ========================================================================== */

body.landing-fidelizacion-de-clientes {
  font-family: var(--troop-font-body, system-ui, -apple-system, sans-serif) !important;
  background-color: var(--loyalty-dark-bg) !important;
  color: var(--loyalty-text-body-dark);
}

.landing-fidelizacion-de-clientes h1,
.landing-fidelizacion-de-clientes h2,
.landing-fidelizacion-de-clientes h3,
.landing-fidelizacion-de-clientes h4,
.landing-fidelizacion-de-clientes h5 {
  font-family: var(--troop-font-heading, inherit) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Secciones Oscuras */
.loyalty-section-dark {
  background-color: var(--loyalty-dark-bg);
  color: var(--loyalty-text-body-dark);
  position: relative;
  overflow: hidden;
}

.loyalty-section-dark h1,
.loyalty-section-dark h2,
.loyalty-section-dark h3 {
  color: #ffffff !important;
}

.loyalty-section-dark .section-lead {
  color: #94a3b8;
}

/* Secciones Claras */
.loyalty-section-light {
  background-color: var(--loyalty-light-bg);
  color: #334155;
  position: relative;
}

.loyalty-section-light h2,
.loyalty-section-light h3,
.loyalty-section-light h4 {
  color: var(--loyalty-text-dark) !important;
}

.loyalty-section-light .section-lead {
  color: #64748b;
}

/* Scope estricto para clases utilitarias dentro de sección clara (§0.17) */
.loyalty-section-light .text-white {
  color: #0f172a !important;
}

.loyalty-section-light .text-secondary {
  color: #64748b !important;
}

.loyalty-section-light .text-muted {
  color: #64748b !important;
}

.loyalty-section-light .card {
  background-color: var(--loyalty-light-card) !important;
  border-color: var(--loyalty-light-border) !important;
  color: #334155 !important;
}

/* Badges */
.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 191, 128, 0.12);
  border: 1px solid rgba(0, 191, 128, 0.35);
  color: var(--loyalty-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.loyalty-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--loyalty-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.loyalty-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 191, 128, 0.1);
  border: 1px solid rgba(0, 191, 128, 0.3);
  color: #00875a;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Botones */
.btn-loyalty-primary {
  background-color: var(--loyalty-primary);
  color: #0b1120 !important;
  font-weight: 700;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 191, 128, 0.3);
}

.btn-loyalty-primary:hover {
  background-color: var(--loyalty-primary-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 128, 0.45);
}

.btn-loyalty-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loyalty-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO SECTION & FONDO ANIMADO FLUJO POS-A-CLOUD (§0.14 Opción B)
   ========================================================================== */

.hero-loyalty {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-loyalty {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
  }
}

.hero-loyalty-circuits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at center, transparent 30%, black 85%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 30%, black 85%);
}

.loyalty-circuits-desktop {
  display: block;
  width: 100%;
  height: 100%;
}

.loyalty-circuits-mobile {
  display: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .loyalty-circuits-desktop {
    display: none;
  }
  .loyalty-circuits-mobile {
    display: block;
  }
}

.pos-circuit-base {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pos-circuit-node-base {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.pos-circuit-chip {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(0, 191, 128, 0.28);
  stroke-width: 1;
}

.pos-circuit-pulse {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140 1000;
  stroke-dashoffset: 1140;
  opacity: 0;
  will-change: stroke-dashoffset, opacity;
}

.pos-pulse-green {
  stroke: #00bf80;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgba(0, 191, 128, 0.85));
}

.pos-pulse-cyan {
  stroke: #00e5ff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.85));
}

.pos-pulse-gold {
  stroke: #f59e0b;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.85));
}

.pos-pulse-anim-1 { animation: posPulseTravel 3.2s cubic-bezier(0.25, 1, 0.5, 1) -0.8s infinite; }
.pos-pulse-anim-2 { animation: posPulseTravel 3.6s cubic-bezier(0.25, 1, 0.5, 1) -2.0s infinite; }
.pos-pulse-anim-3 { animation: posPulseTravel 3.8s cubic-bezier(0.25, 1, 0.5, 1) -1.2s infinite; }
.pos-pulse-anim-4 { animation: posPulseTravel 3.4s cubic-bezier(0.25, 1, 0.5, 1) -2.5s infinite; }
.pos-pulse-anim-5 { animation: posPulseTravel 3.1s cubic-bezier(0.25, 1, 0.5, 1) -0.4s infinite; }
.pos-pulse-anim-6 { animation: posPulseTravel 3.7s cubic-bezier(0.25, 1, 0.5, 1) -1.7s infinite; }
.pos-pulse-anim-7 { animation: posPulseTravel 3.9s cubic-bezier(0.25, 1, 0.5, 1) -2.9s infinite; }
.pos-pulse-anim-8 { animation: posPulseTravel 3.3s cubic-bezier(0.25, 1, 0.5, 1) -1.0s infinite; }

.pos-node-pulse-1 {
  animation: posNodePulse 2.8s ease-in-out -0.5s infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.pos-node-pulse-2 {
  animation: posNodePulse 3.2s ease-in-out -1.2s infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.pos-node-pulse-3 {
  animation: posNodePulse 3.0s ease-in-out -2.0s infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes posNodePulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes posPulseTravel {
  0% {
    stroke-dashoffset: 1140;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -140;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-circuit-pulse,
  .pos-node-pulse-1,
  .pos-node-pulse-2,
  .pos-node-pulse-3 {
    animation: none !important;
  }
}

.hero-loyalty .container {
  position: relative;
  z-index: 2;
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.hero-trust-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.hero-trust-bullets svg {
  color: var(--loyalty-primary);
}

/* ==========================================================================
   2. EL DILEMA DEL SAAS: CARDS COMPARATIVAS (Oscura)
   ========================================================================== */

.saas-dilemma-card {
  background: var(--loyalty-dark-card);
  border: 1px solid var(--loyalty-dark-card-border);
  border-radius: 14px;
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.saas-dilemma-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.saas-tag-problem {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.saas-tag-solution {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--loyalty-primary);
  background: rgba(0, 191, 128, 0.12);
  border: 1px solid rgba(0, 191, 128, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.saas-dilemma-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 1.2rem 0;
}

/* ==========================================================================
   3. ARQUITECTURA Y MÓDULOS DE LA PLATAFORMA (Clara)
   ========================================================================== */

.loyalty-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.loyalty-module-card:hover {
  transform: translateY(-4px);
  border-color: #00bf80;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.loyalty-module-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 191, 128, 0.1);
  color: #00875a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.loyalty-module-icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.loyalty-feature-list {
  padding-left: 0;
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 0;
}

.loyalty-feature-list li {
  font-size: 0.9rem;
  color: #475569;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loyalty-feature-list li svg {
  color: #00875a;
  flex-shrink: 0;
}

/* ==========================================================================
   4. INTEGRACIÓN POS/ERP & OFFLINE-FIRST (Oscura)
   ========================================================================== */

.pos-flow-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 2.5rem 1.8rem;
  margin-bottom: 2rem;
}

.pos-flow-step {
  text-align: center;
  position: relative;
}

.pos-flow-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(0, 191, 128, 0.12);
  border: 1px solid rgba(0, 191, 128, 0.35);
  color: var(--loyalty-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0, 191, 128, 0.2);
}

.pos-flow-icon-gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--loyalty-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.offline-first-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(26, 38, 66, 0.9) 100%);
  border: 1px solid rgba(0, 191, 128, 0.3);
  border-radius: 14px;
  padding: 1.8rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   5. DIFERENCIALES TROOP & CUENTAS D-U-N-S (Oscura)
   ========================================================================== */

.troop-diff-card {
  background: var(--loyalty-dark-card);
  border: 1px solid var(--loyalty-dark-card-border);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.troop-diff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 191, 128, 0.4);
}

.duns-official-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.duns-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--loyalty-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   6. CASOS DE USO Y SOLUCIONES VERTICALES (Clara)
   ========================================================================== */

.vertical-case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.vertical-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.vertical-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #00875a;
  background: rgba(0, 191, 128, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.vertical-highlight-metric {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--loyalty-text-dark);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   7. PREGUNTAS FRECUENTES (Clara — FAQPage Schema)
   ========================================================================== */

.loyalty-accordion .accordion-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loyalty-accordion .accordion-item:hover {
  border-color: #cbd5e1;
}

.loyalty-accordion .accordion-button {
  background-color: #ffffff;
  color: var(--loyalty-text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.2rem 1.4rem;
  box-shadow: none !important;
}

.loyalty-accordion .accordion-button:not(.collapsed) {
  background-color: #f8fafc;
  color: #00875a;
}

.loyalty-accordion .accordion-button::after {
  filter: grayscale(1);
  transition: transform 0.25s ease;
}

.loyalty-accordion .accordion-button:not(.collapsed)::after {
  filter: none;
}

.loyalty-accordion .accordion-body {
  background-color: #ffffff;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   8. FORMULARIO DE CONTACTO / CTA FINAL (Oscura)
   ========================================================================== */

.loyalty-contact-wrapper {
  background: var(--loyalty-dark-card);
  border: 1px solid var(--loyalty-dark-card-border);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.loyalty-contact-guarantee {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.loyalty-contact-guarantee svg {
  color: var(--loyalty-primary);
  flex-shrink: 0;
}
