/* Global */

:root {
  --primary: #152f47;
  --secondary: #406282;
  --white: #e0d9ca;
  --nude: #bcb3a0;
  --mouse: #8e826c;
  --accent: #d3a04c;
  --btn-bd: rgba(27, 42, 53, 0.35);
}

/* End: Global */

/* Hero */
.c-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--primary);
}

.c-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/waves-c.svg") no-repeat right center;
  background-size: clamp(1200px, 105vw, 2000px) auto;
  background-position: 20% 100%;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.c-hero-container {
  height: 100%;
  padding: 50px 0 0 50px;
}

.c-hero-title {
  margin: 100px auto;
  font: 500 48px "Montserrat", system-ui, sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.c-hero-line {
  display: block;
}

.c-hero-accent {
  color: var(--accent);
  font-family: "Canela";
  font-style: italic;
  font-size: 42px;
}

.c-cards {
  width: calc(100% - 80px);
  list-style: none;
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.c-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  width: var(--w);
  height: var(--h);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.c-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.c-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 55%
  );
  z-index: 0;
  pointer-events: none;
}

.c-card-pills {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 22px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  color: #fff;
  font: 500 12px/1.1 "Montserrat", system-ui, sans-serif;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: saturate(140%) blur(2px);
  backdrop-filter: saturate(140%) blur(2px);
  white-space: nowrap;
}

.c-card-arrow {
  position: absolute;
  top: 16px;
  right: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  color: #1a2430;
  background: var(--c-circle, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.c-card:hover .c-card-arrow {
  transform: translate(-2%, -2px);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.25);
}

.c-card-cta {
  position: absolute;
  left: 68%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 50px;
  padding: 6px 12px;
  color: var(--white);
  background: var(--primary);
  border-radius: 999px;
  text-decoration: none;
  font: 18px "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.c-card-cta:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  background: var(--primary);
}

.c-card-cta:active {
  transform: translate(-50%, 0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

#c-card-container {
  margin-top: -220px;
}

/* End: Hero */

/* Mobile */

/* Hero */
@media (max-width: 480px) {
  #comercio .c-hero-container {
    position: relative;
    padding: 0;
    margin-top: 160px;
    width: 100%;
  }

  #comercio .c-hero-title {
    margin: auto;
    text-align: center;
    font-size: 24px;
  }

  .c-hero-accent {
    font-size: 24px;
  }

  #comercio .c-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    height: auto;
    width: 100%;
  }

  .c-card {
    width: 100%;
    max-width: 500px;
    height: 220px;
    overflow: hidden;
  }

  #c-card-container {
    margin-top: 0;
  }

  .c-card-arrow {
    top: auto;
    bottom: 16px;
    right: 16px;
    position: absolute;
  }

  .c-card-cta {
    display: none;
  }
}
/* End: Hero */

/* End: Mobile */

/*  Smart trade */
.c-timeline {
  position: relative;
  padding: 80px 0;
}

.c-timeline-toprule {
  max-width: 100%;
  margin: 60px auto;
  color: var(--primary);
}

.c-timeline-supra {
  position: relative;
  margin: 0 0 clamp(40px, 5.5vw, 80px);
  padding-top: 12px;
  border-top: 1px solid rgba(14, 35, 48, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font: 14px/1.4 "Montserrat", system-ui, -apple-system, sans-serif;
  color: rgba(14, 35, 48, 0.8);
}

.c-timeline-supra span {
  position: relative;
  padding-left: 18px;
  margin-left: 48px;
}

.c-timeline-supra span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.smart-truck-video {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 80px;
  margin-top: 60px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 180px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.smart-truck-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-timeline-title {
  font-size: 52px;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  margin: 0 0 0 60px;
}

.c-accent {
  font-family: "Canela", serif;
  font-style: italic;
}

.rwtc-timeline {
  padding: 32px;
  font-family: "Montserrat";
  margin: 0 60px 0 60px;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  padding: 0;
  margin: clamp(48px, 5vw, 72px) 0;
  min-height: 440px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.28) 0%,
    #434f56 80%,
    rgba(255, 255, 255, 0.18) 100%
  );
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-step {
  position: relative;
  color: rgba(10, 42, 61, 0.9);
}

.timeline-stem {
  position: absolute;
  left: 50%;
  width: 2px;
  background: currentColor;
  transform: translateX(-50%);
  z-index: 1;
}

.align-bottom .timeline-stem {
  top: 50%;
  height: 100px;
}
.align-bottom .timeline-stem::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid currentColor;
}

.align-top .timeline-stem {
  top: calc(50% - 100px);
  height: 100px;
}
.align-top .timeline-stem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid currentColor;
}

.timeline-card {
  position: absolute;
  left: 50%;
  width: 360px;
  max-width: 360px;
  display: grid;
  gap: 10px;
  padding: 24px;
  transform: translateX(-50%);
  line-height: 1.45;
  background: transparent;
}

