/* =========================================================
   NORTE VERDE — ASESORAMIENTO TÉCNICO
========================================================= */

:root {
  --tech-deep: #09271d;
  --tech-deep-2: #123b2d;
  --tech-lime: #a7d51f;
  --tech-lime-dark: #82ad08;
  --tech-blue: #2e97d4;
  --tech-ink: #14231b;
  --tech-muted: #65736b;
  --tech-line: #dfe6e1;
  --tech-soft: #f5f8f2;
}


/* =========================================================
   COMMON
========================================================= */

.tech-eyebrow {
  margin: 0 0 9px;
  color: var(--tech-lime-dark);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tech-btn {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 820;
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.tech-btn:hover {
  transform: translateY(-2px);
}

.tech-btn-primary {
  border: 1px solid var(--tech-lime);
  background: var(--tech-lime);
  color: #17230f;
  box-shadow: 0 14px 30px rgba(125,168,10,.20);
}

.tech-btn-primary:hover {
  background: #b3df28;
}

.tech-btn-outline {
  border: 1px solid #bfcac2;
  background: #fff;
  color: var(--tech-ink);
}

.tech-btn-outline:hover {
  border-color: var(--tech-lime-dark);
  background: #f7faef;
}

.tech-btn-light {
  border: 1px solid #fff;
  background: #fff;
  color: var(--tech-deep);
}

.tech-text-link {
  color: rgba(255,255,255,.82);
  font-size: .87rem;
  font-weight: 780;
}

.tech-text-link:hover {
  color: #fff;
}


/* =========================================================
   HERO
========================================================= */

.tech-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(167,213,31,.13), transparent 32%),
    linear-gradient(135deg, #071f17 0%, #0b2d22 52%, #103c2d 100%);
  color: #fff;
}

.tech-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background:
    linear-gradient(90deg, var(--tech-lime) 0 56%, var(--tech-blue) 56%);
}

.tech-hero-grid {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: 66px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.tech-pill {
  width: fit-content;
  margin-bottom: 25px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  font-weight: 760;
}

.tech-pill > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tech-lime);
}

.tech-hero .tech-eyebrow {
  color: #b7de3b;
}

.tech-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.tech-hero h1 span {
  display: block;
  color: #b9df3e;
}

.tech-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.80);
  font-size: 1.08rem;
  line-height: 1.67;
}

.tech-hero-points {
  margin: 27px 0 31px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
}

.tech-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.92);
  font-size: .88rem;
  font-weight: 680;
}

.tech-hero-points li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(167,213,31,.15);
  color: #bce446;
  font-size: .72rem;
  font-weight: 900;
}

.tech-hero-media {
  padding: 15px 8px;
}

.tech-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: #17372b;
  box-shadow: 0 34px 75px rgba(0,0,0,.28);
}

.tech-image-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center;
}

.tech-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 44%,
      rgba(4,25,18,.76) 100%
    );
}

.tech-image-caption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 25px;
}

.tech-image-caption strong {
  display: block;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.22;
}

.tech-image-caption span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: .8rem;
}


/* =========================================================
   PROBLEMS
========================================================= */

.tech-problems {
  padding: 54px 0;
  border-bottom: 1px solid var(--tech-line);
  background: #fff;
}

.tech-problems-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
}

