/* ============================================================
   NUBE3I HOMEPAGE — ESTILOS ESPECÍFICOS
   Archivo: /css/home.css
   ============================================================ */

/* ─── [0] UTILITY CLASSES & GLOBAL OPTIMIZATIONS ─── */
.section-hero-custom {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.section-glass-custom {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.section-padding-small {
  padding: 50px 0;
}

.section-padding-medium {
  padding: 80px 0;
}

.neural-canvas-abs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Fondo 2D del hero: oculto por defecto (en escritorio manda el canvas 3D flythrough).
   Se activa solo en móvil (<=768px), donde sustituye al 3D por rendimiento (ver bloque T6). */
.hero-bg-2d {
  display: none;
}

.container-above-canvas {
  position: relative;
  z-index: 1;
}

.text-center-mb-1 {
  text-align: center;
  margin-bottom: 1rem;
}

.badge-pill-danger {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-pill-primary {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--clr-primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gradient-text-blue {
  background: linear-gradient(90deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-rose-orange {
  background: linear-gradient(90deg, #ff0055, #ff5500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan-blue {
  background: linear-gradient(90deg, #00d4ff, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink-cyan {
  background: linear-gradient(90deg, #ff0055, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-dark {
  text-align: center;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.section-title-light {
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.section-subtitle-muted-lg {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-subtitle-light-md {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
}

.margin-top-xl {
  text-align: center;
  margin-top: 4.5rem;
}

.margin-bottom-xl {
  margin-bottom: 4.5rem;
}

.flex-center-mb-lg {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.flex-center {
  justify-content: center;
}

.btn-large-custom {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.marquee-subtitle-custom {
  text-align: center;
  color: #475569;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 2rem;
}

.mr-xs {
  margin-right: 2px;
}

.mr-sm {
  margin-right: 4px;
}

.mr-md-ib-vam {
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* Optimize SVG glow filters for mobile devices */
@media (max-width: 768px) {

  .core-network-svg [filter],
  .home-diagram-lines [filter] {
    filter: none !important;
  }
}


/* ─── [1] MOBILE MENU / HAMBURGER ─── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-text-main);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(11, 17, 33, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--clr-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .navbar__links.active {
    right: 0;
  }

  .navbar__hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ─── [2] INTERACTIVE MODULE SELECTOR (TABS & PANELS) ─── */
.module-selector {
  margin-top: 3.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 2rem;
}

.module-tab {
  background: rgba(28, 38, 62, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 22px rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.module-tab svg {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--clr-text-muted);
}

.module-tab span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.module-tab:hover {
  background: rgba(34, 45, 72, 0.66);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--clr-text-main);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 255, 255, 0.09);
}

.module-tab:hover svg {
  transform: scale(1.1);
  color: var(--clr-primary);
}

.module-tab.active[data-module="erp"] {
  border-color: var(--clr-erp);
  box-shadow: 0 0 20px rgba(255, 51, 85, 0.15), inset 0 0 10px rgba(255, 51, 85, 0.05), 0 0 16px rgba(255, 255, 255, 0.06);
  color: var(--clr-text-main);
}

.module-tab.active[data-module="erp"] svg {
  color: var(--clr-erp);
}

.module-tab.active[data-module="ecommerce"] {
  border-color: var(--clr-ecommerce);
  box-shadow: 0 0 20px rgba(52, 110, 211, 0.15), inset 0 0 10px rgba(52, 110, 211, 0.05), 0 0 16px rgba(255, 255, 255, 0.06);
  color: var(--clr-text-main);
}

.module-tab.active[data-module="ecommerce"] svg {
  color: var(--clr-ecommerce);
}

.module-tab.active[data-module="tpv"] {
  border-color: var(--clr-tpv);
  box-shadow: 0 0 20px rgba(11, 245, 151, 0.15), inset 0 0 10px rgba(11, 245, 151, 0.05), 0 0 16px rgba(255, 255, 255, 0.06);
  color: var(--clr-text-main);
}

.module-tab.active[data-module="tpv"] svg {
  color: var(--clr-tpv);
}

.module-tab.active[data-module="crm"] {
  border-color: var(--clr-crm);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 0 10px rgba(139, 92, 246, 0.05), 0 0 16px rgba(255, 255, 255, 0.06);
  color: var(--clr-text-main);
}

.module-tab.active[data-module="crm"] svg {
  color: var(--clr-crm);
}

.module-tab.active[data-module="cms"] {
  border-color: var(--clr-cms);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), inset 0 0 10px rgba(6, 182, 212, 0.05), 0 0 16px rgba(255, 255, 255, 0.06);
  color: var(--clr-text-main);
}

.module-tab.active[data-module="cms"] svg {
  color: var(--clr-cms);
}


/* Module Panels styling */
.module-panels {
  position: relative;
  width: 100%;
  min-height: 480px;
}

.module-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: rgba(28, 38, 62, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 2rem 3rem;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 48px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.module-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  position: relative;
}

/* Igualar altura de los 5 paneles en PC: el ERP (con menos padding) es la referencia;
   los cortos suben con min-height y el mockup TPV (el único más alto) se topa por ancho
   para bajar a la misma banda, preservando su aspecto. El visual del ERP no se toca. */
@media (min-width: 769px) {
  .module-panel {
    min-height: 578px;
  }
  .module-panel[data-panel="tpv"] .tpv-multidevice-b {
    max-width: 480px;
  }

  /* TPV (solo PC): el texto ocupa el 45% y el mockup el 55% restante. */
  .module-panel[data-panel="tpv"] {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* TPV (solo PC): el ticket, que en móvil cuelga bajo la cascada, se coloca aquí a
   su derecha solapando un poco el marco del móvil. Solo desde 1260px: por debajo
   no cabe un ticket legible sin invadir la pantalla del móvil. */
@media (min-width: 1280px) {
  .module-panel[data-panel="tpv"] .tpv-multidevice-b {
    /* Ancho fijo: si el SVG encogiera, el móvil se desplazaría bajo el ticket y el
       solape calibrado abajo invadiría su pantalla. Quien cede ancho es el ticket.
       440px (no 480) para que mockup + ticket quepan en el 55% del panel. */
    flex: 0 0 440px;
    margin: 0; /* el `margin:0 auto` heredado absorbía el hueco libre del flex */
  }
  .section-hero-custom .module-panel[data-panel="tpv"] .tpv-mob-ticket {
    display: block;
    flex: 0 1 232px;
    min-width: 204px; /* por debajo, «TARJETA ****4821 · APROBADO» parte en dos líneas */
    /* solapa ~9px el bisel del móvil sin invadir su pantalla; atado al SVG de 440px */
    margin-left: -74px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  }
}

.module-panel__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.module-panel__info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.module-panel[data-panel="erp"] .module-panel__info h3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.module-panel[data-panel="ecommerce"] .module-panel__info h3 {
  background: linear-gradient(90deg, #346ed3, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-panel[data-panel="tpv"] .module-panel__info h3 {
  background: linear-gradient(90deg, #10b981, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-panel[data-panel="crm"] .module-panel__info h3 {
  background: linear-gradient(90deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-panel[data-panel="cms"] .module-panel__info h3 {
  background: linear-gradient(90deg, #06b6d4, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module-panel__info p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.module-panel__info p strong {
  color: var(--clr-text-main);
}

.module-panel__cta {
  margin-top: 1rem;
}

.module-panel__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Sin perspective: ningún mockup interior usa transform 3D y, en la ruta GPU,
     promovía el panel a una textura que emborronaba las fotos del eCommerce. */
}

/* Glass Windows CSS Mockup containers */
.mockup-container {
  width: 100%;
  max-width: 580px;
  background: rgba(11, 17, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mockup-window-header {
  height: 38px;
  background: rgba(11, 17, 33, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.mockup-dot.red {
  background: #ef4444;
}

.mockup-dot.yellow {
  background: #f59e0b;
}

.mockup-dot.green {
  background: #10b981;
}

.mockup-title {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-left: auto;
  margin-right: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mockup-window-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 240px;
}

/* ERP Mockup Inner Elements */
.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.m-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.m-stat-label {
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

.m-stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text-main);
  margin-top: 2px;
}

.m-stat-val.warning {
  color: #f59e0b;
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-list-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.m-row-id {
  font-weight: 600;
  color: var(--clr-text-muted);
  width: 25%;
}

.m-row-client {
  color: var(--clr-text-main);
  width: 45%;
}

.m-row-amount {
  font-weight: 700;
  width: 20%;
  text-align: right;
  margin-right: 10px;
}

.m-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.m-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.m-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Ecommerce Mockup Inner Elements */
.mockup-store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.m-product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.m-product-img {
  height: 60px;
  background: linear-gradient(135deg, #346ed3, #00d4ff);
  border-radius: 6px;
  margin-bottom: 6px;
}

.m-product-img.alt {
  background: linear-gradient(135deg, #a855f7, #ff00d4);
}

.m-product-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-text-main);
}

.m-product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #346ed3;
  margin-top: 2px;
}

.mockup-store-cart {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
  padding: 10px;
  font-size: 0.7rem;
  margin-top: auto;
}

.m-cart-header {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--clr-text-muted);
}

.m-cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.m-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 4px;
  margin-top: 4px;
}

/* TPV Mockup Inner Elements */
.mockup-tpv-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  height: 100%;
}

.mockup-tpv-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 50px);
  gap: 8px;
}

.m-tpv-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-text-main);
  cursor: pointer;
  transition: background 0.2s;
}

.m-tpv-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.mockup-tpv-receipt {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-receipt-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.m-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}

.m-receipt-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 4px 0;
}

.m-receipt-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.75rem;
}

.m-receipt-pay-btn {
  background: #10b981;
  color: white;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px;
  border-radius: 6px;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* CRM Mockup Inner Elements */
.mockup-crm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-crm-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.m-crm-user {
  font-weight: 600;
  width: 45%;
}

.crm-tag {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: auto;
}

.crm-tag.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.crm-tag.blue {
  background: rgba(52, 110, 211, 0.15);
  color: #346ed3;
}

.crm-tag.grey {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-text-muted);
}

.m-crm-last {
  font-size: 0.65rem;
  color: var(--clr-text-muted);
}

.mockup-crm-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.m-crm-action-btn {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.7rem;
  padding: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--clr-text-main);
}

.m-crm-action-btn.primary {
  background: #a855f7;
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

/* CMS Mockup Inner Elements */
.mockup-cms-editor {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  height: 100%;
}

.m-cms-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-cms-tool {
  font-size: 0.6rem;
  padding: 4px;
  border-radius: 4px;
  color: var(--clr-text-muted);
  text-align: center;
  cursor: pointer;
}

.m-cms-tool.active {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  font-weight: 700;
}

.m-cms-canvas {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-canvas-nav {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
  font-weight: 700;
}

.m-canvas-nav span {
  color: var(--clr-text-muted);
  font-weight: 400;
}

.m-canvas-hero {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-canvas-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(90deg, #a855f7, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-canvas-p {
  font-size: 0.55rem;
  color: var(--clr-text-muted);
}



/* Fix canvas bleeding on white sections */
.section-glass-white {
  background: #f8fafc !important;
  position: relative;
  z-index: 10;
  isolation: isolate;
}

/* ─── [3] SOCIAL PROOF LOGO MARQUEE ─── */
.home-marquee-container {
  overflow: hidden;
  padding: 2.5rem 0;
  position: relative;
  width: 100%;
}

.home-marquee-container::before,
.home-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.home-marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.home-marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, #f8fafc 0%, transparent 100%);
}

.home-marquee-inner {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.home-marquee-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #0f172a;
  opacity: 0.18;
  letter-spacing: 2px;
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-marquee-item svg {
  width: 1.85rem;
  height: 1.85rem;
  stroke-width: 2.8px;
  flex-shrink: 0;
}


@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ─── [3] SOCIAL PROOF MARQUEE — adaptación responsive (Compás Fluido) ─── */
@media (max-width: 768px) {
  #s3-logobar {
    padding: clamp(28px, 8vw, 50px) 0;
  }

  #s3-logobar .home-marquee-container {
    padding: clamp(1rem, 4vw, 2.5rem) 0;
  }

  #s3-logobar .home-marquee-container::before,
  #s3-logobar .home-marquee-container::after {
    width: clamp(28px, 12vw, 56px);
    max-width: 22%;
  }

  #s3-logobar .home-marquee-inner {
    gap: clamp(2rem, 9vw, 4rem);
  }

  #s3-logobar .home-marquee-item {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    letter-spacing: 1px;
    gap: clamp(.45rem, 2vw, .7rem);
    opacity: .22;
  }

  #s3-logobar .home-marquee-item svg {
    width: clamp(1.1rem, 5vw, 1.5rem);
    height: clamp(1.1rem, 5vw, 1.5rem);
    stroke-width: 2.4px;
  }

  #s3-logobar .marquee-subtitle-custom {
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    margin-bottom: clamp(1rem, 4vw, 2rem);
    padding: 0 1rem;
  }
}

/* Si el usuario pide reducir movimiento: detener el marquee y permitir arrastre manual */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #s3-logobar .home-marquee-inner {
    animation: none;
    transform: none;
  }

  #s3-logobar .home-marquee-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── [4] DARK PAIN CARDS VARIANT ─── */
.home-pain-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  color: var(--clr-text-main);
  min-height: 410px;
}

.home-pain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.home-pain-card:has(.icon-danger):hover {
  border-color: rgba(239, 68, 68, 0.25);
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.6));
}

.home-pain-card:has(.icon-warning):hover {
  border-color: rgba(245, 158, 11, 0.25);
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.6));
}

.home-pain-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-main) !important;
  margin-bottom: 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
}

.home-pain-card .p-card-body {
  color: #94a3b8 !important;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.home-pain-card .pain-visual {
  background: rgba(8, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  margin-top: 1.75rem;
  padding: 1.5rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .home-pain-card .pain-visual {
    height: 150px;
  }
}

.home-pain-card .pain-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1.2px, transparent 1.2px);
  background-size: 10px 10px;
  opacity: 0.8;
  pointer-events: none;
}

/* Pain Card Dark UI tweaks & Core Animations */
.copy-paste-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
  position: relative;
  height: 100%;
}

.cp-window {
  width: 42%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cp-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  padding: 6px 10px;
  background: rgba(11, 17, 33, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
}

.cp-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  width: 80%;
}

.cp-line.active {
  background: #3b82f6;
  width: 100%;
  position: relative;
}

.cp-line:nth-child(2) {
  width: 60%;
}

.cp-line:nth-child(3) {
  width: 40%;
}

.cp-field {
  height: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 100%;
}

.cp-field.filled {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid transparent;
  width: 70%;
}

.cp-animation-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.cp-pointer {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  animation: copy-paste-flow 5s infinite ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cp-badge-container {
  position: relative;
  margin-top: 4px;
}

.cp-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
}

.badge-c {
  background: #3b82f6;
  color: white;
  animation: copy-badge-anim 5s infinite;
}

.badge-v {
  background: #10b981;
  color: white;
  animation: paste-badge-anim 5s infinite;
}

@keyframes copy-paste-flow {

  0%,
  100% {
    left: 22%;
    top: 60%;
  }

  25% {
    left: 22%;
    top: 60%;
  }

  45% {
    left: 78%;
    top: 70%;
  }

  75% {
    left: 78%;
    top: 70%;
  }
}

