:root {
  --how-mint: #14c8b5;
  --how-ink: #061415;
  --how-line: rgba(214, 236, 235, .18);
}

body.how-page {
  background: #fff;
  color: #101719;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.how-header .header-inner { padding-inline: clamp(28px, 3.2vw, 62px); }
.how-header .brand { font-size: clamp(21px, 1.35vw, 30px); }
.how-header .brand img { width: clamp(36px, 2.35vw, 48px); height: clamp(36px, 2.35vw, 48px); }
.how-header .header-actions { gap: clamp(18px, 1.7vw, 34px); }
.how-header .location-pill { padding: 10px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(5,15,16,.22); font-size: 14px; }
.how-header .location-pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #fff; }
.how-header .login-button { min-width: 164px; min-height: 44px; border-color: rgba(255,255,255,.9); background: rgba(4,17,18,.72); font-size: 14px; }
.how-header .main-nav { font-size: clamp(13px, .9vw, 16px); }
.how-header .main-nav a::after { bottom: -11px; background: var(--how-mint); }
.how-header .main-nav a.is-active { color: #fff; }
.how-header .menu-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.how-hero {
  position: relative;
  isolation: isolate;
  min-height: 602px;
  padding: 105px clamp(28px, 3.3vw, 64px) 22px;
  overflow: visible;
  background-color: #071314;
  background-image: url("assets/how-it-works/hero-background.jpg");
  background-size: cover;
  background-position: center 47%;
  color: #fff;
}
.how-hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 18, .90) 0%, rgba(3, 17, 18, .74) 34%, rgba(3, 17, 18, .44) 65%, rgba(3, 17, 18, .22) 100%),
    linear-gradient(0deg, rgba(2, 14, 15, .62) 0%, transparent 31%, rgba(1, 8, 9, .28) 100%);
  pointer-events: none;
}
.how-hero__inner { position: relative; width: min(100%, 1800px); min-height: 475px; margin: 0 auto; }
.how-hero__content { width: 100%; padding-right: clamp(300px, 18vw, 350px); }
.how-intro h1 { max-width: 950px; margin: 0; color: #fff; font-size: clamp(43px, 3.25vw, 60px); font-weight: 850; letter-spacing: -.055em; line-height: 1.04; }
.how-intro h1 span { color: var(--how-mint); white-space: nowrap; }
.how-intro__lead { margin: 13px 0 0; color: #c8d5d6; font-size: clamp(17px, 1.22vw, 22px); letter-spacing: -.018em; line-height: 1.4; }
.how-intro__sub { margin: 1px 0 0; color: #fff; font-size: clamp(14px, .96vw, 17px); line-height: 1.4; }

.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.step-card { position: relative; min-width: 0; min-height: 336px; padding: 13px 14px 12px; border: 1px solid rgba(226, 246, 244, .2); border-radius: 21px; background: rgba(4, 20, 21, .73); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.step-card:not(:last-child)::after { content: ""; position: absolute; z-index: 3; top: 55%; right: -22px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--how-mint); font-size: 30px; font-weight: 400; line-height: 1; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.step-card:nth-child(1)::after, .step-card:nth-child(2)::after, .step-card:nth-child(3)::after { content: "→"; }
.step-card__heading { min-height: 44px; display: flex; align-items: center; gap: 14px; }
.step-number { position: static; inset: auto; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--how-mint); color: #032324; font-size: 25px; font-weight: 850; line-height: 1; }
.step-card h2 { margin: 0; color: #fff; font-size: clamp(16px, 1.03vw, 21px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.step-card p { min-height: 43px; margin: 7px 0 12px 58px; color: #e5eeee; font-size: clamp(12px, .82vw, 15px); line-height: 1.42; }
.step-photo { position: relative; height: clamp(180px, 10.4vw, 200px); overflow: hidden; border-radius: 17px; background: #152323; }
.step-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.step-photo--search > img { object-position: 47% 44%; }
.step-photo--compare > img { object-position: 52% 41%; }
.step-photo--contact > img { object-position: 52% 43%; }
.step-photo--resolve > img { object-position: 28% 43%; }
.step-photo::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgba(0,0,0,.34), transparent); pointer-events: none; }
.photo-search, .photo-profile, .photo-contact, .photo-rating { position: absolute; z-index: 1; bottom: 10px; left: 10px; right: 10px; border-radius: 999px; background: #fff; color: #182326; box-shadow: 0 5px 22px rgba(0,0,0,.24); }
.photo-search { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 15px; font-size: 14px; color: #718087; }
.photo-search svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: #102427; stroke-width: 2.2; stroke-linecap: round; }
.photo-profile { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 17px; }
.profile-placeholder { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 50%; background: #e9f4f2; color: #067a72; }
.profile-placeholder svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.photo-profile strong, .photo-profile small { display: block; }
.photo-profile strong { font-size: 14px; }
.photo-profile small { margin-top: 3px; color: #69777c; font-size: 11px; }
.profile-chevron { width: 20px; height: 20px; margin-left: auto; fill: none; stroke: #132426; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.photo-contact { left: 12%; right: 12%; min-height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 12px; }
.photo-contact span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #071b1d; }
.photo-contact svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo-contact .contact-chat { background: #14bb9e; color: #fff; }
.photo-rating { width: max-content; max-width: calc(100% - 20px); min-height: 63px; display: grid; justify-items: start; align-content: center; padding: 8px 16px; border-radius: 15px; }
.rating-stars { color: #f7a900; font-size: 23px; letter-spacing: 1px; line-height: 1; }
.photo-rating > span:last-child { margin-top: 4px; color: #667377; font-size: 12px; }

.phone-preview { position: absolute; z-index: 2; top: -22px; right: 0; width: clamp(260px, 16vw, 300px); height: 522px; display: flex; justify-content: center; filter: drop-shadow(0 20px 26px rgba(0,0,0,.36)); }
.phone-hardware { position: relative; width: 100%; height: 100%; padding: 12px; overflow: hidden; border: 3px solid #192123; border-radius: 45px; background: #05090a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 0 0 1px rgba(255,255,255,.24); transform: rotate(3.6deg); }
.phone-notch { position: absolute; z-index: 3; top: 11px; left: 50%; width: 100px; height: 19px; transform: translateX(-50%); border-radius: 0 0 13px 13px; background: #05090a; }
.phone-status { position: absolute; z-index: 2; top: 16px; right: 22px; left: 23px; display: flex; justify-content: space-between; color: #152327; font-size: 9px; font-weight: 800; }
.phone-screen { position: relative; height: 100%; overflow: hidden; padding: 37px 12px 12px; border-radius: 33px; background: #f6f8f8; color: #122023; }
.phone-topline { display: flex; align-items: center; gap: 6px; min-height: 27px; color: #102022; }
.phone-logo-mark { width: 19px; height: 21px; display: grid; place-items: center; border-radius: 5px 5px 5px 2px; background: var(--how-mint); color: #062123; font-size: 14px; font-style: italic; font-weight: 950; }
.phone-topline strong { font-size: 13px; font-style: italic; letter-spacing: -.04em; }
.phone-topline strong span { color: #009e91; }
.phone-topline i { margin-left: auto; color: #00a997; font-size: 20px; font-style: normal; }
.phone-tagline { margin: 6px 0 9px; color: #1a282a; font-size: 11px; font-weight: 750; line-height: 1.2; }
.phone-search { height: 35px; display: flex; align-items: center; gap: 7px; margin-top: 0; padding: 0 9px; border: 1px solid #dbe2e3; border-radius: 12px; background: #fff; color: #738187; font-size: 9px; }
.phone-search svg { width: 13px; height: 13px; fill: none; stroke: #203537; stroke-width: 2; }
.phone-search b { margin-left: auto; color: #11baa9; font-size: 17px; }
.phone-section-label { margin: 10px 0 7px; color: #445256; font-size: 9px; font-weight: 700; }
.phone-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.phone-categories span { min-width: 0; min-height: 59px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #e0e8e7; border-radius: 10px; background: #fff; color: #304144; font-size: 7px; font-weight: 650; text-align: center; }
.phone-categories svg { width: 20px; height: 20px; fill: none; stroke: #057c74; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phone-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 13px 0 7px; gap: 4px; }
.phone-list-heading strong { font-size: 9px; }
.phone-list-heading span { color: #078b80; font-size: 8px; font-weight: 700; white-space: nowrap; }
.phone-service-list { overflow: hidden; border: 1px solid #e4e9e9; border-radius: 13px; background: #fff; }
.how-page .phone-service { position: static; height: auto; min-height: 65px; display: flex; align-items: center; gap: 8px; overflow: visible; margin: 0; padding: 7px; border: 0; border-bottom: 1px solid #e8eded; border-radius: 0; background: #fff; }
.how-page .phone-service:last-child { border-bottom: 0; }
.how-page .phone-service span { position: static; inset: auto; padding: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
.service-symbol { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 50%; background: #e8f5f3; color: #047f75; }
.how-page .phone-service span.service-symbol { background: #e8f5f3; color: #047f75; }
.service-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phone-service strong, .phone-service small { display: block; }
.phone-service strong { color: #172426; font-size: 9px; line-height: 1.25; }
.phone-service small { margin-top: 3px; color: #758184; font-size: 7px; line-height: 1.2; }
.phone-service > b { margin-left: auto; color: #0ba998; font-size: 20px; }
.phone-tabbar { position: absolute; right: 12px; bottom: 10px; left: 12px; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #e1e8e8; background: #f6f8f8; }
.phone-tabbar span { display: grid; justify-items: center; gap: 2px; color: #647174; font-size: 7px; }
.phone-tabbar b { color: #0a9287; font-size: 17px; line-height: 1; }
.phone-demo-label { position: absolute; right: 2px; bottom: -16px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 700; letter-spacing: .12em; }

.benefits-strip { position: relative; z-index: 1; width: 100%; min-height: 100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 0; padding: 13px clamp(28px, 5vw, 98px); background: #fff; color: #101719; }
.benefit-item { min-width: 0; min-height: 61px; display: flex; align-items: center; gap: 14px; padding: 0 clamp(9px, 2vw, 32px); border-right: 1px solid #e5ebeb; }
.benefit-item:first-child { padding-left: 0; }
.benefit-item:last-child { padding-right: 0; border-right: 0; }
.benefit-icon { width: 59px; height: 59px; flex: 0 0 59px; display: grid; place-items: center; border: 1px solid #e5eded; border-radius: 50%; color: var(--how-mint); }
.benefit-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit-item strong, .benefit-item small { display: block; }
.benefit-item strong { color: #101719; font-size: clamp(13px, .95vw, 17px); font-weight: 750; line-height: 1.25; }
.benefit-item small { margin-top: 5px; color: #748087; font-size: clamp(10px, .76vw, 14px); line-height: 1.35; }

.professional-banner { position: relative; isolation: isolate; width: min(calc(100% - 56px), 1840px); min-height: 170px; display: grid; grid-template-columns: minmax(360px, 1.25fr) minmax(310px, .95fr) minmax(168px, .55fr); align-items: center; gap: clamp(18px, 2.8vw, 54px); margin: 0 auto 14px; padding: 24px clamp(26px, 2.2vw, 44px); overflow: hidden; border-radius: 22px; background: #061415; color: #fff; }
.professional-banner__photo { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg, #061415 0%, rgba(6,20,21,.96) 36%, rgba(6,20,21,.67) 55%, rgba(6,20,21,.14) 78%, rgba(6,20,21,.52) 100%), url("assets/services/electricidad.jpg"); background-size: cover; background-position: center 30%; }
.professional-copy { max-width: none; align-self: center; }
.professional-copy h2 { margin: 0; color: #fff; font-size: clamp(24px, 1.65vw, 34px); font-weight: 800; letter-spacing: -.045em; line-height: 1.14; }
.professional-copy p { max-width: 570px; margin: 9px 0 14px; color: #eff5f5; font-size: clamp(13px, .94vw, 16px); line-height: 1.45; }
.professional-cta { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border-radius: 13px; background: var(--how-mint); color: #062223; font-size: 14px; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.professional-cta:hover { transform: translateY(-2px); background: #3cdece; }
.professional-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.professional-benefits { min-height: 115px; display: grid; align-content: center; gap: 13px; padding: 0 0 0 clamp(12px, 3vw, 54px); border: 0; border-left: 1px solid rgba(255,255,255,.25); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.professional-benefits div { display: flex; align-items: center; gap: 15px; color: #f3f8f8; font-size: clamp(12px, .86vw, 15px); line-height: 1.3; }
.professional-benefits svg { width: 29px; height: 29px; flex: 0 0 29px; fill: none; stroke: var(--how-mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.professional-checklist { display: grid; gap: 13px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(4,20,21,.91); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.professional-checklist span { display: flex; align-items: center; gap: 10px; color: #f5f9f9; font-size: clamp(11px, .76vw, 14px); font-weight: 550; white-space: nowrap; }
.professional-checklist b { color: var(--how-mint); font-size: 17px; }

@media (min-width: 1600px) {
  .how-hero { min-height: 602px; }
  .how-hero__inner { min-height: 475px; }
}

@media (max-width: 1350px) {
  .how-hero { min-height: 620px; }
  .how-hero__content { padding-right: 285px; }
  .how-steps { gap: 12px; }
  .step-card { min-height: 330px; padding: 12px 11px; }
  .step-card__heading { gap: 9px; }
  .step-number { width: 39px; height: 39px; flex-basis: 39px; font-size: 22px; }
  .step-card p { margin-left: 48px; }
  .step-photo { height: 203px; }
  .phone-preview { width: 258px; height: 480px; top: 0; }
  .professional-banner { grid-template-columns: minmax(300px, 1.1fr) minmax(280px, .9fr) 164px; gap: 18px; }
  .professional-benefits { padding-left: 22px; }
  .professional-checklist { padding: 14px 11px; }
}

@media (min-width: 1351px) and (max-width: 1600px) {
  .how-hero__content { padding-right: 260px; }
  .phone-preview { top: -10px; width: 230px; height: 490px; }
  .step-card p { margin-left: 48px; }
}

@media (max-width: 1120px) {
  .how-hero { min-height: 0; padding-top: 102px; padding-bottom: 34px; }
  .how-hero__inner { min-height: 0; }
  .how-hero__content { padding-right: 0; }
  .how-intro h1 { font-size: clamp(42px, 5vw, 60px); }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .step-card { min-height: 335px; padding: 14px; }
  .step-card:nth-child(2)::after { content: none; }
  .step-card:nth-child(1)::after { right: -25px; }
  .step-card:nth-child(3)::after { content: none; }
  .step-photo { height: clamp(210px, 29vw, 280px); }
  .phone-preview { position: relative; top: auto; right: auto; width: min(278px, 76vw); height: 500px; margin: 32px auto 6px; }
  .phone-demo-label { right: 0; }
  .benefits-strip { padding-inline: 28px; }
  .benefit-item { gap: 10px; padding-inline: 13px; }
  .benefit-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .benefit-icon svg { width: 26px; height: 26px; }
  .professional-banner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 220px; }
  .professional-benefits { grid-column: 2; grid-row: 1; }
  .professional-checklist { grid-column: 1 / -1; grid-row: 2; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; align-self: auto; margin-bottom: 0; }
  .professional-benefits { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .how-header .header-actions .location-pill,
  .how-header .header-actions > .login-button { display: none; }
}

@media (max-width: 760px) {
  .how-header .header-inner { min-height: 66px; padding-inline: 16px; }
  .how-header .header-actions { gap: 8px; }
  .how-header .header-actions .location-pill, .how-header .header-actions > .login-button { display: none; }
  .how-header .brand { font-size: 20px; }
  .how-header .brand img { width: 31px; height: 31px; }
  .how-hero { padding: 88px 17px 26px; background-position: 58% center; }
  .how-hero__shade { background: linear-gradient(90deg, rgba(3,17,18,.91) 0%, rgba(3,17,18,.76) 55%, rgba(3,17,18,.52) 100%), linear-gradient(0deg, rgba(2,14,15,.66), transparent 55%); }
  .how-intro h1 { max-width: 560px; font-size: clamp(36px, 9vw, 48px); line-height: 1.06; }
  .how-intro h1 span { white-space: normal; }
  .how-intro__lead { margin-top: 11px; font-size: 17px; }
  .how-intro__sub { margin-top: 4px; font-size: 14px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 20px; }
  .step-card { min-height: auto; padding: 13px; border-radius: 18px; }
  .step-card::after { content: none !important; }
  .step-card__heading { gap: 12px; }
  .step-card h2 { font-size: 18px; }
  .step-card p { min-height: 0; margin: 8px 0 12px 51px; font-size: 13px; }
  .desktop-only { display: none; }
  .step-photo { height: clamp(190px, 58vw, 270px); border-radius: 14px; }
  .phone-preview { width: min(270px, 78vw); height: 485px; margin-top: 27px; }
  .benefits-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; padding: 17px 12px; }
  .benefit-item { min-height: 61px; padding: 4px 9px; border-right: 0; }
  .benefit-item:nth-child(odd) { border-right: 1px solid #e5ebeb; }
  .benefit-item:first-child { padding-left: 9px; }
  .benefit-item:last-child { padding-right: 9px; }
  .benefit-icon { width: 41px; height: 41px; flex-basis: 41px; }
  .benefit-icon svg { width: 23px; height: 23px; }
  .benefit-item strong { font-size: 11px; }
  .benefit-item small { margin-top: 3px; font-size: 9px; }
  .professional-banner { width: calc(100% - 24px); min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 12px; padding: 23px 20px; border-radius: 18px; }
  .professional-banner__photo { background-image: linear-gradient(90deg, rgba(6,20,21,.95) 0%, rgba(6,20,21,.84) 55%, rgba(6,20,21,.58) 100%), url("assets/services/electricidad.jpg"); background-position: 60% center; }
  .professional-copy h2 { font-size: 26px; }
  .professional-copy p { max-width: 420px; font-size: 13px; }
  .professional-cta { min-height: 43px; font-size: 13px; }
  .professional-benefits { position: static; inset: auto; grid-column: auto; grid-row: auto; gap: 12px; padding: 15px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
  .professional-benefits div { gap: 11px; font-size: 12px; }
  .professional-benefits svg { width: 24px; height: 24px; flex-basis: 24px; }
  .professional-checklist { grid-column: auto; grid-row: auto; width: 100%; justify-self: stretch; align-self: auto; grid-template-columns: 1fr; margin: 0; }
  .professional-checklist span { font-size: 12px; }
}

@media (max-width: 420px) {
  .how-hero { padding-inline: 13px; }
  .how-intro h1 { font-size: 36px; }
  .how-intro__lead { font-size: 15px; }
  .step-card { padding: 11px; }
  .step-card p { margin-left: 0; }
  .photo-search { min-height: 46px; padding-inline: 11px; font-size: 12px; }
  .photo-profile { left: 7px; right: 7px; min-height: 60px; gap: 7px; padding: 7px 9px; }
  .photo-profile strong { font-size: 12px; }
  .photo-profile small { font-size: 10px; }
  .professional-banner { padding-inline: 16px; }
  .benefits-strip { padding-inline: 6px; }
  .benefit-item { gap: 7px; padding-inline: 5px; }
  .benefit-item:first-child { padding-left: 5px; }
  .benefit-item:last-child { padding-right: 5px; }
  .benefit-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .benefit-icon svg { width: 20px; height: 20px; }
  .benefit-item strong { font-size: 10px; }
  .benefit-item small { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .professional-cta { transition: none; }
}
