/* ==========================================================================
   FLOWMIGO — services.css
   Estilos exclusivos de la página de Servicios (services.html).
   Requiere que styles.css esté cargado antes (variables, botones,
   header, footer, tipografía base, mobile-header, mobile-menu).
   ========================================================================== */

/* ==========================================================================
   HERO — "What we do, in plain terms."
   ========================================================================== */

.nav__link:hover {
  color: #f58c3d;
}

.svc-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 36px;
}

.svc-hero__top {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.svc-hero__title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  opacity: 0;
}

.svc-hero__text {
  width: 40%;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0;
}

.svc-hero__image {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
}

.svc-hero__image .placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}

/* ==========================================================================
   HOW IT WORKS — 5 pasos numerados
   ========================================================================== */

.process {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 0;
}

.process__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 200px;
  position: relative;
  background-color: #262626;
  opacity: 0;
}

.process-card--wide {
  grid-column: span 1;
}

.process__grid > .process-card:nth-child(4) {
  grid-column: 1 / 3;
}

.process__grid > .process-card:nth-child(5) {
  grid-column: 3 / 4;
}

.process-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
}

.process-card__title {
  margin-top: 40px;
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-orange);
}

.process-card__text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   WHAT'S INCLUDED
   ========================================================================== */

.included {
  margin-top: 40px;
  background: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  opacity: 0;
}

.included__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.included__title {
  font-size: 80px;
  font-weight: 300;
}

.included__list {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.included__list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
}

.included__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

/* ==========================================================================
   WHO THIS IS FOR
   marco degradado fino + caja oscura interna (mismo patrón que el CTA de
   la home: .cta__box / .cta__inner)
   ========================================================================== */

.who-for {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 0;
}

.who-for__box {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 50px;
  opacity: 0;
}

.who-for__inner {
  background: var(--bg-dark-2);
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 40px 34px 34px;
}

.who-for__title {
  font-size: clamp(26px, 6vw, 100px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-white);
  opacity: 0;
}

.divider--light {
  margin-top: 5px;
  border-top: 1px solid var(--border-subtle);
}

.who-for__row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.who-for__text {
  max-width: 620px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0;
}

/* ==========================================================================
   ADVANCED DATA SERVICES
   ========================================================================== */

.advanced {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.advanced__title {
  font-size: clamp(26px, 6vw, 100px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-white);
  line-height: clamp(26px, 6vw, 100px);
  opacity: 0;
}

.advanced__intro {
  margin-top: 20px;
  max-width: 640px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
}

.advanced__lead {
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-white);
}

.advanced__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.advanced-card {
  height: 250px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: #262626;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
}

.advanced__grid > .advanced-card:nth-child(4) {
  grid-column: 1 / 3;
}

.advanced__grid > .advanced-card:nth-child(5) {
  grid-column: 3 / 4;
}

.advanced-card__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-orange);
}

.advanced-card__text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.advanced__note {
  margin-top: 32px;
  max-width: 640px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  /* Espacio para que el mobile-header (position: absolute) no
     quede superpuesto sobre el título del hero */
  .svc-hero {
    padding-top: 110px;
  }

  /* Hero: título -> texto -> imagen, apilados */
  .svc-hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .svc-hero__text {
    width: 100%;
  }

  .process__grid,
  .advanced__grid {
    grid-template-columns: 1fr 1fr;
  }

  .process__grid > .process-card:nth-child(4),
  .process__grid > .process-card:nth-child(5),
  .advanced__grid > .advanced-card:nth-child(4),
  .advanced__grid > .advanced-card:nth-child(5) {
    grid-column: span 1;
  }

  /* "What's included": el botón pasa a ir debajo del checklist */
  .included__header {
    display: contents;
  }

  .included__title {
    order: 1;
    font-size: clamp(32px, 7vw, 56px);
  }

  .included__list {
    order: 2;
  }

  .included__header .btn {
    order: 3;
    margin-top: 24px;
    width: 100%;
    text-align: center;
  }

  .included {
    display: flex;
    flex-direction: column;
  }

  .who-for__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .who-for__row .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .svc-hero {
    padding-top: 100px;
    gap: 28px;
  }

  .svc-hero__image {
    aspect-ratio: 4 / 3;
  }

  .process__grid,
  .advanced__grid {
    grid-template-columns: 1fr;
  }

  .included {
    padding: 28px 24px;
  }

  .included__title {
    font-size: 32px;
  }

  .who-for__box {
    padding: 6px;
  }

  .who-for__inner {
    padding: 28px 24px;
  }
}