.timeline-card h3 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  line-height: 1.22;
}

.timeline-card p {
  margin: 0;
  font-size: 14px;
  color: var(--primary);
  line-height: 1.55;
}

.rwtc-timeline .align-top .timeline-card {
  bottom: calc(50% + 100px);
}
.rwtc-timeline .align-bottom .timeline-card {
  top: calc(50% + 100px);
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 66px;
  height: 66px;
  object-fit: contain;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .c-timeline-title {
    text-align: center;
    font-size: 28px;
    margin: 0;
  }

  .timeline-track {
    position: relative;
    width: 100%;
    margin: 0;
  }

  .timeline-stem,
  .timeline-stem::before,
  .timeline-stem::after {
    display: none !important;
    content: none !important;
  }

  .timeline-track::before {
    content: "";
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.28) 0%,
      #434f56 80%,
      rgba(255, 255, 255, 0.18) 100%
    );
    transform: translateY(-50%);
    z-index: 0;
  }

  .timeline-dot {
    width: 42px;
  }

  .timeline-card .step-index,
  .timeline-card .step-title,
  .timeline-card h3 {
    display: inline; /* índice + título en la misma línea */
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
  }

  .timeline-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.92;
  }

  .align-top .timeline-card,
  .align-bottom .timeline-card,
  .pull-left .timeline-card,
  .pull-right .timeline-card {
    position: static !important;
    transform: none !important;
    margin: 6px 0 0;
    width: auto;
    text-align: left;
  }
}

/* End: Smart Truck/

/* Mobile */
@media (max-width: 480px) {
  .c-timeline-toprule {
    position: relative;
    z-index: 3;
    margin: 16px 16px 0;
    padding: 0;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    min-height: initial;
    gap: 56px;
    margin-top: 24px;
  }
  .timeline-track::before {
    left: 20px;
    right: auto;
    width: 2px;
    height: 100%;
    top: 0;
    transform: none;
  }

  .timeline-step {
    min-height: initial;
    padding-left: 56px;
  }

  .timeline-dot {
    left: 20px;
    top: 0;
    transform: translate(-50%, 0);
  }
  .timeline-stem {
    left: 20px;
    top: 20px;
    height: calc(100% - 20px);
    transform: translateX(-50%);
    background: var(--muted);
  }
  .timeline-card {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    margin-top: 12px;
  }
  .align-top .timeline-card,
  .align-bottom .timeline-card {
    top: auto;
    bottom: auto;
  }
}

/* End: Mobile*/

/* Card */
.c-offer {
  margin: auto;
  margin-bottom: 60px;
  margin-top: 100px;
  width: calc(100% - 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px);
  background: radial-gradient(
    at top,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  backdrop-filter: blur(25px) saturate(140%);
  border-radius: 50px;
  transition: box-shadow 0.25s ease, transform 0.25s ease,
    border-color 0.25s ease;
}

.c-offer:is(:hover, :focus-within) {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.18);
}

.c-offer.is-reverse {
  grid-template-columns: 1fr 1fr;
}
.c-offer.is-reverse .c-offer-media {
  order: 2;
}
.c-offer.is-reverse .c-offer-body {
  order: 1;
}

.c-offer-media {
  width: 568px;
  height: 336px;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  overflow: hidden;
}

.c-offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.c-offer-body {
  padding: clamp(6px, 1.2vw, 10px);
}

.c-offer-title {
  font: 600 clamp(20px, 2.4vw, 28px) / 1.2 "Montserrat", system-ui, sans-serif;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.c-offer-title em {
  font-weight: 600;
}

.c-offer-sub {
  font: 500 clamp(16px, 1.4vw, 16px) / 1.5 "Montserrat", system-ui, sans-serif;
  color: var(--primary);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.c-offer-list {
  margin: 0 0 16px 1.1em;
  padding: 0;
  font: 400 14px/1.7 "Montserrat", system-ui, sans-serif;
  color: var(--primary);
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
  text-decoration: none;
  font: 500 13px/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease, border-color 0.2s ease;
}

.c-btn:hover {
  background: rgba(27, 42, 53, 0.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  border-color: rgba(27, 42, 53, 0.45);
}

.c-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* End: Card */

/* Responsive */

@media (max-width: 480px) {
  #c-offers {
    width: 100%;
    padding: 16px;
    display: grid;
    gap: 20px;
  }

  .c-offer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    border-radius: 18px;
    margin: 0;
  }

  .c-offer-media {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    height: auto;
  }

  .c-offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .c-offer.is-reverse {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    border-radius: 18px;
  }

  .c-offer-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    font-size: 26px;
  }

  .c-offer-sub {
    text-align: center;
    font-size: 14px;
  }

  .c-btn {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
}
