/* =========================================================
   SUMINET — CÓMO FUNCIONA
   Página independiente. Reutiliza header/base de styles.css.
   ========================================================= */

:root {
  --how-ink: #083748;
  --how-petrol: #073f4e;
  --how-petrol-2: #0d5262;
  --how-cyan: #05a9c6;
  --how-orange: #ff7417;
  --how-bg: #f3f7f6;
  --how-soft: #eaf3f3;
  --how-border: #d7e2e1;
  --how-text: #183b46;
  --how-muted: #607b83;
  --how-white: #ffffff;
}

body {
  background: var(--how-white);
  color: var(--how-text);
}

.how-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.how-kicker {
  display: inline-block;
  color: var(--how-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.2;
}

/* HERO */
.how-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 85% 20%, rgba(5, 169, 198, .12), transparent 28%),
    linear-gradient(135deg, #f8fbfa 0%, #edf4f3 100%);
  border-bottom: 1px solid var(--how-border);
}

.how-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -240px;
  border: 70px solid rgba(255, 116, 23, .07);
  border-radius: 50%;
}

.how-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 72px;
  align-items: center;
}

.how-hero-copy h1,
.how-section h2,
.how-final h2 {
  margin: 14px 0 20px;
  color: var(--how-ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}

.how-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.03;
}

.how-hero-copy h1 em,
.how-audience-heading h2 em,
.how-final h2 em {
  color: var(--how-orange);
  font-style: normal;
}

.how-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--how-muted);
  font-size: 18px;
  line-height: 1.75;
}

.how-hero-actions,
.how-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.how-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.how-btn:hover {
  transform: translateY(-1px);
}

.how-btn-primary {
  background: var(--how-petrol);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 63, 78, .15);
}

.how-btn-secondary {
  border-color: #a9bec2;
  color: var(--how-petrol);
  background: rgba(255,255,255,.65);
}

.how-btn-orange {
  background: var(--how-orange);
  color: #fff;
}

.how-btn-light {
  background: #fff;
  color: var(--how-petrol);
}

.how-hero-card {
  padding: 34px;
  background: var(--how-petrol);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(7, 63, 78, .18);
}

.how-card-label {
  color: #74d8e7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.how-connection {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
}

.how-connection > div {
  min-width: 0;
}

.how-connection-number {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  color: #76ddea;
  font-weight: 800;
}

.how-connection strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.how-connection p {
  margin: 8px 0 0;
  color: #c6dadd;
  line-height: 1.5;
}

.how-arrow {
  color: var(--how-orange);
  font-size: 26px;
  font-weight: 800;
}

/* COMMON SECTIONS */
.how-section {
  padding: 92px 0;
}

.how-section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.how-section-heading h2,
.how-audience-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.how-section-heading > p {
  max-width: 760px;
  color: var(--how-muted);
  font-size: 17px;
  line-height: 1.75;
}

.how-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--how-border);
  border-left: 1px solid var(--how-border);
}

.how-feature-grid article {
  min-height: 210px;
  padding: 30px;
  border-right: 1px solid var(--how-border);
  border-bottom: 1px solid var(--how-border);
  background: #fff;
}

.how-feature-grid article > span {
  color: var(--how-cyan);
  font-size: 12px;
  font-weight: 800;
}

.how-feature-grid h3 {
  margin: 38px 0 10px;
  color: var(--how-ink);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

.how-feature-grid p {
  margin: 0;
  color: var(--how-muted);
  line-height: 1.6;
}

/* AUDIENCES */
.how-buyers {
  background: var(--how-bg);
}

.how-providers {
  background: #fff;
}

.how-audience-heading {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.how-audience-heading h2 {
  margin-bottom: 0;
}

.how-audience-heading > p {
  margin: 0 0 5px;
  color: var(--how-muted);
  font-size: 16px;
  line-height: 1.75;
}

.how-steps {
  display: grid;
  gap: 16px;
}

.how-steps-four {
  grid-template-columns: repeat(4, 1fr);
}

.how-steps-five {
  grid-template-columns: repeat(5, 1fr);
}

.how-step {
  position: relative;
  min-height: 330px;
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid var(--how-border);
  border-top: 3px solid var(--how-cyan);
}

.how-providers .how-step {
  background: #f8faf9;
  border-top-color: var(--how-orange);
}

.how-step-number {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--how-petrol);
  color: #fff;
  border-radius: 7px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(7, 63, 78, .12);
}

.how-providers .how-step-number {
  background: var(--how-orange);
}

.how-step h3 {
  margin: 38px 0 14px;
  color: var(--how-ink);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  line-height: 1.25;
}

.how-step p {
  margin: 0;
  color: var(--how-muted);
  font-size: 14px;
  line-height: 1.7;
}

.how-flow-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--how-petrol);
  color: #fff;
  border-radius: 9px;
}

.how-flow-cta strong {
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

.how-flow-cta strong span {
  padding: 0 5px;
  color: #65d4e5;
}

.how-providers .how-flow-cta strong span {
  color: var(--how-orange);
}

/* FINAL */
.how-final {
  padding: 86px 0;
  background: var(--how-petrol);
  color: #fff;
}

.how-final-inner {
  text-align: center;
}

.how-final .how-kicker {
  color: #6dd8e7;
}

.how-final h2 {
  margin: 16px auto 0;
  max-width: 1000px;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
}

.how-final-actions {
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .how-hero-grid,
  .how-audience-heading {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .how-hero-card {
    max-width: 680px;
  }

  .how-steps-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps-five {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .how-shell {
    width: min(100% - 30px, 1200px);
  }

  .how-hero,
  .how-section,
  .how-final {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .how-hero-copy h1 {
    font-size: 42px;
  }

  .how-feature-grid {
    grid-template-columns: 1fr;
  }

  .how-steps-four,
  .how-steps-five {
    grid-template-columns: 1fr;
  }

  .how-step,
  .how-step:last-child:nth-child(odd) {
    grid-column: auto;
    min-height: auto;
  }

  .how-flow-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .how-flow-cta .how-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .how-hero-copy h1 {
    font-size: 36px;
  }

  .how-hero-copy > p {
    font-size: 16px;
  }

  .how-hero-actions,
  .how-final-actions {
    flex-direction: column;
  }

  .how-btn {
    width: 100%;
  }

  .how-hero-card {
    padding: 26px 22px;
  }

  .how-connection {
    grid-template-columns: 1fr;
  }

  .how-arrow {
    transform: rotate(90deg);
  }

  .how-section-heading h2,
  .how-audience-heading h2,
  .how-final h2 {
    font-size: 32px;
  }
}
