/* ==========================================================================
   XENTRO PAGE STYLES
   ========================================================================== */

/* ===== HERO SECTION ===== */
.xentro-hero {
  position: relative;
  background-image: url("../img/erp/Banner_01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.xentro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 12, 28, 0.42) 0%, rgba(3, 12, 28, 0.12) 42%, rgba(3, 12, 28, 0.08) 100%),
    linear-gradient(90deg, rgba(3, 12, 28, 0.72) 0%, rgba(3, 12, 28, 0.5) 43%, rgba(3, 12, 28, 0.08) 100%);
}

.xentro-hero .container {
  position: relative;
  z-index: 1;
}

.xentro-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: #fff;
}

.xentro-hero-subtitle {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.95rem, 1.25vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  color: #eaf0fb;
  max-width: 760px;
}

.xentro-hero .btn-see {
  min-width: 360px;
  font-size: 1rem;
  padding: 12px 28px;
}

@media (max-width: 991px) {
  .xentro-hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 130px;
  }

  .xentro-hero .btn-see {
    min-width: 0;
    width: 100%;
  }
}

/* ===== PROBLEM SECTION ===== */
.xentro-problem {
  background-color: #f7f8f9;
}

.xentro-problem .section-title-dark {
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1.15;
}

.xentro-problem-subtitle {
  font-family: "Space Grotesk", sans-serif;
  color: #4f5f79;
  font-size: clamp(1rem, 1.5vw, 1.35rem) !important;
  font-weight: 500 !important;
  line-height: 1.45;
  max-width: 720px;
  margin: 0.75rem auto 0;
}

.xentro-icon-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.xentro-icon-label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #0f2e60;
  font-size: 1.25rem !important;
  line-height: 1.25;
  margin-bottom: 0;
}

.xentro-problem .btn-see {
  min-width: 420px;
  font-size: 0.95rem;
  padding: 12px 24px;
}

@media (max-width: 991px) {
  .xentro-problem .btn-see {
    min-width: 0;
    width: 100%;
  }

  .xentro-icon-img {
    width: 64px;
    height: 64px;
  }

  .xentro-icon-label {
    font-size: 1rem !important;
  }
}

/* ===== FLOW SECTION ===== */
.xentro-flow {
  position: relative;
  background-image: url("../img/crm/Background seccion 3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.xentro-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 16, 30, 0.15) 0%,
    rgba(3, 16, 30, 0.55) 100%
  );
}

.xentro-flow .container {
  position: relative;
  z-index: 1;
}

.xentro-title-light {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.2;
}

.xentro-process-flow {
  max-width: 980px;
  margin: 0 auto;
}

.xentro-process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 2%;
}

.xentro-process-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background-color: #f18821;
  z-index: 0;
}

.xentro-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  z-index: 1;
  gap: 0.35rem;
}

.xentro-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  z-index: 1;
}

.xentro-node-target {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid #f18821;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.xentro-node-target::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(241, 136, 33, 0.85);
  border-radius: 50%;
}

.xentro-node-target::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #f18821;
}

.xentro-node-pointer {
  width: 0;
  height: 0;
  margin-top: 0.45rem;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #00a3ff;
}

.xentro-process-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem) !important;
  font-weight: 700 !important;
  color: #fff;
  line-height: 1.25;
  text-align: center;
  padding-top: 0.15rem;
}

.xentro-flow .btn-see {
  min-width: 320px;
  font-size: 0.95rem;
  padding: 12px 24px;
}

.xentro-flow .col-12:has(a > .btn-see) {
  display: flex;
  justify-content: center;
}

.xentro-flow a:has(> .btn-see) {
  display: block;
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .xentro-flow {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .xentro-process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    padding: 0;
    max-width: 360px;
    margin: 0 auto;
  }

  .xentro-process-steps::before {
    display: none;
  }

  .xentro-process-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .xentro-node {
    flex-shrink: 0;
  }

  .xentro-node-pointer {
    display: none;
  }

  .xentro-process-label {
    flex: 1;
    text-align: left;
    padding-top: 0;
    font-size: 1rem !important;
  }

  .xentro-flow .btn-see {
    min-width: 0;
    width: 100%;
  }
}

/* ===== FEATURES SECTION ===== */
.xentro-features {
  background-color: #f3f4f6;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.xentro-features-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #0f2e60;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  text-align: center;
}

.xentro-features-subtitle {
  font-family: "Space Grotesk", sans-serif;
  color: #4f5f79;
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
  font-weight: 500 !important;
  line-height: 1.45;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.xentro-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
  height: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.feature-icon-xentro-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-top: 0.15rem;
}

.feature-title-xentro {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #0f2e60;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.feature-desc-xentro {
  font-family: "Space Grotesk", sans-serif;
  color: #4f5f79;
  font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
  font-weight: 500 !important;
  line-height: 1.45;
  margin-bottom: 0;
}

