:root {
  --background: #f7f8fb;
  --foreground: #1a1f2e;
  --card: #ffffff;
  --card-foreground: #1a1f2e;
  --primary: #1e40af;
  --primary-foreground: #ffffff;
  --secondary: #eef1f7;
  --secondary-foreground: #2d3a52;
  --muted: #f1f3f7;
  --muted-foreground: #64748b;
  --accent: #0ea5e9;
  --accent-foreground: #ffffff;
  --border: #e2e6ee;
  --ring: #1e40af;
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Todo el contenido queda en una capa base; el botón flotante (hermano de main) siempre encima. */
main {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.text-balance {
  text-wrap: balance;
}

.hero-headline {
  font-size: clamp(calc(1.8rem + 5px), calc(4vw + 5px), calc(3rem + 5px));
  font-weight: 500;
  line-height: 0.95;
  color: var(--primary);
  margin: 1rem 0 1rem;
}

@media (max-width: 767px) {
  .hero-headline {
    margin-top: 0.75rem;
  }
}

.hero-headline-question {
  display: block;
  font-size: 0.924em;
  color: var(--foreground);
  text-wrap: balance;
  line-height: calc(1em + 5px);
}

.hero-headline-intro {
  display: block;
  font-size: 0.8em;
  margin-top: max(0px, calc(0.7125em - 15px));
  margin-bottom: 9.75px;
  text-wrap: balance;
}

.hero-headline-intro--stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.2;
}

.hero-headline-intro--stacked>span {
  line-height: 1.2;
}

.hero-headline-intro-lead {
  font-size: calc(1.38em + 10px);
}

@media (min-width: 768px) {
  .hero-headline-intro-lead {
    font-size: 3rem;
  }
}

.hero-headline-igv {
  font-size: 0.75em;
}



.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: calc(0.8rem + 5px);
}

.hero-feature-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.hero-features {
  margin-top: 35px;
}

.hero-boxes-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual-frame {
  max-width: 30.976rem;
  /* Sombra en el contenedor exterior: el inner lleva overflow-hidden y puede “comerse” la sombra si va en el mismo nodo. */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

@media (min-width: 1024px) {
  .hero-visual-frame {
    margin-top: 1rem;
  }
}

.hero-delivery-status {
  position: absolute;
  top: calc(0.75rem + 10px);
  right: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.84rem;
  border-radius: 0.84rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14);
}

.hero-delivery-status-inner {
  display: flex;
  align-items: center;
  gap: 0.63rem;
}

.hero-delivery-status-icon-wrap {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background-color: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-delivery-status-icon {
  font-size: 0.84rem;
  color: #16a34a;
}

.hero-delivery-status-title {
  margin: 0;
  font-size: 0.735rem;
  font-weight: 600;
  color: var(--foreground);
}

.hero-delivery-status-time {
  margin: 0;
  font-size: 0.63rem;
  color: var(--muted-foreground);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.district-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  height: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  text-align: left;
}

.district-pin {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.district-item-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--foreground);
  text-align: left;
}

.districts-panel {
  width: 100%;
}

