:root {
  --ink: #14202b;
  --muted: #64727f;
  --line: #d8e0e7;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --steel: #40515f;
  --accent: #0c7c86;
  --accent-strong: #075962;
  --signal: #f2b84b;
  --shadow: 0 18px 45px rgba(20, 32, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid rgba(216, 224, 231, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 26, 0.92) 0%, rgba(10, 18, 26, 0.72) 42%, rgba(10, 18, 26, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 18, 26, 0.25), rgba(10, 18, 26, 0.1));
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: 72px 0 96px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 5.4vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--accent-strong);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 48px);
  background: var(--panel);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-intro.compact {
  display: block;
}

.steps,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps article,
.service-grid article,
.quote-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 32, 43, 0.06);
}

.steps article,
.service-grid article {
  padding: 24px;
}

.steps span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.steps p,
.service-grid p {
  margin: 0;
  color: var(--muted);
}

.services {
  background: #eef3f6;
}

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

.quality-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(64px, 8vw, 100px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.quality-band > * {
  max-width: 620px;
}

.quality-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-band li {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.quote {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.quote-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-note {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-note a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.hidden-field {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cbd6df;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(12, 124, 134, 0.18);
  border-color: var(--accent);
}

.full {
  grid-column: 1 / -1;
}

.file-drop {
  min-height: 112px;
  place-items: center;
  padding: 22px;
  text-align: center;
  background: #eef7f8;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--accent-strong);
  font-size: 1.04rem;
}

.file-drop small {
  color: var(--muted);
  font-weight: 700;
}

.form-feedback {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #0d151d;
}

.site-footer p {
  margin: 0;
}

.site-footer .fiscal-info {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.thank-you {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(13, 43, 56, 0.88), rgba(24, 86, 96, 0.82)),
    url("../assets/hero-cuadros-electricos.png") center / cover no-repeat;
}

.thank-you-panel {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 54px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thank-you-panel .brand {
  margin-bottom: 34px;
}

.thank-you-panel h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.thank-you-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 18, 26, 0.88), rgba(10, 18, 26, 0.46));
  }

  .trust-strip,
  .section-intro,
  .steps,
  .service-grid,
  .quality-band,
  .quote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
  }

  .site-nav {
    font-size: 0.88rem;
  }

  .nav-cta {
    white-space: nowrap;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 54px 0 72px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