@keyframes copy-badge-anim {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.8);
  }

  22%,
  35% {
    opacity: 1;
    transform: translate(-50%, -5px) scale(1);
  }

  40%,
  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.8);
  }
}

@keyframes paste-badge-anim {

  0%,
  45% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.8);
  }

  47%,
  65% {
    opacity: 1;
    transform: translate(-50%, -5px) scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.8);
  }
}

.cp-field.target {
  animation: target-fill 5s infinite step-end;
}

@keyframes target-fill {

  0%,
  50% {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
  }

  51%,
  100% {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
  }
}

/* --- ANIMATION: STOCK COUNTER --- */
.stock-counter-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.stock-counter-title {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stock-counter-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: #10b981;
  position: relative;
  line-height: 1;
}

.stock-counter-visual::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  animation: stock-glow 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes stock-glow {

  0%,
  55% {
    transform: scale(0.8);
    opacity: 0;
  }

  60%,
  85% {
    transform: scale(1.2);
    opacity: 1;
  }

  90%,
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* --- ANIMATION: UNPAID INVOICES --- */
.unpaid-invoices-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  position: relative;
}

.invoice-paper-stack {
  position: relative;
  width: 120px;
  height: 90px;
}

.inv-paper {
  position: absolute;
  width: 100px;
  height: 70px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-text-main);
  transition: transform 0.3s ease;
}

.inv-due {
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 3px;
  align-self: flex-start;
}

.inv-due.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.inv-due.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.inv-paper.p1 {
  transform: rotate(-5deg) translate(-10px, -5px);
  z-index: 1;
}

.inv-paper.p2 {
  transform: rotate(3deg) translate(5px, 0);
  z-index: 2;
}

.inv-paper.p3 {
  transform: rotate(-1deg) translate(-2px, 8px);
  z-index: 3;
}

.home-pain-card:hover .inv-paper.p1 {
  transform: rotate(-12deg) translate(-20px, -10px);
}

.home-pain-card:hover .inv-paper.p2 {
  transform: rotate(8deg) translate(15px, -5px);
}

.home-pain-card:hover .inv-paper.p3 {
  transform: rotate(-2deg) translate(-2px, 15px);
}

.unpaid-total-badge {
  position: absolute;
  right: 15%;
  bottom: 10%;
  background: #f59e0b;
  color: white;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  z-index: 4;
  animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6);
  }
}

/* --- ANIMATION: CHART INTERROGATION --- */
.chart-interrogation-visual {
  width: 100%;
  max-width: 220px;
  display: flex;
  justify-content: center;
}

.chart-interrogation-svg {
  overflow: visible;
}

.chart-interrogation-svg .bar-item {
  fill: rgba(255, 255, 255, 0.05);
  transition: fill 0.3s ease;
}

.chart-interrogation-svg .bar-question {
  font-size: 14px;
  font-weight: 800;
  fill: rgba(255, 255, 255, 0.3);
  text-anchor: middle;
  animation: text-blink 2s infinite ease-in-out;
}

.chart-interrogation-svg rect:nth-child(1) {
  fill: rgba(255, 255, 255, 0.02);
}

.chart-interrogation-svg text:nth-child(2) {
  animation-delay: 0s;
}

.chart-interrogation-svg rect:nth-child(3) {
  fill: rgba(255, 255, 255, 0.05);
}

.chart-interrogation-svg text:nth-child(4) {
  animation-delay: 0.4s;
}

.chart-interrogation-svg rect:nth-child(5) {
  fill: rgba(255, 255, 255, 0.08);
}

.chart-interrogation-svg text:nth-child(6) {
  animation-delay: 0.8s;
}

.chart-interrogation-svg rect:nth-child(7) {
  fill: rgba(255, 255, 255, 0.12);
}

.chart-interrogation-svg text:nth-child(8) {
  animation-delay: 1.2s;
}

.chart-interrogation-svg rect:nth-child(9) {
  fill: rgba(255, 255, 255, 0.05);
}

.chart-interrogation-svg text:nth-child(10) {
  animation-delay: 1.6s;
}

@keyframes text-blink {

  0%,
  100% {
    opacity: 0.3;
    fill: rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }

  50% {
    opacity: 1;
    fill: #f59e0b;
    transform: scale(1.2);
  }
}

.erp-pain-header-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  width: 100%;
}

.home-pain-card .pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.home-pain-card:hover .pain-icon {
  transform: scale(1.08);
}

.home-pain-card .pain-icon.icon-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.home-pain-card .pain-icon.icon-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}


.erp-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}

.erp-pain-span-2 {
  grid-column: span 2;
}


/* ─── [5] SOLUCIÓN NETWORK DIAGRAM ─── */
#solucion {
  background: radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.05), transparent 50%), radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.04), transparent 50%), #f8fafc;
  position: relative;
}

.solucion-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.diagram-radial-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.home-diagram-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 380px;
  margin: 7rem auto 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.home-diagram-network {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 2;
}

.home-node.center-node {
  width: auto;
  height: auto;
  padding: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 15px));
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.center-node-logo {
  position: static;
  transform: none;
  display: block;
  width: 190px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  /* Logo en BLANCO (brightness/invert) + halo oscuro suave para que no se
     difumine con el fondo claro (#f8fafc) del apartado. */
  filter: brightness(0) invert(1)
          drop-shadow(0 1px 2px rgba(20, 45, 110, 0.30))
          drop-shadow(0 10px 22px rgba(30, 70, 160, 0.20))
          drop-shadow(0 0 20px rgba(56, 120, 240, 0.16));
}

.center-node-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.center-node-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.center-node-ring.ring-1 {
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1.5px dashed rgba(0, 102, 255, 0.25);
  animation: spin-clockwise 25s linear infinite;
}

.center-node-ring.ring-2 {
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  border: 1.5px dotted rgba(6, 182, 212, 0.25);
  animation: spin-counter 35s linear infinite;
}

/* Solo el logo: sin capsula, sin glow ni anillos (igual que en movil) */
.center-node-glow,
.center-node-ring {
  display: none;
}