.districts-coverage-map {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* Capas internas del mapa quedan aisladas del resto de la página. */
.districts-map-compositor-root {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.districts-coverage-map-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.districts-coverage-map--fallback {
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
}

@media (max-width: 767px) {
  .district-item {
    justify-content: center;
    text-align: center;
  }

  .district-pin {
    display: none;
  }

  .district-item-label {
    flex: none;
    width: 100%;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
  }
}

.cutoff-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.pricing-check-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.pricing-price {
  font-size: 1.8rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .pricing-price {
    font-size: 2.4rem;
  }
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  transition: all 0.2s ease;
}

.header-social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.header-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-top-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.site-header-main {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.site-top-bar-phone-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.site-top-bar-phone-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-logo {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: min(100%, 14rem);
  object-fit: contain;
  border: none;
  outline: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .site-logo {
    height: 4.25rem;
    max-width: min(100%, 17rem);
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--foreground);
}

/* Evita que el CTA del pie se dibuje encima del FAB en anchuras estrechas */
.site-footer>.container:first-child {
  padding-right: clamp(1rem, 6vw + 2.5rem, 7rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/footer-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.site-footer>* {
  position: relative;
  z-index: 1;
}

.footer-cta-whatsapp {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.footer-cta-whatsapp:hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--background) 92%, white);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.footer-cta-whatsapp:hover .footer-cta-whatsapp-icon {
  transform: scale(1.08);
}

.footer-cta-whatsapp-icon {
  width: calc(1.25rem + 5px);
  height: calc(1.25rem + 5px);
  flex-shrink: 0;
  color: #25d366;
  transition: transform 0.2s ease;
}

.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--background) 10%, transparent);
  color: var(--background);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-logo-footer {
  height: 3rem;
  max-width: min(100%, 12rem);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .site-logo-footer {
    height: 3.5rem;
    max-width: min(100%, 14rem);
  }
}

.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;
}

.whatsapp-float {
  position: fixed;
  top: 50%;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.whatsapp-float>* {
  pointer-events: auto;
}

.whatsapp-float-button {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
}

.whatsapp-float-label {
  margin: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .whatsapp-float-label {
    display: none;
  }
}

.bg-background {
  background-color: var(--background);
}

.bg-foreground {
  background-color: var(--foreground);
}

.bg-card {
  background-color: var(--card);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-border {
  background-color: var(--border);
}

.text-foreground {
  color: var(--foreground);
}

.text-background {
  color: var(--background);
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.border-border {
  border-color: var(--border);
}

.border-primary {
  border-color: var(--primary);
}

.hover\:border-primary\/50:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.hover\:bg-primary\/5:hover {
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.bg-primary\/10 {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.bg-primary\/20 {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.bg-secondary\/30 {
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
}

.bg-secondary\/50 {
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.bg-card\/95 {
  background-color: color-mix(in srgb, var(--card) 95%, transparent);
}

.text-primary\/20 {
  color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.from-primary\/10 {
  --tw-gradient-from: color-mix(in srgb, var(--primary) 10%, transparent);
}

.from-foreground\/60 {
  --tw-gradient-from: color-mix(in srgb, var(--foreground) 60%, transparent);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-from), var(--tw-gradient-to));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  background-color: var(--background);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-pricing {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pricing:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-pricing svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .btn-pricing {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
  }

  .btn-pricing:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, black);
    border-color: color-mix(in srgb, var(--primary) 90%, black);
    color: var(--primary-foreground);
  }
}

.btn-lg {
  min-height: 2.5rem;
  padding: 0.5rem 1.5rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-register-btn {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.625rem 1rem;
}

.mobile-register-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.menu-icon-close {
  display: none;
}

.menu-toggle.is-open .menu-icon-open {
  display: none;
}

.menu-toggle.is-open .menu-icon-close {
  display: block;
}

@media (min-width: 768px) {

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-star {
  width: 1.25rem;
  height: 1.25rem;
  color: #facc15;
}

.testimonial-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.testimonial-avatar span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-nav {
  display: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.testimonial-panel.is-active .testimonial-nav {
  display: flex;
}

.testimonial-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--border);
  transition: all 0.2s ease;
}

.testimonial-dot.is-active {
  width: 1.5rem;
  background-color: var(--primary);
}

.testimonial-dot:hover {
  background-color: var(--muted-foreground);
}

.testimonial-dot.is-active:hover {
  background-color: var(--primary);
}

.testimonial-panel {
  display: none;
}

.testimonial-panel.is-active {
  display: block;
}

@keyframes drive {
  0% {
    transform: translateX(-180px);
  }

  100% {
    transform: translateX(calc(100vw + 180px));
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }
}

@keyframes float-slower {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-15px);
  }
}

.hero-city-stage {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-top: 0;
  background-color: transparent;
  background-image: none;
  isolation: isolate;
  /* Altura real del escenario para unidades cqh (mosaico ciudad en md+). */
  container-type: size;
  container-name: hero-city-stage;
}

/* Franja del furgón: sin capa de color propia (se ve el fondo de la página o el blanco unificado abajo). */
.hero-city-animation-section,
.hero-city-animation-section>*,
.hero-city-animation-section .hero-city-strip,
.hero-city-animation-section .hero-city-strip>div {
  background-color: transparent;
  background-image: none;
}

.city-skyline {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Mosaico en X (solo md+): tile original 1200×150; alinea el suelo al borde del escenario. */
@media (min-width: 768px) {
  svg.city-skyline--tiled pattern#skyline-pattern-xlbox {
    pattern-transform: translate(0px, calc(8.8rem - 20px - 150px));
  }
}

@supports (height: 1cqh) {
  @media (min-width: 768px) {
    svg.city-skyline--tiled pattern#skyline-pattern-xlbox {
      pattern-transform: translate(0px, calc(100cqh - 150px));
    }
  }
}

@media (max-width: 767px) {
  @keyframes drive-mobile {
    0% {
      transform: translateX(-40px);
    }

    100% {
      transform: translateX(calc(100vw + 180px));
    }
  }

  .animate-drive {
    animation: drive-mobile 7s linear infinite;
  }

  .city-drive-unit .city-van {
    transform: scale(0.6);
    transform-origin: center bottom;
  }
}

.city-drive-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0;
}

.city-drive-unit .city-pin {
  display: block;
  margin-bottom: -14px;
  position: relative;
  top: 0;
}

.city-drive-unit .city-van {
  display: block;
  margin-bottom: -2px;
}

@media (max-width: 767px) {
  .city-drive-unit .city-pin {
    margin-bottom: -22px;
  }
}

.animate-drive {
  animation: drive 15s linear infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-slower {
  animation: float-slower 12s ease-in-out infinite;
}

.city-tone-10 {
  color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.city-tone-15 {
  color: color-mix(in srgb, var(--primary) 15%, transparent);
}

.city-tone-20 {
  color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.city-tone-25 {
  color: color-mix(in srgb, var(--primary) 25%, transparent);
}

.city-tone-30 {
  color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.city-tone-40 {
  color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.city-tone-50 {
  color: color-mix(in srgb, var(--primary) 50%, transparent);
}