.tech-problems-heading h2 {
  max-width: 750px;
  margin: 0;
  color: var(--tech-ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.tech-problem-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-problem-chips span {
  padding: 8px 12px;
  border: 1px solid #dce4de;
  border-radius: 999px;
  background: #f8faf7;
  color: #536159;
  font-size: .76rem;
  font-weight: 720;
}


/* =========================================================
   SERVICES
========================================================= */

.tech-services {
  padding: 90px 0 82px;
  background: var(--tech-soft);
}

.tech-section-title {
  max-width: 760px;
  margin-bottom: 40px;
}

.tech-section-title h2,
.tech-decision h2,
.tech-routing h2 {
  margin: 0;
  color: var(--tech-ink);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.046em;
}

.tech-section-title > p:last-child {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--tech-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.tech-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tech-service-card {
  position: relative;
  padding: 29px 27px 27px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe4dd;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(34,61,45,.05);
}

.tech-service-card.is-featured {
  border-color: #a6cb32;
  box-shadow: 0 24px 55px rgba(77,106,25,.13);
}

.tech-recommended {
  position: absolute;
  top: 0;
  right: 25px;
  padding: 7px 11px;
  border-radius: 0 0 10px 10px;
  background: var(--tech-lime);
  color: #20300f;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.tech-service-number {
  color: var(--tech-lime-dark);
  font-size: .73rem;
  font-weight: 900;
}

.tech-service-type {
  margin: 19px 0 6px;
  color: #809087;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.tech-card-top h3 {
  margin: 0;
  color: var(--tech-ink);
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.tech-card-top > p:last-child {
  min-height: 84px;
  margin: 13px 0 0;
  color: var(--tech-muted);
  font-size: .85rem;
  line-height: 1.6;
}

.tech-price {
  margin: 24px 0 21px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.tech-price small {
  padding-top: 7px;
  color: #89958e;
  font-size: .66rem;
  font-weight: 850;
}

.tech-price strong {
  color: var(--tech-ink);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -.055em;
}

.tech-includes {
  margin: 0 0 23px;
  padding: 20px 0 0;
  display: grid;
  gap: 9px;
  border-top: 1px solid #e4eae5;
  list-style: none;
}

.tech-includes li {
  position: relative;
  padding-left: 19px;
  color: #536159;
  font-size: .8rem;
  line-height: 1.45;
}

.tech-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tech-lime-dark);
  font-weight: 900;
}

.tech-limit {
  margin: -8px 0 21px;
  color: #929c96;
  font-size: .7rem;
  line-height: 1.45;
}

.tech-service-card .tech-btn {
  width: 100%;
  margin-top: auto;
  cursor: pointer;
}

.tech-price-note {
  margin: 17px 0 0;
  color: #8c9891;
  font-size: .71rem;
  text-align: right;
}


/* =========================================================
   DECISION / PROCESS
========================================================= */

.tech-decision {
  padding: 88px 0;
  background: #fff;
}

.tech-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .76fr);
  gap: 70px;
  align-items: start;
}

.tech-comparison {
  margin-top: 31px;
  overflow: hidden;
  border: 1px solid var(--tech-line);
  border-radius: 17px;
}

.tech-comparison-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, .65fr);
  align-items: center;
  border-top: 1px solid #e5eae6;
}

.tech-comparison-row:first-child {
  border-top: 0;
}

.tech-comparison-row > * {
  padding: 11px 13px;
  text-align: center;
}

.tech-comparison-row > span:first-child {
  color: #536159;
  font-size: .78rem;
  text-align: left;
}

.tech-comparison-row b {
  color: var(--tech-lime-dark);
  font-size: .77rem;
}

.tech-comparison-head {
  background: #f6f9f4;
}

.tech-comparison-head strong {
  color: var(--tech-ink);
  font-size: .73rem;
}

.tech-process-card {
  padding: 31px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #0a291f, #123f2f);
  color: #fff;
}

.tech-process-card .tech-eyebrow {
  color: #b8df40;
}

.tech-process {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  list-style: none;
}

.tech-process li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.tech-process li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(167,213,31,.13);
  color: #b9df3e;
  font-size: .69rem;
  font-weight: 900;
}

.tech-process h3 {
  margin: 1px 0 6px;
  color: #fff;
  font-size: 1rem;
}

.tech-process p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  line-height: 1.55;
}


/* =========================================================
   ROUTING
========================================================= */

.tech-routing {
  padding: 67px 0;
  background:
    linear-gradient(110deg, #769f0d, #a5d124);
}

.tech-routing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 70px;
  align-items: center;
}

