/* ===== HERO ===== */
.auto-hero {
  position: relative;
  background-image: url('../img/automatizacion/Background seccion 1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.auto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 0;
}

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

.auto-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.85rem;
}

.auto-hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
  font-weight: 700 !important;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.auto-hero-subtitle {
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.75;
  color: #e7e7e7;
  max-width: 560px;
  margin-bottom: 0;
}

.auto-terminal .terminal-header {
  justify-content: space-between;
}

.auto-terminal-title {
  position: static;
  transform: none;
  left: auto;
  font-size: 0.82rem;
  color: #d8d8d8;
  letter-spacing: 0.4px;
}

.auto-terminal-body {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}

.auto-terminal-body .terminal-comment {
  color: #9aa3ad;
}

@media (min-width: 992px) {
  .auto-terminal-body {
    font-size: 0.82rem;
  }
}

/* ===== SHARED TITLES ===== */
.section-title-dark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 700;
  color: #0f2e60;
  line-height: 1.25;
}

/* ===== PLAN CARDS ===== */
.auto-plan {
  background-color: #ececec;
}

.auto-plan-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 46, 96, 0.1);
  padding: 3.2rem 1.4rem 1.6rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(15, 46, 96, 0.06);
}

.auto-plan-icon-wrap {
  position: absolute;
  top: -2.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: #0f2e60;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 46, 96, 0.25);
}

.auto-plan-icon {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
}

.auto-plan-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #0f2e60;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.auto-plan-desc {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #4a607a;
  margin-bottom: 0;
  line-height: 1.55;
}

.auto-plan-cta {
  display: flex;
  justify-content: center;
}

.auto-plan-cta a:has(> .btn-see) {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .auto-plan-cta a:has(> .btn-see) {
    width: 100%;
    max-width: 25rem;
  }
}

/* ===== IDEAS REALES ===== */
.auto-solutions {
  background: radial-gradient(
    circle at 20% 20%,
    #0b4a72 0%,
    #062a45 45%,
    #031426 100%
  );
  position: relative;
  overflow: hidden;
}

.auto-solutions::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(95, 175, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(241, 136, 33, 0.08) 0%, transparent 30%);
  pointer-events: none;
}

.auto-solutions .container {
  position: relative;
  z-index: 1;
}

.auto-solutions-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auto-solutions-intro {
  color: #e8eef5;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Courier New', Courier, monospace;
}

.auto-solution-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.auto-solution-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .auto-solution-row {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }
}

.auto-solution-visual {
  flex: 0 0 auto;
  width: min(100%, 280px);
  padding: 1rem;
  background: rgba(95, 175, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.auto-solution-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.auto-solution-copy {
  flex: 1;
  text-align: center;
}

@media (min-width: 992px) {
  .auto-solution-copy {
    text-align: left;
  }
}

.auto-solution-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.auto-solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auto-solution-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #f1f6ff;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.65;
  margin-bottom: 0.65rem;
  font-family: 'Courier New', Courier, monospace;
}

.auto-solution-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #f18821;
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ===== METODOLOGÍA ===== */
.auto-method {
  background-color: #dadada;
}

.auto-method-item {
  padding: 0 0.5rem;
}

.auto-method-icon {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.auto-method-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #0f2e60;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.auto-method-desc {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #5a7390;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.auto-method-tagline {
  color: #f18821;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  line-height: 1.45;
  margin-bottom: 0;
}

/* ===== LO QUE CAMBIA ===== */
.auto-integrate {
  position: relative;
  background-image: url('../img/automatizacion/Background seccion 4.png');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  min-height: 76vh;
}

.auto-integrate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 15, 29, 0.15) 0%,
    rgba(1, 15, 29, 0.55) 45%,
    rgba(1, 15, 29, 0.88) 100%
  );
}

.auto-integrate .container {
  position: relative;
  z-index: 1;
}

.auto-integrate-title {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.auto-integrate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auto-integrate-content {
  max-width: 620px;
  margin-left: auto;
}

.auto-integrate-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.auto-integrate-list li i {
  font-size: 1.35rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.integrate-main {
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.integrate-sub {
  color: #d5dee8;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem) !important;
  font-weight: 500 !important;
  line-height: 1.35;
  margin-bottom: 0;
}

/* ===== CLIENTES ===== */
.auto-clients {
  background-color: #ececec;
}

.auto-clients-intro {
  color: #0f2e60;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* ===== CTA DIAGNÓSTICO ===== */
.auto-difference {
  position: relative;
  background-image: url('../img/automatizacion/Seccion 5.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 78vh;
}

.auto-difference::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 17, 29, 0.92) 0%,
    rgba(7, 17, 29, 0.72) 42%,
    rgba(7, 17, 29, 0.2) 100%
  );
}

.auto-difference .container {
  position: relative;
  z-index: 1;
}

.auto-difference-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0;
}

.auto-difference-content {
  max-width: 640px;
}

.auto-difference-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auto-difference-list li {
  color: #fff;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
  font-weight: 600 !important;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.auto-difference-list li i {
  color: #fff;
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .auto-integrate,
  .auto-difference {
    min-height: auto;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .auto-integrate::before,
  .auto-difference::before {
    background: rgba(4, 17, 32, 0.82);
  }

  .auto-integrate-content,
  .auto-difference-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .auto-integrate-list,
  .auto-difference-list {
    display: inline-block;
    text-align: left;
  }

  .auto-difference-content .btn-see {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .auto-plan-card {
    padding-top: 3rem;
  }

  .auto-plan-icon-wrap {
    width: 3.8rem;
    height: 3.8rem;
    top: -1.9rem;
  }

  .auto-plan-icon {
    width: 2rem;
    height: 2rem;
  }
}
