/* ================================================================
   NUEVAS SECCIONES — Rediseño Estratégico Axyona
   Ecosistemas Operativos Autónomos
   ================================================================ */

/* ── HERO — padding-top para que el nav fijo no tape el contenido ── */
.hero {
  padding-top: calc(var(--nav-height, 68px) + 80px) !important;
}

/* chip de rotación más ancho para las palabras largas del hero */
.hero .rotate-chip {
  min-width: clamp(300px, 36vw, 540px);
  height: 1.25em;
  padding: 4px 20px 6px;
}

/* el wrap anima como un bloque único — word slide */
.hero .rotate-text-wrap {
  white-space: nowrap;
  font-weight: 800;
  font-family: var(--font-heading);
  will-change: transform, opacity;
}

/* ── ECOSYSTEM BADGE (Hero derecho) ─────────────────────────── */
.ecosystem-badge {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 320px;
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  animation: fadeSlideLeft 0.7s ease 0.6s forwards;
}

.eco-header { text-align: center; }

.eco-chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-pale);
  border: 1px solid var(--violet-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.eco-svg-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.eco-svg {
  width: 220px;
  height: 220px;
  display: block;
}

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

.eco-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.eco-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes eco-pulse-outer {
  0%,100% { opacity: 0.35; }
  50%      { opacity: 0.55; }
}
@keyframes eco-pulse-mid {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 0.80; }
}
@keyframes eco-pulse-inner {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.75; }
}

.eco-ring-outer { animation: eco-pulse-outer 4s ease-in-out infinite; }
.eco-ring-mid   { animation: eco-pulse-mid   3s ease-in-out infinite 0.5s; }
.eco-ring-inner { animation: eco-pulse-inner 2.5s ease-in-out infinite 1s; }

:root.dark .ecosystem-badge {
  background: var(--carbon-2);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
:root.dark .eco-pill { color: rgba(255,255,255,0.65); }


/* ── DIFERENCIAL GRID ────────────────────────────────────────── */
.diferencial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.diferencial-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.diferencial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.10), 0 0 0 1px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.2);
}

.dif-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--violet-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.dif-icon-wrap svg { width: 22px; height: 22px; }

.dif-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-pale);
  border: 1px solid var(--violet-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.dif-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.dif-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dif-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--violet);
  border-left: 2px solid var(--violet-light);
  padding-left: 12px;
  line-height: 1.6;
}

:root.dark .diferencial-card {
  background: var(--carbon-2);
  border-color: rgba(255,255,255,0.07);
}

@media (max-width: 900px) {
  .diferencial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .diferencial-grid { grid-template-columns: 1fr; }
}


/* ── PILARES SECTION ─────────────────────────────────────────── */
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pilares-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.pilar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pilar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.pilar-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.pilar-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.pilares-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pilares-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .pilares-grid { grid-template-columns: 1fr; gap: 40px; }
  .pilares-diagram { order: -1; }
  .pilares-svg { max-width: 320px; margin: 0 auto; }
}


/* ── MODELO 3 NIVELES ────────────────────────────────────────── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.level-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.10);
}

.level-card--featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.20), 0 8px 32px rgba(124,58,237,0.12);
}

.level-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.level-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--violet-pale);
  border: 2px solid var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--violet);
  margin-bottom: 14px;
}

.level-card--featured .level-number {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.level-tag {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
  display: block;
}

.level-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.level-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.level-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--violet-pale);
  border-radius: 10px;
  line-height: 1.5;
}

.level-result svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.level-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.level-format {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

:root.dark .level-card {
  background: var(--carbon-2);
  border-color: rgba(255,255,255,0.07);
}
:root.dark .level-card--featured {
  border-color: rgba(124,58,237,0.5);
}

@media (max-width: 900px) {
  .levels-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}


/* ── SECTOR GRID ─────────────────────────────────────────────── */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.sector-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.09);
  border-color: rgba(124,58,237,0.18);
}

.sector-icon {
  width: 44px;
  height: 44px;
  background: var(--violet-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sector-icon svg { width: 20px; height: 20px; }

.sector-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
  display: block;
}

.sector-problem {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  font-style: italic;
}

.sector-problem-label {
  font-style: normal;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
}

.sector-solution { margin-bottom: 16px; }

.sector-solution-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sector-solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sector-solution ul li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.sector-solution ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}

.sector-result {
  font-size: 13px;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--violet-pale);
  border-left: 3px solid var(--violet);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

:root.dark .sector-card {
  background: var(--carbon-2);
  border-color: rgba(255,255,255,0.07);
}
:root.dark .sector-problem { background: rgba(255,255,255,0.04); }

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


/* ── COMPARISON TABLE ────────────────────────────────────────── */
.comparison-wrap { margin-top: 48px; }

.comparison-table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.comparison-table thead tr { background: var(--gray-50); }

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-200);
}

.comp-col-axyona {
  background: var(--violet-pale) !important;
  color: var(--violet) !important;
}

.comp-axyona-badge {
  background: var(--violet);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--gray-50); }

.comparison-table td {
  padding: 16px 20px;
  vertical-align: middle;
  line-height: 1.5;
}

.comp-aspect { font-weight: 600; color: var(--text-primary); font-size: 13.5px; }
.comp-no    { color: var(--text-muted); }
.comp-partial { color: var(--gray-600); }
.comp-yes   { color: var(--violet); font-weight: 600; background: rgba(124,58,237,0.04); }
.comp-x     { color: #EF4444; font-weight: 700; margin-right: 4px; }
.comp-check { color: #10B981; font-weight: 700; margin-right: 4px; font-size: 16px; }
.comp-check-partial { color: #F59E0B; font-weight: 700; margin-right: 4px; }

.comparison-note {
  margin-top: 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

:root.dark .comparison-table-scroll { border-color: rgba(255,255,255,0.08); }
:root.dark .comparison-table thead tr { background: rgba(255,255,255,0.04); }
:root.dark .comparison-table th { border-color: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
:root.dark .comparison-table tbody tr { border-color: rgba(255,255,255,0.06); }
:root.dark .comparison-table tbody tr:hover { background: rgba(255,255,255,0.03); }
:root.dark .comp-col-axyona { background: rgba(124,58,237,0.12) !important; }
:root.dark .comp-aspect { color: rgba(255,255,255,0.9); }
:root.dark .comp-no { color: rgba(255,255,255,0.3); }
:root.dark .comp-yes { background: rgba(124,58,237,0.08); }


/* ── CTA FINAL SECTION ───────────────────────────────────────── */
.cta-final-section {
  position: relative;
  padding: 100px 0;
  background: var(--carbon);
  overflow: hidden;
}

.cta-final-aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.9);
  margin-bottom: 24px;
}

.cta-final-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.cta-final-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 120px;
}

.cta-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: #A78BFA;
}

.cta-step span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.4;
}

.cta-step-arrow {
  font-size: 18px;
  color: rgba(124,58,237,0.5);
  margin-top: -28px;
}

.cta-final-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-final-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .cta-final-section { padding: 72px 0; }
  .cta-step-arrow { display: none; }
  .cta-final-steps { gap: 16px; }
}