.tech-routing .tech-eyebrow {
  color: rgba(20,49,20,.66);
}

.tech-routing h2 {
  color: #14291d;
}

.tech-routing p:not(.tech-eyebrow) {
  max-width: 760px;
  margin: 13px 0 0;
  color: rgba(20,42,28,.79);
  font-size: .91rem;
  line-height: 1.65;
}

.tech-routing-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}


/* =========================================================
   MODAL
========================================================= */

body.tech-modal-open {
  overflow: hidden;
}

.tech-modal[hidden] {
  display: none;
}

.tech-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: 26px;
}

.tech-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,23,17,.74);
  backdrop-filter: blur(5px);
}

.tech-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 52px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  outline: none;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0,0,0,.34);
  animation: techModalIn .22s ease both;
}

@keyframes techModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.986);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tech-modal-header {
  position: relative;
  padding: 25px 70px 19px 28px;
  background:
    radial-gradient(circle at 93% 5%, rgba(167,213,31,.17), transparent 32%),
    linear-gradient(135deg, #09271d, #123b2d);
  color: #fff;
}

.tech-modal-kicker {
  margin: 0 0 5px;
  color: #b7de3b;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.tech-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.72rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.tech-modal-header p:last-child {
  max-width: 600px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.69);
  font-size: .78rem;
  line-height: 1.5;
}

.tech-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

.tech-selected-service {
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e1e7e2;
  background: #f7f9f5;
}

.tech-selected-service small {
  display: block;
  color: #8a958f;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.tech-selected-service strong {
  display: block;
  margin-top: 2px;
  color: var(--tech-ink);
  font-size: .9rem;
}

.tech-selected-service > span {
  color: var(--tech-lime-dark);
  font-size: .98rem;
  font-weight: 900;
}

.tech-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 25px 28px 26px;
}

.tech-form {
  display: grid;
  gap: 20px;
}

.tech-form-grid {
  display: grid;
  gap: 14px;
}

.tech-form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.tech-field {
  display: grid;
  gap: 7px;
}

.tech-field label,
.tech-form-section legend {
  color: #27372f;
  font-size: .8rem;
  font-weight: 790;
}

.tech-field label em {
  color: var(--tech-lime-dark);
  font-style: normal;
}

.tech-field input,
.tech-field select,
.tech-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #d8e0da;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--tech-ink);
  font: inherit;
  font-size: .87rem;
}

.tech-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.tech-field input:focus,
.tech-field select:focus,
.tech-field textarea:focus {
  border-color: var(--tech-blue);
  box-shadow: 0 0 0 4px rgba(46,151,212,.09);
}

.tech-field small {
  color: #8b9690;
  font-size: .68rem;
}

.tech-form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tech-form-section legend {
  margin-bottom: 10px;
}

.tech-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-choice {
  position: relative;
  cursor: pointer;
}

.tech-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tech-choice span {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e0da;
  border-radius: 999px;
  background: #fff;
  color: #526058;
  font-size: .74rem;
  font-weight: 720;
}

.tech-choice input:checked + span {
  border-color: #a3ca2e;
  background: #f0f7dc;
  color: #344419;
}

.tech-consent {
  padding: 15px 16px;
  border: 1px solid #dae5d4;
  border-radius: 12px;
  background: #f5f9eb;
}

.tech-consent label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  cursor: pointer;
}

.tech-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--tech-lime-dark);
}

.tech-consent span {
  color: #4c5952;
  font-size: .73rem;
  line-height: 1.5;
}

