:root {
  --brand: #3e3f98;
  --brand-deep: #2a2b6e;
  --ink: #14151f;
  --muted: #5c6170;
  --paper: #f3f1ec;
  --sand: #e8e4db;
  --line: rgba(20, 21, 31, 0.12);
  --white: #ffffff;
  --ok: #1f7a4c;
  --accent-warm: #c9852a;
  --radius: 10px;
  --font-display: "Michroma", "Saira", system-ui, sans-serif;
  --font-body: "Saira", system-ui, sans-serif;
  --shadow-soft: 0 18px 40px rgba(20, 21, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 241, 236, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 241, 236, 0.96);
  box-shadow: 0 8px 24px rgba(20, 21, 31, 0.05);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links .btn {
  color: inherit;
}
.nav-links .btn-primary {
  background: var(--brand);
  color: #ffffff !important;
}
.nav-links .btn-primary:hover {
  background: var(--brand-deep);
  color: #ffffff !important;
}
.nav-links .btn-cta {
  color: #ffffff !important;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-cta {
  background: var(--accent-warm);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 133, 42, 0.28);
}
.btn-cta:hover { background: #b07320; }
.btn-ghost {
  background: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.55);
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-whatsapp { background: #128c7e; color: var(--white); }
.btn-whatsapp:hover { background: #0e6f64; }

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(16, 18, 36, 0.82) 0%, rgba(16, 18, 36, 0.45) 48%, rgba(16, 18, 36, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.8rem 0 3.6rem;
  max-width: 740px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.6vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: uppercase;
}
.hero-slogan {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.section { padding: 4.8rem 0; }
.section-muted { background: linear-gradient(180deg, rgba(232, 228, 219, 0.55), transparent); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  font-weight: 400;
}
.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-soft);
}
.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split-media:hover img { transform: scale(1.04); }

.feature-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.feature-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 63, 152, 0.35);
  box-shadow: var(--shadow-soft);
}
.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(62, 63, 152, 0.1);
  color: var(--brand);
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
}
.service h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
}
.service p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--brand);
}
.stat span { color: var(--muted); font-size: 0.9rem; }

.band {
  background:
    linear-gradient(135deg, rgba(62, 63, 152, 0.94), rgba(42, 43, 110, 0.96)),
    url("../images/gps-flota.jpg") center/cover;
  color: var(--white);
}
.band .section-head p { color: rgba(255,255,255,0.82); }
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cita {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(20, 21, 31, 0.88), rgba(62, 63, 152, 0.78)),
    url("../images/facebook/capacitacion.jpg") center/cover;
  color: var(--white);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.cita h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  font-weight: 400;
}
.cita p { margin: 0.8rem 0 0; max-width: 38rem; color: rgba(255,255,255,0.9); }
.cita-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.85rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery figure:first-child { grid-row: 1 / span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.plan.featured {
  border-color: rgba(62, 63, 152, 0.45);
  background: linear-gradient(180deg, rgba(62, 63, 152, 0.06), transparent 42%), var(--white);
}
.plan-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.plan-top p { margin: 0.4rem 0 0; color: var(--muted); }
.plan-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.plan-price span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 0.2rem;
}
.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
}
.contact-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.4rem;
}
.contact-card h3,
.form-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.contact-list a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.map-wrap {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
}
.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.form-grid { display: grid; gap: 0.85rem; }
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #fbfaf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(62, 63, 152, 0.15);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.form-success {
  display: none;
  margin-top: 0.5rem;
  color: var(--ok);
  font-weight: 600;
}

body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 14, 28, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(0,0,0,0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal-dialog {
  transform: none;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}
.modal-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.modal-close {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.modal-body {
  padding: 0 1.25rem 1.35rem;
}

.plan-compare {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.plan-compare .col {
  padding: 1.35rem 1.15rem;
  border-left: 1px solid var(--line);
}
.plan-compare .col:first-child { border-left: 0; background: #f7f6f2; }
.plan-compare .col.featured {
  background: linear-gradient(180deg, rgba(62,63,152,0.08), #fff 38%);
  position: relative;
}
.plan-compare h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-compare .price {
  margin: 0.7rem 0 1rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.plan-compare .price span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.plan-compare .feat-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}
.plan-compare .row {
  display: contents;
}
.plan-compare .cell {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.plan-compare .cell.ok { color: var(--ok); font-weight: 650; }
.plan-compare .cell.no { color: #9aa0ad; }
.plan-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.app-pills span {
  background: rgba(62,63,152,0.1);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.store-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.store-cta p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  min-width: 180px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-store:hover {
  transform: translateY(-2px);
  background: #000;
}
.btn-store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.1;
}
.btn-store strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.footer-row a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35);
  transition: transform 0.2s ease;
  animation: pulseWa 2.8s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.06); animation: none; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.02); }
}
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(18, 140, 126, 0.55); }
}

@media (max-width: 900px) {
  .split,
  .split.reverse,
  .services,
  .plans,
  .contact-grid,
  .stats,
  .form-grid.two,
  .plan-compare {
    grid-template-columns: 1fr;
  }
  .plan-compare .col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .plan-compare .col:first-child { border-top: 0; }
  .plan-compare .cell { border-top: 1px dashed var(--line); }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .gallery figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 241, 236, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .btn { margin-top: 0.6rem; width: 100%; }
  .brand img {
    height: 44px;
    max-width: min(190px, 58vw);
  }
  .hero-content { padding: 3.2rem 0 2.6rem; }
  .hero-actions .btn { width: 100%; }
  .cita-actions .btn { width: 100%; }
  .store-cta { flex-direction: column; align-items: stretch; }
  .btn-store { justify-content: center; }
  .modal { padding: 0.65rem; align-items: end; }
  .modal-dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 10px 10px;
  }
}
