:root {
  --primary-color: #0a66ff;
  --secondary-color: #ffb21a;
  --text-color: #081827;
  --background-color: #f5f8fb;
  --surface-color: #ffffff;
  --muted-color: #607284;
  --dark-color: #071928;
  --line-color: #dce7ef;
  --container-width: 1120px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px max(16px, calc((100vw - var(--container-width)) / 2));
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Estado compacto al hacer scroll: da contexto de navegación sin robar foco al hero */
.site-header.is-scrolled {
  background: rgba(7, 25, 40, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand,
.main-nav,
.call-cta,
.dual-cta__item,
.tag-grid li {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand__mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.brand__lockup {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}

.brand__name {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand__tag {
  overflow: hidden;
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  opacity: 0.84;
  transition: opacity 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 104px 16px 56px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(10, 102, 255, 0.38), transparent 30%),
    linear-gradient(145deg, rgba(7, 25, 40, 0.98), rgba(7, 25, 40, 0.86)),
    var(--dark-color);
}

.hero__content,
.quick-form {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container-width));
  margin-inline: auto;
}

/* Órbita HVAC decorativa: oculta en móvil para proteger el LCP y evitar ruido visual */
.hero__orbit {
  display: none;
}

@media (min-width: 960px) {
  .hero__orbit {
    position: absolute;
    top: 50%;
    right: clamp(-140px, -6vw, -40px);
    z-index: 0;
    display: grid;
    place-items: center;
    width: 620px;
    height: 620px;
    translate: 0 -50%;
    opacity: 0.9;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at center, #000 62%, transparent 78%);
    mask-image: radial-gradient(circle at center, #000 62%, transparent 78%);
  }
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  /* transform-based animation (GPU) para no gatillar reflow/repaint costoso */
  animation: orbit-spin linear infinite;
}

.orbit--1 {
  width: 260px;
  height: 260px;
  animation-duration: 26s;
}

.orbit--2 {
  width: 420px;
  height: 420px;
  border-color: rgba(10, 102, 255, 0.28);
  animation-duration: 40s;
  animation-direction: reverse;
}

.orbit--3 {
  width: 600px;
  height: 600px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 60s;
}

.orbit__node {
  position: absolute;
  top: -19px;
  left: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  translate: -50% 0;
  border-radius: 12px;
  color: var(--dark-color);
  background: linear-gradient(135deg, var(--secondary-color), #ffd879);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  /* contra-rotación para mantener el ícono siempre vertical */
  animation: orbit-spin linear infinite reverse;
  animation-duration: inherit;
}

.orbit--2 .orbit__node {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #4d92ff);
  animation-direction: normal;
}

.orbit__node--alt {
  top: auto;
  bottom: -19px;
}

.orbit__core {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(10, 102, 255, 0.9), rgba(7, 25, 40, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 60px rgba(10, 102, 255, 0.4);
  animation: core-pulse 4s ease-in-out infinite;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 60px rgba(10, 102, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 20px 80px rgba(10, 102, 255, 0.6);
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary-color);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(2.48rem, 12vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero-sub {
  max-width: 720px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.22rem, 5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.section-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted-color);
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--dark-color);
  background: var(--secondary-color);
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

h2 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 700px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.call-cta {
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--dark-color);
  background: linear-gradient(135deg, var(--secondary-color), #ffd879);
  font-weight: 950;
  text-align: center;
}

.dual-cta {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.dual-cta__item {
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
}

.dual-cta__item strong {
  color: var(--secondary-color);
  font-size: 0.9rem;
  white-space: nowrap;
}

.tag-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-grid li {
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.tag-grid span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--dark-color);
  background: var(--secondary-color);
  font-size: 0.72rem;
  font-weight: 950;
}

.quick-form,
.footer-form {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-color);
  background: var(--surface-color);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.quick-form__title {
  margin-bottom: 16px;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--muted-color);
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  color: var(--text-color);
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--primary-color);
  outline: 3px solid rgba(10, 102, 255, 0.16);
}

small {
  display: block;
  margin-top: 12px;
  color: var(--muted-color);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
}

.btn--primary {
  color: var(--dark-color);
  background: linear-gradient(135deg, var(--secondary-color), #ffd879);
}

.section {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
  padding: 60px 0;
}

.service-grid,
.authority-grid {
  display: grid;
  gap: 16px;
}

.service-card,
.authority-grid article {
  padding: 24px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  background: var(--surface-color);
  box-shadow: 0 14px 40px rgba(8, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.authority-grid article:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary-color) 40%, var(--line-color));
  box-shadow: 0 26px 60px rgba(8, 24, 39, 0.16);
}

.service-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 44px;
  border-radius: 14px;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  font-weight: 950;
}

.service-card p,
.authority p {
  color: var(--muted-color);
}

.authority {
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.authority-grid article {
  background:
    linear-gradient(180deg, rgba(10, 102, 255, 0.06), transparent 48%),
    var(--surface-color);
}

.coverage-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.coverage-card,
.faq-item {
  padding: 22px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  background: var(--surface-color);
  box-shadow: 0 14px 40px rgba(8, 24, 39, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.coverage-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary-color) 45%, var(--line-color));
}

.coverage-card p,
.faq-item p {
  margin-bottom: 12px;
  color: var(--muted-color);
}

.coverage-card__link {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.86rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.footer-seo-note {
  margin-top: 18px;
  color: #9fb2c3;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

.stat-row strong {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--primary-color);
}

.stat-row span {
  color: var(--muted-color);
  font-size: 0.86rem;
  font-weight: 700;
}

/* Scroll-reveal: solo transform/opacity para no penalizar el rendimiento */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  padding: 46px 16px 96px;
  color: #dce7ef;
  background: var(--dark-color);
}

.footer-grid {
  display: grid;
  gap: 24px;
  width: min(100%, var(--container-width));
  margin-inline: auto;
}

.site-footer h2 {
  color: #fff;
}

.nap-data {
  display: grid;
  gap: 8px;
}

.nap-data p,
.copyright {
  margin-bottom: 0;
}

.nap-data a {
  color: var(--secondary-color);
  font-weight: 900;
}

.footer-form {
  box-shadow: none;
}

.copyright {
  width: min(100%, var(--container-width));
  margin: 28px auto 0;
  color: #9fb2c3;
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1fae58;
  box-shadow: 0 16px 34px rgba(31, 174, 88, 0.36);
  cursor: pointer;
  font-weight: 950;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #1fae58;
  animation: wa-pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 44px rgba(31, 174, 88, 0.45);
}

.whatsapp-float__label {
  font-size: 0.95rem;
}

@keyframes wa-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 40;
  max-width: min(92vw, 380px);
  padding: 14px 18px;
  translate: -50% 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(7, 25, 40, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease, translate 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

@media (max-width: 400px) {
  .whatsapp-float__label {
    display: none;
  }

  .whatsapp-float {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbit,
  .orbit__node,
  .orbit__core,
  .whatsapp-float::before {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 8px;
    font-size: 0.78rem;
  }

  .brand__tag {
    display: none;
  }
}

@media (min-width: 680px) {
  .call-cta {
    width: fit-content;
  }

  .dual-cta,
  .tag-grid,
  .service-grid,
  .authority-grid,
  .coverage-grid,
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: 34px;
    min-height: 740px;
    padding: 132px max(24px, calc((100vw - var(--container-width)) / 2)) 78px;
  }

  .hero__content,
  .quick-form {
    width: auto;
    margin: 0;
    align-self: center;
  }

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

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

  .authority {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .section {
    padding: 84px 0;
  }
}
