/* Paleta tomada del logo: púrpura #662d91, rojo #ff1d25.
   El botón usa un rojo más oscuro porque #ff1d25 con texto blanco queda en 3.85:1 (WCAG AA pide 4.5:1). */
:root {
  --purple: #662d91;
  --purple-d: #522474;
  --accent: #ff1d25;
  --accent-btn: #c4121a;
  --accent-d: #a8000b;
  --accent-bg: #fff1f1;
  --ink: #15121b;
  --slate: #5b5568;
  --muted: #645e72;
  --line: #e7e2ed;
  --surface: #f8f4fb;
  --lav: #efe6f6;
  --on-purple: #d8bfea;
  --radius: 18px;
  --section-y: 96px;
  --header-h: 76px;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button,
summary {
  font-family: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2.5px solid var(--purple);
  outline-offset: 3px;
}

.btn-primary:focus-visible,
.btn-accent:focus-visible,
.btn-on-purple:focus-visible {
  outline-color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-d);
}

.btn-accent {
  background: var(--accent-btn);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-d);
}

.btn-ghost {
  background: #fff;
  color: var(--purple);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--purple);
}

.btn-on-purple {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-purple:hover {
  background: rgba(255, 255, 255, 0.22);
}

.text-brand {
  color: var(--purple);
}

.text-accent {
  color: var(--accent-d);
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  position: relative;
}

.nav-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
}

.nav-links a:hover {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple);
  padding: 8px;
}

.nav-login:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-nav {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle::marker {
  content: "";
}

.icon-close {
  display: none;
}

.mobile-nav[open] .icon-menu {
  display: none;
}

.mobile-nav[open] .icon-close {
  display: block;
}

.mobile-nav:not([open]) .mobile-panel {
  display: none;
}

.mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 -24px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-panel a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0;
}

.mobile-panel a:hover {
  color: var(--purple);
}

.mobile-panel .btn {
  margin-top: 8px;
  width: 100%;
}

#top {
  background: var(--surface);
  padding: 88px 0 var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

h1 {
  font-size: 52px;
  line-height: 1.09;
}

.hero-lede {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.order-card {
  box-shadow: 0 28px 60px -20px rgba(46, 20, 66, 0.28);
  overflow: hidden;
}

.order-head {
  background: var(--purple);
  padding: 22px 24px;
}

.order-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.order-logo {
  height: 36px;
  width: auto;
}

.order-kicker {
  color: var(--on-purple);
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.order-id-block {
  text-align: right;
}

.order-id-label {
  color: var(--on-purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-id {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.order-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.order-body {
  padding: 22px 24px;
}

.route {
  display: flex;
  gap: 12px;
}

.route-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot-o {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--purple);
}

.dot-d {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
}

.dotted-v {
  width: 2px;
  flex: 1;
  background: repeating-linear-gradient(var(--lav) 0 4px, transparent 4px 8px);
  margin: 4px 0;
}

.route-stops {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kicker-sm {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route-place {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 2px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rider-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rider-label {
  font-size: 12.5px;
  color: var(--slate);
}

.rider-name {
  font-size: 13.5px;
  font-weight: 700;
}

.company-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-name {
  font-size: 13px;
  color: var(--slate);
}

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.pill-accent {
  background: var(--accent-btn);
  color: #fff;
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pill-route {
  color: var(--accent-d);
  background: var(--accent-bg);
}

.pill-wait {
  color: #713f12;
  background: #fffac2;
}

section {
  padding: var(--section-y) 0;
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: 38px;
  text-align: center;
  margin-inline: auto;
}

.section-title--soluciones {
  max-width: 720px;
}

.section-title--pasos {
  max-width: 680px;
}

.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.6;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.bento .span-4 {
  grid-column: span 4;
}

.bento .span-2 {
  grid-column: span 2;
}

.tile {
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tile-icon--lav {
  background: var(--lav);
}

.tile h3 {
  font-size: 17px;
}

.tile p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

.tile-highlight {
  background: var(--purple);
  border: none;
  color: #fff;
  justify-content: center;
}

.tile-highlight h3 {
  color: #fff;
  font-size: 21px;
}

.tile-highlight p {
  color: var(--on-purple);
  font-size: 15px;
  max-width: 420px;
}

.tile-highlight .tile-icon {
  background: rgba(255, 255, 255, 0.14);
}

#soluciones {
  border-top: 1px solid var(--line);
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.solution-card {
  padding: 28px;
}

.solution-card--urgent {
  border-top: 3px solid var(--accent);
}

.solution-card--move {
  border-top: 3px solid var(--purple);
}

.solution-card--delivery {
  border-top: 3px solid var(--ink);
}

.solution-card h3 {
  font-size: 24px;
  line-height: 1.35;
}

.solution-card p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.65;
}

.solution-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14.5px;
}

#como-funciona {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 28px 4px 28px;
  border-left: 1px solid var(--line);
}

.step:first-child {
  border-left: none;
  padding-left: 0;
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.step:last-child .step-num {
  color: var(--accent-d);
}

.step h3 {
  font-size: 17px;
  margin-top: 14px;
}

.step p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.cta-panel {
  background: var(--purple);
  border-radius: 28px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 4px solid var(--accent);
}

.cta-panel h2 {
  font-size: 32px;
  color: #fff;
}

.cta-panel p {
  margin-top: 14px;
  color: var(--on-purple);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  font-style: normal;
}

.footer-links a,
.footer-links span {
  font-size: 14px;
  color: var(--slate);
}

.footer-links a:hover {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

#presupuesto {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #f3eaf8 0%, transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
}

.quote-wrap {
  max-width: 860px;
}

.quote-intro {
  text-align: center;
  margin-inline: auto;
}

.quote-form {
  margin-top: 28px;
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-radius: 28px;
  box-shadow: 0 28px 60px -32px rgba(82, 36, 116, 0.45);
}

.quote-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-contact {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.quote-extra {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.service-choice legend {
  padding: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice:hover {
  border-color: var(--purple);
}

.choice:has(input:checked) {
  border-color: var(--purple);
  background: var(--lav);
  box-shadow: inset 0 0 0 1px var(--purple);
}

.choice input {
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
  margin: 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}

.field-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2.5px solid var(--purple);
  outline-offset: 2px;
}

.quote-extra[hidden] {
  display: none !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--slate);
}

.form-status.is-error {
  color: var(--accent-d);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .wrap {
    padding: 0 24px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 16px;
    right: 24px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 29px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento .span-4,
  .bento .span-2 {
    grid-column: 1 / -1;
  }

  .solutions {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .step {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }

  .step:first-child {
    border-top: none;
    padding-top: 0;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .choice-row,
  .quote-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 24px 18px 20px;
  }

  .form-actions {
    display: flex;
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .choice {
    transition: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .nav-toggle,
  .card {
    border: 1px solid ButtonText;
  }
}

@media print {
  header {
    position: static;
  }

  .skip-link,
  .mobile-nav,
  .nav-actions {
    display: none;
  }

  .order-head,
  .tile-highlight,
  .cta-panel {
    print-color-adjust: exact;
  }
}
