.logistics {
  position: relative;
  padding: 115px 0;

  background: #f5f7f9;

  overflow: hidden;
}

.logistics-container {
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.95fr 0.9fr;

  align-items: center;

  gap: 80px;
}

/* =========================
       CONTENT
    ========================= */

.logistics-content {
  max-width: 620px;
}

/* =========================
       HEADING
    ========================= */

.logistics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  max-width: 470px;

  margin-bottom: 32px;
}

.logistics-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #4e9f70;
}

.logistics-kicker {
  padding-top: 2px;

  font-size: 10px;
  font-weight: 700;

  line-height: 1.4;
  letter-spacing: 0.16em;

  text-align: right;

  color: #8a949e;
}

/* =========================
       TITLE
    ========================= */

.logistics-content h2 {
  max-width: 600px;

  margin-bottom: 32px;

  font-size: clamp(44px, 5vw, 68px);

  line-height: 0.95;

  letter-spacing: -0.05em;

  font-weight: 400;

  color: #0b2745;
}

.logistics-content h2 strong {
  font-weight: 700;
}

/* =========================
       DESCRIPTION
    ========================= */

.logistics-description {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  max-width: 490px;

  margin-bottom: 48px;
}

.logistics-description-line {
  width: 1px;
  min-width: 1px;

  height: 62px;

  background: #4e9f70;
}

.logistics-description p {
  margin: 0;

  font-size: 14px;

  line-height: 1.75;

  color: #68737f;
}

/* =========================
       DATA
    ========================= */

.logistics-data {
  display: grid;

  grid-template-columns: 1fr 1fr;

  max-width: 570px;

  border-top: 1px solid rgba(18, 59, 109, 0.13);

  padding-top: 25px;
}

.logistics-data-main,
.logistics-data-national {
  display: flex;
  align-items: flex-start;

  gap: 16px;
}

.logistics-data-main {
  padding-right: 25px;

  border-right: 1px solid rgba(18, 59, 109, 0.1);
}

.logistics-data-national {
  padding-left: 25px;
}

/* =========================
       NUMBER
    ========================= */

.logistics-data-number {
  font-size: 34px;

  line-height: 0.9;

  letter-spacing: -0.06em;

  font-weight: 400;

  color: #123b6d;
}

/* =========================
       DATA TEXT
    ========================= */

.logistics-data strong {
  display: block;

  margin-bottom: 7px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #123b6d;
}

.logistics-data span:last-child {
  display: block;

  font-size: 10px;

  line-height: 1.65;

  color: #7c8791;
}

/* =========================
       NATIONAL
    ========================= */

.logistics-national-plus {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  flex-shrink: 0;

  border: 1px solid rgba(78, 159, 112, 0.4);

  font-size: 17px;

  font-weight: 400;

  color: #4e9f70;
}

/* =========================
       MAP
    ========================= */

.logistics-map-wrapper {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 520px;
}

.logistics-map {
  position: relative;

  width: 390px;
  height: 520px;

  transform: translateX(-30px);
}

.logistics-map-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  opacity: 0.95;
}

/* =========================
       ROUTES
    ========================= */

.logistics-routes {
  position: absolute;

  inset: 0;

  z-index: 2;

  width: 100%;
  height: 100%;

  overflow: visible;

  pointer-events: none;
}

.logistics-route-flow {
  fill: none;

  stroke: #4e9f70;

  stroke-width: 1.4;

  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 7 10;

  stroke-dashoffset: 80;

  opacity: 0;

  animation: logisticsRouteFlow 4.5s ease-in-out infinite;
}

@keyframes logisticsRouteFlow {
  0% {
    stroke-dashoffset: 80;
    opacity: 0;
  }

  12% {
    opacity: 0.65;
  }

  55% {
    opacity: 0.65;
  }

  100% {
    stroke-dashoffset: -80;
    opacity: 0;
  }
}

/* =========================
       CÓRDOBA
    ========================= */

.logistics-origin {
  position: absolute;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  transform: translate(-50%, -50%);
}

.logistics-origin-dot {
  position: relative;

  z-index: 2;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: #123b6d;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(11, 39, 69, 0.15);
}

.logistics-origin-pulse {
  position: absolute;

  width: 16px;
  height: 16px;

  border: 1px solid rgba(18, 59, 109, 0.5);

  border-radius: 50%;

  animation: logisticsOriginPulse 2.8s ease-out infinite;
}

