/* Product-focused sections share the palette and layout tokens in site.css. */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #061a3af2;
  clip-path: polygon(0 0, 60% 0, 53% 100%, 0 100%);
}
.hero-content {
  position: relative;
  min-height: 660px;
  padding-block: 64px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 49%;
  max-width: 620px;
  flex: none;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.16;
  font-weight: 600;
  color: #fff;
  text-wrap: initial;
}
.hero h1 span {
  color: #aacbff;
  display: block;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #dbe5f3;
  margin-top: 24px;
  max-width: 540px;
}
.hero .button-row {
  gap: 10px;
}
.hero .button {
  font-size: 14px;
  min-height: 46px;
  padding: 12px 15px;
}
.hero-product {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 27%;
  min-width: 0;
  max-width: 390px;
  padding-right: 34px;
}
.hero-dashboard {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px #00000025;
}
.hero-dashboard img {
  width: 100%;
  height: auto;
  aspect-ratio: 1373/1146;
  object-fit: contain;
}
.hero-phone {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 28%;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 5px solid #17253a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px #00000035;
}
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.service-image {
  background: #edf2f9;
}
.service-image img {
  object-fit: cover;
  padding: 0;
  object-position: center;
}
.service-image--distribucion-b2b img {
  object-position: 50% 25%;
}
.service-image--ultima-milla img {
  object-position: 50% 25%;
}
.service-image--transporte img {
  object-position: 50% 65%;
}
.service-image--personalizadas img {
  object-position: 50% 35%;
}
.service-image--tms img {
  object-fit: contain;
  padding: 12px;
}
.service-detail-layout > img {
  object-fit: cover;
  background: var(--surface);
  padding: 0;
  max-height: 490px;
}
.service-detail--tms .service-detail-layout > img {
  object-fit: contain;
  padding: 14px;
}
.workflow-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.workflow-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: end;
}
.workflow-heading > p {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.85;
}
.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}
.workflow-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 3px solid var(--border);
  color: var(--muted);
  transition:
    border-color 0.18s,
    color 0.18s;
}
.workflow-tab:hover,
.workflow-tab[aria-selected="true"] {
  border-color: var(--blue);
  color: var(--navy);
}
.workflow-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: #e9edf3;
}
.workflow-tab[aria-selected="true"] .workflow-step-icon {
  background: var(--blue);
  color: #fff;
}
.workflow-step-icon .icon {
  width: 22px;
  height: 22px;
}
.workflow-tab-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.workflow-number {
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}
.workflow-tab-label strong {
  font-size: 16px;
  line-height: 1.4;
}
.workflow-tab-arrow {
  margin-left: auto;
  width: 17px;
  color: #7e8da1;
}
.workflow-tab:last-child .workflow-tab-arrow {
  visibility: hidden;
}
.workflow-panels {
  display: grid;
  gap: 40px;
}
.workflow-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Inactive stages share the grid track, keeping the section height stable. */
.workflow--interactive .workflow-panel {
  grid-area: 1 / 1;
}
.workflow-panel[inert] {
  visibility: hidden;
  pointer-events: none;
}
.workflow-detail {
  min-width: 0;
}
.workflow-detail h3 {
  font-size: 27px;
  line-height: 1.3;
  text-wrap: initial;
  max-width: 550px;
}
.workflow-description {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
}
.workflow-responsibilities {
  margin: 24px 0;
  border-top: 1px solid var(--border);
}
.workflow-responsibilities > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.7;
}
.workflow-responsibilities dt {
  color: var(--navy);
  font-weight: 650;
}
.workflow-responsibilities dd {
  margin: 0;
  color: var(--muted);
}
.workflow-result {
  display: flex;
  gap: 12px;
  color: var(--green);
}
.workflow-result .icon {
  margin-top: 2px;
}
.workflow-result p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--green);
}
.workflow-result strong {
  display: block;
  margin-bottom: 4px;
}
.workflow-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.workflow-image--3 {
  object-position: center 25%;
}
.service-includes {
  margin-top: 28px;
  font-size: 19px;
}
.service-includes + .check-list {
  margin-top: 18px;
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.service-actions .button,
.service-actions .text-link,
.tms-page-context .text-link {
  margin-top: 0;
}
.tms-page-context {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}
.tms-page-context .container,
.tms-page-context nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.tms-page-context .container {
  justify-content: space-between;
}
.tms-page-context h1 {
  font-size: 18px;
}
.tms-page-context nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.tms-page-context nav a:hover {
  color: var(--blue);
}
.icon-back {
  transform: rotate(180deg);
}
.icon-down {
  transform: rotate(90deg);
}
.purpose-section {
  background: #edf3fb;
  border-block: 1px solid #d9e4f3;
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
}
.purpose-item > .icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
  margin-bottom: 20px;
}
.purpose-item h2 {
  font-size: 30px;
  margin-bottom: 22px;
}
.purpose-item p {
  font-size: 17px;
  line-height: 1.9;
}
.dashboard-section {
  background: #fff;
}
.dashboard-section .section-heading {
  margin-bottom: 32px;
}
.dashboard-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.dashboard-visual {
  order: 2;
  margin-top: 34px;
  width: min(100%, 1080px);
  align-self: center;
}
.dashboard-shot {
  display: block;
  padding: 0;
  width: 100%;
  border: 1px solid #d4e0ee;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 44px #061a3a0c;
}
.dashboard-shot > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.kpi-list {
  order: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 23px;
  gap: 24px;
}
.kpi-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.kpi-icon {
  display: inline-flex;
  flex: none;
  color: var(--blue);
  padding-top: 1px;
}
.kpi-icon .icon {
  width: 18px;
  height: 18px;
}
.kpi-item:nth-child(2) .kpi-icon {
  color: var(--green);
}
.kpi-item:nth-child(3) .kpi-icon {
  color: var(--amber);
}
.kpi-item h3 {
  font-size: 15px;
  line-height: 1.5;
  text-wrap: initial;
}
.kpi-item p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}
.sync-note {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.sync-note .icon {
  width: 14px;
  height: 14px;
}
.transport-visual {
  margin: 0;
  min-width: 0;
}
.transport-screen {
  padding: 0;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  width: 100%;
  overflow: hidden;
}
.transport-screen img {
  width: 100%;
  height: auto;
}
.capabilities-section {
  background: #edf3fb;
  border-block: 1px solid #d9e4f3;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}
.capability-item {
  border-top: 1px solid #c2d3e9;
  padding-top: 24px;
  min-width: 0;
}
.capability-item > .icon {
  color: var(--blue);
  width: 24px;
  height: 24px;
  margin-bottom: 22px;
}
.capability-item h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
}
.capability-item p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 265px;
}
.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  box-shadow: 0 4px 16px #12342b2b;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.whatsapp-float > img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}
.whatsapp-float:hover {
  background: #1bb858;
  box-shadow: 0 6px 20px #12342b3b;
}
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s;
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}
.menu-is-open .whatsapp-float,
.dialog-is-open .whatsapp-float {
  visibility: hidden;
}
.footer-whatsapp {
  color: #bfdbc9;
}
.site-footer {
  padding-bottom: 45px;
}
@media (min-width: 1680px) {
  .hero-content {
    min-height: 700px;
    padding-block: 68px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero .button {
    font-size: 14px;
  }
  .hero-lead {
    font-size: 18px;
  }
}
@media (max-width: 1279px) {
  .navbar {
    gap: 20px;
  }
  .main-navigation {
    gap: 15px;
  }
  .nav-actions {
    gap: 12px;
  }
  .hero-content {
    min-height: 610px;
    padding-block: 58px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-copy {
    width: 51%;
  }
  .hero .button-row {
    gap: 10px;
    align-items: flex-start;
  }
  .hero .button {
    font-size: 13px;
    padding-inline: 12px;
  }
  .hero-product {
    padding-right: 18px;
  }
  .hero-phone {
    border-width: 4px;
    border-radius: 14px;
  }
  .kpi-list {
    gap: 16px;
  }
  .kpi-item {
    gap: 8px;
  }
  .kpi-item h3 {
    font-size: 14px;
  }
  .kpi-item p {
    font-size: 13px;
  }
}
@media (max-width: 1023px) {
  .hero-content {
    padding-block: 48px;
    min-height: 600px;
  }
  .hero-background {
    object-position: 68% center;
  }
  .hero::before {
    clip-path: polygon(0 0, 65% 0, 56% 100%, 0 100%);
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .hero-copy {
    width: 55%;
  }
  .hero .button-row {
    margin-top: 22px;
    flex-direction: column;
    gap: 8px;
  }
  .hero .button-ghost {
    min-height: 44px;
  }
  .hero-product {
    padding-right: 14px;
  }
  .hero-phone {
    width: 26%;
  }
  .workflow-heading {
    gap: 32px;
  }
  .workflow-panel {
    gap: 32px;
  }
  .workflow-tabs {
    gap: 16px;
  }
  .workflow-tab {
    gap: 10px;
  }
  .workflow-tab-arrow {
    display: none;
  }
  .workflow-tab-label strong {
    font-size: 15px;
  }
  .kpi-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .dashboard-visual {
    margin-top: 28px;
  }
  .capabilities-grid {
    gap: 26px;
  }
  .capability-item h3 {
    font-size: 15px;
  }
  .capability-item p {
    font-size: 13px;
  }
  .transport-layout {
    grid-template-columns: 1fr 1.15fr;
  }
  .purpose-grid {
    gap: 40px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-background {
    top: auto;
    height: 330px;
    object-position: center;
  }
  .hero::before {
    bottom: 330px;
    clip-path: none;
    background: var(--navy);
  }
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-block: 32px;
  }
  .hero-copy {
    width: 100%;
    max-width: 620px;
  }
  .hero .button-row {
    flex-direction: row;
  }
  .hero-product {
    position: relative;
    align-self: flex-start;
    bottom: auto;
    width: 250px;
    margin-top: 124px;
    padding-right: 24px;
  }
}
@media (max-width: 767px) {
  .hero-background {
    top: auto;
    height: 240px;
    object-position: 75% center;
  }
  .hero::before {
    bottom: 240px;
    clip-path: none;
    background: var(--navy);
  }
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 28px;
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    max-width: 540px;
  }
  .hero h1 {
    font-size: 34px;
    max-width: 520px;
    line-height: 1.15;
  }
  .hero-lead {
    font-size: 16px;
    line-height: 1.8;
    max-width: 540px;
    margin-top: 16px;
  }
  .hero .button-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }
  .hero .button {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .hero .button-ghost {
    border-color: #7f91a8;
  }
  .hero-product {
    position: relative;
    width: 190px;
    max-width: 70%;
    align-self: flex-start;
    bottom: auto;
    margin-top: 80px;
    padding: 0 20px 0 0;
  }
  .hero-dashboard {
    width: 100%;
    border-radius: 4px;
  }
  .hero-phone {
    right: 0;
    bottom: -8px;
    width: 28%;
    border-width: 3px;
    border-radius: 12px;
  }
  .hero .image-expand {
    width: 27px;
    height: 27px;
    bottom: 8px;
    left: 8px;
  }
  .hero .image-expand .icon {
    width: 13px;
    height: 13px;
  }
  .workflow-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .workflow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
    margin-bottom: 28px;
  }
  .workflow-step-icon {
    width: 34px;
    height: 34px;
  }
  .workflow-step-icon .icon {
    width: 20px;
    height: 20px;
  }
  .workflow-tab {
    min-height: 78px;
    padding-block: 12px;
  }
  .workflow-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 26px;
    align-items: start;
  }
  .workflow-detail h3 {
    font-size: 24px;
  }
  .workflow-image {
    grid-row: 1;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    object-position: center 30%;
  }
  .workflow-description {
    font-size: 16px;
    margin-top: 14px;
  }
  .workflow-responsibilities > div {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
  }
  .kpi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 20px;
    gap: 22px 18px;
  }
  .kpi-item h3 {
    font-size: 14px;
  }
  .kpi-item p {
    font-size: 13px;
  }
  .kpi-item .icon {
    width: 16px;
    height: 16px;
  }
  .dashboard-visual {
    margin-top: 24px;
  }
  .sync-note {
    font-size: 12px;
    align-items: flex-start;
    text-align: center;
    margin-top: 12px;
  }
  .sync-note .icon {
    margin-top: 2px;
  }
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
  .capability-item {
    padding-top: 20px;
  }
  .capability-item > .icon {
    margin-bottom: 16px;
    width: 22px;
    height: 22px;
  }
  .capability-item h3 {
    font-size: 14px;
  }
  .capability-item p {
    font-size: 12px;
  }
  .transport-layout {
    grid-template-columns: 1fr;
  }
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .purpose-item + .purpose-item {
    border-top: 1px solid #c2d3e9;
    padding-top: 36px;
  }
  .purpose-item h2 {
    font-size: 26px;
  }
  .purpose-item p {
    font-size: 16px;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .whatsapp-float > img {
    width: 26px;
    height: 26px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  .site-footer {
    padding-bottom: 50px;
  }
  .form-submit {
    scroll-margin-bottom: 90px;
  }
}
@media (max-width: 379px) {
  .hero-background {
    height: 180px;
  }
  .hero::before {
    bottom: 180px;
  }
  .hero-content {
    padding-block: 28px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-lead {
    font-size: 16px;
  }
  .hero .button {
    font-size: 14px;
    padding-inline: 9px;
  }
  .hero .button-row {
    gap: 8px;
  }
  .hero-product {
    padding-right: 20px;
    width: 160px;
    margin-top: 45px;
  }
  .workflow-tab-label strong {
    font-size: 14px;
  }
  .capabilities-grid {
    gap: 24px 18px;
  }
  .capability-item h3 {
    font-size: 13px;
  }
  .capability-item p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-tooltip,
  .workflow-tab {
    transition: none;
  }
}
@media print {
  .workflow--interactive .workflow-panel {
    grid-area: auto;
    visibility: visible;
    break-inside: avoid;
  }
  .hero-product,
  .hero-background,
  .hero::before,
  .whatsapp-float {
    display: none;
  }
  .hero {
    background: #fff;
  }
  .hero-content {
    min-height: 0;
    padding: 24px 0;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1,
  .hero-lead {
    color: #000;
  }
}
