/* ============================================
   NETA — Custom Styles
   ============================================ */


/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  /* Brand — Purple */
  --purple:        #7C3AED;
  --purple-dark:   #6D28D9;
  --purple-light:  #A78BFA;
  --purple-xs:     #EDE9FE;

  /* Brand — Green */
  --green:         #10B981;
  --green-dark:    #059669;
  --green-light:   #D1FAE5;

  /* Neutrals */
  --black:         #06060E;
  --white:         #FFFFFF;
  --gray-1:        #F5F5F8;
  --gray-2:        #E4E4EF;
  --gray-3:        #9898B8;
  --gray-4:        #3C3C5A;

  /* Surfaces */
  --surface-dark:        rgba(14, 14, 28, 0.6);
  --surface-dark-solid:  rgba(14, 14, 28, 0.7);
  --surface-dark-heavy:  rgba(14, 14, 28, 0.8);
  --surface-dark-opaque: rgba(14, 14, 28, 0.95);
  --surface-light:       rgba(255, 255, 255, 0.85);
  --border-subtle:       rgba(255, 255, 255, 0.08);
  --border-hover:        rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:      0.2s;
  --t-base:      0.3s;
  --t-slow:      0.5s;
  --t-reveal:    0.6s;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-glow-green:  0 0 40px rgba(16, 185, 129, 0.25);
}


/* ============================================
   2. BASE
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--purple);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--purple);
  color: var(--white);
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
}

h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem);
}

h5 {
  font-weight: 700;
  font-size: 1.125rem;
}

h6 {
  font-weight: 700;
  font-size: 1rem;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-3);
  line-height: 1.7;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================
   4. NAVIGATION
   ============================================ */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}

#navbar.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(6, 6, 14, 0.95);
  border-bottom-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-3);
  transition: color var(--t-fast) ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  border-radius: var(--radius-full);
  transition: width var(--t-base) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 6, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out);
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-fast) ease;
  margin: 6px auto;
}


/* ============================================
   5. HERO
   ============================================ */
.maria-container {
  position: relative;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--surface-dark);
}

.maria-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform var(--t-slow) var(--ease-out),
              filter var(--t-slow) var(--ease-out);
}

.maria-container:hover .maria-image {
  transform: scale(1.03);
}

/* María Card — glassmorphism overlay */
.maria-card {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  background: var(--surface-dark-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: var(--space-lg);
  transition: border-color var(--t-base) ease,
              box-shadow var(--t-base) ease;
}

/* María Card States */
.maria-card[data-state='idle'] {
  border-color: rgba(124, 58, 237, 0.15);
}

.maria-card[data-state='preview'] {
  border-color: var(--green);
  animation: border-pulse-green 2s ease-in-out infinite;
}

.maria-card[data-state='listening'] {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3),
              0 0 60px rgba(16, 185, 129, 0.1);
  animation: listening-glow 1.5s ease-in-out infinite;
}

.maria-card[data-state='processing'] {
  border-color: var(--purple);
  animation: processing-pulse 1.2s ease-in-out infinite;
}

@keyframes border-pulse-green {
  0%, 100% { border-color: rgba(16, 185, 129, 0.4); }
  50%      { border-color: rgba(16, 185, 129, 0.8); }
}

@keyframes listening-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2),
                0 0 60px rgba(16, 185, 129, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4),
                0 0 80px rgba(16, 185, 129, 0.15);
  }
}

@keyframes processing-pulse {
  0%, 100% {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
  }
  50% {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
  }
}


/* ============================================
   6. VOICE BUTTON
   ============================================ */
.voice-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  position: relative;
  transition: background var(--t-fast) ease,
              transform var(--t-fast) var(--ease-spring);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.voice-btn:hover {
  background: var(--green-dark);
  transform: scale(1.08);
}

.voice-btn:active {
  transform: scale(0.95);
}

.voice-btn.active {
  animation: voice-pulse 1.5s ease-in-out infinite;
}

.voice-btn.active::before,
.voice-btn.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--green);
  transform: translate(-50%, -50%);
  animation: voice-pulse 1.5s ease-in-out infinite;
}

.voice-btn.active::after {
  animation-delay: 0.4s;
}

@keyframes voice-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}


/* ============================================
   7. MARÍA FLOW
   ============================================ */
.maria-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  overflow-x: auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  min-width: 100px;
  text-align: center;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 24px);
  width: calc(100% - 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--purple) 50%, rgba(124, 58, 237, 0.2));
  z-index: 0;
}

.flow-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.flow-step-label {
  font-size: 0.8125rem;
  color: var(--gray-3);
  font-weight: 500;
  line-height: 1.3;
  max-width: 120px;
}


/* ============================================
   8. SECTION UTILITIES
   ============================================ */
.section-dark {
  background-color: var(--black);
  color: var(--white);
}

.section-light {
  background-color: var(--gray-1);
  color: var(--black);
}

section,
[id] {
  scroll-margin-top: 80px;
}


/* ============================================
   9. SECTION LABEL
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple-light);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-label.green {
  color: var(--green);
}


/* ============================================
   10. CARDS — Glass dark cards
   ============================================ */
.problem-card,
.unit-card,
.process-card,
.signal-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) ease;
}

.problem-card:hover,
.unit-card:hover,
.process-card:hover,
.signal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px var(--border-hover);
}

/* Specific card glow accents on hover */
.problem-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12),
              0 0 0 1px rgba(124, 58, 237, 0.15);
}

.unit-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1),
              0 0 0 1px rgba(124, 58, 237, 0.12);
}

.process-card:hover {
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1),
              0 0 0 1px rgba(16, 185, 129, 0.12);
}

.signal-card:hover {
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12),
              0 0 0 1px rgba(16, 185, 129, 0.15);
}

/* Card internal text */
.problem-card h4,
.unit-card h4,
.process-card h4,
.signal-card h4 {
  margin-bottom: var(--space-sm);
}

.problem-card p,
.unit-card p,
.process-card p,
.signal-card p {
  font-size: 0.9375rem;
  color: var(--gray-3);
  line-height: 1.65;
}


/* ============================================
   11. UNIT CARD ICONS
   ============================================ */
.unit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.unit-icon.solutions {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple);
}

.unit-icon.growth {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.unit-icon.academy {
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple-light);
}

.unit-icon.media {
  background: rgba(209, 250, 229, 0.15);
  color: var(--green-light);
}


/* ============================================
   12. NETA SALES FLOW
   ============================================ */
.sales-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
}

.sales-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  position: relative;
}

.sales-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Vertical connecting line on mobile */
.sales-step:not(:last-child) .sales-step-number::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: calc(var(--space-2xl) + 8px);
  background: linear-gradient(180deg, var(--purple), rgba(124, 58, 237, 0.1));
  transform: translateX(-50%);
}

.sales-step-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.sales-step-content p {
  font-size: 0.9375rem;
  color: var(--gray-3);
}


/* ============================================
   13. FRAMEWORK TIMELINE
   ============================================ */
.framework-timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

/* Vertical connecting line */
.framework-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--purple),
    var(--purple-light) 50%,
    rgba(167, 139, 250, 0.1)
  );
}

.framework-step {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.framework-step:last-child {
  padding-bottom: 0;
}

.framework-step-number {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 0px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--black),
              0 0 20px rgba(124, 58, 237, 0.2);
}

.framework-step-content {
  padding-top: var(--space-xs);
}

.framework-step-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.framework-step-content p {
  color: var(--gray-3);
  font-size: 0.9375rem;
}


/* ============================================
   14. FAQ
   ============================================ */
/* La composición del acordeón vive ahora en el bloque 24 (#faq).
   Las reglas antiguas se retiraron: pintaban .faq-question en blanco
   sobre fondo claro y usaban --purple-light en hover/abierto, con
   contraste insuficiente. */


/* ============================================
   15. BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--t-fast) ease,
              box-shadow var(--t-base) ease,
              transform var(--t-fast) var(--ease-spring);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8B5CF6, var(--purple));
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--t-fast) ease,
              border-color var(--t-base) ease,
              transform var(--t-fast) var(--ease-spring);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.35);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--purple-light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--t-fast) ease;
  text-decoration: none;
}

.btn-ghost:hover {
  text-decoration: underline;
  color: var(--white);
}


/* ============================================
   16. CTA FINAL SECTION
   Base histórica. La composición vigente vive en el bloque 23.
   ============================================ */


/* ============================================
   17. FOOTER
   ============================================ */
/* La composición del footer vive ahora en el bloque 25 (#contacto). */


/* ============================================
   18. GLASSMORPHISM
   ============================================ */
.glass-panel-light {
  background: var(--surface-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-2xl);
}


/* ============================================
   19. GLOWS
   ============================================ */
.glow-purple {
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
}

.glow-green {
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
}

.glow-box-purple {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25),
              0 0 80px rgba(124, 58, 237, 0.1);
}

.glow-box-green {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25),
              0 0 80px rgba(16, 185, 129, 0.1);
}


/* ============================================
   20. TECH GRID BACKGROUNDS
   ============================================ */
.tech-grid-bg {
  position: relative;
}

.tech-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(124, 58, 237, 0.12) 1px,
    transparent 0
  );
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.tech-grid-dots {
  position: relative;
}

.tech-grid-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(16, 185, 129, 0.1) 1px,
    transparent 0
  );
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
}


/* ============================================
   21. ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes border-glow {
  0%, 100% {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.05);
  }
  50% {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
  }
}

/* Scroll-reveal elements */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-reveal) ease,
              transform var(--t-reveal) ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* Animation utility classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s var(--ease-out) both;
}


/* ============================================
   22. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 6, 14, 0.8);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-4);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-4) rgba(6, 6, 14, 0.8);
}


/* ============================================
   23. FOCUS
   ============================================ */
.focus-ring:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
}

