:root {
  --ink: #071b29;
  --dark: #0b2433;
  --paper: #f9faf8;
  --surface: #eaf1f3;
  --muted: #415964;
  --accent: #69dcf3;
  --line: #c8d7db;
  --gutter: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: var(--masthead-height, 8rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #006989; outline-offset: 4px; }
:is(.hero, .dark, .featured) :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 5; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.masthead { position: sticky; inset-block-start: 0; z-index: 3; background: var(--paper); border-block-end: 1px solid var(--line); }
.nav, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.nav { min-height: 5rem; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: clamp(8rem, 17vw, 11.5rem); height: auto; }
.foot .brand img { width: 9rem; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(1rem, 3vw, 2.6rem); }
nav a, .nav-cta { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-cta { border: 1px solid var(--ink); border-radius: 3px; padding: .55rem .9rem; white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: white; }
:is(.hero, .section) > .wrap { width: min(100%, 76rem); }
.hero {
  color: white;
  background: linear-gradient(90deg, rgba(4,20,31,.95), rgba(4,20,31,.78) 40%, rgba(4,20,31,.18) 85%), url('imagenes/ruta-flotas.webp') center 58% / cover no-repeat #102e3d;
  min-height: clamp(32rem, 72svh, 45rem);
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
}
.featured .unit { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.04em; font-weight: 460; text-wrap: balance; }
h1 { max-width: 17ch; font-size: clamp(2.65rem, 6.3vw, 5.7rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 5.2rem); max-width: 17ch; }
h3 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
p { margin: 1rem 0; }
.hero-copy { max-width: 31rem; font-size: clamp(1.08rem, 2vw, 1.3rem); color: #ebf6fa; margin-block: 1.5rem 2rem; }
.actions, .contact-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 3px; background: var(--accent); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #a2ecfa; }
.outline { border-color: #c7e4ed; background: #071b2966; color: white; }
.outline:hover { background: #254e62; }
.secondary { background: transparent; border-color: var(--ink); }
.section { padding: clamp(3.75rem, 7vw, 6.5rem) var(--gutter); scroll-margin-top: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); }
.intro .wrap > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1rem 3rem; align-items: start; }
.intro p { margin: 0; }
.section p:not(.price, .unit) { max-width: 65ch; }
.section p:not(.price) { color: var(--muted); }
.dark, .featured { background: var(--dark); color: white; }
.dark p:not(.price), .featured p:not(.price) { color: #d2e5ed; }
.surface { background: var(--surface); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
.dark details { border-color: #406071; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1.1rem 0; font-size: 1.06rem; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: 0 0 .55em; height: .55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
details p { margin: 0 0 1.3rem; }
#soluciones summary:hover { color: var(--accent); }
#soluciones details[open] > summary { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  #soluciones summary { transition: color 180ms ease-out; }
  #soluciones summary::after { transition: transform 240ms ease-out; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    #soluciones details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 260ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease-out, content-visibility 260ms allow-discrete;
    }
    #soluciones details[open]::details-content { block-size: auto; opacity: 1; }
  }
  @supports not ((interpolate-size: allow-keywords) and selector(details::details-content)) {
    #soluciones details[open] > p { animation: solution-reveal 220ms ease-out; }
    @keyframes solution-reveal {
      from { opacity: 0; transform: translateY(-.25rem); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
.products, .plans { display: grid; gap: 1rem; margin-top: 2.5rem; }
.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
.products article, .plans article { padding: clamp(1.35rem, 3.3vw, 3rem); border: 1px solid var(--line); border-radius: 5px; }
.products article { background: #edf5f6; }
.products article + article { background: #e0eef4; }
.text-link { display: inline-block; margin-top: .6rem; font-weight: 700; text-underline-offset: .28em; }
.text-link:hover { color: #12617a; }
.plans { grid-template-columns: repeat(3,minmax(0,1fr)); }
.plans article { display: flex; flex-direction: column; }
.plans article > p:first-of-type { flex: 1; }
.plans article:not(.featured) { background: var(--paper); }
.price { margin: 1.1rem 0 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.price span { font-size: .85rem; letter-spacing: 0; font-weight: 700; }
.unit { margin: .4rem 0 1.5rem; }
.comparison { margin-top: 2rem; }
table { width: 100%; border-collapse: collapse; text-align: start; margin-bottom: 1.25rem; }
caption { text-align: start; font-weight: 650; margin-bottom: .6rem; }
th, td { border-bottom: 1px solid var(--line); padding: .65rem .5rem; vertical-align: top; }
.contact-links { flex-direction: column; margin-top: 1.8rem; }
.contact-links a { text-underline-offset: .25em; }
footer { padding: 1.5rem 0; }
.foot p { color: var(--muted); }
.foot div { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding-block: .65rem; gap: .65rem 1rem; }
  nav { order: 1; width: 100%; justify-content: flex-start; }
  .split, .plans, .products { grid-template-columns: 1fr; }
  .foot { flex-wrap: wrap; }
  .foot p { margin: 0; }
}
@media (max-width: 460px) {
  :root { --gutter: 1rem; }
  nav { gap: .4rem .9rem; font-size: .9rem; }
  .hero {
    min-height: auto;
    background-image: linear-gradient(rgba(4,20,31,.78), rgba(4,20,31,.68)), url('imagenes/ruta-flotas.webp');
    background-position: 62% center;
  }
  th, td { padding-inline: .25rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.whatsapp-float {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(var(--gutter), env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  border: 1px solid #07543c;
  border-radius: 999px;
  background: #25d366;
  color: #062b17;
  box-shadow: 0 .3rem 1rem #0004;
  font-weight: 700;
  text-decoration: none;
}
.whatsapp-float:hover { background: #45e47e; }
.whatsapp-float:focus-visible { outline-color: white; box-shadow: 0 0 0 7px #151515; }
footer { padding-block-end: 5.5rem; }

@media (max-width: 600px) {
  .whatsapp-float { width: 3.25rem; padding: .65rem; }
  .whatsapp-float span { display: none; }
}

.gps-catalog { background: var(--surface); }
.gps-intro { display: grid; grid-template-columns: 1.15fr .65fr; gap: 1rem clamp(1rem, 6vw, 6rem); align-items: end; margin-bottom: 2.5rem; }
.gps-intro p { margin: 0; font-size: 1.12rem; }
.gps-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gps-product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); }
.gps-photo { display: grid; place-items: center; min-height: 14rem; padding: 1.25rem; background: white; border-radius: .8rem .8rem 0 0; }
.gps-photo img { width: 100%; height: 12rem; object-fit: contain; }
.gps-product-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(1rem, 2.6vw, 2rem); border-top: 1px solid var(--line); }
.gps-product-copy h3 { font-size: clamp(1.55rem, 2.7vw, 2.55rem); }
.gps-product-copy p { margin: .75rem 0 1.35rem; }
.gps-product-copy .button { margin-top: auto; text-align: center; }
.gps-other { margin: 1.4rem 0 0; }
.gps-other a { color: var(--ink); font-weight: 700; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .intro .wrap > div { grid-template-columns: 1fr; }
  .gps-intro { grid-template-columns: 1fr; margin-bottom: 1.5rem; }
  .gps-track { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .gps-product { display: grid; grid-template-columns: clamp(4.25rem, 24vw, 8rem) minmax(0, 1fr); }
  .gps-photo { min-height: 0; padding: .55rem; border-radius: .8rem 0 0 .8rem; }
  .gps-photo img { height: clamp(5.5rem, 21vw, 8rem); }
  .gps-product-copy { padding: .9rem; border-top: 0; border-inline-start: 1px solid var(--line); }
  .gps-product-copy h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .gps-product-copy p { margin: .35rem 0 .75rem; line-height: 1.45; }
  .gps-product-copy .button { min-height: 2.75rem; padding: .45rem .65rem; font-size: .875rem; }
}

.contact-links { align-items: flex-start; justify-content: center; margin-top: 0; font-style: normal; }
.contact-links > a { overflow-wrap: anywhere; }
