:root {
  --bg-deep: #010b21;
  --bg-mid: #031a43;
  --bg-card: #f5f8fd;
  --text-light: #f4f8ff;
  --text-dark: #10213f;
  --blue-strong: #0e6bff;
  --nav-bg: #04112f;
  --line: #dbe5f3;
  --green: #14b84a;
  --green-dark: #10953c;
  --radius: 14px;
  --shadow: 0 20px 45px rgba(2, 13, 34, 0.28);
  --hand-offset-x: 0px;
  --hand-offset-y: 0px;
  --hand-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Barlow, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(4, 17, 47, 0.97);
  border-bottom: 1px solid rgba(14, 107, 255, 0.28);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: #dbe7ff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone {
  color: #f6fbff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  line-height: 1.1;
}

.phone-copy {
  display: grid;
}

.phone-number {
  font-size: 1.2rem;
}

.phone-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #dbe7ff;
}

.icon-phone {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--blue-strong);
  flex: 0 0 auto;
}

.btn {
  border: 0;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
}

.btn .icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.btn.whatsapp {
  background: var(--green);
  color: #fff;
}

.btn.whatsapp:hover {
  background: var(--green-dark);
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(14, 107, 255, 0.68);
  color: #dfeaff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 14, 39, 0.2), rgba(3, 14, 39, 0.68)),
    url("fondo.png") center / cover no-repeat;
  color: var(--text-light);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 14, 37, 0.88) 0%, rgba(4, 14, 37, 0.5) 45%, rgba(4, 14, 37, 0.22) 100%);
}

.hero-scene-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.car-light {
  position: absolute;
  width: 84px;
  height: 22px;
  border-radius: 100px;
  background: radial-gradient(circle, rgba(14, 107, 255, 0.9) 0%, rgba(14, 107, 255, 0.4) 35%, rgba(14, 107, 255, 0) 74%);
  filter: blur(3px);
  mix-blend-mode: screen;
  animation: headlightsPulse 2.1s ease-in-out infinite;
}

.car-light::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 50%;
  width: 128px;
  height: 34px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(14, 107, 255, 0.36), rgba(14, 107, 255, 0));
  clip-path: polygon(0 40%, 100% 0, 100% 100%);
  filter: blur(4px);
}

.light-left {
  top: 49.2%;
  left: 47.7%;
  transform: rotate(-4deg);
}

.light-right {
  top: 50.4%;
  left: 54.2%;
  transform: rotate(-2deg);
  animation-delay: 0.18s;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: end;
  padding: 3.2rem 0 1.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--blue-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.45rem);
  line-height: 0.94;
  text-transform: uppercase;
  max-width: 13ch;
}

.hero h1 span {
  color: var(--blue-strong);
}

.lead {
  margin: 1rem 0 0;
  max-width: 50ch;
  color: #d4e3ff;
  font-size: 1.17rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.stats article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.stats h3 {
  margin: 0;
  color: var(--blue-strong);
  font-size: 1.3rem;
}

.stats p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: #deebff;
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--blue-strong);
}

.hero-visual {
  min-height: 540px;
  display: block;
  position: relative;
  overflow: visible;
}

.hero-visual::before {
  content: none;
}

.hero-hand-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, 30vw);
  transform: translate3d(var(--hand-offset-x), var(--hand-offset-y), 0) scale(var(--hand-scale));
  transform-origin: 100% 100%;
  transition: transform 320ms ease;
  z-index: 4;
  pointer-events: none;
}

.hero-hand {
  display: block;
  width: 100%;
  transform-origin: 70% 100%;
  animation: handIn 800ms ease-out;
  filter: drop-shadow(0 14px 38px rgba(0, 0, 0, 0.54));
}

.info {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  padding: 1rem 0 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 2rem;
  align-items: start;
}

.benefits h2,
.contact-card h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  line-height: 1;
}

.benefits h2 span {
  color: var(--blue-strong);
}

.contact-card h2 span {
  color: var(--blue-strong);
}

.subtitle,
.contact-card p {
  margin-top: 0.4rem;
  color: #4f6082;
}

.benefits-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem 1rem;
}

.benefits-grid article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.7rem;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.benefits-grid h3 {
  margin: 0;
  color: #0e2146;
  font-size: 1.06rem;
}