/* Global focus-visible for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}


/* ============================================
   24. LIGHT SECTION OVERRIDES
   ============================================ */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: var(--black);
}

.section-light p {
  color: var(--gray-4);
}

.section-light .section-label {
  color: var(--purple);
}


/* ============================================
   25. RESPONSIVE
   ============================================ */

/* ---- Tablet & Below (< 1024px) ---- */
@media (max-width: 1023px) {
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .maria-container {
    max-height: 540px;
    aspect-ratio: 2 / 3;
  }

  /* Sales flow stays vertical on tablet */
  .sales-flow {
    flex-direction: column;
  }
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  h2 {
    font-size: clamp(1.625rem, 5vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  /* Cards — single column full width */
  .problem-card,
  .unit-card,
  .process-card,
  .signal-card {
    padding: var(--space-lg);
  }

  /* Full width buttons */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  /* Larger touch targets */
  .voice-btn {
    width: 64px;
    height: 64px;
  }

  /* María flow wraps to 2 rows */
  .maria-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .flow-step {
    width: calc(50% - var(--space-md));
    min-width: unset;
  }

  /* Framework timeline — simplified */
  .framework-timeline {
    padding-left: var(--space-2xl);
  }

  .framework-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    left: calc(-1 * var(--space-2xl));
  }

  /* María card compact */
  .maria-card {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }
}

/* ---- Small Mobile (< 390px) ---- */
@media (max-width: 390px) {
  body {
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Minimum side padding */
  .section-dark,
  .section-light,
  .cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Remove decorative elements */
  .tech-grid-bg::before,
  .tech-grid-dots::before {
    display: none;
  }

  /* Cards even tighter */
  .problem-card,
  .unit-card,
  .process-card,
  .signal-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  /* Flow single column */
  .flow-step {
    width: 100%;
  }

  /* Buttons always full-width */
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
}


/* ============================================
   26. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* ============================================
   27. BACKDROP-FILTER FALLBACK
   ============================================ */
@supports not (backdrop-filter: blur(1px)) {
  .glass-nav,
  .maria-card {
    background: var(--surface-dark-opaque);
  }

  .glass-panel-light {
    background: rgba(245, 245, 248, 0.98);
  }

  .mobile-menu-overlay {
    background: rgba(6, 6, 14, 0.99);
  }
}


/* ============================================================================
   ============================================================================
   REDESIGN v2 — Dirección de arte "Consola de sistemas vivos"
   Reconciliación de clases + sistema de tarjetas/fondos/motion.
   Este bloque se carga al final: sus reglas ganan la cascada de forma
   intencional sobre las definiciones previas.
   ============================================================================
   ============================================================================ */

/* ---- 0. Tokens & contraste de cuerpo ---- */
:root {
  --gray-3: #A6A6C6;            /* texto de cuerpo con mejor contraste AA sobre negro */
  --maria-h: clamp(360px, 42vw, 470px);
  --card-dark: rgba(19, 19, 36, 0.72);
  --card-dark-border: rgba(255, 255, 255, 0.10);
}


/* ---- 1. SISTEMA DE FONDOS ---- */

/* Secciones claras: textura de nodos tenue + gradiente + costura superior */
.section-light {
  position: relative;
  background-color: #F4F4F9;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.06) 1px, transparent 0),
    linear-gradient(180deg, #F7F7FB 0%, #EFEFF5 100%);
  background-size: 34px 34px, 100% 100%;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
}

/* Romper la monotonía de bloques oscuros consecutivos con gradientes sutiles */
#neta-sales {
  background: linear-gradient(180deg, #06060E 0%, #0A0A18 100%);
}

/* #que-hacemos ahora es la sección clara "Ecosistema NETA" (ver §18) */

/* Halo superior suave para las secciones oscuras con grid */
.tech-grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}


/* ---- 2. TARJETAS OSCURAS (mayor presencia en reposo) ---- */
.problem-card,
.unit-card,
.process-card,
.signal-card {
  background: var(--card-dark);
  border-color: var(--card-dark-border);
}

.sales-step:hover {
  transform: translateY(-4px);
}


/* ---- 3. TARJETAS CLARAS (reparación: clases antes inexistentes) ---- */
.problem-card-light,
.process-card-light {
  background: #FFFFFF;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(6, 6, 14, 0.05);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) ease;
}

.process-card-light {
  padding: var(--space-lg);
}

.problem-card-light:hover,
.process-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
}

/* Tarjeta-señal horizontal (icono + texto) */
.signal-card-light {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(6, 6, 14, 0.04);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) ease,
              border-color var(--t-base) ease;
}

.signal-card-light:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}


/* ---- 4. BOTONES SOBRE FONDO CLARO (reparación) ---- */
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
  transition: background var(--t-fast) ease,
              box-shadow var(--t-base) ease,
              transform var(--t-fast) var(--ease-spring);
}

.btn-primary-light:hover {
  background: linear-gradient(135deg, #8B5CF6, var(--purple));
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 14px 28px;
  background: transparent;
  color: var(--purple);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast) ease, border-color var(--t-base) ease;
}

.btn-secondary-light:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.6);
}


/* ---- 5. HERO — rebalanceo y feed de María ---- */

/* Imagen acotada: deja de dominar y elimina el vacío del héroe.
   Sustituible en el futuro cambiando sólo --maria-h u object-position. */
.maria-container {
  aspect-ratio: auto;
  height: var(--maria-h);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* La tarjeta vuelve al flujo (antes era absolute) para una composición estable */
.maria-card {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

/* Esquina de estado tipo "feed en vivo" sobre la imagen */
.maria-container::after {
  content: 'EN VIVO · PREVIEW';
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(6, 6, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-full);
  padding: 5px 10px;
}


/* ---- 6. FLUJO DEL HÉROE (reparación: flow-dot / flow-line inexistentes) ---- */
.maria-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 4px;
  overflow: visible;
}

.maria-flow .flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: auto;
  flex: 0 0 auto;
}

.maria-flow .flow-step span {
  font-size: 0.7rem;
  color: var(--gray-3);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.flow-dot.active {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 0 14px rgba(16, 185, 129, 0.5);
  animation: flow-node-pulse 1.9s ease-in-out infinite;
}

.flow-line {
  flex: 1 1 auto;
  height: 2px;
  min-width: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.5), rgba(16, 185, 129, 0.5));
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: flow-travel 2.6s linear infinite;
}

@keyframes flow-travel {
  to { left: 120%; }
}

@keyframes flow-node-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 0 10px rgba(16, 185, 129, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.25), 0 0 18px rgba(16, 185, 129, 0.7); }
}


/* ---- 7. NETA SALES — pasos como nodos de flujo ---- */
.sales-step {
  position: relative;
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) ease,
              box-shadow var(--t-base) ease;
}

.sales-step:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.14);
}

.sales-step-number {
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 6px 16px rgba(124, 58, 237, 0.3);
}

/* En layout de grilla el conector vertical sobra */
.sales-step:not(:last-child) .sales-step-number::after {
  display: none;
}


/* ---- 8. FRAMEWORK TIMELINE (reparación: framework-number / framework-content) ---- */
.framework-number {
  position: absolute;
  left: calc(-1 * var(--space-3xl));
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--black), 0 0 20px rgba(124, 58, 237, 0.25);
}

.framework-content {
  padding-top: 2px;
}

.framework-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.framework-content p {
  color: var(--gray-3);
  font-size: 0.9375rem;
}


/* ---- 9. CUATRO UNIDADES — acento de marca ---- */
.unit-card {
  position: relative;
  overflow: hidden;
}

.unit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  opacity: 0.65;
}


/* ---- 10. FAQ — reparación retirada ---- */
/* El chevron de lucide se sustituyó por un control circular en CSS
   (bloque 24). Las reglas .faq-chevron y los colores de estado abierto
   quedaron sin uso. */


/* ---- 11. MENÚ MÓVIL (reparación: alineación JS is-open + ocultar en desktop) ---- */
.mobile-menu-overlay {
  display: flex;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 0 24px;
}

.mobile-menu-nav .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

.mobile-menu-cta {
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}


/* ---- 12. MOTION — reveal en cascada ---- */
.reveal-stagger {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.34s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.40s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.46s; }

/* Micro: icon-chips reaccionan dentro de tarjetas */
.problem-card-light:hover [data-lucide],
.process-card-light:hover [data-lucide],
.unit-card:hover [data-lucide] {
  transform: scale(1.08);
  transition: transform var(--t-base) var(--ease-spring);
}


/* ---- 13. RESPONSIVE del rediseño ---- */
@media (max-width: 767px) {
  .maria-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .maria-flow .flow-line {
    display: none;
  }

  .maria-flow .flow-step {
    flex: 0 0 auto;
  }

  .framework-number {
    left: calc(-1 * var(--space-2xl));
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .maria-container::after {
    font-size: 0.5rem;
    padding: 4px 8px;
  }
}


/* ---- 14. REDUCED MOTION — no ocultar contenido en cascada ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .flow-dot.active,
  .flow-line::after {
    animation: none;
  }
}


/* ============================================================================
   15. MARÍA — Consola de agente (retrato recortado sobre entorno oscuro)
   ============================================================================ */

/* Escenario: María sin fondo, sobre entorno oscuro con halo morado/verde */
.maria-stage {
  position: relative;
  height: clamp(430px, 50vw, 580px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.20);
  background:
    radial-gradient(ellipse 85% 65% at 62% 26%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(ellipse 65% 55% at 26% 74%, rgba(16, 185, 129, 0.20), transparent 62%),
    linear-gradient(180deg, #0C0C1A 0%, #070710 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Malla de nodos tenue dentro del escenario */
.maria-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

/* La imagen recortada de María */
.maria-stage .maria-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.45));
  z-index: 1;
}

/* Desvanecido inferior para fundir a María con la tarjeta/entorno */
.maria-stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, #07070F 6%, rgba(7, 7, 15, 0.6) 45%, transparent);
  pointer-events: none;
  z-index: 2;
}

