:root {
  --ink: #16212a;
  --muted: #5f6d77;
  --line: #d9e2e8;
  --panel: #ffffff;
  --soft: #f3f7f8;
  --blue: #176b87;
  --blue-dark: #0e4f67;
  --green: #2f8f69;
  --yellow: #f2b84b;
  --shadow: 0 18px 50px rgba(14, 39, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfb;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid rgba(217, 226, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.trust-row,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-size: 0.85rem;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.header-call:hover {
  color: var(--blue-dark);
}

.header-call {
  padding: 11px 16px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  min-height: min(720px, calc(100svh - 120px));
  display: grid;
  align-items: center;
  padding: clamp(48px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.98) 0%, rgba(251, 252, 251, 0.9) 38%, rgba(251, 252, 251, 0.28) 70%),
    url("assets/hero-servicios.png") center right / cover no-repeat;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.1vw, 4.35rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 600px;
  color: #394853;
  font-size: 1.13rem;
  line-height: 1.65;
}

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

.btn,
.quote-strip button,
.contact-form button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.btn-primary,
.quote-strip button,
.contact-form button {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover,
.quote-strip button:hover,
.contact-form button:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.trust-row strong {
  color: var(--ink);
}

.quick-quote,
.section,
.band-content,
.contact-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-quote {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: end;
  transform: translateY(-32px);
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-quote h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.quote-strip {
  display: grid;
  grid-template-columns: 1fr 0.8fr auto;
  gap: 12px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 250px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

a.service-card {
  display: block;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a.service-card:hover {
  border-color: rgba(23, 107, 135, 0.35);
  box-shadow: 0 16px 34px rgba(14, 39, 54, 0.09);
  transform: translateY(-2px);
}

.service-card p,
.split p,
.contact-copy p,
.steps p {
  color: var(--muted);
  line-height: 1.6;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  background: #eaf3f5;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.band {
  padding: 78px 0;
  background: var(--ink);
}

.band-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
  color: #fff;
}

.band .section-kicker {
  color: var(--yellow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.steps span {
  display: block;
  margin-bottom: 22px;
  color: var(--yellow);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.coverage-panel {
  display: grid;
  gap: 12px;
}

.coverage-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
}

.coverage-panel span {
  color: var(--muted);
  font-weight: 750;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
  padding: 72px 0 88px;
}

.phone-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.phone-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.phone-card strong {
  color: var(--blue-dark);
  font-size: 1.6rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label:nth-child(4),
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #111a21;
}

.site-footer span {
  min-width: 0;
}

.site-footer span:last-child {
  flex: 1 0 100%;
  text-align: center;
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 20;
  max-width: 340px;
  padding: 14px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.seo-page {
  background: #fbfcfb;
}

.seo-hero {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 48px;
}

.seo-hero h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
}

.seo-hero p {
  max-width: 780px;
  color: #394853;
  font-size: 1.12rem;
  line-height: 1.68;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.seo-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(14, 39, 54, 0.08);
}

.content-panel p,
.muted-note {
  color: var(--muted);
  line-height: 1.68;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.seo-card:hover {
  border-color: rgba(23, 107, 135, 0.35);
  box-shadow: 0 16px 34px rgba(14, 39, 54, 0.09);
  transform: translateY(-2px);
}

.seo-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.seo-card strong {
  font-size: 1.2rem;
}

.seo-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a {
  padding: 10px 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 800;
}

.link-cloud a:hover {
  border-color: rgba(23, 107, 135, 0.36);
  color: var(--blue);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.whatsapp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  align-items: center;
  padding: 0;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(20, 95, 55, 0.28);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-widget:hover {
  background: #1ebe5d;
  box-shadow: 0 20px 46px rgba(20, 95, 55, 0.34);
  transform: translateY(-2px);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.whatsapp-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    background:
      linear-gradient(180deg, rgba(251, 252, 251, 0.96), rgba(251, 252, 251, 0.78)),
      url("assets/hero-servicios.png") center / cover no-repeat;
  }

  .quick-quote,
  .band-content,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quote-strip,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .seo-layout,
  .seo-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-call {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: calc(100svh - 78px);
    padding: 48px 18px 78px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .quick-quote {
    width: calc(100% - 24px);
    transform: translateY(-10px);
    padding: 18px;
  }

  .section,
  .contact-section {
    padding-block: 52px;
  }

  .services-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .coverage-panel div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    right: 12px;
    bottom: 82px;
    left: 12px;
    max-width: none;
  }

  .whatsapp-widget {
    right: 12px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon svg {
    width: 31px;
    height: 31px;
  }
}