.xentro-feature-note {
  border-top: 5px solid #f18821;
  border-left: none;
  padding: 1.25rem 0 0;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.xentro-feature-note p {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #f18821;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .xentro-features {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .xentro-feature-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-title-xentro,
  .feature-desc-xentro {
    text-align: center;
  }

  .feature-icon-xentro-img {
    width: 56px;
    height: 56px;
    margin-top: 0;
  }
}

/* ===== MODULES SECTION ===== */
.xentro-modules {
  background-color: #fdf4ea;
  background-image: linear-gradient(
    180deg,
    #fffaf6 0%,
    #fdf0e6 42%,
    #fff8f2 100%
  );
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.xentro-modules-title {
  margin-bottom: 0.35rem;
}

.xentro-modules-subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0;
}

.xentro-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding-bottom: 0.75rem;
}

.xentro-tab {
  background-color: #e4e6ea;
  border: none;
  padding: 0.55rem 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #3d4a5c;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  letter-spacing: 0.02em;
}

.xentro-tab.active {
  position: relative;
  background-color: #0f2e60;
  color: #fff;
  z-index: 2;
}

.xentro-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #f18821;
}

.xentro-module-card {
  background: #fff;
  border: 1px solid rgba(241, 136, 33, 0.55);
  border-radius: 8px;
  padding: 2rem 2.25rem 2rem;
  box-shadow: 0 16px 32px rgba(15, 46, 96, 0.1);
  margin-top: 0.35rem;
}

.xentro-module-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.module-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.module-icon-wrapper {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.module-icon-wrapper img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.module-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #0f2e60;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  margin-bottom: 0.65rem;
  text-align: center;
  width: 100%;
}

.module-desc {
  font-family: "Space Grotesk", sans-serif;
  color: #0f2e60;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem) !important;
  font-weight: 500 !important;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
}

.xentro-module-cta {
  min-width: min(100%, 520px);
  font-size: 0.88rem;
  padding: 12px 22px;
  box-shadow: 0 10px 22px rgba(27, 54, 114, 0.22);
}

.xentro-module-card > .text-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.xentro-module-card a:has(> .xentro-module-cta) {
  display: block;
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .xentro-modules {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .xentro-module-card-inner {
    flex-direction: column;
    align-items: center;
    max-width: none;
  }

  .module-desc {
    max-width: none;
  }

  .xentro-tab {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .xentro-module-cta {
    width: 100%;
    min-width: 0;
    font-size: 0.8rem;
  }
}

/* ===== CTA SECTION ===== */
.xentro-cta {
  position: relative;
  min-height: 72vh;
  background-image: url("../img/erp/Banner_02.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.xentro-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(8, 20, 34, 0.55) 0%,
      rgba(8, 20, 34, 0.12) 55%,
      rgba(8, 20, 34, 0.05) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 20, 34, 0.92) 0%,
      rgba(8, 20, 34, 0.72) 38%,
      rgba(8, 20, 34, 0.28) 62%,
      rgba(8, 20, 34, 0.05) 100%
    );
}

.xentro-cta .container {
  position: relative;
  z-index: 1;
}

.xentro-cta .min-vh-cta {
  min-height: 60vh;
}

.xentro-cta-content {
  max-width: 720px;
}

.xentro-cta-title {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.xentro-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.xentro-cta-list li {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.xentro-cta-list li i {
  flex-shrink: 0;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  margin-top: 0.15rem;
}

.xentro-cta .btn-see {
  min-width: 320px;
  font-size: 0.95rem;
  padding: 12px 24px;
}

.xentro-cta-note {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #f1f4fb;
  letter-spacing: 0.7px;
  margin-top: 0.95rem;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .xentro-cta {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-position: center;
  }

  .xentro-cta::before {
    background: rgba(8, 20, 34, 0.82);
  }

  .xentro-cta .min-vh-cta {
    min-height: 0;
  }

  .xentro-cta .btn-see {
    min-width: 0;
    width: 100%;
  }
}

/* ===== CONTACT SECTION ===== */
.xentro-contact {
  background-color: #fdf4ea;
  background-image: linear-gradient(
    180deg,
    #fffaf6 0%,
    #fdf0e6 42%,
    #fff8f2 100%
  );
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.xentro-contact-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #f18821;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 1.1;
  text-align: left;
  margin-bottom: 1.25rem;
}

.xentro-contact-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 46, 96, 0.12);
  padding: 2.1rem 2rem 1.6rem;
}

.xentro-contact-card .form-control {
  border-radius: 7px;
  border: 1px solid #eceff3;
  background: #f3f3f3;
  color: #2f3a4c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.78rem 0.95rem;
  font-family: "Space Grotesk", sans-serif;
}

.xentro-contact-card .form-control:focus {
  background-color: #fff;
  border-color: #f18821;
  box-shadow: 0 0 0 0.25rem rgba(241, 136, 33, 0.25);
  color: #2f3a4c;
}

.xentro-contact-card .btn-contact-submit {
  background: linear-gradient(45deg, #f7c071, #4b63fc);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 20px rgba(27, 54, 114, 0.24);
  font-family: "Space Grotesk", sans-serif;
}

.xentro-contact-card .btn-contact-submit:hover {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-1px);
}

.xentro-contact-card .contact-note {
  color: #2f2f2f;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
}

@media (max-width: 991px) {
  .xentro-contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .xentro-contact-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
}