/* Estado "en línea" */
.maria-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(6, 6, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}

.maria-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 10px rgba(16, 185, 129, 0.6);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28), 0 0 10px rgba(16, 185, 129, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.10), 0 0 16px rgba(16, 185, 129, 0.8); }
}

/* Chips de actividad (demostración del sistema) */
.maria-activity {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(12, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.maria-activity [data-lucide] {
  color: var(--green);
}

.maria-activity--1 {
  top: 17%;
  right: -6px;
  animation: float-chip 5.2s ease-in-out infinite;
}

.maria-activity--2 {
  top: 55%;
  right: 6px;
  animation: float-chip 6.4s ease-in-out infinite;
  animation-delay: -2s;
}

.maria-activity--2 [data-lucide] {
  color: var(--purple-light);
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Tarjeta de agente: conectar con el escenario */
.maria-stage + .maria-card {
  margin-top: -22px;
  margin-left: 14px;
  margin-right: 14px;
}

/* Ondas de voz (equalizer) en la cabecera de la tarjeta */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.voice-wave span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple-light), var(--green));
  animation: voice-wave-bar 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { animation-delay: 0.30s; }
.voice-wave span:nth-child(4) { animation-delay: 0.45s; }
.voice-wave span:nth-child(5) { animation-delay: 0.60s; }

@keyframes voice-wave-bar {
  0%, 100% { height: 5px; opacity: 0.55; }
  50%      { height: 18px; opacity: 1; }
}

/* La tarjeta reacciona: al escuchar, las ondas se intensifican */
.maria-card[data-state='listening'] .voice-wave span {
  animation-duration: 0.6s;
}

@media (max-width: 767px) {
  .maria-activity {
    font-size: 0.625rem;
    padding: 6px 9px;
  }
  .maria-activity--1 { right: 2px; }
  .maria-activity--2 { right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .maria-status-dot,
  .maria-activity,
  .voice-wave span {
    animation: none !important;
  }
  .voice-wave span { height: 12px; }
}


/* ============================================================================
   16. FLUJO DEL LEAD — recorrido horizontal futurista (hero, izquierda)
   ============================================================================ */
.lead-flow {
  width: 100%;
  max-width: 640px;
  margin-top: 44px;
  padding: 26px 10px 22px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 70% 120% at 28% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 120% at 88% 100%, rgba(16, 185, 129, 0.08), transparent 70%);
}

.lead-flow-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.lf-step {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.lf-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.12);
  border: 1.5px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.05), inset 0 0 12px rgba(124, 58, 237, 0.12);
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}

.lf-node svg {
  width: 26px;
  height: 26px;
}

.lf-step:hover .lf-node {
  transform: translateY(-3px);
  border-color: var(--purple-light);
}

.lf-step.is-active .lf-node {
  color: #fff;
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12), 0 0 26px rgba(16, 185, 129, 0.55);
  animation: lf-node-pulse 2s ease-in-out infinite;
}

@keyframes lf-node-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12), 0 0 22px rgba(16, 185, 129, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.06), 0 0 34px rgba(16, 185, 129, 0.75); }
}

.lf-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-3);
  letter-spacing: 0.01em;
}

.lf-step.is-active .lf-label {
  color: #fff;
  font-weight: 600;
}

/* Conector horizontal con pulso de señal que fluye a lo largo del camino */
.lf-conn {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 29px;      /* centrado sobre los nodos (60/2 - 1) */
  min-width: 14px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(16, 185, 129, 0.45));
}

.lf-conn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: lf-travel 2.8s linear infinite;
}

.lf-conn:nth-child(2)::after { animation-delay: 0s; }
.lf-conn:nth-child(4)::after { animation-delay: 0.35s; }
.lf-conn:nth-child(6)::after { animation-delay: 0.70s; }
.lf-conn:nth-child(8)::after { animation-delay: 1.05s; }

@keyframes lf-travel {
  0%   { left: -35%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}

@media (max-width: 767px) {
  .lead-flow { margin-top: 32px; padding: 20px 4px; }
  .lf-step { width: 62px; gap: 8px; }
  .lf-node { width: 48px; height: 48px; }
  .lf-node svg { width: 22px; height: 22px; }
  .lf-label { font-size: 0.72rem; }
  .lf-conn { margin-top: 23px; min-width: 6px; }
}

/* En pantallas estrechas el recorrido se reorganiza en dos renglones.
   El track pasa a rejilla con pistas `minmax(0, 1fr)`: eso elimina el ancho
   mínimo de 342 px que antes arrastraba a toda la columna del hero y recortaba
   el título, los párrafos y los dos CTA por debajo de 382 px.
   El orden del DOM (Lead → María → CRM → Seguimiento → Agenda) se conserva. */
@media (max-width: 420px) {
  .lead-flow {
    padding: 18px 8px 16px;
  }

  .lead-flow-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 18px 4px;
  }

  .lf-step {
    width: 100%;
    min-width: 0;
  }

  .lf-label {
    overflow-wrap: anywhere;
  }

  /* Los conectores horizontales pierden sentido al envolver */
  .lf-conn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lf-conn::after,
  .lf-step.is-active .lf-node {
    animation: none !important;
  }
}


/* ============================================================================
   17. BLOQUE 1 — Secciones "Problemas" (claro) y "NETA Sales" (oscuro)
   Referencias: section makeover/1H.png y 2H.png. Construido con HTML/CSS/SVG.
   ============================================================================ */

/* ---------- 17.1 PROBLEMAS (fondo claro con circuitos) ---------- */
#problemas { position: relative; overflow: hidden; }

#problemas .circuit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

#problemas .problemas-inner { position: relative; z-index: 1; }

/* Tarjeta de problema: media (gráfico) + cuerpo */
.pcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F8FD 100%);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 30px rgba(6, 6, 14, 0.06);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) ease,
              border-color var(--t-base) ease;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.28);
}

.pcard__media {
  position: relative;
  height: 208px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-2);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 34%, rgba(124, 58, 237, 0.12), transparent 70%),
    linear-gradient(180deg, #F1EFFB 0%, #FAFAFE 100%);
}

.pcard--green .pcard__media {
  background:
    radial-gradient(ellipse 70% 80% at 50% 34%, rgba(16, 185, 129, 0.12), transparent 70%),
    linear-gradient(180deg, #ECF8F3 0%, #FAFEFC 100%);
}

/* reflejo de vidrio */
.pcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.pcard__art {
  position: relative;
  z-index: 1;
  width: 74%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(124, 58, 237, 0.12));
}

.pcard--green .pcard__art {
  filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.12));
}

.pcard__body { padding: 26px 28px 30px; }

.pcard__body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.25;
}

.pcard__body p {
  color: var(--gray-4);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* helpers de color para el SVG claro */
.pcard__art .st-p { stroke: var(--purple); }
.pcard__art .st-g { stroke: var(--green); }
.pcard__art .fl-p { fill: var(--purple); }
.pcard__art .fl-g { fill: var(--green); }
.pcard__art .st-ink { stroke: #4A4A6A; }


/* ---------- 17.2 NETA SALES (fondo oscuro con red y flujos) ---------- */
#neta-sales { position: relative; overflow: hidden; }

#neta-sales .plexus-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  max-width: 820px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

#neta-sales .sales-inner { position: relative; z-index: 1; }

.sales-grid { position: relative; }

/* Flujo de energía morado/verde detrás de las tarjetas */
.sales-flow-bg {
  position: absolute;
  left: -3%;
  top: -4%;
  width: 106%;
  height: 108%;
  pointer-events: none;
  z-index: 0;
}

.flow-stream {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.5;
}

.flow-dash { stroke-dasharray: 6 16; animation: flow-dash 2.8s linear infinite; }
.flow-dash--2 { animation-delay: -1.4s; }

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

.sales-grid > .scard { position: relative; z-index: 1; }

/* Tarjeta de etapa (oscura, glass, borde con glow) */
.scard {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 22, 42, 0.82) 0%, rgba(12, 12, 24, 0.74) 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 20px;
  padding: 22px 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.4);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) ease,
              border-color var(--t-base) ease;
}

.scard:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2), 0 18px 44px rgba(124, 58, 237, 0.16);
}

.scard--green { border-color: rgba(16, 185, 129, 0.22); }
.scard--green:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 18px 44px rgba(16, 185, 129, 0.16);
}

.scard__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.scard__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 6px 16px rgba(124, 58, 237, 0.35);
}

.scard--green .scard__num {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 6px 16px rgba(16, 185, 129, 0.35);
}

.scard__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.2;
}

.scard__media {
  position: relative;
  height: 118px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(ellipse 82% 92% at 50% 50%, rgba(124, 58, 237, 0.14), transparent 72%);
}

.scard--green .scard__media {
  background: radial-gradient(ellipse 82% 92% at 50% 50%, rgba(16, 185, 129, 0.14), transparent 72%);
}

.scard__art { width: auto; height: 86px; }
.scard__desc { color: var(--gray-3); font-size: 0.9rem; line-height: 1.62; }

/* helpers de color para el SVG oscuro */
.scard__art .s-p { stroke: var(--purple-light); }
.scard__art .s-g { stroke: var(--green); }
.scard__art .s-w { stroke: rgba(255, 255, 255, 0.65); }
.scard__art .f-p { fill: var(--purple); }
.scard__art .f-g { fill: var(--green); }
.scard__art .f-pl { fill: var(--purple-light); }

/* Lista de capacidades: icono + texto */
.cap-item { display: flex; align-items: flex-start; gap: 12px; }
.cap-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--green); }
.cap-item span { color: var(--gray-3); font-size: 0.925rem; line-height: 1.55; }


/* ---------- 17.3 Responsive ---------- */
@media (max-width: 1023px) {
  #neta-sales .plexus-bg { width: 72%; opacity: 0.4; }
}