.tech-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.tech-submit[disabled] {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.tech-form-note {
  margin: -8px 0 0;
  color: #8d9791;
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

.tech-form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .77rem;
  line-height: 1.45;
}

.tech-form-status.is-error {
  border: 1px solid #efc8c3;
  background: #fff4f2;
  color: #8d3025;
}

.tech-form-status.is-info {
  border: 1px solid #cee0ea;
  background: #f3f9fc;
  color: #315e78;
}

.tech-success {
  max-width: 520px;
  margin: 20px auto;
  padding: 30px;
  text-align: center;
}

.tech-success[hidden] {
  display: none;
}

.tech-success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tech-lime);
  color: #20310d;
  font-size: 1.35rem;
  font-weight: 900;
}

.tech-success h3 {
  margin: 0;
  color: var(--tech-ink);
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.tech-success > p:not(.tech-modal-kicker) {
  margin: 11px 0 21px;
  color: var(--tech-muted);
  font-size: .88rem;
  line-height: 1.62;
}

.tech-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tech-security:empty {
  display: none;
}


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

@media (max-width: 980px) {

  .tech-hero-grid {
    grid-template-columns: 1fr 390px;
    gap: 40px;
  }

  .tech-service-grid {
    grid-template-columns: 1fr;
  }

  .tech-card-top > p:last-child {
    min-height: 0;
  }

  .tech-service-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
    gap: 0 35px;
  }

  .tech-card-top {
    grid-column: 1;
  }

  .tech-price,
  .tech-includes,
  .tech-limit {
    grid-column: 2;
  }

  .tech-price {
    grid-row: 1;
    align-self: end;
  }

  .tech-includes {
    grid-row: 2 / span 2;
  }

  .tech-service-card .tech-btn {
    grid-column: 1 / -1;
    margin-top: 22px;
  }

  .tech-decision-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 900px) {

  .tech-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 58px;
  }

  .tech-hero-copy {
    max-width: 760px;
  }

  .tech-hero-media {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .tech-image-card img {
    aspect-ratio: 16 / 10;
  }

  .tech-routing-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}


@media (max-width: 620px) {

  .tech-hero-grid {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .tech-hero h1 {
    font-size: clamp(2.85rem, 13vw, 4rem);
  }

  .tech-lead {
    font-size: .98rem;
  }

  .tech-hero-points {
    display: grid;
  }

  .tech-hero .tech-btn {
    width: 100%;
  }

  .tech-image-card {
    border-radius: 20px;
  }

  .tech-image-card img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .tech-problems {
    padding: 45px 0;
  }

  .tech-problems-heading {
    display: block;
  }

  .tech-services {
    padding: 66px 0 60px;
  }

  .tech-service-card {
    padding: 25px 21px;
    display: flex;
  }

  .tech-price {
    margin-top: 22px;
  }

  .tech-price strong {
    font-size: 2.3rem;
  }

  .tech-decision {
    padding: 65px 0;
  }

  .tech-comparison {
    overflow-x: auto;
  }

  .tech-comparison-row {
    min-width: 590px;
  }

  .tech-process-card {
    padding: 25px 21px;
  }

  .tech-routing {
    padding: 54px 0;
  }

  .tech-routing-actions {
    width: 100%;
  }

  .tech-routing-actions .tech-btn {
    width: 100%;
  }


  /* Modal móvil */
  .tech-modal {
    padding: 0;
    place-items: stretch;
  }

  .tech-modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .tech-modal-header {
    padding: 18px 58px 14px 17px;
  }

  .tech-modal-header h2 {
    font-size: 1.45rem;
  }

  .tech-modal-close {
    top: 12px;
    right: 12px;
  }

  .tech-selected-service {
    padding: 11px 17px;
  }

  .tech-modal-body {
    padding: 21px 17px 22px;
  }

  .tech-form-grid.two {
    grid-template-columns: 1fr;
  }

  .tech-choice span {
    min-height: 40px;
  }

}


/* =========================================================
   FIX — ESTADO FINAL DE CONSULTA
   Cuando el JS aplica form.hidden = true, el formulario debe
   desaparecer por completo para mostrar sólo el agradecimiento.
========================================================= */

.tech-form[hidden] {
  display: none !important;
}