@keyframes spin-clockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-counter {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.home-node.peripheral-node {
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.home-node.peripheral-node .node-icon-bg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.home-node.peripheral-node:hover {
  transform: translate(-50%, -50%) scale(1.08) translateY(-4px);
  background: #ffffff;
  border-color: var(--node-glow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 0 20px var(--node-glow-shadow);
}

.home-node.peripheral-node:hover .node-icon-bg {
  background: var(--node-glow-light);
  transform: rotate(5deg);
}

.home-node.erp-node {
  top: -12%;
  left: 50%;
  --node-glow: var(--clr-erp);
  --node-glow-shadow: rgba(255, 51, 85, 0.25);
  --node-glow-light: rgba(255, 51, 85, 0.1);
}

.home-node.ecommerce-node {
  top: 38.1%;
  left: 90%;
  --node-glow: var(--clr-ecommerce);
  --node-glow-shadow: rgba(52, 110, 211, 0.25);
  --node-glow-light: rgba(52, 110, 211, 0.1);
}

.home-node.tpv-node {
  top: 89.5%;
  left: 75%;
  --node-glow: var(--clr-tpv);
  --node-glow-shadow: rgba(16, 185, 129, 0.25);
  --node-glow-light: rgba(16, 185, 129, 0.1);
}

.home-node.crm-node {
  top: 89.5%;
  left: 25%;
  --node-glow: var(--clr-crm);
  --node-glow-shadow: rgba(168, 85, 247, 0.25);
  --node-glow-light: rgba(168, 85, 247, 0.1);
}

.home-node.cms-node {
  top: 38.1%;
  left: 10%;
  --node-glow: var(--clr-cms);
  --node-glow-shadow: rgba(6, 182, 212, 0.25);
  --node-glow-light: rgba(6, 182, 212, 0.1);
}

.home-node svg {
  color: var(--node-glow);
  transition: all 0.3s ease;
}

.home-node span {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
  color: #334155;
}

/* Network Connection Lines SVG */
.home-diagram-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  /* Las lineas y los dots se desvanecen al acercarse al logo central */
  -webkit-mask-image: radial-gradient(ellipse 150px 60px at 50% calc(50% - 15px), transparent 60%, #000 100%);
          mask-image: radial-gradient(ellipse 150px 60px at 50% calc(50% - 15px), transparent 60%, #000 100%);
}

.home-diagram-lines path {
  stroke-dasharray: 4px 6px;
}

/* OUTWARDS flowing lines (Center -> Node) */
#path-erp,
#path-crm {
  animation: dash-flow-out 30s linear infinite;
}

/* INWARDS flowing lines (Node -> Center) */
#path-ecom,
#path-tpv,
#path-cms {
  animation: dash-flow-in 30s linear infinite;
}

@keyframes dash-flow-out {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes dash-flow-in {
  to {
    stroke-dashoffset: 1000;
  }
}

/* Benefits row S5 */
.home-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4.5rem auto 0;
  position: relative;
  z-index: 1;
}

.home-benefit-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.home-benefit-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: rgba(0, 102, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

.home-benefit-icon,
.home-benefit-card h3,
.home-benefit-card p {
  position: relative;
  z-index: 2;
}

.home-benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0, 102, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-benefit-card:hover .home-benefit-icon {
  background: rgba(0, 102, 255, 0.08);
  transform: scale(1.1) rotate(2deg);
}

.home-benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.home-benefit-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Background Animations */
.hb-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.home-benefit-card:hover .hb-bg-animation {
  opacity: 1;
}

/* Centrado detrás del icono superior */
.hb-center-origin>* {
  position: absolute;
  top: calc(2.5rem + 30px);
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Anim 1: Pulso de Circuito (Automatización) */
.hb-anim-1 .hb-bg-animation {
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.03), transparent 60%);
}

.circuit-pulse-svg {
  width: 200px;
  height: 200px;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: visible;
}

.home-benefit-card:hover.hb-anim-1 .circuit-pulse-svg {
  opacity: 1;
}

.home-benefit-card:hover.hb-anim-1 .cp-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.home-benefit-card:hover.hb-anim-1 .cp-1 {
  animation: cp-draw 0.8s 0.1s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-2 {
  animation: cp-draw 0.8s 0.2s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-3 {
  animation: cp-draw 0.8s 0.3s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-4 {
  animation: cp-draw 0.8s 0.4s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-5 {
  animation: cp-draw 0.8s 0.5s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-6 {
  animation: cp-draw 0.8s 0.6s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-7 {
  animation: cp-draw 0.8s 0.7s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-8 {
  animation: cp-draw 0.8s 0.8s ease-out forwards;
}

.cp-dot {
  opacity: 0;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-1 {
  animation: cp-dot-in 0.4s 0.6s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-2 {
  animation: cp-dot-in 0.4s 0.7s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-3 {
  animation: cp-dot-in 0.4s 0.8s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-4 {
  animation: cp-dot-in 0.4s 0.9s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-5 {
  animation: cp-dot-in 0.4s 1.0s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-6 {
  animation: cp-dot-in 0.4s 1.1s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-7 {
  animation: cp-dot-in 0.4s 1.2s ease-out forwards;
}

.home-benefit-card:hover.hb-anim-1 .cp-dot-8 {
  animation: cp-dot-in 0.4s 1.3s ease-out forwards;
}

@keyframes cp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cp-dot-in {
  0% {
    opacity: 0;
    r: 0;
  }

  60% {
    opacity: 1;
    r: 3.5;
  }

  100% {
    opacity: 1;
    r: 2.5;
  }
}



/* Anim 2: El Giroscopio (Todo conectado) */
.hb-anim-2 .hb-bg-animation {
  background: radial-gradient(circle at top, rgba(52, 110, 211, 0.02), transparent 70%);
}

.swiss-gyro-container {
  width: 150px;
  height: 150px;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease;
  transform-style: preserve-3d;
  perspective: 400px;
}

.gyro-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 0.5px dashed rgba(52, 110, 211, 0.45);
  transform-style: preserve-3d;
}

.home-benefit-card:hover.hb-anim-2 .swiss-gyro-container {
  opacity: 1;
}

.home-benefit-card:hover.hb-anim-2 .gr-1 {
  animation: gyro-x 8s linear infinite;
}

.home-benefit-card:hover.hb-anim-2 .gr-2 {
  animation: gyro-y 12s linear infinite;
}

.home-benefit-card:hover.hb-anim-2 .gr-3 {
  animation: gyro-z 10s linear infinite;
}

@keyframes gyro-x {
  0% {
    transform: rotateX(0deg) rotateY(45deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(45deg);
  }
}

@keyframes gyro-y {
  0% {
    transform: rotateY(0deg) rotateZ(30deg);
  }

  100% {
    transform: rotateY(360deg) rotateZ(30deg);
  }
}

@keyframes gyro-z {
  0% {
    transform: rotateZ(0deg) rotateX(60deg);
  }

  100% {
    transform: rotateZ(360deg) rotateX(60deg);
  }
}

/* Anim 3: Estallido Estelar (100% en la nube) */
.hb-anim-3 .hb-bg-animation {
  background: radial-gradient(circle at top, rgba(0, 102, 255, 0.02), transparent 70%);
}

.starburst-container {
  width: 200px;
  height: 200px;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.home-benefit-card:hover.hb-anim-3 .starburst-container {
  opacity: 1;
}

.star-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--r));
}

.star-ray::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 20px;
  height: 1px;
  background: rgba(0, 102, 255, 0.5);
  box-shadow: 0 0 5px rgba(0, 102, 255, 0.8);
  opacity: 0;
}

.home-benefit-card:hover.hb-anim-3 .star-ray::before {
  animation: star-shoot 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.home-benefit-card:hover.hb-anim-3 .star-ray:nth-child(even)::before {
  animation-delay: 1s;
  animation-duration: 2.5s;
}

.home-benefit-card:hover.hb-anim-3 .star-ray:nth-child(3n)::before {
  animation-delay: 0.5s;
  animation-duration: 1.8s;
}

@keyframes star-shoot {
  0% {
    left: 10px;
    width: 0;
    opacity: 1;
  }

  50% {
    width: 30px;
    opacity: 1;
  }

  100% {
    left: 100%;
    width: 0;
    opacity: 0;
  }
}

  /* ── [S5] Móvil: activar por scroll, no por hover ────────────────────────
     En táctil el hover no tiene sentido, así que las animaciones de fondo de
     las benefit cards se disparan cuando la card queda centrada en la pantalla.
     La clase .hb-inview la aplica el IntersectionObserver de index.html.
     Espejo de las reglas :hover, restringido a móvil para no tocar el desktop. */
  @media (max-width: 768px) {
    .home-benefit-card.hb-inview .hb-bg-animation {
      opacity: 1;
    }

    /* Anim 1: Pulso de Circuito */
    .home-benefit-card.hb-inview.hb-anim-1 .circuit-pulse-svg {
      opacity: 1;
    }

    .home-benefit-card.hb-inview.hb-anim-1 .cp-path {
      stroke-dasharray: 200;
      stroke-dashoffset: 200;
    }

    .home-benefit-card.hb-inview.hb-anim-1 .cp-1 { animation: cp-draw 0.8s 0.1s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-2 { animation: cp-draw 0.8s 0.2s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-3 { animation: cp-draw 0.8s 0.3s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-4 { animation: cp-draw 0.8s 0.4s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-5 { animation: cp-draw 0.8s 0.5s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-6 { animation: cp-draw 0.8s 0.6s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-7 { animation: cp-draw 0.8s 0.7s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-8 { animation: cp-draw 0.8s 0.8s ease-out forwards; }

    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-1 { animation: cp-dot-in 0.4s 0.6s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-2 { animation: cp-dot-in 0.4s 0.7s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-3 { animation: cp-dot-in 0.4s 0.8s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-4 { animation: cp-dot-in 0.4s 0.9s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-5 { animation: cp-dot-in 0.4s 1.0s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-6 { animation: cp-dot-in 0.4s 1.1s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-7 { animation: cp-dot-in 0.4s 1.2s ease-out forwards; }
    .home-benefit-card.hb-inview.hb-anim-1 .cp-dot-8 { animation: cp-dot-in 0.4s 1.3s ease-out forwards; }

    /* Anim 2: El Giroscopio */
    .home-benefit-card.hb-inview.hb-anim-2 .swiss-gyro-container {
      opacity: 1;
    }

    .home-benefit-card.hb-inview.hb-anim-2 .gr-1 { animation: gyro-x 8s linear infinite; }
    .home-benefit-card.hb-inview.hb-anim-2 .gr-2 { animation: gyro-y 12s linear infinite; }
    .home-benefit-card.hb-inview.hb-anim-2 .gr-3 { animation: gyro-z 10s linear infinite; }

    /* Móvil: giroscopio claramente más marcado. A 0.5px la opacidad casi no se
       aprecia (subpíxel + antialiasing), así que le damos cuerpo a la línea (1px)
       y subimos el alpha para que se note al scrollear (.hb-inview). */
    .home-benefit-card.hb-anim-2 .gyro-ring {
      border-width: 1px;
      border-color: rgba(52, 110, 211, 0.6);
    }

    /* Anim 3: Estallido Estelar */
    .home-benefit-card.hb-inview.hb-anim-3 .starburst-container {
      opacity: 1;
    }

    .home-benefit-card.hb-inview.hb-anim-3 .star-ray::before {
      animation: star-shoot 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    }

    .home-benefit-card.hb-inview.hb-anim-3 .star-ray:nth-child(even)::before {
      animation-delay: 1s;
      animation-duration: 2.5s;
    }

    .home-benefit-card.hb-inview.hb-anim-3 .star-ray:nth-child(3n)::before {
      animation-delay: 0.5s;
      animation-duration: 1.8s;
    }
  }

@media (max-width: 768px) {
  .home-diagram-container {
    /* Fix responsive: el contenedor conserva la relación del viewBox (800/380) para que el SVG
       .home-diagram-lines (escala 'meet') deje de letterboxearse y las líneas lleguen a los nodos */
    height: auto;
    aspect-ratio: 800 / 380;
    max-width: 560px;
    margin: 4.5rem auto;
  }

  .home-node.peripheral-node {
    width: 72px;
    height: 72px;
  }

  /* Movil: el nombre del modulo se muestra fuera de la capsula (absoluto, para no
     descentrar el icono). Debajo en todos menos ERP, que va arriba por falta de espacio. */
  .home-node.peripheral-node span {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3px;
    color: #000;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
  }

  .home-node.erp-node span {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 3px;
  }

  .home-node.peripheral-node .node-icon-bg {
    width: 44px;
    height: 44px;
  }

  /* Solo el logo: sin cápsula, sin fondo ni anillos */
  .home-node.center-node {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    /* En movil el logo se queda centrado en su sitio (sin la subida de 40px de PC) */
    transform: translate(-50%, -50%);
  }

  .center-node-glow,
  .center-node-ring {
    display: none;
  }

  .center-node-logo {
    position: static;
    transform: none;
    display: block;
    width: 132px;
  }

  /* Las líneas y los dots se difuminan (se desvanecen) al acercarse al logo */
  .home-diagram-lines {
    -webkit-mask-image: radial-gradient(ellipse 88px 30px at 50% 53%, transparent 44%, #000 100%);
            mask-image: radial-gradient(ellipse 88px 30px at 50% 53%, transparent 44%, #000 100%);
  }

  .home-benefits-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .home-benefit-card {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .home-diagram-container {
    max-width: 440px;
  }

  .home-node.center-node {
    width: auto;
    height: auto;
    padding: 0;
  }

  .center-node-logo {
    width: 116px;
  }

  .home-diagram-lines {
    -webkit-mask-image: radial-gradient(ellipse 78px 26px at 50% 53%, transparent 44%, #000 100%);
            mask-image: radial-gradient(ellipse 78px 26px at 50% 53%, transparent 44%, #000 100%);
  }

  .home-node.peripheral-node {
    width: 64px;
    height: 64px;
  }

  .home-node.peripheral-node .node-icon-bg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .home-diagram-container {
    max-width: 360px;
  }

  .home-node.center-node {
    width: auto;
    height: auto;
    padding: 0;
  }

  .center-node-logo {
    width: 100px;
  }

  .home-diagram-lines {
    -webkit-mask-image: radial-gradient(ellipse 67px 23px at 50% 53%, transparent 44%, #000 100%);
            mask-image: radial-gradient(ellipse 67px 23px at 50% 53%, transparent 44%, #000 100%);
  }

  .home-node.peripheral-node {
    width: 56px;
    height: 56px;
  }

  .home-node.peripheral-node .node-icon-bg {
    width: 34px;
    height: 34px;
  }

  .home-node svg {
    width: 18px;
    height: 18px;
  }
}

/* ─── [6] MODULES SHOWCASE GRID ─── */
.home-modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 1320px;
  margin: 3rem auto 0;
}

/* Revelado escalonado de las module cards cuando el grid entra en viewport (JS: initModulesReveal) */
.home-module-card.module-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-module-card.module-reveal.module-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-module-card.module-reveal {
    transition: none;
  }
}

.home-module-card {
  grid-column: span 2;
  background: rgba(20, 30, 50, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.home-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--module-accent), transparent 70%);
  opacity: 0.03;
  transition: var(--transition);
  pointer-events: none;
}

.home-module-card:hover {
  transform: translateY(-8px);
  border-color: var(--module-accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(var(--module-accent-rgb), 0.15);
}

.home-module-card:hover::before {
  opacity: 0.08;
}

/* Grid layout rules: 3 + 3 (automatic span 2) */

.home-module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--module-accent-rgb), 0.08);
  border: 1px solid rgba(var(--module-accent-rgb), 0.15);
  color: var(--module-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-module-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text-main) !important;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.home-module-desc {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.home-module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-module-features li {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.home-module-features li .feature-check-icon {
  color: var(--module-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.home-module-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--module-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.home-module-link .link-arrow.anim-shaft .shaft {
  opacity: 0;
  transform: translateX(-4px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.home-module-link .link-arrow.anim-shaft .head {
  transform: translateX(-4px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-module-link:hover .link-arrow.anim-shaft .shaft {
  opacity: 1;
  transform: translateX(0);
}

.home-module-link:hover .link-arrow.anim-shaft .head {
  transform: translateX(0);
}

/* ─── MODULE CARD HOVER ANIMATIONS ─── */

/* Shared container: bottom-right quadrant */
.mc-hover-anim {
  position: absolute;
  bottom: 6%;
  right: 5%;
  width: 38%;
  height: 38%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.mc-hover-anim svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-module-card:hover .mc-hover-anim {
  opacity: 0.65;
}

/* ── Shared keyframes ── */
@keyframes mc-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mc-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mc-scale-in {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes mc-drop {
  0% {
    transform: translateY(-22px);
    opacity: 0;
  }

  65% {
    transform: translateY(4px);
    opacity: 1;
  }

  80% {
    transform: translateY(-2px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes mc-pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes mc-width-fill {
  from {
    width: 0;
  }

  to {
    width: 80px;
  }
}

@keyframes mc-march {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes mc-cursor-click {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.88);
  }
}

@keyframes mc-pulse-node {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ══════════════════════════════════════
   1. ERP — Dashboard de Informes en Vivo (RED)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-erp .erp-bar {
  transform-origin: bottom;
}

.home-module-card:hover .mc-anim-erp .bar-1 {
  animation: mc-scale-y 0.5s 0.05s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.home-module-card:hover .mc-anim-erp .bar-2 {
  animation: mc-scale-y 0.5s 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.home-module-card:hover .mc-anim-erp .bar-3 {
  animation: mc-scale-y 0.5s 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.home-module-card:hover .mc-anim-erp .bar-4 {
  animation: mc-scale-y 0.5s 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.home-module-card:hover .mc-anim-erp .erp-spark {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: mc-draw 0.6s 0.85s ease-out forwards;
}

.home-module-card:hover .mc-anim-erp .erp-label-1,
.home-module-card:hover .mc-anim-erp .erp-label-2 {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: mc-draw 0.3s 1.25s ease forwards;
}

@keyframes mc-scale-y {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* ══════════════════════════════════════
   2. eCOMMERCE — Doble Storefront B2B/B2C (BLUE)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-ecom .ecom-b2b {
  animation: mc-fade-up 0.4s 0.05s backwards;
}

.home-module-card:hover .mc-anim-ecom .ecom-b2c {
  animation: ecom-slide-up-b2c 0.4s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.home-module-card:hover .mc-anim-ecom .ecom-sync-arr {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: mc-draw 0.6s 0.65s ease-out forwards;
}

.home-module-card:hover .mc-anim-ecom .ecom-sync-arr-head {
  animation: mc-scale-in 0.2s 1.25s backwards;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-ecom .ecom-badge-sync {
  transform-origin: 87.5px 81px;
  animation: mc-scale-in 0.3s 1.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes ecom-slide-up-b2c {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ══════════════════════════════════════
   3. TPV — Escáner de Código de Barras (GREEN)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-tpv .tpv-b {
  transform-origin: top;
}

.home-module-card:hover .mc-anim-tpv .b1 {
  animation: mc-scale-y 0.2s 0.05s backwards;
}

.home-module-card:hover .mc-anim-tpv .b2 {
  animation: mc-scale-y 0.2s 0.09s backwards;
}

.home-module-card:hover .mc-anim-tpv .b3 {
  animation: mc-scale-y 0.2s 0.13s backwards;
}

.home-module-card:hover .mc-anim-tpv .b4 {
  animation: mc-scale-y 0.2s 0.17s backwards;
}

.home-module-card:hover .mc-anim-tpv .b5 {
  animation: mc-scale-y 0.2s 0.21s backwards;
}

.home-module-card:hover .mc-anim-tpv .b6 {
  animation: mc-scale-y 0.2s 0.25s backwards;
}

.home-module-card:hover .mc-anim-tpv .b7 {
  animation: mc-scale-y 0.2s 0.29s backwards;
}

.home-module-card:hover .mc-anim-tpv .b8 {
  animation: mc-scale-y 0.2s 0.33s backwards;
}

.home-module-card:hover .mc-anim-tpv .b9 {
  animation: mc-scale-y 0.2s 0.37s backwards;
}

.home-module-card:hover .mc-anim-tpv .b10 {
  animation: mc-scale-y 0.2s 0.41s backwards;
}

.home-module-card:hover .mc-anim-tpv .b11 {
  animation: mc-scale-y 0.2s 0.45s backwards;
}

.home-module-card:hover .mc-anim-tpv .b12 {
  animation: mc-scale-y 0.2s 0.49s backwards;
}

.home-module-card:hover .mc-anim-tpv .tpv-nums {
  clip-path: inset(0 100% 0 0);
  animation: tpv-reveal 0.4s 0.55s ease-out forwards;
}

.home-module-card:hover .mc-anim-tpv .tpv-laser {
  animation: tpv-laser-scan 0.8s 0.75s ease-in-out forwards;
  opacity: 0;
}

.home-module-card:hover .mc-anim-tpv .tpv-pulse {
  transform-origin: 58px 42px;
  animation: mc-pulse-ring 0.6s 1.45s ease-out forwards;
  opacity: 0;
}


@keyframes tpv-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes tpv-laser-scan {
  0% {
    transform: translateY(15px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(70px);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   4. CRM — Campaña de Email Masiva (PURPLE)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-crm .crm-flap {
  transform-origin: 60px 55px;
  animation: crm-flap-open 0.4s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.mc-anim-crm .crm-flap {
  transform: rotateX(180deg);
  opacity: 0;
}

@keyframes crm-flap-open {
  from {
    transform: rotateX(180deg);
    opacity: 1;
  }

  to {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.home-module-card:hover .mc-anim-crm .av-1 {
  animation: mc-scale-in 0.2s 0.15s backwards, mc-pulse-node 0.4s 0.8s forwards;
  transform-origin: 20px 35px;
}

.home-module-card:hover .mc-anim-crm .av-2 {
  animation: mc-scale-in 0.2s 0.2s backwards, mc-pulse-node 0.4s 0.9s forwards;
  transform-origin: 40px 15px;
}

.home-module-card:hover .mc-anim-crm .av-3 {
  animation: mc-scale-in 0.2s 0.25s backwards, mc-pulse-node 0.4s 1s forwards;
  transform-origin: 60px 10px;
}

.home-module-card:hover .mc-anim-crm .av-4 {
  animation: mc-scale-in 0.2s 0.3s backwards, mc-pulse-node 0.4s 1.1s forwards;
  transform-origin: 80px 15px;
}

.home-module-card:hover .mc-anim-crm .av-5 {
  animation: mc-scale-in 0.2s 0.35s backwards, mc-pulse-node 0.4s 1.2s forwards;
  transform-origin: 100px 35px;
}

.home-module-card:hover .mc-anim-crm .menv {
  opacity: 0;
}

.home-module-card:hover .mc-anim-crm .me-1 {
  animation: crm-fly-1 0.5s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.home-module-card:hover .mc-anim-crm .me-2 {
  animation: crm-fly-2 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.home-module-card:hover .mc-anim-crm .me-3 {
  animation: crm-fly-3 0.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.home-module-card:hover .mc-anim-crm .me-4 {
  animation: crm-fly-4 0.5s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.home-module-card:hover .mc-anim-crm .me-5 {
  animation: crm-fly-5 0.5s 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes crm-fly-1 {
  0% {
    transform: translate(56px, 60px) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(16px, 32px) scale(1);
    opacity: 0;
  }
}

@keyframes crm-fly-2 {
  0% {
    transform: translate(56px, 60px) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(36px, 12px) scale(1);
    opacity: 0;
  }
}

@keyframes crm-fly-3 {
  0% {
    transform: translate(56px, 60px) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(56px, 7px) scale(1);
    opacity: 0;
  }
}

@keyframes crm-fly-4 {
  0% {
    transform: translate(56px, 60px) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(76px, 12px) scale(1);
    opacity: 0;
  }
}

@keyframes crm-fly-5 {
  0% {
    transform: translate(56px, 60px) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(96px, 32px) scale(1);
    opacity: 0;
  }
}

.home-module-card:hover .mc-anim-crm .pb-bg {
  animation: mc-width-fill-50 0.2s 0.9s ease-out backwards;
}

.home-module-card:hover .mc-anim-crm .pb-fill {
  animation: mc-width-fill-50 0.8s 1.1s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.home-module-card:hover .mc-anim-crm .pb-txt {
  animation: mc-fade-up 0.2s 1.9s backwards;
}

@keyframes mc-width-fill-50 {
  from {
    width: 0;
  }

  to {
    width: 50px;
  }
}

/* ══════════════════════════════════════
   5. CMS — Varita IA (Sparkle → Web) (CYAN)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-cms .cms-star {
  transform-origin: 25px 50px;
  animation: mc-scale-in 0.3s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.home-module-card:hover .mc-anim-cms .cms-pulse {
  transform-origin: 25px 50px;
  animation: mc-pulse-ring 0.6s 0.2s ease-out forwards;
  opacity: 0;
}

.home-module-card:hover .mc-anim-cms .cms-browser {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: mc-draw 0.5s 0.4s ease-out forwards;
}

.home-module-card:hover .mc-anim-cms .cms-topbar {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: mc-draw 0.3s 0.7s ease-out forwards;
}

.home-module-card:hover .mc-anim-cms .cd1 {
  animation: mc-scale-in 0.1s 0.9s backwards;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-cms .cd2 {
  animation: mc-scale-in 0.1s 1.0s backwards;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-cms .cd3 {
  animation: mc-scale-in 0.1s 1.1s backwards;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-cms .wb-header {
  animation: cms-wb-appear-fade 0.3s 1.1s backwards;
  transform-origin: 50px 34px;
}

.home-module-card:hover .mc-anim-cms .wb-hero {
  animation: cms-wb-appear-fade 0.3s 1.3s backwards;
  transform-origin: 50px 52px;
}

.home-module-card:hover .mc-anim-cms .wb-hero-icon {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: mc-draw 0.3s 1.5s forwards;
}

.home-module-card:hover .mc-anim-cms .wb-content-1 {
  animation: cms-wb-appear-fade 0.3s 1.6s backwards;
  transform-origin: 50px 69px;
}

.home-module-card:hover .mc-anim-cms .wb-content-2 {
  animation: cms-wb-appear-fade 0.3s 1.8s backwards;
  transform-origin: 50px 77px;
}

@keyframes cms-wb-appear-fade {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.home-module-card:hover .mc-anim-cms .cms-p {
  opacity: 0;
}

.home-module-card:hover .mc-anim-cms .p1 {
  animation: cms-float-p 3s 1.5s ease-in-out infinite;
  transform-origin: 40px 25px;
}

.home-module-card:hover .mc-anim-cms .p2 {
  animation: cms-float-p 3.5s 1.8s ease-in-out infinite;
  transform-origin: 28px 80px;
}

.home-module-card:hover .mc-anim-cms .p3 {
  animation: cms-float-p 2.5s 2.1s ease-in-out infinite;
  transform-origin: 88px 15px;
}

@keyframes cms-float-p {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-5px) scale(1.2);
    opacity: 0.8;
  }
}

/* ══════════════════════════════════════
   6. MÁS SOLUCIONES — Ecosistema Orbital (WHITE)
   ══════════════════════════════════════ */
.home-module-card:hover .mc-anim-extra .ex-core {
  animation: mc-scale-in 0.3s backwards;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-extra .ex-core-pulse {
  animation: mc-pulse-ring 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}

.home-module-card:hover .mc-anim-extra .ex-orb-1 {
  animation: mc-scale-in 0.4s 0.1s backwards, orbit-spin-1 15s linear infinite;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-extra .ex-orb-2 {
  animation: mc-scale-in 0.4s 0.2s backwards, orbit-spin-2 25s linear infinite;
  transform-origin: center;
}

.home-module-card:hover .mc-anim-extra .ex-node {
  transform-origin: 60px 50px;
}

.home-module-card:hover .mc-anim-extra .ex-n1 {
  animation: mc-scale-in 0.4s 0.4s backwards, orbit-spin-1 15s linear infinite;
}

.home-module-card:hover .mc-anim-extra .ex-n2 {
  animation: mc-scale-in 0.4s 0.5s backwards, orbit-spin-1 15s linear infinite;
}

.home-module-card:hover .mc-anim-extra .ex-n3 {
  animation: mc-scale-in 0.4s 0.6s backwards, orbit-spin-2 25s linear infinite;
}

@keyframes orbit-spin-1 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@media (max-width: 1024px) {
  .home-modules-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-module-card {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  .home-modules-grid {
    grid-template-columns: 1fr;
  }

  .home-module-card {
    grid-column: span 1 !important;
  }
}

/* Dots de paginación del slider S6: ocultos salvo en móvil (los crea initModulesSlider en home.js) */
.mc-slider-dots {
  display: none;
}

/* Flechas laterales del slider S6: ocultas salvo en móvil */
.mc-arrow {
  display: none;
}

/* ─── [6b] MÓDULOS S6 — SLIDER MÓVIL ───────────────────────────────
   En móvil el grid se convierte en un carrusel con scroll-snap.
   El :hover se desactiva (no aparece al tocar) y el efecto hover
   solo se reproduce en la card central del slider (.mc-active),
   que gestiona initModulesSlider() en home.js. */
@media (max-width: 767px) {
  .home-modules-grid {
    --slider-card-w: min(82vw, 360px);
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    margin-top: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-block: 2.25rem 3.25rem;
    padding-inline: max(1rem, calc((100% - var(--slider-card-w)) / 2));
    scrollbar-width: none;
  }

  .home-modules-grid::-webkit-scrollbar {
    display: none;
  }

  .home-module-card {
    grid-column: auto !important;
    flex: 0 0 var(--slider-card-w);
    scroll-snap-align: center;
  }

  /* Dots de paginación: uno por card. El dot activo toma el color
     temático de su card mediante la variable --dot-accent (la fija el JS). */
  .mc-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .mc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.35s ease, width 0.35s ease;
  }

  .mc-dot.is-active {
    width: 24px;
    background: var(--dot-accent, #ffffff);
  }

  /* Flechas laterales: señalizan que hay más cards; se ocultan en los extremos. */
  .mc-slider-wrap {
    position: relative;
  }

  .mc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - 8px);
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, background 0.3s ease;
  }

  .mc-arrow:active {
    background: rgba(30, 41, 59, 0.92);
  }

  .mc-arrow--prev {
    left: 6px;
  }

  .mc-arrow--next {
    right: 6px;
  }

  .mc-arrow--next svg {
    transform: scaleX(-1);
  }

  .mc-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .mc-arrow svg {
    width: 20px;
    height: 20px;
  }

  /* Desactivar el hover en móvil: no debe activarse al tocar la card */
  .home-module-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .home-module-card:hover::before {
    opacity: 0.03;
  }

  .home-module-card:hover .mc-hover-anim {
    opacity: 0;
  }

  /* Efecto hover reproducido SOLO en la card central del slider.
     Reglas espejo de las de :hover, disparadas por .mc-active. */
  .home-module-card.mc-active {
    transform: translateY(-8px);
    border-color: var(--module-accent);
    box-shadow: 0 14px 34px rgba(var(--module-accent-rgb), 0.35);
  }

  .home-module-card.mc-active::before {
    opacity: 0.08;
  }

  .home-module-card.mc-active .mc-hover-anim {
    opacity: 0.65;
  }

  .home-module-card.mc-active .mc-anim-erp .erp-bar {
    transform-origin: bottom;
  }

  .home-module-card.mc-active .mc-anim-erp .bar-1 {
    animation: mc-scale-y 0.5s 0.05s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-erp .bar-2 {
    animation: mc-scale-y 0.5s 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-erp .bar-3 {
    animation: mc-scale-y 0.5s 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-erp .bar-4 {
    animation: mc-scale-y 0.5s 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-erp .erp-spark {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: mc-draw 0.6s 0.85s ease-out forwards;
  }

  .home-module-card.mc-active .mc-anim-erp .erp-label-1,
  .home-module-card.mc-active .mc-anim-erp .erp-label-2 {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: mc-draw 0.3s 1.25s ease forwards;
  }

  .home-module-card.mc-active .mc-anim-ecom .ecom-b2b {
    animation: mc-fade-up 0.4s 0.05s backwards;
  }

  .home-module-card.mc-active .mc-anim-ecom .ecom-b2c {
    animation: ecom-slide-up-b2c 0.4s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-ecom .ecom-sync-arr {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: mc-draw 0.6s 0.65s ease-out forwards;
  }

  .home-module-card.mc-active .mc-anim-ecom .ecom-sync-arr-head {
    animation: mc-scale-in 0.2s 1.25s backwards;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-ecom .ecom-badge-sync {
    transform-origin: 87.5px 81px;
    animation: mc-scale-in 0.3s 1.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .tpv-b {
    transform-origin: top;
  }

  .home-module-card.mc-active .mc-anim-tpv .b1 {
    animation: mc-scale-y 0.2s 0.05s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b2 {
    animation: mc-scale-y 0.2s 0.09s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b3 {
    animation: mc-scale-y 0.2s 0.13s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b4 {
    animation: mc-scale-y 0.2s 0.17s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b5 {
    animation: mc-scale-y 0.2s 0.21s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b6 {
    animation: mc-scale-y 0.2s 0.25s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b7 {
    animation: mc-scale-y 0.2s 0.29s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b8 {
    animation: mc-scale-y 0.2s 0.33s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b9 {
    animation: mc-scale-y 0.2s 0.37s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b10 {
    animation: mc-scale-y 0.2s 0.41s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b11 {
    animation: mc-scale-y 0.2s 0.45s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .b12 {
    animation: mc-scale-y 0.2s 0.49s backwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .tpv-nums {
    clip-path: inset(0 100% 0 0);
    animation: tpv-reveal 0.4s 0.55s ease-out forwards;
  }

  .home-module-card.mc-active .mc-anim-tpv .tpv-laser {
    animation: tpv-laser-scan 0.8s 0.75s ease-in-out forwards;
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-tpv .tpv-pulse {
    transform-origin: 58px 42px;
    animation: mc-pulse-ring 0.6s 1.45s ease-out forwards;
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-crm .crm-flap {
    transform-origin: 60px 55px;
    animation: crm-flap-open 0.4s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-crm .av-1 {
    animation: mc-scale-in 0.2s 0.15s backwards, mc-pulse-node 0.4s 0.8s forwards;
    transform-origin: 20px 35px;
  }

  .home-module-card.mc-active .mc-anim-crm .av-2 {
    animation: mc-scale-in 0.2s 0.2s backwards, mc-pulse-node 0.4s 0.9s forwards;
    transform-origin: 40px 15px;
  }

  .home-module-card.mc-active .mc-anim-crm .av-3 {
    animation: mc-scale-in 0.2s 0.25s backwards, mc-pulse-node 0.4s 1s forwards;
    transform-origin: 60px 10px;
  }

  .home-module-card.mc-active .mc-anim-crm .av-4 {
    animation: mc-scale-in 0.2s 0.3s backwards, mc-pulse-node 0.4s 1.1s forwards;
    transform-origin: 80px 15px;
  }

  .home-module-card.mc-active .mc-anim-crm .av-5 {
    animation: mc-scale-in 0.2s 0.35s backwards, mc-pulse-node 0.4s 1.2s forwards;
    transform-origin: 100px 35px;
  }

  .home-module-card.mc-active .mc-anim-crm .menv {
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-crm .me-1 {
    animation: crm-fly-1 0.5s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .home-module-card.mc-active .mc-anim-crm .me-2 {
    animation: crm-fly-2 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .home-module-card.mc-active .mc-anim-crm .me-3 {
    animation: crm-fly-3 0.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .home-module-card.mc-active .mc-anim-crm .me-4 {
    animation: crm-fly-4 0.5s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .home-module-card.mc-active .mc-anim-crm .me-5 {
    animation: crm-fly-5 0.5s 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .home-module-card.mc-active .mc-anim-crm .pb-bg {
    animation: mc-width-fill-50 0.2s 0.9s ease-out backwards;
  }

  .home-module-card.mc-active .mc-anim-crm .pb-fill {
    animation: mc-width-fill-50 0.8s 1.1s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-crm .pb-txt {
    animation: mc-fade-up 0.2s 1.9s backwards;
  }

  .home-module-card.mc-active .mc-anim-cms .cms-star {
    transform-origin: 25px 50px;
    animation: mc-scale-in 0.3s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .home-module-card.mc-active .mc-anim-cms .cms-pulse {
    transform-origin: 25px 50px;
    animation: mc-pulse-ring 0.6s 0.2s ease-out forwards;
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-cms .cms-browser {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: mc-draw 0.5s 0.4s ease-out forwards;
  }

  .home-module-card.mc-active .mc-anim-cms .cms-topbar {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: mc-draw 0.3s 0.7s ease-out forwards;
  }

  .home-module-card.mc-active .mc-anim-cms .cd1 {
    animation: mc-scale-in 0.1s 0.9s backwards;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-cms .cd2 {
    animation: mc-scale-in 0.1s 1.0s backwards;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-cms .cd3 {
    animation: mc-scale-in 0.1s 1.1s backwards;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-cms .wb-header {
    animation: cms-wb-appear-fade 0.3s 1.1s backwards;
    transform-origin: 50px 34px;
  }

  .home-module-card.mc-active .mc-anim-cms .wb-hero {
    animation: cms-wb-appear-fade 0.3s 1.3s backwards;
    transform-origin: 50px 52px;
  }

  .home-module-card.mc-active .mc-anim-cms .wb-hero-icon {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: mc-draw 0.3s 1.5s forwards;
  }

  .home-module-card.mc-active .mc-anim-cms .wb-content-1 {
    animation: cms-wb-appear-fade 0.3s 1.6s backwards;
    transform-origin: 50px 69px;
  }

  .home-module-card.mc-active .mc-anim-cms .wb-content-2 {
    animation: cms-wb-appear-fade 0.3s 1.8s backwards;
    transform-origin: 50px 77px;
  }

  .home-module-card.mc-active .mc-anim-cms .cms-p {
    opacity: 0;
  }

  .home-module-card.mc-active .mc-anim-cms .p1 {
    animation: cms-float-p 3s 1.5s ease-in-out infinite;
    transform-origin: 40px 25px;
  }

  .home-module-card.mc-active .mc-anim-cms .p2 {
    animation: cms-float-p 3.5s 1.8s ease-in-out infinite;
    transform-origin: 28px 80px;
  }

  .home-module-card.mc-active .mc-anim-cms .p3 {
    animation: cms-float-p 2.5s 2.1s ease-in-out infinite;
    transform-origin: 88px 15px;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-core {
    animation: mc-scale-in 0.3s backwards;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-core-pulse {
    animation: mc-pulse-ring 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-orb-1 {
    animation: mc-scale-in 0.4s 0.1s backwards, orbit-spin-1 15s linear infinite;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-orb-2 {
    animation: mc-scale-in 0.4s 0.2s backwards, orbit-spin-2 25s linear infinite;
    transform-origin: center;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-node {
    transform-origin: 60px 50px;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-n1 {
    animation: mc-scale-in 0.4s 0.4s backwards, orbit-spin-1 15s linear infinite;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-n2 {
    animation: mc-scale-in 0.4s 0.5s backwards, orbit-spin-1 15s linear infinite;
  }

  .home-module-card.mc-active .mc-anim-extra .ex-n3 {
    animation: mc-scale-in 0.4s 0.6s backwards, orbit-spin-2 25s linear infinite;
  }
}


/* ─── [7] S7 - INTERACTIVE DASHBOARD (Propuesta C Refinada) ─── */
.s7-interactive-section {
  padding: 6rem 0;
  position: relative;
  overflow: visible !important;
}

.s7-split-layout {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* LEFT SIDE: Mockup Sticky (Nube3i Engine Dark) */
.s7-mockup-container {
  flex: 1;
  position: sticky;
  top: calc(50vh - 275px);
  height: 550px;
  align-self: flex-start;
  z-index: 5;
}

.s7-nube-mockup {
  width: 100%;
  height: 100%;
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.s7-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.s7-mockup-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.1rem;
}

.s7-mockup-brand img {
  height: 24px;
  filter: brightness(0) invert(1);
}

.s7-mockup-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.s7-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: s7pulse 2s infinite;
}

@keyframes s7pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.s7-view {
  position: absolute;
  top: 70px;
  /* Below header */
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px) scale(0.98);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
}

.s7-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.s7-view-tag {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  border: 1px solid currentColor;
}

.s7-view-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s7-ui-panel {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.s7-ui-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

.s7-ui-img-skeleton {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s7-ui-text-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.s7-ui-line {
  height: 12px;
  background: #334155;
  border-radius: 6px;
}

.s7-ui-line.short {
  opacity: 0.6;
}

/* eCommerce details */
.s7-ecom-checkout-btn {
  background: #3b82f6;
  color: #fff;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.s7-view.active .s7-ecom-checkout-btn {
  animation: btnPulse 2s infinite;
}

.s7-ecom-success {
  display: none;
  margin-top: 1.5rem;
  color: #10b981;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.s7-view.active.done .s7-ecom-checkout-btn {
  background: #10b981;
  box-shadow: none;
  transform: scale(0.95);
  opacity: 0.5;
  pointer-events: none;
}

.s7-view.active.done .s7-ecom-success {
  display: flex;
  animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ERP details */
.s7-erp-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.s7-erp-table {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.s7-erp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.s7-erp-row.header {
  color: #f8fafc;
  font-weight: bold;
  margin-bottom: 1rem;
}

.s7-erp-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stock details */
.s7-stock-bar-bg {
  width: 100%;
  height: 16px;
  background: #334155;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.s7-stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 8px;
  width: 93.3%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.s7-view:not(.active) .s7-stock-bar-fill {
  width: 100%;
}

.s7-stock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 1.1rem;
}

.s7-stock-status .old-stock {
  text-decoration: line-through;
  opacity: 0.5;
}

.s7-stock-status svg {
  color: #34d399;
}

.s7-stock-status .new-stock {
  color: #34d399;
  font-size: 1.3rem;
}

/* CRM details */
.s7-crm-profile {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

.s7-crm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
}

.s7-crm-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.s7-crm-tag {
  padding: 0.4rem 1rem;
  background: #334155;
  color: #cbd5e1;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.s7-crm-tag.highlight {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.s7-crm-timeline {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.s7-crm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c084fc;
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
  flex-shrink: 0;
}

.s7-crm-event {
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* RIGHT SIDE: Vertical Timeline Scroller */
.s7-timeline-scroller {
  flex: 1;
  position: relative;
  padding-bottom: 0;
  /* Let the track end exactly with the last card */
  padding-top: 10vh;
  /* Give space at the top to sync perfectly with center */
}

.s7-timeline-track {
  position: absolute;
  top: 10vh;
  bottom: 0;
  left: 30px;
  /* centered to marker */
  width: 2px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.s7-timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 12rem;
  /* Significantly increased margin for better pacing */
  opacity: 0.4;
  transform: translateX(-10px);
  transition: all 0.5s ease;
  cursor: pointer;
}

.s7-timeline-step.active {
  opacity: 1;
  transform: translateX(0);
}

.s7-step-marker {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.4s ease;
  z-index: 3;
}

.s7-timeline-step.active .s7-step-marker {
  background: var(--step-accent);
  border-color: var(--step-accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.s7-step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s ease;
  flex: 1;
}

.s7-timeline-step.active .s7-step-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.s7-step-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.s7-step-card p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .s7-split-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .s7-mockup-container {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    z-index: 10;
    margin-bottom: 2rem;
  }

  .s7-nube-mockup {
    position: relative;
    top: 0;
    height: 450px;
  }

  .s7-timeline-scroller {
    padding-bottom: 0;
    padding-top: 1rem;
    width: 100%;
  }

  .s7-timeline-track {
    left: 24px;
  }

  .s7-step-marker {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .s7-timeline-step {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .s7-step-card {
    padding: 1.5rem;
  }

  .s7-step-card h3 {
    font-size: 1.1rem;
  }
}

/* ─── [8] METRICS SECTION ─── */
.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-metric-item {
  text-align: center;
  padding: 1.5rem;
}

.home-metric-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  background: linear-gradient(135deg, var(--clr-primary), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.home-metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

@media (max-width: 768px) {
  .home-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ─── [9] PREMIUM GLASS TESTIMONIAL CARDS ─── */
.home-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3.5rem auto 0;
}

.home-testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
}

.home-testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
  color: #f59e0b;
}

.home-testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 2rem 0;
  position: relative;
  font-style: italic;
  font-weight: 400;
}

.home-testimonial-card blockquote::before {
  content: "“";
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  color: var(--clr-primary);
  opacity: 0.22;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
}

/* Avatar circular del testimonio: iniciales como placeholder, listo para <img> */
.testimonial-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  /* recorta la imagen al círculo cuando se añada */
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-author__info {
  min-width: 0;
}

.author-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.author-role {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .home-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-testimonial-card {
    padding: 2.25rem;
  }
}

/* ─── [10] ONBOARDING STEPS ─── */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 4.5rem auto 0;
  position: relative;
}

.home-steps-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc((100% - 5rem) / 6);
  right: calc((100% - 5rem) / 6);
  height: 2px;
  --steps-line: rgba(255, 255, 255, 0.05);
  background: linear-gradient(to right,
      transparent 0, transparent 36px,
      var(--steps-line) 36px, var(--steps-line) calc(50% - 36px),
      transparent calc(50% - 36px), transparent calc(50% + 36px),
      var(--steps-line) calc(50% + 36px), var(--steps-line) calc(100% - 36px),
      transparent calc(100% - 36px), transparent 100%);
  z-index: 1;
}

.home-step-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.home-step-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.2);
  transition: var(--transition);
}

.home-step-item:hover .home-step-badge {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(0, 102, 255, 0.4);
}

.home-step-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-main);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.home-step-item p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .home-steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-steps-grid::before {
    display: none;
  }
}

/* ─── [11] FAQ SECTION STYLES ─── */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

/* Scroll reveal initial state */
.faq-item.faq-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* Scroll reveal final state */
.faq-item.faq-reveal.faq-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Sutil glow de activación */
@keyframes faq-glow-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  }

  50% {
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.25);
  }

  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  }
}

.faq-item.faq-reveal.faq-visible:not([open]) {
  animation: faq-glow-pulse 0.8s ease-out 0.75s;
}

.faq-item[open] {
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.15);
  background: #ffffff;
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  background-color: #64748b;
  transition: background-color 0.3s ease;
}

.faq-chevron::before {
  width: 12px;
  height: 2px;
  top: 9px;
  left: 4px;
}

.faq-chevron::after {
  width: 2px;
  height: 12px;
  top: 4px;
  left: 9px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-item[open] .faq-chevron::before,
.faq-item[open] .faq-chevron::after {
  background-color: var(--clr-primary);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  animation: faq-fade-in 0.3s ease-out;
}

.faq-answer p {
  margin-bottom: 0;
  color: #475569 !important;
}

@keyframes faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom robust details-marker overrides */
.faq-accordion details summary::-webkit-details-marker,
.faq-accordion details summary::marker,
.faq-accordion summary::-webkit-details-marker,
.faq-accordion summary::marker {
  display: none !important;
  content: "";
}

.faq-question {
  list-style: none !important;
  list-style-type: none !important;
}

/* ─── [12] FINAL CTA ─── */
.home-cta-final {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(185deg, #0b1121 0%, #060b14 100%);
}

.home-cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.5px;
}

.home-cta-final p {
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ─── CTA final como card dentro de la sección FAQ (S11) ─── */
.faq-cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 920px;
  margin: 4rem auto 0;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(185deg, #0b1121 0%, #060b14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px -25px rgba(8, 13, 28, 0.55);
}

.faq-cta-card__inner {
  position: relative;
  z-index: 1;
}

.section-glass-white .faq-cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.5px;
}

.section-glass-white .faq-cta-card p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-cta-card {
    margin-top: 3rem;
    border-radius: 22px;
  }
}

/* ─── [13] CORE ERP NETWORK ANIMATION ─── */
.mockup-container.mockup-erp-network {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.erp-network-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 1.25rem !important;
  box-sizing: border-box;
}

.erp-net-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #10b981;
  margin-left: auto;
}

.erp-net-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: erpBadgePulse 1.5s infinite;
}

@keyframes erpBadgePulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}





.core-animation-container {
  width: 100%;
  /* El SVG del ERP es cuadrado (viewBox 400x400); con height:auto su alto = su
     ancho. Limitamos el ancho a ~400px para que el panel ERP tenga la misma
     altura que los otros 4 módulos (cuyos visuales son apaisados ~280-300 alto). */
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  will-change: transform;
}

.core-network-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Core Node animations */
.core-pulse-bg {
  transform-origin: 200px 200px;
  animation: corePulseBg 4s ease-in-out infinite;
  will-change: opacity;
}

@keyframes corePulseBg {

  0%,
  100% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.36;
  }
}

.core-circle {
  transform-origin: 200px 200px;
  /* Removed keyframe animation to avoid scaling a filtered SVG circle and dropping FPS */
}

.core-holo-ring {
  transform-origin: 200px 200px;
  animation: holoRotate 12s linear infinite;
  will-change: transform;
}

@keyframes holoRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Orbit line rotations */
.core-orbit-1 {
  transform-origin: 200px 200px;
  animation: rotateClockwise 25s linear infinite;
  will-change: transform;
}

.core-orbit-2 {
  transform-origin: 200px 200px;
  animation: rotateCounterClockwise 35s linear infinite;
  will-change: transform;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Satellites positioned statically matching their positions */
.sat-ecommerce {
  transform: translate(90px, 90px);
}

.sat-tpv {
  transform: translate(310px, 90px);
}

.sat-crm {
  transform: translate(310px, 310px);
}

.sat-cms {
  transform: translate(90px, 310px);
}

/* Data flows back and forth between core and satellites */
.data-flow-1 {
  animation: dataFlowLeft 2.2s linear infinite;
}

.data-flow-2 {
  animation: dataFlowRight 2.5s linear infinite;
}

.data-flow-3 {
  animation: dataFlowDownRight 2.8s linear infinite;
}

.data-flow-4 {
  animation: dataFlowDownLeft 3.1s linear infinite;
}

@keyframes dataFlowLeft {
  from {
    stroke-dashoffset: 36;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dataFlowRight {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 36;
  }
}

@keyframes dataFlowDownRight {
  from {
    stroke-dashoffset: 36;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dataFlowDownLeft {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 36;
  }
}

/* ─── [14] INTERACTIVE MOCKUP ANIMATIONS (eCommerce, TPV, CRM, CMS) ─── */

/* 1. ECOMMERCE ANIMATION */
.visual-anim-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 1.5rem 1rem;
}

/* LIGHT THEME ECOMMERCE INTERACTIVE MOCKUP */
.mockup-container.mockup-ecommerce {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.mockup-ecommerce .mockup-window-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.mockup-ecommerce .mockup-title {
  color: #475569 !important;
}

.mockup-ecommerce .mockup-dot {
  opacity: 0.8;
}

.mockup-ecommerce .mockup-window-body {
  background: #f8fafc !important;
  padding: 0 !important;
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.ecom-light-store {
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ecom-store-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  height: 100%;
}

.ecom-products-column {
  padding: 1rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ecom-cart-column {
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.ecom-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
  margin-top: 0;
}

.ecom-light-store .ecom-product-card {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 8px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ecom-light-store .ecom-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ecom-prod-img-box {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ecom-prod-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ecom-prod-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e293b;
}

.ecom-prod-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 4px;
}

.ecom-prod-price {
  font-size: 0.7rem;
  font-weight: 800;
  color: #3b82f6;
}

.ecom-prod-stock {
  font-size: 0.55rem;
  color: #64748b;
}

.ecom-stock-bold {
  color: #0f172a;
}

.ecom-add-to-cart-btn {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
}

.ecom-add-to-cart-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.ecom-cart-icon-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3b82f6;
  margin-left: auto;
  margin-right: 8px;
}

.ecom-cart-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 100px;
}

.ecom-cart-empty {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  font-style: italic;
}

.ecom-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ecom-cart-row-name {
  font-weight: 700;
  color: #334155;
}

.ecom-cart-row-qty {
  color: #64748b;
  margin-right: 4px;
}

.ecom-cart-row-price {
  font-weight: 800;
  color: #1e293b;
}

.ecom-cart-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 8px;
  margin-top: 8px;
}

.ecom-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ecom-total-price {
  font-weight: 800;
  color: #3b82f6;
}

.ecom-checkout-button {
  width: 100%;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ecom-checkout-button:hover:not(:disabled) {
  background: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.ecom-checkout-button:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.ecom-toast-notification {
  position: absolute;
  bottom: -60px;
  left: 10px;
  right: 10px;
  background: #10b981;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.ecom-toast-notification.active {
  bottom: 10px;
}

.ecom-toast-checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.ecom-toast-body {
  display: flex;
  flex-direction: column;
}

.ecom-toast-title {
  font-size: 0.65rem;
  font-weight: 800;
}

.ecom-toast-subtitle {
  font-size: 0.55rem;
  opacity: 0.9;
}

/* LIGHT THEME TPV INTERACTIVE MOCKUP */
.mockup-container.mockup-tpv {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.mockup-tpv .mockup-window-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.mockup-tpv .mockup-title {
  color: #475569 !important;
}

.mockup-tpv .mockup-dot {
  opacity: 0.8;
}

.mockup-tpv .mockup-window-body {
  background: #f8fafc !important;
  padding: 0 !important;
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.tpv-light-store {
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tpv-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #16a34a;
  margin-left: auto;
  margin-right: 8px;
}

.tpv-status-dot {
  width: 5px;
  height: 5px;
  background: #16a34a;
  border-radius: 50%;
  animation: tpvPulse 1.5s infinite;
}

@keyframes tpvPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.tpv-store-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  height: 100%;
}

.tpv-products-column {
  padding: 1rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpv-cart-column {
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.tpv-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
  margin-top: 0;
}

.tpv-light-store .tpv-product-card {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 8px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tpv-light-store .tpv-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tpv-prod-img-box {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tpv-prod-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tpv-prod-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e293b;
}

.tpv-prod-price {
  font-size: 0.65rem;
  color: #64748b;
}

.tpv-ticket-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 110px;
}

.tpv-ticket-empty {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  font-style: italic;
}

.tpv-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  animation: slideInTpv 0.2s ease-out;
}

@keyframes slideInTpv {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tpv-ticket-row-qty {
  color: #64748b;
  margin-right: 4px;
  font-weight: 600;
}

.tpv-ticket-row-name {
  font-weight: 700;
  color: #334155;
}

.tpv-ticket-row-price {
  font-weight: 800;
  color: #1e293b;
}

.tpv-cart-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 8px;
  margin-top: 8px;
}

.tpv-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tpv-total-price {
  font-weight: 800;
  color: #16a34a;
}

.tpv-checkout-button {
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.tpv-checkout-button:hover:not(:disabled) {
  background: #15803d;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.3);
}

.tpv-checkout-button:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.tpv-toast-notification {
  position: absolute;
  bottom: -60px;
  left: 10px;
  right: 10px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
  transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.tpv-toast-notification.active {
  bottom: 10px;
}

.tpv-toast-checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.tpv-toast-body {
  display: flex;
  flex-direction: column;
}

.tpv-toast-title {
  font-size: 0.65rem;
  font-weight: 800;
}

.tpv-toast-subtitle {
  font-size: 0.55rem;
  opacity: 0.9;
}


/* LIGHT THEME CRM INTERACTIVE MOCKUP */
.mockup-container.mockup-crm {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.mockup-crm .mockup-window-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.mockup-crm .mockup-title {
  color: #475569 !important;
}

.mockup-crm .mockup-dot {
  opacity: 0.8;
}

.mockup-crm .mockup-window-body {
  background: #f8fafc !important;
  padding: 0 !important;
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.crm-light-panel {
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.crm-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #6d28d9;
  margin-left: auto;
  margin-right: 8px;
}

.crm-badge-dot {
  width: 5px;
  height: 5px;
  background: #6d28d9;
  border-radius: 50%;
  animation: crmPulse 1.5s infinite;
}

@keyframes crmPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.crm-columns {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  height: 100%;
}

.crm-clients-column {
  padding: 1rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-details-column {
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-client-card {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 6px 8px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.crm-client-card:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.crm-client-card.active {
  border-color: #c7d2fe;
  background: #f5f3ff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.04);
}

.crm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crm-client-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.crm-client-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.crm-client-status {
  font-size: 0.55rem;
  font-weight: 600;
}

.crm-client-status.badge-vip {
  color: #6366f1;
}

.crm-client-status.badge-lead {
  color: #10b981;
}

.crm-client-status.badge-dist {
  color: #ea580c;
}

.crm-actions-box {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.crm-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.crm-btn-email {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.crm-btn-email:hover {
  background: #6d28d9;
  color: #ffffff;
  border-color: #6d28d9;
}

.crm-btn-phone {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.crm-btn-phone:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.crm-activity-log {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 8px;
}

.crm-activity-title {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.crm-activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 80px;
}

.crm-activity-row-empty {
  font-size: 0.6rem;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.crm-activity-row {
  display: flex;
  gap: 6px;
  font-size: 0.58rem;
  color: #334155;
  background: #ffffff;
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 2px solid #a855f7;
  animation: slideInCrm 0.2s ease-out;
}

@keyframes slideInCrm {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.crm-activity-time {
  color: #94a3b8;
  font-weight: 600;
}

.crm-activity-text {
  font-weight: 700;
}

.crm-toast-notification {
  position: absolute;
  bottom: -60px;
  left: 10px;
  right: 10px;
  background: #a855f7;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
  transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.crm-toast-notification.active {
  bottom: 10px;
}

.crm-toast-checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.crm-toast-body {
  display: flex;
  flex-direction: column;
}

.crm-toast-title {
  font-size: 0.65rem;
  font-weight: 800;
}

.crm-toast-subtitle {
  font-size: 0.55rem;
  opacity: 0.9;
}

/* LIGHT THEME CMS (WEB IA) INTERACTIVE MOCKUP */
/* LIGHT THEME CMS (WEB IA) INTERACTIVE MOCKUP */
.mockup-container.mockup-cms {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.mockup-cms .mockup-window-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.mockup-cms .mockup-title {
  color: #64748b !important;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: -0.1px;
}

.mockup-cms .mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.mockup-cms .mockup-window-body {
  background: #ffffff !important;
  padding: 0 !important;
  min-height: 330px;
  position: relative;
  overflow: hidden;
}

.cms-light-panel {
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cms-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ecfeff;
  border: 1px solid rgba(6, 182, 212, 0.12);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #0891b2;
  margin-left: auto;
}

.cms-badge-dot {
  width: 6px;
  height: 6px;
  background: #0891b2;
  border-radius: 50%;
  animation: cmsBadgePulse 1.8s infinite ease-in-out;
}

@keyframes cmsBadgePulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4);
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
  }
}

.cms-editor-layout {
  display: grid;
  grid-template-columns: 0.3fr 1.28fr;
  height: 100%;
  min-height: 330px;
  gap: 0 !important;
}

.cms-editor-layout.generating .cms-sidebar-item {
  pointer-events: none;
  opacity: 0.4;
}

.cms-sidebar {
  padding: 14px 12px;
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cms-sidebar-title {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 8px;
  margin-top: 0;
  padding-left: 12px;
  text-align: left;
}

/* Sidebar tab items styling */
.cms-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  text-align: left;
}

.cms-sidebar-item:hover {
  background: #f8fafc;
}

.cms-sidebar-item.active {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.03);
}

.cms-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.25s;
}

.cms-sidebar-item.active .cms-icon {
  color: #0891b2;
}

.cms-sidebar-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.cms-sidebar-label {
  font-size: 0.6rem !important;
  font-weight: 700;
  color: #334155;
}

.cms-sidebar-item.active .cms-sidebar-label {
  color: #0891b2;
}

/* Generation Status overlay (improved loader design) */
.cms-gen-status-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  box-sizing: border-box;
}

.cms-gen-card-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 22px;
  width: 100%;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}

.cms-gen-orb-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(79, 70, 229, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

.cms-gen-status-spinner-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cms-gen-spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2.5px solid rgba(8, 145, 178, 0.1);
  border-top-color: #0891b2;
  border-right-color: #4f46e5;
  border-radius: 50%;
  animation: cmsSpin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes cmsSpin {
  to {
    transform: rotate(360deg);
  }
}

.cms-gen-sparkle-center {
  position: relative;
  z-index: 2;
  color: #0891b2;
  animation: cmsSparkleBeat 1.5s infinite ease-in-out;
}

@keyframes cmsSparkleBeat {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.cms-gen-status-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  letter-spacing: -0.1px;
}

.cms-gen-status-text {
  font-size: 0.52rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  min-height: 14px;
}

.cms-gen-progress-bar-container {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.cms-gen-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #4f46e5);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cms-gen-steps-indicator {
  display: flex;
  gap: 6px;
}

.cms-gen-step {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.cms-gen-step.active {
  background: #0891b2;
  transform: scale(1.25);
  box-shadow: 0 0 6px rgba(8, 145, 178, 0.4);
}

/* Step-by-step elements inside canvas styles */
.cms-canvas-inner.gen-active .m-canvas-nav {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cms-canvas-inner.gen-active .m-canvas-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.cms-canvas-inner.gen-active .m-canvas-sparkle {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cms-canvas-inner.gen-active .m-canvas-sparkle.visible {
  opacity: 1;
  transform: scale(1);
}

.cms-canvas-inner.gen-active .m-canvas-h1 {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cms-canvas-inner.gen-active .m-canvas-h1.visible {
  opacity: 1;
  transform: translateY(0);
}

.cms-canvas-inner.gen-active .m-canvas-p {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cms-canvas-inner.gen-active .m-canvas-p.visible {
  opacity: 1;
  transform: translateY(0);
}

.cms-canvas-inner.gen-active .m-canvas-btn {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cms-canvas-inner.gen-active .m-canvas-btn.visible {
  opacity: 1;
  transform: scale(1);
}

.cms-canvas-inner.gen-active .m-canvas-tag {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cms-canvas-inner.gen-active .m-canvas-tag.visible {
  opacity: 1;
  transform: scale(1);
}

/* Canvas Area */
.cms-canvas {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
}

.cms-canvas-inner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  background: #ffffff;
  border: none;
  border-radius: 0 0 16px 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100%;
  animation: fadeInCanvas 0.3s ease-out;
  box-sizing: border-box;
  overflow: hidden;
}

@keyframes fadeInCanvas {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Empty State Canvas Styles */
.cms-empty-state {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f8fafc !important;
  background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1.5px, transparent 1.5px) !important;
  background-size: 16px 16px !important;
}

.cms-empty-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 1.5rem;
  gap: 8px;
}

.cms-empty-sparkle-container {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cms-empty-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.25) 0%, rgba(79, 70, 229, 0) 70%);
  border-radius: 50%;
  filter: blur(4px);
  animation: cmsPulseGlow 3s infinite ease-in-out;
}

@keyframes cmsPulseGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.cms-empty-sparkle {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.25));
}

.cms-empty-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
  letter-spacing: -0.1px;
}

.cms-empty-title {
  font-size: 0.52rem;
  font-weight: 500;
  color: #64748b;
  max-width: 250px;
  line-height: 1.4;
  margin-bottom: 10px;
  display: block;
}

.cms-canvas-gen-btn {
  background: linear-gradient(135deg, #0891b2 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.22), 0 2px 4px rgba(79, 70, 229, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.cms-canvas-gen-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.32), 0 3px 6px rgba(79, 70, 229, 0.18);
}

.cms-canvas-gen-btn:active {
  transform: translateY(1px);
}

.m-canvas-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.75rem 1rem 0.6rem;
  margin-bottom: 0;
  flex-shrink: 0;
  background: #ffffff;
}

.m-nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-nav-dot-active {
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.m-nav-status {
  color: #64748b;
  font-weight: 600;
  font-size: 0.48rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

.m-canvas-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  justify-content: center;
  padding: 12px 1.2rem;
}

.m-canvas-sparkle {
  display: inline-flex;
  align-items: center;
  background: #ecfeff;
  border: 1px solid #c5f6fa;
  border-radius: 99px;
  padding: 2px 8px;
  gap: 4px;
  margin-bottom: 6px;
}

.sparkle-svg-icon {
  width: 10px;
  height: 10px;
  fill: #0891b2;
}

.m-canvas-sparkle span {
  font-size: 0.5rem;
  font-weight: 700;
  color: #0891b2;
  letter-spacing: 0.5px;
}

.m-canvas-h1 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.m-canvas-p {
  font-size: 0.55rem;
  color: #475569;
  margin: 0 0 8px 0;
  max-width: 180px;
  line-height: 1.4;
}

.m-canvas-btn {
  background: #0891b2;
  color: #ffffff;
  border: none;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 8px;
}

.m-canvas-tag {
  font-size: 0.45rem;
  font-weight: 700;
  color: #10b981;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 1px 6px;
}

/* AI WRITER GRAPHIC LAYOUT */
.cms-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 14px;
  background: #ffffff;
}

.cms-editor-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #334155;
}

.cms-editor-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

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

.cms-word-count {
  font-size: 0.48rem;
  color: #64748b;
  font-weight: 500;
}

.cms-score-badge {
  font-size: 0.48rem;
  font-weight: 700;
  color: #0891b2;
  background: #ecfeff;
  border: 1px solid #c5f6fa;
  padding: 1px 6px;
  border-radius: 4px;
}

.cms-ai-writer-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  background: #f8fafc;
}

.cms-writer-prompt-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.5rem;
  display: flex;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.cms-prompt-label {
  font-weight: 800;
  color: #4f46e5;
  flex-shrink: 0;
}

.cms-prompt-text {
  color: #475569;
  font-style: italic;
  text-align: left;
}

.cms-writer-editor-canvas {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 12px;
  flex-grow: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cms-editor-tag-badge {
  font-size: 0.38rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.cms-editor-tag-badge.title-tag {
  background: #e0e7ff;
  color: #4338ca;
}

.cms-editor-tag-badge.paragraph-tag {
  background: #f1f5f9;
  color: #475569;
}

.cms-editor-tag-badge.btn-tag {
  background: #ecfeff;
  color: #0891b2;
}

.cms-editor-h1-preview {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.cms-editor-p-preview {
  font-size: 0.52rem;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.cms-editor-btn-preview {
  font-size: 0.52rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #4f46e5);
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.2);
}

/* SEO TAB SPLIT VIEW */
.cms-seo-layout-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  height: 100%;
  flex-grow: 1;
}

.cms-seo-checklist-panel {
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cms-seo-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.cms-seo-score-ring {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-seo-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cms-ring-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 3.5;
}

.cms-ring-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.cms-seo-score-number {
  position: absolute;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.cms-seo-score-label {
  font-size: 0.48rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cms-seo-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.cms-seo-item-check {
  font-size: 0.52rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.seo-check-icon {
  width: 10px;
  height: 10px;
  color: #10b981;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.cms-seo-serp-panel {
  background: #f8fafc;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.cms-google-searchbar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 99px;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 0.52rem;
  color: #334155;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.cms-google-icon {
  width: 8px;
  height: 8px;
  color: #64748b;
}

.cms-serp-card {
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
}

.cms-serp-url-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cms-serp-url {
  font-size: 0.45rem;
  color: #475569;
}

.cms-serp-arrow {
  font-size: 0.35rem;
  color: #94a3b8;
}

.cms-serp-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a0dab;
  margin: 0;
  cursor: pointer;
}

.cms-serp-title:hover {
  text-decoration: underline;
}

.cms-serp-desc {
  font-size: 0.48rem;
  color: #4d5156;
  line-height: 1.35;
  margin: 0;
}

.cms-serp-footer {
  display: flex;
  margin-top: 2px;
}

.cms-serp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.45rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffd8a8;
  border-radius: 99px;
  padding: 1px 6px;
}

/* ERP SYNC TAB */
.cms-sync-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 14px;
  height: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  flex-grow: 1;
}

.cms-sync-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 6px;
}

.cms-sync-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cms-sync-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.5);
  animation: cmsBadgePulse 1.5s infinite;
}

.cms-sync-h4 {
  font-size: 0.58rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.cms-sync-time-badge {
  font-size: 0.45rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.cms-sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.cms-sync-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
  position: relative;
  text-align: left;
}

.cms-sync-card-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cms-sync-card-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cms-sync-prod-name {
  font-size: 0.55rem;
  font-weight: 700;
  color: #1e293b;
}

.cms-sync-stock-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.stock-label {
  font-size: 0.45rem;
  color: #64748b;
  font-weight: 500;
}

.cms-sync-badge-green {
  color: #16a34a;
  font-weight: 800;
  font-size: 0.48rem;
}

.cms-sync-status-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.38rem;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 2px;
}

.sync-check {
  width: 6px;
  height: 6px;
  stroke-width: 3.5;
  fill: none;
}

.cms-sync-indicator-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.48rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 4px 12px;
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.05);
}

/* ─── NUEVOS PAIN CARDS Y ANIMACIONES ─── */

.erp-pain-span-3 {
  grid-column: span 3;
}

/* --- VISUAL: 5 PROGRAMAS --- */
.frag-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0 0.5rem;
}

.frag-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 68px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: frag-float 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.frag-svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.frag-app:hover .frag-svg {
  transform: scale(1.15);
}

.frag-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.frag-line {
  width: 24px;
  height: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frag-broken {
  border-top: 2.5px dashed rgba(239, 68, 68, 0.45);
}

.frag-x {
  position: absolute;
  top: -8px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #ef4444;
  text-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
  animation: frag-blink 2s infinite;
}

@keyframes frag-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes frag-blink {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* --- VISUAL: PEDIDO FANTASMA --- */
.ghost-order-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.ghost-postit {
  background: #fef08a;
  color: #713f12;
  padding: 16px 14px 12px;
  border-radius: 2px 2px 15px 2px;
  box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: rotate(-3deg);
  position: relative;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  animation: postit-vanish 5s infinite ease-in-out;
  min-width: 110px;
}

.ghost-postit-title {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1.5px solid rgba(113, 63, 18, 0.15);
  padding-bottom: 4px;
  margin-bottom: 2px;
  text-align: center;
}

.ghost-postit-text {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.ghost-postit-qty {
  font-size: 0.6rem;
  font-weight: 700;
  color: #b45309;
  font-family: 'Courier New', monospace;
}

.ghost-postit-ref {
  font-size: 0.55rem;
  opacity: 0.8;
  font-family: 'Courier New', monospace;
}

.ghost-badge {
  position: absolute;
  bottom: 12px;
  right: 10%;
  background: rgba(239, 68, 68, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  animation: ghost-badge-in 5s infinite ease-in-out;
}

@keyframes postit-vanish {

  0%,
  30% {
    opacity: 1;
    transform: rotate(-3deg) translateY(0);
  }

  60% {
    opacity: 0.3;
    transform: rotate(-3deg) translateY(12px);
    filter: blur(1px);
  }

  80%,
  100% {
    opacity: 0;
    transform: rotate(-3deg) translateY(24px);
    filter: blur(3px);
  }
}

@keyframes ghost-badge-in {

  0%,
  65% {
    opacity: 0;
    transform: scale(0.8);
  }

  75%,
  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
  }
}

/* --- VISUAL: AGUJERO NEGRO COBROS --- */
.blackhole-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  position: relative;
  height: 120px;
}

.bh-coin {
  position: absolute;
  background: radial-gradient(circle, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  pointer-events: none;
  animation: coin-fall 3s infinite linear;
}

.bh-coin-1 {
  left: 42%;
  animation-delay: 0s;
}

.bh-coin-2 {
  left: 52%;
  animation-delay: 1s;
}

.bh-coin-3 {
  left: 47%;
  animation-delay: 2s;
}

@keyframes coin-fall {
  0% {
    transform: translateY(-10px) scale(1) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateY(35px) scale(0.8) rotate(180deg);
    opacity: 0.9;
  }

  80% {
    transform: translateY(65px) scale(0.3) rotate(360deg);
    opacity: 0.2;
  }

  100% {
    transform: translateY(90px) scale(0) rotate(360deg);
    opacity: 0;
  }
}

.bh-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.bh-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bh-val {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}

.bh-green {
  color: #10b981;
}

.bh-red {
  color: #ef4444;
}

.bh-funnel {
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.2));
  margin: 2px 0;
}

.bh-pending-inline-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  animation: inline-badge-pulse 2s infinite ease-in-out;
  margin-left: 6px;
  white-space: nowrap;
}

@keyframes inline-badge-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.2);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
}

/* --- VISUAL: PRESUPUESTOS MUERTOS --- */
.dead-quotes-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 0.5rem;
  position: relative;
}

.dq-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: dq-fade 6s infinite ease-in-out;
}

.dq-1 {
  animation-delay: 0s;
}

.dq-2 {
  animation-delay: 1.5s;
}

.dq-3 {
  animation-delay: 3s;
}

.dq-4 {
  animation-delay: 4.5s;
}

.dq-doc-svg {
  opacity: 0.6;
  color: var(--clr-text-muted);
}

.dq-id {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-text-main);
  letter-spacing: 0.5px;
}

.dq-status {
  font-size: 0.5rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dq-expired {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.dq-waiting {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.dq-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: badge-pulse-dq 2s infinite ease-in-out;
  z-index: 2;
}

@keyframes badge-pulse-dq {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.6);
  }
}

@keyframes dq-fade {

  0%,
  20% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }

  80%,
  100% {
    opacity: 1;
  }
}

/* --- VISUAL: WEB INVISIBLE --- */
.invisible-web-browser {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
  max-width: 220px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.iw-browser-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.iw-browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-r {
  background: #ef4444;
}

.dot-y {
  background: #f59e0b;
}

.dot-g {
  background: #10b981;
}

.iw-browser-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  font-size: 0.5rem;
  color: var(--clr-text-muted);
  padding: 2px 8px;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invisible-web-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.iw-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.iw-competitor {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #94a3b8;
}

.iw-you {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  animation: iw-blink 2.5s infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.iw-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.iw-dot.green {
  background: #10b981;
}

.iw-dot.red {
  background: #ef4444;
}

.iw-name {
  flex: 1;
  font-family: monospace;
}

.iw-pos {
  font-weight: 800;
  font-size: 0.65rem;
}

@keyframes iw-blink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* --- VISUAL: CIERRE DE MES --- */
.month-close-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  position: relative;
}

.mc-docs {
  display: flex;
  gap: 6px;
}

.mc-doc {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--clr-text-muted);
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 38px;
}

.mc-d1 {
  animation: mc-pile 4s infinite 0s ease-in-out;
}

.mc-d2 {
  animation: mc-pile 4s infinite 0.5s ease-in-out;
}

.mc-d3 {
  animation: mc-pile 4s infinite 1s ease-in-out;
}

.mc-minute {
  transform-origin: 12px 12px;
  animation: mc-spin 1s linear infinite;
}

.mc-hour {
  transform-origin: 12px 12px;
  animation: mc-spin 12s linear infinite;
}

.mc-badge {
  background: rgba(239, 68, 68, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: badge-pulse-mc 2s infinite ease-in-out;
}

@keyframes badge-pulse-mc {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.6);
  }
}

@keyframes mc-pile {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  25% {
    transform: translateY(-6px) rotate(-3deg);
  }

  75% {
    transform: translateY(3px) rotate(2deg);
  }
}

@keyframes mc-spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* --- VISUAL: TÚ ERES EL SISTEMA --- */
.system-person-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sp-network-svg {
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.sp-net-line {
  stroke: rgba(239, 68, 68, 0.5) !important;
  stroke-width: 2px !important;
  stroke-dasharray: 5 4;
  stroke-dashoffset: 0;
  animation: stroke-pulse-line 3s infinite linear;
}

@keyframes stroke-pulse-line {
  to {
    stroke-dashoffset: -20;
  }
}

.sp-center-node circle {
  animation: central-glow 2s infinite ease-in-out;
}

@keyframes central-glow {

  0%,
  100% {
    r: 22;
    fill: rgba(239, 68, 68, 0.12);
    stroke-width: 2px;
  }

  50% {
    r: 24;
    fill: rgba(239, 68, 68, 0.22);
    stroke-width: 2.5px;
  }
}

.sp-node-group rect {
  transition: all 0.3s ease;
}

.sp-node-group:hover rect {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(239, 68, 68, 0.2);
}

/* --- VISUAL: EL LADRÓN DE TIEMPO --- */
.day-bar-visual {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 2rem;
  padding: 0 0.5rem;
}

.day-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.day-bar-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 36px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.day-bar-segment {
  border-radius: 4px;
  position: relative;
  opacity: 0;
  animation: bar-fill-in 0.5s forwards ease-out;
  animation-delay: var(--delay, 0s);
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-bar-segment.productive {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.day-bar-segment.wasted {
  background: repeating-linear-gradient(45deg,
      rgba(239, 68, 68, 0.3),
      rgba(239, 68, 68, 0.3) 10px,
      rgba(220, 38, 38, 0.4) 10px,
      rgba(220, 38, 38, 0.4) 20px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.wasted-icon-container {
  color: #fca5a5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.day-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.day-bar-labels span {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.day-bar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.db-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.db-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.db-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.db-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.day-bar-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.1);
  min-width: 140px;
}

.counter-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  letter-spacing: -2px;
}

.counter-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fca5a5;
  margin-top: 4px;
}

.counter-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: center;
  max-width: 100px;
}

@keyframes bar-fill-in {
  from {
    opacity: 0;
    transform: scaleY(0.5);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .erp-pain-span-3 {
    grid-column: span 1 !important;
  }

  .frag-visual {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .frag-line {
    width: 12px;
  }

  .dead-quotes-visual {
    flex-wrap: wrap;
    gap: 6px;
  }

  .dq-item {
    min-width: 65px;
    padding: 8px 6px;
  }

  .month-close-visual {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — HERO + PROBLEMA
   Enfoque: Híbrido (tokens para nuevas propiedades responsive)
   Breakpoints: 1024px → 768px → 480px
   ═══════════════════════════════════════════════════════════════ */

/* ── T1: Design Tokens Responsive (Híbrido) ── */
:root {
  /* ─ Spacing ─ */
  --r-hero-pb: 60px;
  --r-section-py: 100px;
  --r-module-selector-mt: 3.5rem;
  --r-module-tabs-gap: 12px;
  --r-module-tab-py: 1.25rem;
  --r-module-tab-px: 1rem;
  --r-module-panel-p: 3rem;
  --r-module-panel-gap: 3rem;
  --r-pain-card-p: 2.5rem;
  --r-pain-card-minh: 410px;
  --r-pain-visual-h: 180px;
  --r-pain-visual-lg-h: auto;
  --r-problem-grid-gap: 1.5rem;

  /* ─ Typography ─ */
  --r-hero-h1: clamp(2rem, 3.5vw, 2.8rem);
  --r-hero-subtitle: 1.2rem;
  --r-hero-badge-fs: 0.9rem;
  --r-section-h2: 2rem;
  --r-section-subtitle: 1.1rem;
  --r-pain-h3: 1.35rem;
  --r-pain-body: 0.92rem;
  --r-tab-span: 0.85rem;
  --r-panel-h3: 1.85rem;
  --r-panel-p: 1.05rem;

  /* ─ Layout ─ */
  --r-tabs-cols: repeat(5, 1fr);
  --r-panel-cols: 1fr 1fr;
  --r-problem-cols: repeat(3, 1fr);
  --r-badge-dir: row;
  --r-badge-gap: 1.5rem;

  /* ─ Performance ─ */
  --r-card-blur: blur(12px);
  --r-hover-y: -6px;
}


/* ══════════════════════════════════════════════════════════════
   Breakpoint 1: Tablet Landscape (≤ 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* T1: Token overrides */
  :root {
    --r-module-tabs-gap: 8px;
    --r-module-tab-py: 1rem;
    --r-module-tab-px: 0.75rem;
    --r-module-panel-p: 2.5rem;
    --r-panel-h3: 1.6rem;
    --r-tab-span: 0.78rem;
    --r-problem-cols: repeat(2, 1fr);
    --r-pain-card-p: 2rem;
    --r-pain-card-minh: 380px;
  }

  /* T3: Hero Tabs */
  .module-tabs {
    gap: var(--r-module-tabs-gap);
  }

  .module-tab {
    padding: var(--r-module-tab-py) var(--r-module-tab-px);
  }

  .module-tab span {
    font-size: var(--r-tab-span);
  }

  /* T4: Hero Panels */
  .module-panel {
    padding: var(--r-module-panel-p);
  }

  .module-panel__info h3 {
    font-size: var(--r-panel-h3);
  }

  /* T7: Problema Grid */
  .erp-problem-grid {
    grid-template-columns: var(--r-problem-cols);
  }

  /* T8: Problema Cards */
  .home-pain-card {
    padding: var(--r-pain-card-p);
    min-height: var(--r-pain-card-minh);
  }

  .section-subtitle-muted-lg {
    margin-bottom: 3.5rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   Breakpoint 2: Tablet Portrait / Mobile Large (≤ 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* T1: Token overrides */
  :root {
    --r-hero-pb: 40px;
    --r-hero-h1: clamp(1.6rem, 5vw, 2.2rem);
    --r-hero-subtitle: 1.05rem;
    --r-hero-badge-fs: 0.8rem;
    --r-badge-gap: 1rem;
    --r-module-selector-mt: 2.5rem;
    --r-tabs-cols: repeat(3, 1fr);
    --r-module-tab-py: 0.85rem;
    --r-module-tab-px: 0.5rem;
    --r-panel-cols: 1fr;
    --r-module-panel-p: 1.75rem;
    --r-module-panel-gap: 2rem;
    --r-panel-h3: 1.4rem;
    --r-panel-p: 0.95rem;
    --r-section-py: 70px;
    --r-section-h2: 1.65rem;
    --r-section-subtitle: 1rem;
    --r-problem-cols: 1fr;
    --r-problem-grid-gap: 1.25rem;
    --r-pain-card-p: 1.75rem;
    --r-pain-card-minh: auto;
    --r-pain-h3: 1.2rem;
    --r-pain-body: 0.88rem;
    --r-pain-visual-h: 160px;
    --r-pain-visual-lg-h: 200px;
    --r-hover-y: 0;
  }

  /* ─── T2: Hero Typography ─── */
  .section-hero-custom {
    padding-bottom: var(--r-hero-pb);
  }

  .hero.section-hero-custom h1 {
    font-size: var(--r-hero-h1);
  }

  .hero__subtitle {
    font-size: var(--r-hero-subtitle);
    max-width: 600px;
  }

  .hero__badge {
    gap: var(--r-badge-gap);
    font-size: var(--r-hero-badge-fs);
  }

  /* ─── T3: Hero Tabs ─── */
  .module-selector {
    margin-top: var(--r-module-selector-mt);
  }

  .module-tabs {
    grid-template-columns: var(--r-tabs-cols);
  }

  .module-tab {
    padding: var(--r-module-tab-py) var(--r-module-tab-px);
  }

  /* ─── T4: Hero Panels Layout ─── */
  .module-panel {
    grid-template-columns: var(--r-panel-cols);
    padding: var(--r-module-panel-p);
    gap: var(--r-module-panel-gap);
  }

  .module-panel__info h3 {
    font-size: var(--r-panel-h3);
  }

  .module-panel__info p {
    font-size: var(--r-panel-p);
  }

  /* Móvil: intercalar el visual entre el texto y el botón -> info -> visual -> cta.
     El .module-panel__cta vive DENTRO de .module-panel__info, así que desenvolvemos
     el info con display:contents para poder reordenar sus hijos por `order`.
     row-gap:0 evita que el gap de 2rem del grid separe título y párrafos;
     el espaciado del texto lo dan sus propios márgenes y el del visual, su margin. */
  .module-panel {
    row-gap: 0;
  }

  .module-panel__info {
    display: contents;
  }

  .module-panel__visual {
    order: 0;
    margin: 0.75rem 0 2rem;
  }

  .module-panel__cta {
    order: 1;
    /* El botón ocupa todo el ancho inferior de la card en móvil.
       Al desenvolver el info, el cta es grid-item: justify-self:stretch lo lleva a ancho completo. */
    justify-self: stretch;
  }

  .module-panel__cta .btn-primary {
    width: 100%;
  }

  .module-panels {
    min-height: auto;
  }

  .mockup-container,
  .mockup-container:hover {
    transform: none !important;
  }

  .core-animation-container {
    max-width: 320px;
    margin: 0 auto;
  }

  /* ─── T5: Hero Mockups — Stack Vertical (Propuesta A) ─── */

  /* eCommerce: 2-col grid → 1-col stack */
  .ecom-store-columns {
    grid-template-columns: 1fr;
  }

  .ecom-products-column {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.75rem;
  }

  .ecom-cart-column {
    padding-top: 0.75rem;
  }

  /* TPV: 2-col grid → 1-col stack */
  .tpv-store-columns {
    grid-template-columns: 1fr;
  }

  .tpv-products-column {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.75rem;
  }

  .tpv-cart-column {
    padding-top: 0.75rem;
  }

  /* CRM: 2-col grid → 1-col stack */
  .crm-columns {
    grid-template-columns: 1fr;
  }

  .crm-clients-column {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.75rem;
  }

  .crm-details-column {
    padding-top: 0.75rem;
  }

  /* CMS: sidebar+canvas grid → 1-col stack, sidebar horizontal */
  .cms-editor-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cms-sidebar {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px;
    gap: 4px;
  }

  .cms-sidebar-title {
    display: none;
  }

  .cms-sidebar-item {
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    min-width: max-content;
    flex-shrink: 0;
  }

  .cms-sidebar-text {
    align-items: center;
  }

  .cms-sidebar-label {
    font-size: 0.55rem;
    white-space: nowrap;
  }

  /* ─── T6: Hero — en móvil se cambia el canvas 3D (pesado) por el fondo 2D neural (ligero) ─── */
  .neural-canvas-bg-3d {
    display: none !important;
  }

  .hero-bg-2d {
    display: block !important;
  }

  /* ─── T7: Problema Grid ─── */
  .section-glass-custom {
    padding: var(--r-section-py) 0;
  }

  .section-title-dark {
    font-size: var(--r-section-h2);
  }

  .section-subtitle-muted-lg {
    font-size: var(--r-section-subtitle);
    margin-bottom: 2.5rem;
  }

  .erp-problem-grid {
    grid-template-columns: var(--r-problem-cols);
    gap: var(--r-problem-grid-gap);
    /* En 1 columna, las filas 1fr igualan TODAS las cards a la más alta
       (visible al revelar las ocultas) → cada card a su alto natural */
    grid-auto-rows: auto;
  }

  .erp-pain-span-2 {
    grid-column: span 1 !important;
  }

  /* ─── T8: Problema Cards ─── */
  .home-pain-card {
    padding: var(--r-pain-card-p);
    min-height: var(--r-pain-card-minh);
  }

  .home-pain-card:hover {
    transform: none !important;
  }

  .home-pain-card h3 {
    font-size: var(--r-pain-h3);
  }

  .home-pain-card .p-card-body {
    font-size: var(--r-pain-body);
  }

  /* ─── T9: Problema Visuales SVG/CSS ─── */
  .pain-visual {
    height: var(--r-pain-visual-h);
  }

  .pain-visual-lg {
    height: var(--r-pain-visual-lg-h);
  }

  .copy-paste-ui {
    padding: 0 0.75rem;
  }

  .sp-network-svg {
    height: 140px;
  }

  .invoice-paper-stack {
    transform: scale(0.9);
  }

  .chart-interrogation-svg {
    height: 80px;
  }

  .day-bar-visual {
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Ladrón de Tiempo: con .day-bar-visual en columna, el alto fijo de
     .pain-visual (180/150px) recorta el contador de 1000 h → alto automático
     solo en esta tarjeta (misma especificidad 0,2,0 que las reglas base,
     pero posterior en el archivo) */
  .home-pain-card .pain-visual-timethief {
    height: auto;
  }

  .day-bar-counter {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 0.5rem;
    border-left: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 1rem 0 0;
    min-width: unset;
  }

  .blackhole-visual {
    transform: scale(0.9);
  }

  .invisible-web-browser {
    font-size: 0.65rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   Breakpoint 3: Mobile Small (≤ 480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* T1: Token overrides */
  :root {
    --r-hero-h1: clamp(1.4rem, 6vw, 1.8rem);
    --r-hero-subtitle: 0.95rem;
    --r-badge-dir: column;
    --r-badge-gap: 0.5rem;
    --r-tabs-cols: 1fr 1fr;
    --r-module-panel-p: 1.25rem;
    --r-panel-h3: 1.25rem;
    --r-panel-p: 0.88rem;
    --r-tab-span: 0.72rem;
    --r-section-h2: 1.4rem;
    --r-section-subtitle: 0.92rem;
    --r-pain-card-p: 1.25rem;
    --r-pain-h3: 1.1rem;
    --r-pain-visual-h: 130px;
    --r-pain-visual-lg-h: 170px;
    --r-card-blur: blur(6px);
  }

  /* ─── T2: Hero Typography ─── */
  .hero.section-hero-custom h1 {
    font-size: var(--r-hero-h1);
  }

  .hero__subtitle {
    font-size: var(--r-hero-subtitle);
    margin-bottom: 2rem;
  }

  /* T10: Badge — stack vertical with left accent */
  .hero__badge {
    flex-direction: var(--r-badge-dir);
    gap: var(--r-badge-gap);
    align-items: center;
  }

  .hero__badge span {
    padding: 0.35rem 0.75rem;
    border-left: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 0;
  }

  /* ─── T3: Hero Tabs ─── */
  .module-tabs {
    grid-template-columns: var(--r-tabs-cols);
  }

  .module-tab svg {
    width: 20px;
    height: 20px;
  }

  .module-tab span {
    font-size: var(--r-tab-span);
  }

  /* ─── T4: Hero Panels ─── */
  .module-panel {
    padding: var(--r-module-panel-p);
  }

  .module-panel__info h3 {
    font-size: var(--r-panel-h3);
  }

  .module-panel__info p {
    font-size: var(--r-panel-p);
    line-height: 1.55;
  }

  /* ─── T5: Mockups — Further compression ─── */
  .ecom-products-column,
  .tpv-products-column,
  .crm-clients-column {
    padding: 0.75rem;
  }

  .ecom-cart-column,
  .tpv-cart-column,
  .crm-details-column {
    padding: 0.75rem;
  }

  .ecom-section-title,
  .tpv-section-title,
  .crm-section-title {
    font-size: 0.65rem;
  }

  .mockup-window-body {
    padding: 1rem;
    min-height: 200px;
  }

  /* ─── T6: SVG ERP Network — Hide satellite labels ─── */
  .sat-node-group text {
    display: none;
  }

  .core-text {
    font-size: 9px;
  }

  .core-animation-container {
    max-width: 260px;
  }

  /* ─── T7: Problema Section Typography ─── */
  .section-title-dark {
    font-size: var(--r-section-h2);
  }

  .section-subtitle-muted-lg {
    font-size: var(--r-section-subtitle);
    margin-bottom: 2rem;
  }

  /* ─── T8: Problema Cards ─── */
  .home-pain-card {
    padding: var(--r-pain-card-p);
    backdrop-filter: var(--r-card-blur);
    -webkit-backdrop-filter: var(--r-card-blur);
  }

  .home-pain-card h3 {
    font-size: var(--r-pain-h3);
  }

  /* ─── T9: Problema Visuales ─── */
  .pain-visual {
    height: var(--r-pain-visual-h);
    padding: 1rem;
  }

  .pain-visual-lg {
    height: var(--r-pain-visual-lg-h);
  }

  .day-bar-track {
    height: 28px;
  }

  .day-bar-labels span:not(:first-child):not(:last-child) {
    display: none;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .sp-network-svg {
    height: 120px;
  }

  .erp-pain-header-flex {
    gap: 8px;
  }

  .home-pain-card .pain-icon {
    width: 34px;
    height: 34px;
  }

  .blackhole-visual {
    transform: scale(0.85);
  }

  .bh-label {
    font-size: 0.5rem;
  }

  .bh-val {
    font-size: 0.75rem;
  }

  .bh-pending-inline-badge {
    font-size: 0.5rem;
  }

  /* ─── T10: Performance Polish ─── */
  .home-pain-card::before {
    display: none;
  }
}


/* ─── PRECIOS ─── */
.home-pricing__subtitle {
  max-width: 620px;
  margin: 1rem auto 0;
  text-align: center;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-pricing__toggle {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 2rem auto 2.5rem;
  padding: 5px;
  background: #eef2f9;
  border-radius: 999px;
}

.home-pricing__toggle-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.home-pricing__toggle-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.home-pricing__save {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  padding: 2px 7px;
  border-radius: 999px;
}

.home-pricing__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 102, 255, 0.08);
}

.home-pricing__main {
  padding: 3rem 2.75rem;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
}

.home-pricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #0f172a;
}

.home-pricing__currency {
  font-size: 1.8rem;
  font-weight: 700;
}

.home-pricing__amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-pricing__period {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.2;
  font-weight: 500;
}

.home-pricing__extra {
  margin: 1rem 0 0;
  color: #334155;
  font-size: 0.98rem;
}

.home-pricing__extra strong {
  color: #0f172a;
}

.home-pricing__note {
  margin: 0.5rem 0 1.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.home-pricing__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-pricing__cta {
  text-align: center;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-pricing__cta--primary {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.28);
}

.home-pricing__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 102, 255, 0.36);
}

.home-pricing__cta--ghost {
  background: #fff;
  color: #0066ff;
  border: 1px solid rgba(0, 102, 255, 0.25);
}

.home-pricing__cta--ghost:hover {
  background: #f5f9ff;
}

.home-pricing__reassure {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.home-pricing__features {
  padding: 3rem 2.75rem;
  background: #fafbfe;
}

.home-pricing__features-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.home-pricing__features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-pricing__features li {
  position: relative;
  padding-left: 1.9rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.4;
}

.home-pricing__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.1);
}

.home-pricing__features li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 8px;
  border: solid #0066ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 820px) {
  .home-pricing__card {
    grid-template-columns: 1fr;
  }

  .home-pricing__main {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  }
}


/* ─── GANCHO DE PROBLEMA (puente Hero → Solución) ─── */
.home-painhook {
  position: relative;
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fb 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-painhook__kicker {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #0f172a;
  margin: 0 0 2.75rem;
  letter-spacing: -0.5px;
}

.home-painhook__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.home-painhook__item {
  text-align: center;
  padding: 0 0.5rem;
}

.home-painhook__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.home-painhook__icon svg {
  width: 24px;
  height: 24px;
}

.home-painhook__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem;
}

.home-painhook__item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 auto;
  max-width: 240px;
}

.home-painhook__bridge-wrap {
  text-align: center;
}

.home-painhook__bridge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  box-shadow: 0 8px 22px rgba(0, 102, 255, 0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-painhook__bridge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.4);
}

.home-painhook__bridge svg {
  width: 18px;
  height: 18px;
  animation: painhook-bob 1.8s ease-in-out infinite;
}

@keyframes painhook-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-painhook__bridge svg {
    animation: none;
  }
}

@media (max-width: 720px) {
  .home-painhook__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ─── ONBOARDING — banda de marca (toma los colores del CTA INTERMEDIO) ─── */
.onboarding-steps {
  background: radial-gradient(120% 90% at 80% 0%, #14284d 0%, #0d1f45 45%, #0a1628 100%);
}

.onboarding-steps::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(22, 55, 130, 0.16), transparent) -10% -40% / 55% 120% no-repeat,
    radial-gradient(closest-side, rgba(3, 8, 22, 0.45), transparent) 110% 130% / 50% 120% no-repeat;
}

.onboarding-steps .container {
  position: relative;
  z-index: 1;
}

.onboarding-steps .badge-pill-primary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.40);
  color: #ffffff;
}

.onboarding-steps .section-title-light {
  color: #ffffff;
}

.onboarding-steps .gradient-text-blue {
  background: linear-gradient(90deg, #7fe7ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onboarding-steps .section-subtitle-muted-lg {
  color: rgba(255, 255, 255, 0.85);
}

.onboarding-steps .home-steps-grid::before {
  --steps-line: rgba(255, 255, 255, 0.18);
}

.onboarding-steps .home-step-badge {
  background: linear-gradient(135deg, #0a1628, #0d1f45);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(20, 70, 180, 0.30);
}

.onboarding-steps .home-step-item:hover .home-step-badge {
  box-shadow: 0 0 32px rgba(30, 90, 210, 0.55);
}

.onboarding-steps .home-step-item h3 {
  color: #ffffff;
}

.onboarding-steps .home-step-item p {
  color: rgba(255, 255, 255, 0.82);
}


/* ─── CTA INTERMEDIO (foto a sangre + scrim · texto a la DERECHA) ─── */
.home-cta-mid {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 90vh, 1100px);
  padding: 96px 0;
  overflow: hidden;
  /* Fallback de marca mientras no haya foto (o si no carga) */
  background: linear-gradient(120deg, #06112e 0%, #0a2a8c 45%, #0066ff 80%, #00b8d4 120%);
}



.home-cta-mid__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  text-align: right;
}

.home-cta-mid__logo {
  height: 44px;
  width: auto;
  display: block;
  margin: 0 0 1.5rem auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.home-cta-mid__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.home-cta-mid__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 1.75rem auto;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-cta-mid__text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2.25rem auto;
  max-width: 460px;
}

.home-cta-mid__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.home-cta-mid__btn {
  padding: 0.95rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease, border-color .25s ease, background-color .25s ease;
}

/* Prueba gratis (primario): flota alto con sombra profunda */
.home-cta-mid__btn--primary {
  background: #fff;
  /* letras del color de la pared azul del fondo -> efecto recortado/transparente */
  color: #0b111c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.home-cta-mid__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

/* Ver precios (ghost) -> pill con icono etiqueta: pista visual del destino + semi-cristal */
.home-cta-mid__btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.home-cta-mid__btn--ghost:hover {
  transform: translateY(-3px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
}

.home-cta-mid__btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.home-cta-mid__btn--ghost:hover .home-cta-mid__btn-icon {
  transform: rotate(-12deg) scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .home-cta-mid__btn {
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  }

  .home-cta-mid__btn--primary:hover {
    transform: none;
  }

  .home-cta-mid__btn--ghost:hover {
    transform: none;
  }

  .home-cta-mid__btn-icon {
    transition: none;
  }

  .home-cta-mid__btn--ghost:hover .home-cta-mid__btn-icon {
    transform: none;
  }
}

@media (max-width: 768px) {
  .home-cta-mid {
    min-height: 80vh;
    padding: 56px 0;
  }

  /* En movil el ancho no da para foto lateral: scrim uniforme, foto y texto centrados */
  .home-cta-mid__bg {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.55) 100%),
      url("{% static 'images/nube3i_web/home/cta_intermedio.webp' %}");
    background-size: cover, cover;
    background-position: center, center;
  }

  .home-cta-mid__inner {
    text-align: center;
  }

  .home-cta-mid__logo {
    margin: 0 auto 1.5rem;
  }

  .home-cta-mid__title {
    max-width: none;
    margin: 0 auto 1.75rem;
  }

  .home-cta-mid__text {
    margin: 0 auto 2.25rem;
  }

  .home-cta-mid__actions {
    justify-content: center;
  }

  .home-cta-mid__btn {
    width: 100%;
    text-align: center;
  }
}