@media (max-width: 767px) {
  .pcard__media { height: 168px; }
  .pcard__body { padding: 22px 22px 26px; }
  .pcard__body h3 { font-size: 1.2rem; }
  .scard__media { height: 104px; }
  .scard__art { height: 76px; }
  #neta-sales .plexus-bg { width: 96%; opacity: 0.3; }
  .sales-flow-bg { display: none; }
}


/* ---------- 17.4 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .flow-dash { animation: none; }
}


/* ---------- 17.5 Render 3D piloto (Problemas · Tarjeta 1) ---------- */
/* La imagen se superpone al SVG (que permanece como fallback). object-fit: cover
   con un ligero sobre-escaneo para que el float no descubra los bordes. */
.pcard__render {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.05);
  will-change: transform;
  animation: pcard-float 7s ease-in-out infinite;
}

@keyframes pcard-float {
  0%, 100% { transform: translateY(-4px) scale(1.05); }
  50%      { transform: translateY(4px)  scale(1.05); }
}

/* En tarjetas con render, suavizamos el reflejo de vidrio para no ensuciar la foto */
.pcard--render .pcard__media::after {
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.22) 0%, transparent 34%);
}

/* Móvil: imagen estática, bien encuadrada, sin animación */
@media (max-width: 767px) {
  .pcard__render {
    animation: none;
    transform: none;
    object-position: center 48%;
  }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .pcard__render {
    animation: none;
    transform: none;
  }
}


/* ---------- 17.6 Renders 3D en NETA Sales (6 etapas) ---------- */
/* Un poco más de altura (uniforme) para que los renders detallados respiren */
.scard__media { height: 150px; }

/* La imagen se superpone al SVG (fallback). Fondo oscuro del render = contraste
   coherente con la tarjeta; ligero sobre-escaneo para el float. */
.scard__render {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
  animation: scard-float 8s ease-in-out infinite;
}

@keyframes scard-float {
  0%, 100% { transform: translateY(-3px) scale(1.05); }
  50%      { transform: translateY(3px)  scale(1.05); }
}

@media (max-width: 767px) {
  .scard__media { height: 128px; }
  .scard__render { animation: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scard__render { animation: none; transform: none; }
}


/* ============================================
   18. ECOSISTEMA NETA — Cuatro capacidades (#que-hacemos)
   Pausa visual clara (lavanda) tras la sección oscura.
   ============================================ */
.eco-section {
  background:
    radial-gradient(ellipse 120% 90% at 85% 0%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(ellipse 100% 80% at 5% 100%, rgba(16, 185, 129, 0.06), transparent 55%),
    linear-gradient(180deg, #F4F1FC 0%, #EFEAFB 48%, #F3F0FB 100%);
  color: var(--black);
}

/* ---- 18.1 Intro en dos columnas ---- */
.eco-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .eco-intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.eco-intro__copy { max-width: 640px; }

/* Núcleo del ecosistema (contenedor limpio, sin tarjeta pesada) */
.eco-intro__core {
  display: flex;
  justify-content: center;
}

.eco-core {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 2;
}

.eco-core__glow {
  position: absolute;
  inset: 8% 6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 52%, rgba(124, 58, 237, 0.20), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.eco-core__render {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 44px rgba(76, 40, 130, 0.18));
  will-change: transform;
}

/* ---- 18.2 Cuadrícula 2×2 conectada ---- */
.eco-grid-wrap {
  position: relative;
  margin-bottom: 64px;
}

.eco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Conexiones del ecosistema (solo escritorio) */
.eco-links,
.eco-hub { display: none; }

@media (min-width: 1024px) {
  .eco-links {
    display: block;
    position: absolute;
    inset: 6% 8%;
    width: 84%;
    height: 88%;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
  }
  .eco-hub {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #A78BFA, #7C3AED 70%);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 0 18px rgba(124, 58, 237, 0.5);
    pointer-events: none;
    animation: eco-pulse 4.5s ease-in-out infinite;
  }
  .eco-hub::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
  }
}

@keyframes eco-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 0 18px rgba(124, 58, 237, 0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.06), 0 0 26px rgba(124, 58, 237, 0.65); }
}

/* ---- 18.3 Tarjeta de unidad (cristal claro) ---- */
.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 249, 254, 0.86) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-2xl);
  padding: 18px 22px 24px;
  box-shadow: 0 10px 30px rgba(76, 40, 130, 0.07);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) ease,
              border-color var(--t-base) ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.14);
}

.eco-card--green:hover {
  border-color: rgba(16, 185, 129, 0.30);
  box-shadow: 0 20px 44px rgba(16, 185, 129, 0.14);
}

/* Media: render sobre fondo lavanda que coincide con el de las imágenes */
.eco-card__media {
  position: relative;
  height: 200px;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 58, 237, 0.08);
  background:
    radial-gradient(ellipse 78% 86% at 50% 46%, rgba(124, 58, 237, 0.12), transparent 70%),
    linear-gradient(180deg, #EFEAFB 0%, #F6F3FD 100%);
}

.eco-card--green .eco-card__media {
  background:
    radial-gradient(ellipse 78% 86% at 50% 46%, rgba(16, 185, 129, 0.10), transparent 70%),
    linear-gradient(180deg, #EDEAFA 0%, #F5F3FD 100%);
}

/* Fallback (visible sólo si el render se retira por onerror) */
.eco-card__fallback {
  width: 54px;
  height: 54px;
  color: var(--purple);
  opacity: 0.7;
}
.eco-card--green .eco-card__fallback { color: var(--green); }

/* Render 3D: contain para no recortar la composición radial; escala individual */
.eco-card__render {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--eco-scale, 1));
  will-change: transform;
}

.eco-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.eco-card__tag {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 12px;
}
.eco-card__tag--purple { color: var(--purple); }
.eco-card__tag--green  { color: var(--green-dark); }

.eco-card__desc {
  color: var(--gray-4);
  font-size: 0.925rem;
  line-height: 1.6;
}

.eco-card__apps {
  color: #6A6A88;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.10);
}

/* ---- 18.4 CTA: banda horizontal oscura premium ---- */
.eco-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 40px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(124, 58, 237, 0.28), transparent 60%),
    linear-gradient(120deg, #0B0B18 0%, #141430 100%);
  border: 1px solid rgba(124, 58, 237, 0.28);
  box-shadow: 0 24px 60px rgba(11, 11, 24, 0.28);
}

@media (min-width: 768px) {
  .eco-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 52px;
  }
}

.eco-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
}

.eco-cta__text p {
  color: #D7D5EA;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Detalle de conversación (María) — gráfico coherente, sin imagen nueva */
.eco-cta__aside { flex-shrink: 0; }

.eco-chat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.eco-chat__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16), 0 6px 16px rgba(124, 58, 237, 0.4);
}

.eco-chat__bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-chat__bubble {
  display: block;
  height: 12px;
  border-radius: 8px;
}
.eco-chat__bubble--in {
  width: 96px;
  background: rgba(255, 255, 255, 0.16);
}
.eco-chat__bubble--out {
  width: 72px;
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.42);
}
.eco-chat__bubble--sm { width: 60px; }

/* ---- 18.5 Movimiento sutil (solo escritorio) ---- */
@media (min-width: 1024px) {
  .eco-core__render { animation: eco-float 9s ease-in-out infinite; }
  .eco-card--purple .eco-card__render { animation: eco-float 8.5s ease-in-out infinite; }
  .eco-card--green  .eco-card__render { animation: eco-float 10s ease-in-out infinite; animation-delay: -3s; }
}

@keyframes eco-float {
  0%, 100% { transform: translateY(-4px) scale(var(--eco-scale, 1)); }
  50%      { transform: translateY(4px)  scale(var(--eco-scale, 1)); }
}

/* ---- 18.6 Responsive ---- */
@media (max-width: 767px) {
  .eco-intro { margin-bottom: 44px; gap: 28px; }
  .eco-core { max-width: 400px; }
  .eco-grid-wrap { margin-bottom: 44px; }
  .eco-card__media { height: 168px; }
  .eco-cta { padding: 30px 24px; }
  .eco-cta__aside { display: none; }
}

@media (max-width: 390px) {
  .eco-card { padding: 16px 18px 22px; }
  .eco-card__media { height: 150px; }
  .eco-cta__text p { font-size: 1rem; }
}

/* ---- 18.7 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .eco-core__render,
  .eco-card__render { animation: none; transform: scale(var(--eco-scale, 1)); }
  .eco-hub { animation: none; }
}


/* ============================================
   19. APLICACIONES NETA — Bento de procesos (#aplicaciones)
   Grafito oscuro premium; transición clara tras el lavanda de Ecosistema.
   ============================================ */