@keyframes logisticsOriginPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }

  70% {
    opacity: 0;
    transform: scale(2.4);
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.logistics-origin-label {
  position: absolute;

  left: 17px;

  white-space: nowrap;

  padding: 5px 8px;

  background: #123b6d;

  box-shadow: 0 5px 18px rgba(11, 39, 69, 0.1);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #ffffff;
}

/* =========================
       DESTINATION POINTS
    ========================= */

.logistics-point {
  position: absolute;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  transform: translate(-50%, -50%);
}

.logistics-point-dot {
  position: relative;

  z-index: 2;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #4e9f70;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(11, 39, 69, 0.12);

  transition: transform 0.25s ease, background-color 0.25s ease;
}

.logistics-point-pulse {
  position: absolute;

  width: 15px;
  height: 15px;

  border: 1px solid rgba(78, 159, 112, 0.6);

  border-radius: 50%;

  animation: logisticsPointPulse 2.8s ease-out infinite var(--point-delay);
}

@keyframes logisticsPointPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }

  70% {
    opacity: 0;
    transform: scale(2.5);
  }

  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* =========================
       DESTINATION LABEL
    ========================= */

.logistics-point-label {
  position: absolute;
  left: 50%;
  bottom: 18px;

  white-space: nowrap;
  padding: 5px 8px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 59, 109, 0.09);
  box-shadow: 0 5px 18px rgba(11, 39, 69, 0.1);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #123b6d;

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 5px);

  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;

  pointer-events: none;
}

/* =========================
       DESKTOP HOVER
    ========================= */

@media (hover: hover) and (pointer: fine) {
  .logistics-point:hover .logistics-point-label {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .logistics-point:hover .logistics-point-dot {
    transform: scale(1.35);
    background: #123b6d;
  }
}

/* =========================
       MOBILE CLICK
    ========================= */

.logistics-point-active .logistics-point-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.logistics-point-active .logistics-point-dot {
  transform: scale(1.35);

  background: #123b6d;
}

/* =========================
       MAP CAPTION
    ========================= */

.logistics-map-caption {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 10px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: #7a858f;
}

.logistics-caption-line {
  width: 20px;
  height: 1px;

  background: #4e9f70;
}

/* =========================
       RESPONSIVE
    ========================= */

@media (max-width: 1000px) {
  .logistics-container {
    grid-template-columns: 1fr 0.8fr;

    gap: 50px;
  }

  .logistics-map {
    width: 330px;
    height: 470px;

    transform: translateX(-20px);
  }

  .logistics-data {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logistics-data-main {
    padding-right: 0;

    border-right: 0;
  }

  .logistics-data-national {
    padding-left: 0;
  }
}

@media (max-width: 800px) {
  .logistics {
    padding: 85px 0;
  }

  .logistics-container {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .logistics-content {
    max-width: 700px;
  }

  .logistics-heading {
    max-width: 100%;
  }

  .logistics-map-wrapper {
    min-height: auto;
  }

  .logistics-map {
    width: 300px;
    height: 430px;

    transform: translateX(-15px);
  }

  .logistics-data {
    grid-template-columns: 1fr 1fr;
  }

  .logistics-data-main {
    padding-right: 20px;

    border-right: 1px solid rgba(18, 59, 109, 0.1);
  }

  .logistics-data-national {
    padding-left: 20px;
  }
}

@media (max-width: 500px) {
  .logistics {
    padding: 70px 0;
  }

  .logistics-container {
    width: min(100% - 40px, 1380px);
  }

  .logistics-heading {
    margin-bottom: 25px;
  }

  .logistics-kicker {
    font-size: 8px;
  }

  .logistics-content h2 {
    font-size: 42px;
  }

  .logistics-description {
    margin-bottom: 38px;
  }

  .logistics-description p {
    font-size: 13px;
  }

  .logistics-data {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logistics-data-main {
    padding-right: 0;

    border-right: 0;
  }

  .logistics-data-national {
    padding-left: 0;
  }

  .logistics-map {
    width: 250px;
    height: 360px;

    transform: translateX(-5px);
  }

  .logistics-point-label,
  .logistics-origin-label {
    font-size: 8px;

    padding: 4px 6px;
  }
}