.benefits-grid p {
  margin: 0.35rem 0 0;
  color: #4e5f80;
}

.benefit-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--blue-strong);
}

.contact-card {
  background: transparent;
  border: 0;
  border-left: 1px solid #dbe5f3;
  border-radius: 0;
  padding: 0 0 0 2rem;
}

#whatsappForm {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}

.field label {
  font-size: 0.87rem;
  color: #1f3e72;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #ccd9ef;
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: #1b3159;
  background: #f8fbff;
}

.has-icon input,
.has-icon select {
  padding-left: 2.6rem;
}

.field-icon,
.select-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #506789;
}

.field-icon {
  left: 0.82rem;
  width: 1rem;
  height: 1rem;
}

.select-field select {
  appearance: none;
}

.select-chevron {
  right: 0.82rem;
  width: 0.9rem;
  height: 0.9rem;
  pointer-events: none;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(14, 107, 255, 0.22);
  border-color: var(--blue-strong);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
  color: #576a8e;
}

.trust-strip {
  background: linear-gradient(90deg, #03112d 0%, #06245b 50%, #03112d 100%);
  color: #dce9ff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.8rem;
  padding: 1.15rem 0.15rem;
}

.trust-grid h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.04rem;
}

.trust-grid p {
  margin: 0.35rem 0 0;
  color: #dbe7ff;
}

.trust-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.65rem;
  top: 50%;
  width: 1px;
  height: 58px;
  transform: translateY(-50%);
  background: rgba(129, 166, 255, 0.32);
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  color: var(--blue-strong);
}

.floating-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(19, 151, 62, 0.42);
  z-index: 60;
}

.floating-wa .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  border: 1px solid rgba(145, 183, 255, 0.48);
  background: rgba(4, 17, 42, 0.72);
  padding: 0.6rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #dbe8ff;
  margin: 4px 0;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 1rem;
  }

  .header-actions .phone {
    display: none;
  }

  .hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .light-left {
    top: 55.5%;
    left: 45.4%;
  }

  .light-right {
    top: 57.1%;
    left: 53.8%;
  }

  .hero-hand {
    width: 100%;
  }

  .hero-hand-wrap {
    right: -2.2%;
    top: 88px;
    bottom: auto;
    width: min(320px, 33vw);
    transform: translate3d(var(--hand-offset-x), var(--hand-offset-y), 0) scale(var(--hand-scale));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    border-left: 0;
    padding-left: 0;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid article:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(2, 12, 33, 0.95);
    border-bottom: 1px solid rgba(80, 138, 247, 0.32);
    display: grid;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav a {
    padding: 0.95rem 1.25rem;
    border-top: 1px solid rgba(90, 145, 247, 0.22);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    padding: 0.66rem 0.85rem;
    font-size: 0.72rem;
  }

  .hero-grid {
    padding-top: 2.5rem;
    padding-right: min(300px, 30vw);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    font-size: 0.93rem;
  }

  .lead {
    font-size: 1.07rem;
  }

  .stats h3 {
    font-size: 1.18rem;
  }

  .stats p {
    font-size: 0.89rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 1.3rem));
  }

  .nav-wrap {
    min-height: 72px;
  }

  .hero-grid {
    padding-top: 2.6rem;
    padding-bottom: 1.2rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .lead {
    font-size: 1.04rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 36px;
  }

  .hero-hand-wrap {
    right: -3%;
    top: 108px;
    bottom: auto;
    width: min(210px, 42vw);
    margin: 0;
    transform: translate3d(var(--hand-offset-x), var(--hand-offset-y), 0) scale(var(--hand-scale));
  }

  .hero-hand {
    width: 100%;
  }

  .light-left {
    top: 56.8%;
    left: 44.8%;
  }

  .light-right {
    top: 58.2%;
    left: 53.4%;
  }

  .benefits-grid,
  #whatsappForm {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article::after {
    display: none;
  }
}

@keyframes handIn {
  from {
    opacity: 0;
    transform: translateX(22px) translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes headlightsPulse {
  0%,
  100% {
    opacity: 0.2;
  }

  45% {
    opacity: 0.95;
  }

  60% {
    opacity: 0.32;
  }
}