.apl-section {
  background:
    radial-gradient(ellipse 90% 65% at 10% -5%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 108%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, #14141F 0%, #101019 58%, #0C0C15 100%);
  color: #fff;
  border-top: 1px solid rgba(124, 58, 237, 0.14);
}

/* ---- 19.1 Introducción en dos columnas ---- */
.apl-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .apl-intro {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.apl-intro__copy { max-width: 560px; }
.apl-section .section-label { color: var(--purple-light); }

/* Render integrado (se funde con el grafito, sin recorte rectangular) */
.apl-intro__media { display: flex; justify-content: center; }

.apl-render {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
}

.apl-render::before {
  content: '';
  position: absolute;
  inset: 4% 6%;
  z-index: 0;
  border-radius: 40%;
  background: radial-gradient(ellipse at 50% 55%, rgba(124, 58, 237, 0.22), rgba(16, 185, 129, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.apl-render__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Máscara suave para que los bordes del render se fundan con el fondo */
  -webkit-mask-image: radial-gradient(ellipse 82% 84% at 50% 50%, #000 66%, transparent 96%);
          mask-image: radial-gradient(ellipse 82% 84% at 50% 50%, #000 66%, transparent 96%);
  will-change: transform;
}

.apl-render__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 62%;
  height: auto;
  margin: auto;
}

/* ---- 19.2 Cuadrícula bento ---- */
.apl-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 56px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .apl-bento { grid-template-columns: repeat(2, 1fr); }
  .apl-card--ventas { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .apl-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(148px, auto));
    gap: 20px;
  }
  .apl-card--ventas { grid-column: 1 / 3; grid-row: 1 / 3; }
  .apl-bento > .apl-card:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
  .apl-bento > .apl-card:nth-child(3) { grid-column: 3 / 5; grid-row: 2; }
  .apl-bento > .apl-card:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .apl-bento > .apl-card:nth-child(5) { grid-column: 3 / 5; grid-row: 3; }
}

/* ---- 19.3 Tarjeta (cristal grafito) ---- */
.apl-card {
  --accent: var(--purple);
  --accent-lt: var(--purple-light);
  --accent-rgb: 124, 58, 237;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 30, 48, 0.72) 0%, rgba(18, 18, 30, 0.66) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 22px 24px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.34);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) ease,
              border-color var(--t-base) ease;
}

.apl-card--green {
  --accent: var(--green);
  --accent-lt: var(--green);
  --accent-rgb: 16, 185, 129;
}

/* Filo de acento superior sutil */
.apl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.7), transparent 78%);
  opacity: 0.75;
}

.apl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.16), 0 18px 40px rgba(var(--accent-rgb), 0.16);
}

.apl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.apl-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lt);
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
}
.apl-card__icon svg { width: 22px; height: 22px; }

/* Indicador de proceso: nodos conectados */
.apl-card__track {
  display: flex;
  align-items: center;
  gap: 6px;
}
.apl-card__track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
  position: relative;
}
.apl-card__track i + i::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 6px;
  height: 1.5px;
  transform: translateY(-50%);
  background: rgba(var(--accent-rgb), 0.4);
}
.apl-card__track i:last-child {
  background: transparent;
  border: 1.5px solid rgba(var(--accent-rgb), 0.7);
  box-shadow: none;
}

.apl-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 8px;
}

.apl-card--ventas .apl-card__name { font-size: 1.4rem; }

.apl-card__desc {
  color: var(--gray-3);
  font-size: 0.9rem;
  line-height: 1.6;
}

.apl-card--ventas .apl-card__desc { font-size: 0.975rem; }

/* Recorrido decorativo al pie de la tarjeta principal (rellena el alto sin copy) */
.apl-card__flow {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  height: auto;
  opacity: 0.92;
}
.apl-card__flow .apl-flow-a { fill: var(--purple-light); }
.apl-card__flow .apl-flow-g { fill: var(--green); }

/* ---- 19.4 Cierre comercial (banda integrada) ---- */
.apl-close {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 860px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%),
              rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.apl-close__mark {
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--purple), var(--green));
}
.apl-close__text {
  color: #E7E5F2;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---- 19.5 Movimiento sutil (solo escritorio) ---- */
@media (min-width: 1024px) {
  .apl-render__img { animation: apl-float 10s ease-in-out infinite; }
  .apl-card__track i:not(:last-child) { animation: apl-node 3.6s ease-in-out infinite; }
  .apl-card__track i:nth-child(2) { animation-delay: -1.2s; }
  .apl-card__track i:nth-child(3) { animation-delay: -2.4s; }
  .apl-card__flow .apl-flow-g { animation: apl-node 3.6s ease-in-out infinite; }
}

@keyframes apl-float {
  0%, 100% { transform: translateY(-5px); }
  50%      { transform: translateY(5px); }
}
@keyframes apl-node {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ---- 19.6 Responsive ---- */
@media (max-width: 1023px) {
  .apl-intro { margin-bottom: 44px; }
  .apl-render { max-width: 560px; }
}

@media (max-width: 767px) {
  .apl-bento { margin-bottom: 40px; }
  .apl-card { padding: 20px 20px 22px; }
  .apl-card--ventas .apl-card__name { font-size: 1.3rem; }
  .apl-card__flow { display: none; }
  .apl-close { padding: 22px 22px; }
}

@media (max-width: 390px) {
  .apl-render { max-width: 100%; }
  .apl-close__text { font-size: 1rem; }
}

/* ---- 19.7 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .apl-render__img,
  .apl-card__track i,
  .apl-card__flow .apl-flow-g { animation: none; }
}


/* ============================================
   20. CÓMO TRABAJAMOS — Método en tres etapas (#como-trabajamos)
   Fondo marfil claro; pausa premium tras el grafito de Aplicaciones.
   ============================================ */
.method-section {
  background:
    radial-gradient(ellipse 80% 60% at 8% -5%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 105%, rgba(16, 185, 129, 0.07), transparent 55%),
    linear-gradient(180deg, #F8F5F2 0%, #F4F1F8 55%, #F6F3F1 100%);
  color: var(--black);
  border-top: 1px solid rgba(124, 58, 237, 0.10);
}

/* ---- 20.1 Encabezado en dos columnas ---- */
.method-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 60px;
}
@media (min-width: 1024px) {
  .method-intro { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
.method-intro__copy { max-width: 560px; }

/* Render de la ruta metodológica (composición limpia, sin tarjeta pesada) */
.method-intro__media { display: flex; justify-content: center; }
.method-route {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 2 / 1;
}
.method-route::before {
  content: '';
  position: absolute;
  inset: 12% 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 55%, rgba(124, 58, 237, 0.16), transparent 55%),
              radial-gradient(ellipse at 85% 55%, rgba(16, 185, 129, 0.14), transparent 55%);
  filter: blur(8px);
  pointer-events: none;
}
.method-route__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: radial-gradient(ellipse 86% 78% at 50% 52%, #000 52%, transparent 92%);
          mask-image: radial-gradient(ellipse 86% 78% at 50% 52%, #000 52%, transparent 92%);
  filter: drop-shadow(0 18px 30px rgba(76, 40, 130, 0.14));
  will-change: transform;
}
.method-route__fallback {
  position: absolute;
  inset: 0; z-index: 0;
  width: 70%; height: auto;
  margin: auto;
}

/* ---- 20.2 Tres etapas ---- */
.method-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .method-stages { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.method-stage {
  --accent: var(--purple);
  --accent-rgb: 124, 58, 237;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(250, 249, 254, 0.78) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-2xl);
  padding: 24px 24px 26px;
  box-shadow: 0 10px 30px rgba(76, 40, 130, 0.07);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) ease;
}
.method-stage--build { --accent: #6D9DC5; --accent-rgb: 109, 157, 197; }
.method-stage--consolidate { --accent: var(--green); --accent-rgb: 16, 185, 129; }

.method-stage:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.14); }

/* Filo de acento superior con transición controlada */
.method-stage::after {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.85);
}
.method-stage--build::after { background: linear-gradient(90deg, #8B5CF6, #34A88A); }
.method-stage--consolidate::after { background: linear-gradient(90deg, #34A88A, var(--green)); }

.method-stage__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(60, 60, 90, 0.08);
}
.method-stage__idx {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}
.method-stage__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--black);
  line-height: 1;
}

/* Conector horizontal de progresión entre etapas (solo escritorio) */
@media (min-width: 1024px) {
  .method-stage + .method-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -28px;
    width: 20px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(var(--accent-rgb), 0.55));
  }
  .method-stage + .method-stage .method-stage__connector-dot { display: block; }
}

/* Dos pasos conectados verticalmente */
.method-stage__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.method-step { display: flex; gap: 14px; }
.method-step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  position: relative;
  z-index: 1;
}
/* línea que conecta los dos pasos de una etapa */
.method-step:first-child .method-step__num::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
  background: rgba(var(--accent-rgb), 0.28);
}
.method-step__body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 5px;
}
.method-step__body p {
  color: var(--gray-4);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- 20.3 Cierre comercial: banda oscura integrada ---- */
.method-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 36px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 55% 120% at 100% 50%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(120deg, #0B0B18 0%, #15152E 100%);
  border: 1px solid rgba(124, 58, 237, 0.26);
  box-shadow: 0 22px 54px rgba(11, 11, 24, 0.24);
}
@media (min-width: 768px) {
  .method-close {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 34px 44px;
  }
}
.method-close__text {
  color: #D7D5EA;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 640px;
}
.method-close__cta { flex-shrink: 0; }

/* ---- 20.4 Movimiento sutil (solo escritorio) ---- */
@media (min-width: 1024px) {
  .method-route__img { animation: method-float 10s ease-in-out infinite; }
  .method-stage--consolidate .method-step:last-child .method-step__num {
    animation: method-pulse 4s ease-in-out infinite;
  }
}
@keyframes method-float {
  0%, 100% { transform: translateY(-5px); }
  50%      { transform: translateY(5px); }
}
@keyframes method-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.14); }
}

/* ---- 20.5 Responsive ---- */
@media (max-width: 1023px) {
  .method-intro { margin-bottom: 44px; }
  .method-route { max-width: 560px; }
  .method-stages { margin-bottom: 40px; }
}
@media (max-width: 767px) {
  .method-stage { padding: 22px 20px 24px; }
  .method-stage__name { font-size: 1.35rem; }
  .method-close { padding: 26px 24px; }
}
@media (max-width: 390px) {
  .method-route { max-width: 100%; }
  .method-close__text { font-size: 1rem; }
}

/* ---- 20.6 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .method-route__img,
  .method-stage--consolidate .method-step:last-child .method-step__num { animation: none; }
}


/* ============================================
   21. CLIENTE IDEAL — Autodiagnóstico (#cliente-ideal)
   Grafito oscuro; recupera contraste tras el marfil de Cómo trabajamos.
   ============================================ */
