/* Updated: 2026-02-03 */
/* ERP Ecosystem section (Ban3 layout) */
.erp-ecosystem { 
  background: #FFFFFF; 
  padding: 56px 0 48px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -35px;

}
.erp-ecosystem .section-title { margin-bottom: 8px; }
.erp-ecosystem .section-text { color: #555; }

/* Central illustration */
.erp-visual { display: flex; justify-content: center; align-items: center; margin: 24px auto 32px; }
.erp-visual > img { width: 100%; max-width: 560px; height: auto; background: #ffffff00; }
.erp-visual .browser-frame { max-width: 720px; }

/* Module grid */
.module-grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; width: min(920px, 90%); margin: 0 auto; padding: 0 20px; }
@media (max-width: 900px){ .module-grid { grid-template-columns: 1fr; } }

/* Accordion card */
.module-card { background: #fff; border: 1px solid #E6E8EB; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); overflow: hidden; }
.module-card > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; }
.module-card > summary::-webkit-details-marker { display: none; }
.module-card .module-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #EAF4FF; color: #015CBF; font-size: 20px; }
.module-card.module-green .module-icon { background: rgba(201, 162, 75, 0.16); color: #C9A24B; }
.module-card.module-blue  .module-icon { background: #EAF0FF; color: #0B5CD0; }
.module-card .module-title { font-weight: 700; color: #111; }
.module-card .module-subtitle { font-size: 0.95rem; color: #6B7280; margin-top: 2px; }
.module-card .module-caret { color: #6B7280; transition: transform .25s ease; }
.module-card[open] .module-caret { transform: rotate(180deg); }

/* Content */
/* Smooth collapse: start closed, animate max-height/opacity/padding */
.module-content { 
  max-height: 0; 
  overflow: hidden; 
  padding: 0 22px; 
  border-top: 0; 
  display: grid; 
  gap: 10px; 
  opacity: 0; 
  transition: max-height .35s ease, opacity .25s ease, padding .25s ease, border-top .25s ease; 
}
.module-card[open] .module-content { 
  padding: 20px 22px 22px; 
  border-top: 1px solid #EEF1F4; 
  max-height: 900px; 
  opacity: 1; 
}
.module-label { font-weight: 600; margin-top: 12px; color: #222; }
.module-label.problem { color: #D32F2F; }
.module-content p { margin: 2px 0 10px; color: #374151; line-height: 1.55; }

/* Highlight note */
.module-highlight { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #EEF5FF; color: #0B5CD0; font-weight: 600; }
.module-card.module-green .module-highlight { background: rgba(201, 162, 75, 0.12); color: #9a7a2e; }

/* Focus/hover affordances */
.module-card > summary:hover { background: rgba(2, 17, 79, 0.03); }
.module-card > summary:focus-visible { outline: 3px solid #4DA3FF; outline-offset: 3px; border-radius: 12px; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .module-content { transition: none; }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .erp-ecosystem .section-title,
  .erp-ecosystem .section-text {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 480px) {
  .erp-ecosystem .section-title,
  .erp-ecosystem .section-text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
/* Module content images */
.module-image-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 16px auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Module CTA button */
.module-cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0B5CD0 0%, #015CBF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(11, 92, 208, 0.25);
}

.module-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 92, 208, 0.35);
}

.module-cta-btn:active {
  transform: translateY(0);
}

.module-card.module-green .module-cta-btn {
  background: linear-gradient(135deg, #015CBF 0%, #0a6fe0 100%);
  box-shadow: 0 4px 12px rgba(1, 92, 191, 0.25);
}

.module-card.module-green .module-cta-btn:hover {
  box-shadow: 0 6px 18px rgba(1, 92, 191, 0.35);
}
/* Dark theme overrides - Allowing inheritance */
body.dark-theme .module-card h1,
body.dark-theme .module-card h2,
body.dark-theme .module-card h3,
body.dark-theme .module-card p,
body.dark-theme .module-content p {
  color: inherit;
}
/* ===== Rediseño tech: acordeón de módulos (glass + grid oscuro) ===== */
.erp-ecosystem {
  background:
    radial-gradient(760px 380px at 80% 0, rgba(1, 92, 191, 0.30), transparent 60%),
    linear-gradient(160deg, #0a1b3d 0%, #07122a 100%) !important;
  position: relative;
}
.erp-ecosystem::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(100, 181, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 181, 246, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 12%, #000, transparent 78%);
  pointer-events: none;
}
.erp-ecosystem > * { position: relative; z-index: 1; }
.erp-ecosystem .section-title { color: #fff !important; }
.erp-ecosystem .section-text { color: #c3d2ec !important; }
.module-card {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: none !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.module-card:hover {
  border-color: rgba(100, 181, 246, 0.50) !important;
  box-shadow: 0 22px 52px -20px rgba(0, 0, 0, 0.6) !important;
}
.module-card .module-title { color: #fff !important; }
.module-card .module-subtitle { color: #9fb3d6 !important; }
.module-card .module-caret { color: #9fb3d6 !important; }
.module-card > summary:hover { background: rgba(255, 255, 255, 0.04) !important; }
.module-content p { color: #c3d2ec !important; }
.module-label { color: #e7eef9 !important; }
.module-label.problem { color: #FF7A7A !important; }
.module-card[open] .module-content { border-top-color: rgba(255, 255, 255, 0.10) !important; }
.module-highlight {
  background: rgba(1, 92, 191, 0.18) !important; color: #cfe0f6 !important;
  border: 1px solid rgba(100, 181, 246, 0.25);
}
.module-card.module-green .module-highlight {
  background: rgba(201, 162, 75, 0.14) !important; color: #e8cfa6 !important;
  border: 1px solid rgba(201, 162, 75, 0.3);
}
.module-image-wrapper { box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65) !important; border: 1px solid rgba(255, 255, 255, 0.08); }
.module-card .module-icon { background: rgba(100, 181, 246, 0.16) !important; color: #64B5F6 !important; }
.module-card.module-green .module-icon { background: rgba(201, 162, 75, 0.18) !important; color: #C9A24B !important; }
.module-card.module-green .module-cta-btn {
  background: linear-gradient(135deg, #015CBF 0%, #0a6fe0 100%) !important;
  box-shadow: 0 4px 12px rgba(1, 92, 191, 0.3) !important;
}