.ideal-section {
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(124, 58, 237, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 55% at 92% 96%, rgba(16, 185, 129, 0.09), transparent 58%),
    linear-gradient(180deg, #16161F 0%, #101019 55%, #0A0A18 100%);
  color: #fff;
  border-top: 1px solid rgba(124, 58, 237, 0.16);
}
.ideal-section .section-label { color: var(--purple-light); }

/* ---- 21.1 Encabezado (composición tipográfica a todo el ancho) ---- */
.ideal-intro { margin-bottom: 52px; }

.ideal-intro__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  max-width: 20ch;
}
.ideal-intro__lead {
  color: var(--gray-3);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-top: 20px;
  max-width: 62ch;
}

@media (min-width: 1024px) {
  .ideal-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "label label"
      "title lead";
    column-gap: 64px;
    align-items: end;
    margin-bottom: 60px;
  }
  .ideal-intro .section-label { grid-area: label; }
  .ideal-intro__title { grid-area: title; margin-top: 18px; max-width: none; }
  .ideal-intro__lead {
    grid-area: lead;
    margin-top: 0;
    padding-left: 30px;
    border-left: 1px solid rgba(124, 58, 237, 0.28);
  }
}

/* ---- 21.2 Panel de diagnóstico (un solo panel, cuatro señales) ---- */
.ideal-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(28, 28, 44, 0.66) 0%, rgba(16, 16, 28, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  margin-bottom: 44px;
}

.ideal-signal {
  --sig: var(--purple);
  --sig-rgb: 124, 58, 237;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 24px 26px;
  transition: background var(--t-base) ease;
}
/* separadores finos entre señales */
.ideal-signal + .ideal-signal { border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* progresión cromática: morado -> verde */
.ideal-signal--a { --sig: #A78BFA; --sig-rgb: 167, 139, 250; }
.ideal-signal--b { --sig: #8B7DF0; --sig-rgb: 139, 125, 240; }
.ideal-signal--c { --sig: #58B6B0; --sig-rgb: 88, 182, 176; }
.ideal-signal--d { --sig: #34D399; --sig-rgb: 52, 211, 153; }

/* filo de acento vertical: refuerza la progresión sin depender solo del color */
.ideal-signal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(var(--sig-rgb), 0.75);
}

.ideal-signal__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(var(--sig-rgb), 0.36);
  letter-spacing: -0.02em;
}

.ideal-signal__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  color: var(--sig);
}

.ideal-signal__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.ideal-signal__list li {
  position: relative;
  padding-left: 30px;
  color: #D9D8E8;
  font-size: 0.95rem;
  line-height: 1.55;
}
/* indicador: marca de verificación dibujada en CSS (forma, no solo color) */
.ideal-signal__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

@media (min-width: 1024px) {
  .ideal-signal {
    grid-template-columns: 92px minmax(190px, 230px) 1fr;
    align-items: center;
    gap: 28px;
    padding: 26px 32px;
  }
  .ideal-signal__list { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
  /* reacción discreta al hover/focus (la lectura no depende de ella) */
  .ideal-signal:hover,
  .ideal-signal:focus-within {
    background: rgba(var(--sig-rgb), 0.055);
  }
  .ideal-signal:hover::before,
  .ideal-signal:focus-within::before {
    background: rgba(var(--sig-rgb), 1);
    box-shadow: 0 0 12px rgba(var(--sig-rgb), 0.5);
  }
  .ideal-signal::before { transition: background var(--t-base) ease, box-shadow var(--t-base) ease; }
}

/* ---- 21.3 Perfiles: decisión y operación ---- */
.ideal-profiles { margin-bottom: 44px; }
.ideal-profiles__title {
  font-size: 1.22rem;
  line-height: 1.4;
  max-width: 46ch;
  margin-bottom: 22px;
}
.ideal-profiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
@media (min-width: 768px) {
  .ideal-profiles__grid { grid-template-columns: repeat(2, 1fr); }
}

.ideal-group {
  --grp: var(--purple-light);
  --grp-rgb: 167, 139, 250;
  padding: 22px 26px 24px;
}
.ideal-group--operacion { --grp: var(--green); --grp-rgb: 16, 185, 129; }

.ideal-group + .ideal-group { border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 768px) {
  .ideal-group + .ideal-group {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.ideal-group__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grp);
  background: rgba(var(--grp-rgb), 0.12);
  border: 1px solid rgba(var(--grp-rgb), 0.26);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ideal-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.ideal-group__list li {
  position: relative;
  padding-left: 18px;
  color: #D9D8E8;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ideal-group__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--grp-rgb), 0.9);
}

/* ---- 21.4 Cierre comercial: banda morada ---- */
.ideal-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 32px;
  border-radius: 22px;
  background: linear-gradient(120deg, #5B21B6 0%, #7C3AED 58%, #6D28D9 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 54px rgba(76, 29, 149, 0.36);
}
@media (min-width: 768px) {
  .ideal-close {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px 44px;
  }
}
.ideal-close__text {
  color: #FFFFFF;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 640px;
}

/* CTA: mismo enlace y comportamiento; superficie clara para contraste sobre la banda */
.ideal-close__cta {
  flex-shrink: 0;
  background: #FFFFFF;
  color: #5B21B6;
  box-shadow: 0 8px 22px rgba(20, 8, 50, 0.28);
}
.ideal-close__cta:hover {
  background: #F5F3FF;
  color: #4C1D95;
  box-shadow: 0 12px 30px rgba(20, 8, 50, 0.36);
}
.ideal-close__cta:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* ---- 21.5 Responsive ---- */
@media (max-width: 1023px) {
  .ideal-intro { margin-bottom: 40px; }
  .ideal-panel { margin-bottom: 36px; }
  .ideal-profiles { margin-bottom: 36px; }
}
@media (max-width: 767px) {
  .ideal-signal { padding: 20px 18px 22px; gap: 10px; }
  .ideal-signal__num { font-size: 1.9rem; }
  .ideal-group { padding: 20px 20px 22px; }
  .ideal-close { padding: 26px 22px; }
  .ideal-close__cta { width: 100%; }
}
@media (max-width: 390px) {
  .ideal-intro__lead { font-size: 1rem; }
  .ideal-close__text { font-size: 1rem; }
}

/* ---- 21.6 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ideal-signal,
  .ideal-signal::before { transition: none; }
}


/* ============================================
   22. NETA Y SU DIRECCIÓN (#nosotros)
   Marfil-lavanda tenue: pausa clara tras el grafito de #cliente-ideal.
   ============================================ */
.dir-section {
  background:
    radial-gradient(ellipse 85% 60% at 6% -8%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(ellipse 75% 55% at 98% 106%, rgba(16, 185, 129, 0.07), transparent 55%),
    linear-gradient(180deg, #FBF9F6 0%, #F5F2FB 52%, #F9F7F3 100%);
  color: var(--black);
  border-top: 1px solid rgba(124, 58, 237, 0.14);
}
.dir-section .section-label { color: var(--purple-dark); }

/* ---- 22.1 Encabezado editorial (título y entrada compartiendo el ancho) ---- */
.dir-intro { margin-bottom: 44px; }

.dir-intro__title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 14px 0 0;
  max-width: 20ch;
}
.dir-intro__lead {
  color: var(--gray-4);
  font-size: 1.06rem;
  line-height: 1.68;
  max-width: 58ch;
  margin: 18px 0 0;
}

@media (min-width: 1024px) {
  .dir-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: end;
    column-gap: 64px;
    margin-bottom: 52px;
  }
  .dir-intro .section-label { grid-column: 1 / -1; }
  .dir-intro__title { margin-top: 0; }
  .dir-intro__lead { margin-top: 0; padding-bottom: 6px; }
}

/* ---- 22.2 Composición principal: dos zonas, una sola superficie ---- */
.dir-composition {
  display: grid;
  background: #FFFFFF;
  border: 1px solid rgba(6, 6, 14, 0.07);
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(30, 16, 70, 0.09);
  overflow: hidden;
  margin-bottom: 34px;
}
@media (min-width: 1024px) {
  .dir-composition {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    margin-bottom: 40px;
  }
}

/* Zona de dirección.
   Punto de inserción previsto para una fotografía real: basta añadir
   <figure class="dir-lead__photo"> como primer hijo de .dir-lead;
   el flujo vertical (marca → nombre → cargo → presentación) la absorbe
   sin rehacer la composición. */
.dir-lead {
  position: relative;
  padding: 34px 24px 36px;
  background: linear-gradient(165deg, #FCFBFF 0%, #F6F3FE 100%);
}
.dir-lead::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 0;
  width: 3px;
  height: 78px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--purple) 0%, var(--green) 100%);
}
@media (min-width: 1024px) {
  .dir-lead {
    padding: 46px 44px 48px;
    border-right: 1px solid rgba(6, 6, 14, 0.07);
  }
  .dir-lead::before { top: 46px; height: 96px; }
}

.dir-lead__mark { display: block; margin-bottom: 20px; }

.dir-lead__name {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0;
}
.dir-lead__role {
  margin: 9px 0 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-dark);
}
.dir-lead__body {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.dir-lead__body p {
  color: var(--gray-4);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
}

/* ---- 22.3 Zona de capacidades: tres franjas sobre un mismo eje ---- */
.dir-stack {
  display: grid;
  padding: 6px 24px 24px;
  border-top: 1px solid rgba(6, 6, 14, 0.07);
}
@media (min-width: 1024px) {
  .dir-stack {
    padding: 34px 44px 36px;
    border-top: 0;
    align-content: center;
  }
}

.dir-band--negocio    { --cap: #6D28D9; --cap-soft: rgba(109, 40, 217, 0.06); }
.dir-band--operacion  { --cap: #1B7A8F; --cap-soft: rgba(27, 122, 143, 0.06); }
.dir-band--tecnologia { --cap: #047857; --cap-soft: rgba(4, 120, 87, 0.06); }

.dir-band {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 18px;
  padding: 22px 14px;
  transition: background var(--t-base) ease;
}
.dir-band + .dir-band { border-top: 1px solid rgba(6, 6, 14, 0.07); }

/* Eje continuo morado → verde: las tres capacidades confluyen en una dirección */
.dir-band::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cap);
  opacity: 0.3;
}
.dir-band:first-child::before { top: 39px; }
.dir-band:last-child::before  { bottom: auto; height: 39px; }

.dir-band__index {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cap);
  background: #FFFFFF;
  border: 1.5px solid var(--cap);
  transition: background var(--t-base) ease, color var(--t-base) ease;
}
.dir-band__name {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cap);
  margin: 8px 0 0;
}
.dir-band__text {
  margin: 9px 0 0;
  color: var(--gray-4);
  font-size: 0.97rem;
  line-height: 1.62;
  max-width: 50ch;
}

/* ---- 22.4 Cierre de confianza: banda grafito compacta ---- */
.dir-close {
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, #15151F 0%, #1B1B29 58%, #131320 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 46px rgba(12, 8, 30, 0.18);
}
@media (min-width: 768px) {
  .dir-close { padding: 30px 40px; }
}
.dir-close__text {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.5;
  max-width: 76ch;
}

/* ---- 22.5 Movimiento: sólo escritorio con puntero fino ---- */
@media (min-width: 1024px) and (hover: hover) {
  .dir-band:hover { background: var(--cap-soft); }
  .dir-band:hover .dir-band__index {
    background: var(--cap);
    color: #FFFFFF;
  }
}

/* ---- 22.6 Responsive ---- */
@media (max-width: 1023px) {
  .dir-intro { margin-bottom: 34px; }
  .dir-composition { margin-bottom: 28px; }
  /* Sin dos columnas, las franjas alinean su eje con el margen de la zona de dirección */
  .dir-band { padding-left: 0; padding-right: 0; }
  .dir-band::before { left: 16px; }
}
@media (max-width: 767px) {
  .dir-lead { padding: 30px 22px 32px; }
  .dir-lead::before { top: 30px; height: 68px; }
  .dir-stack { padding: 4px 22px 20px; }
  .dir-band {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 0;
  }
  .dir-band::before { left: 14px; }
  .dir-band:first-child::before { top: 35px; }
  .dir-band:last-child::before  { height: 35px; }
  .dir-band__index { width: 30px; height: 30px; font-size: 0.72rem; }
  .dir-band__name { margin-top: 6px; }
  .dir-close { padding: 24px 22px; }
}
@media (max-width: 390px) {
  .dir-intro__lead { font-size: 1rem; }
  .dir-lead__body p { font-size: 0.97rem; }
  .dir-band__text { font-size: 0.95rem; }
}

/* ---- 22.7 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .dir-band,
  .dir-band__index { transition: none; }
}


/* ============================================
   23. CIERRE DE CONVERSIÓN (#cta-final)
   Grafito oscuro con iluminación morada contenida: la conversión ocupa
   la columna izquierda y María acompaña desde un panel vertical.
   ============================================ */
.cta-section {
  position: relative;
  padding: 84px 0 88px;
  background:
    radial-gradient(ellipse 70% 55% at 18% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(ellipse 55% 50% at 96% 108%, rgba(16, 185, 129, 0.08), transparent 62%),
    linear-gradient(180deg, #0A0A14 0%, #0D0B1C 55%, #08080F 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.16);
  overflow: hidden;
}

/* Isotipo ambiental: presencia de marca, no elemento gráfico nuevo */
.cta-watermark {
  position: absolute;
  top: 50%;
  left: -70px;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ---- 23.1 Rejilla: orden móvil en el DOM, dos columnas en escritorio ---- */
.cta-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 358px);
    grid-template-rows: auto auto auto;
    column-gap: 56px;
    row-gap: 26px;
    align-items: start;
  }
  .cta-copy       { grid-column: 1; grid-row: 1; }
  .cta-actions    { grid-column: 1; grid-row: 2; }
  .cta-guarantees { grid-column: 1; grid-row: 3; }
  .cta-maria      { grid-column: 2; grid-row: 1 / 4; align-self: stretch; }
}

/* ---- 23.2 Columna de conversión ---- */
.cta-title {
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0;
  max-width: 21ch;
}
.cta-lead {
  margin: 18px 0 0;
  color: var(--gray-3);
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 56ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-btn {
  font-size: 1rem;
  padding: 15px 28px;
}

/* Garantías en franja compacta: un solo renglón de confianza */
.cta-guarantees {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}
@media (min-width: 768px) {
  .cta-guarantees {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
.cta-guarantees li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #C8C8DE;
  font-size: 0.86rem;
  line-height: 1.45;
}
/* lucide sustituye <i data-lucide> por un <svg>: se cubren ambos estados */
.cta-guarantees [data-lucide],
.cta-guarantees li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green);
}

/* ---- 23.3 Panel vertical de María ---- */
.cta-maria {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(ellipse 90% 60% at 60% 22%, rgba(124, 58, 237, 0.26), transparent 62%),
    linear-gradient(180deg, #0C0C1A 0%, #070710 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Acento verde discreto en el borde superior del panel */
.cta-maria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.55), transparent);
  z-index: 3;
}

.cta-maria__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

/* Fundido inferior: el retrato entrega el espacio a la identificación */
.cta-maria__foot::before {
  content: '';
  position: absolute;
  inset: -110px 0 0;
  background: linear-gradient(to top, #06060C 34%, rgba(6, 6, 12, 0.72) 68%, transparent);
  pointer-events: none;
}

.cta-maria__status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background: rgba(6, 6, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.cta-maria__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 10px rgba(16, 185, 129, 0.6);
  animation: status-pulse 2s ease-in-out infinite;
}

.cta-maria__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 20px 20px;
}
.cta-maria__id {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B9B4D8;
}
.cta-maria__bubble {
  position: relative;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(16, 16, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid rgba(16, 185, 129, 0.6);
  color: #E9E7F5;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- 23.4 Responsive ---- */
@media (max-width: 1023px) {
  .cta-section { padding: 68px 0 72px; }
  .cta-watermark { width: 240px; height: 240px; left: -90px; }
  .cta-maria { min-height: 380px; }
}

@media (max-width: 767px) {
  .cta-section { padding: 56px 0 60px; }
  .cta-watermark { display: none; }
  .cta-grid { gap: 22px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .cta-btn { width: 100%; }
  .cta-guarantees { flex-direction: column; gap: 12px; padding: 16px 18px; }
  /* Altura controlada: María acompaña sin desplazar la conversión */
  .cta-maria { min-height: 0; height: 330px; }
  .cta-maria__foot { padding: 0 16px 16px; }
}

@media (max-width: 390px) {
  /* El contenedor interno ya aporta el margen lateral */
  .cta-section { padding-left: 0; padding-right: 0; }
  .cta-lead { font-size: 0.98rem; }
  .cta-maria { height: 310px; }
  .cta-maria__bubble { font-size: 0.86rem; }
}

/* ---- 23.5 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cta-maria__dot { animation: none; }
}


/* ============================================
   24. PREGUNTAS FRECUENTES (#faq)
   ============================================ */

.faq-section {
  position: relative;
  padding: 96px 0 104px;
  /* Lavanda extremadamente tenue: separa la sección sin competir
     con el blanco del panel del acordeón. */
  background-color: #F8F7FD;
  background-image: linear-gradient(180deg, #FAF9FE 0%, #F3F1FB 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

/* ---- 24.1 Rejilla: 35% de contexto, 65% de acordeón ---- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    gap: 72px;
    align-items: start;
  }

  /* Acompaña el recorrido del acordeón. `align-self: start` evita que la
     columna se estire, que es lo que rompería la rejilla. */
  .faq-intro {
    position: sticky;
    top: 112px;
  }
}

/* ---- 24.2 Columna de contexto ---- */
.faq-section .section-label {
  color: var(--purple);
}

.faq-title {
  margin: 14px 0 0;
  color: #14142B;
  font-size: clamp(1.85rem, 2.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.faq-lead {
  margin: 18px 0 0;
  color: #4A4A6A;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 46ch;
}

/* Cuatro temas: orientan sin convertirse en navegación ni en CTA */
.faq-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.faq-topics li {
  padding: 9px 0 9px 13px;
  border-left: 2px solid rgba(124, 58, 237, 0.28);
  color: #3C3C5A;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- 24.3 Panel único: las ocho preguntas en una sola pieza ---- */
.faq-panel {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: #FFFFFF;
  box-shadow: 0 26px 60px -34px rgba(31, 20, 72, 0.30);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(124, 58, 237, 0.10);
}

/* El <h3> sólo aporta jerarquía semántica; el botón es la fila completa */
.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 26px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) ease;
}

.faq-num {
  color: var(--purple);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.faq-text {
  color: #14142B;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-question:hover {
  background: rgba(124, 58, 237, 0.035);
}

.faq-question:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: -3px;
}

/* ---- 24.4 Control circular: «+» que se convierte en «−» ---- */
.faq-ctrl {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.30);
  background: rgba(124, 58, 237, 0.05);
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}

.faq-ctrl::before,
.faq-ctrl::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 1px;
  background: var(--purple);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out), background var(--t-fast) ease;
}

/* La barra vertical desaparece al abrir: el signo, no sólo el color,
   comunica el estado. */
.faq-ctrl::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-ctrl {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(16, 185, 129, 0.10);
}

.faq-item.is-open .faq-ctrl::before,
.faq-item.is-open .faq-ctrl::after {
  background: #047857;
}

.faq-item.is-open .faq-ctrl::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* ---- 24.5 Estado abierto ---- */
.faq-item.is-open .faq-question,
.faq-item.is-open .faq-question:hover {
  background: rgba(124, 58, 237, 0.045);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(124, 58, 237, 0.045);
  transition: max-height 0.38s var(--ease-out);
}

/* El padding vive en el contenedor interno para que la altura medida por
   scrollHeight coincida con la altura real y no haya saltos. */
.faq-answer__inner {
  padding: 2px 26px 24px 26px;
}

.faq-answer__inner > * {
  border-left: 2px solid var(--purple);
  padding-left: 16px;
}

.faq-answer p {
  color: #3C3C5A;
  font-size: 0.9688rem;
  line-height: 1.7;
}

/* ---- 24.6 Responsive ---- */
@media (max-width: 1023px) {
  .faq-section { padding: 72px 0 80px; }
  .faq-intro   { position: static; }
  .faq-lead    { max-width: none; }
}

@media (max-width: 640px) {
  .faq-section       { padding: 60px 0 68px; }
  .faq-grid          { gap: 30px; }
  .faq-title         { font-size: 1.72rem; }
  .faq-topics        { gap: 8px 10px; margin-top: 24px; }
  .faq-panel         { border-radius: 16px; }
  .faq-question      { gap: 12px; padding: 18px 16px; min-height: 60px; }
  .faq-text          { font-size: 1rem; }
  .faq-ctrl          { width: 38px; height: 38px; }
  .faq-answer__inner { padding: 2px 16px 20px 16px; }
  .faq-answer__inner > * { padding-left: 13px; }
}

/* ---- 24.7 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .faq-question,
  .faq-answer,
  .faq-ctrl,
  .faq-ctrl::before,
  .faq-ctrl::after {
    transition: none;
  }
}


/* ============================================
   25. FOOTER (#contacto)
   ============================================ */

.site-footer {
  position: relative;
  padding: 64px 0 28px;
  background-color: var(--black);
  color: var(--gray-3);
}

/* Costura con el FAQ: el corte lavanda → negro se lee como intencional.
   Mismo recurso de degradado que ya usa el sitio. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  opacity: 0.55;
}

/* ---- 25.1 Franja 1: identidad y navegación ---- */
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: 64px;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-wordmark {
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-desc {
  margin: 16px 0 0;
  max-width: 38ch;
  color: var(--gray-3);
  font-size: 0.9063rem;
  line-height: 1.65;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.footer-col__title {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9063rem;
}

.footer-list li + li {
  margin-top: 10px;
}

.footer-list a {
  color: var(--gray-3);
  text-decoration: none;
  /* Subrayado en hover/focus: el estado no depende sólo del color. */
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.footer-list a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.footer-list a:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Las unidades no son navegables todavía */
.footer-list--plain li {
  color: var(--gray-3);
}

/* ---- 25.2 Franja 2: contacto ---- */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-contact__label {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-mail {
  color: var(--white);
  font-size: 1.0313rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.5);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.footer-mail:hover {
  color: var(--purple-light);
  border-bottom-color: var(--purple-light);
}

.footer-mail:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-domain {
  margin-left: auto;
  color: var(--gray-3);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* ---- 25.3 Franja 3: cierre legal ---- */
.footer-legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-legal p {
  margin: 0;
  color: var(--gray-3);
  font-size: 0.8125rem;
}

/* ---- 25.4 Responsive ---- */
@media (max-width: 640px) {
  .site-footer      { padding: 44px 0 24px; }
  .footer-top       { gap: 26px; }
  .footer-desc      { margin-top: 14px; max-width: none; }

  /* Dos columnas en lugar de tres: evita columnas estrechas y recorta altura */
  .footer-cols      { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  /* Área táctil de 44 px sin inflar la separación entre renglones */
  .footer-list li + li { margin-top: 0; }
  .footer-list a    { display: inline-block; padding: 11px 0; }
  .footer-list--plain li { padding: 11px 0; }

  .footer-contact   { margin-top: 26px; padding-top: 22px; gap: 4px 16px; }
  .footer-mail      { display: inline-block; padding: 11px 0; font-size: 1rem; word-break: break-word; }
  .footer-domain    { margin-left: 0; width: 100%; }
  .footer-legal     { margin-top: 20px; padding-top: 16px; }
}

/* ---- 25.5 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .footer-list a,
  .footer-mail {
    transition: none;
  }
}


/* ============================================
   26. ACCESIBILIDAD — enlace de salto
   ============================================ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

/* Sin transición: el enlace de salto debe aparecer de inmediato al recibir
   el foco, no depender de que una animación llegue a ejecutarse. */
.skip-link:focus {
  top: 12px;
}

.skip-link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}


/* ============================================
   27. OVERLAY DE MARÍA (vista previa)
   ============================================ */

/* Bloqueo del scroll del documento mientras el overlay está abierto */
body.maria-scroll-locked {
  overflow: hidden;
}

.maria-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maria-overlay[hidden] {
  display: none;
}

.maria-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 12, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.maria-overlay__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 40px 40px 36px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(124, 58, 237, 0.16), transparent 65%),
    linear-gradient(180deg, #14131F 0%, #0B0B14 100%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}

/* Entrada discreta. Se resuelve con una animación y no con una transición
   entre estados: si la animación no llega a ejecutarse, el panel queda
   visible en su posición final en lugar de quedarse en opacidad 0. */
@keyframes maria-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.maria-overlay__panel {
  animation: maria-panel-in 0.28s var(--ease-out) both;
}

/* ---- 27.1 Control de cierre ---- */
.maria-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}

.maria-overlay__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
}

.maria-overlay__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.maria-overlay__close span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

.maria-overlay__close:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.32);
}

.maria-overlay__close:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

/* ---- 27.2 Contenido ---- */
.maria-overlay__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.14);
  color: var(--purple-light);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maria-overlay__title {
  margin: 18px 0 0;
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.maria-overlay__desc {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--gray-3);
  font-size: 1rem;
  line-height: 1.65;
}

.maria-overlay__thread {
  margin: 26px 0 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.maria-msg {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.maria-msg + .maria-msg {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Lo que diría María */
.maria-msg--maria {
  color: var(--white);
}

/* Transcripción del visitante (modo live): se distingue de María sin color */
.maria-msg--visitante {
  color: var(--gray-2);
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

/* Aclaraciones de la vista previa: se distinguen del mensaje del agente */
.maria-msg--nota {
  color: var(--gray-3);
  padding-left: 14px;
  border-left: 2px solid var(--purple);
}

.maria-msg--nota + .maria-msg--nota {
  padding-left: 14px;
}

.maria-overlay__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 26px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast) ease, box-shadow var(--t-base) ease;
}

.maria-overlay__action:hover {
  background: linear-gradient(135deg, #8B5CF6, var(--purple));
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.maria-overlay__action:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

/* ---- 27.3 Responsive: pantalla completa en móvil ---- */
@media (max-width: 640px) {
  .maria-overlay {
    padding: 0;
    /* `stretch` evita que el panel se centre y se desborde por abajo
       cuando 100dvh y la altura del contenedor no coinciden. */
    align-items: stretch;
  }

  .maria-overlay__panel {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 68px 20px 28px;
    border: none;
    border-radius: 0;
  }

  .maria-overlay__close {
    top: 14px;
    right: 14px;
  }

  .maria-overlay__title { font-size: 1.6rem; }
  .maria-overlay__desc  { max-width: none; font-size: 0.9688rem; }
  .maria-overlay__thread { padding: 16px; }
  .maria-overlay__action { width: 100%; }
}

/* ---- 27.4 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .maria-overlay__panel {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .maria-overlay__close,
  .maria-overlay__action {
    transition: none;
  }
}


/* ============================================
   28. MARÍA — estados, ruta de texto y controles
   Complementa el bloque 27. No altera la composición aprobada del panel:
   los elementos nuevos permanecen ocultos salvo en los estados que los
   requieren, y el renglón de estado se colapsa cuando está vacío.
   ============================================ */

/* ---- 28.1 Renglón de estado ---- */
.maria-overlay__status {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--purple-light);
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* En vista previa queda vacío a propósito: el panel aprobado no cambia. */
.maria-overlay__status:empty {
  display: none;
}

/* El rótulo del eyebrow ya distingue cada estado por texto; el color sólo
   refuerza, nunca comunica por sí solo. */
.maria-overlay[data-state="error"] .maria-overlay__eyebrow {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #FCA5A5;
}

.maria-overlay[data-state="ended"] .maria-overlay__eyebrow,
.maria-overlay[data-state="transfer"] .maria-overlay__eyebrow {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
}

.maria-overlay[data-state="error"] .maria-overlay__status {
  border-left-color: #FCA5A5;
}

/* ---- 28.2 Ruta de texto ---- */
.maria-overlay__text {
  margin-top: 22px;
}

.maria-overlay__text[hidden] {
  display: none;
}

.maria-overlay__label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.maria-overlay__field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.maria-overlay__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.maria-overlay__input::placeholder {
  color: var(--gray-3);
}

.maria-overlay__input:focus-visible,
.maria-overlay__send:focus-visible,
.maria-overlay__retry:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

.maria-overlay__send {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

/* Deshabilitado se comunica por el atributo y por la pista, no sólo por color */
.maria-overlay__input:disabled,
.maria-overlay__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.maria-overlay__hint {
  margin: 10px 0 0;
  color: var(--gray-3);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- 28.3 Fila de acciones ---- */
.maria-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* El botón de correo ya trae su propio margen superior del bloque 27 */
.maria-overlay__actions .maria-overlay__action {
  margin-top: 0;
}

.maria-overlay__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}

.maria-overlay__retry[hidden] {
  display: none;
}

.maria-overlay__retry:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---- 28.4 Responsive ---- */
@media (max-width: 640px) {
  .maria-overlay__actions { flex-direction: column; align-items: stretch; }
  .maria-overlay__retry   { width: 100%; }
  .maria-overlay__field   { flex-direction: column; }
  .maria-overlay__send    { width: 100%; }
}

/* ---- 28.5 Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .maria-overlay__retry {
    transition: none;
  }
}
