:root {
  --bg-dark: #1f1f1f;
  --bg-mid: #2a2a2a;
  --bg-light: #f3f6f7;
  --teal: #00A89C;
  --teal-dark: #0c7f7b;
  --white: #ffffff;
  --muted: #c8c8c8a8;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "all-round-gothic", "Montserrat", sans-serif;
  color: var(--white);
  background: var(--bg-dark);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 14px;  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);}

.btn:hover {
  background: var(--teal-dark);
}

/* HERO */
.hero {
  position: relative;
  min-height: 1000px;
  background: url("images/backgrounds/hero-bg.webp") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.topbar--scrolled {
  background: #1a1a1a;
}

.topbar--scrolled::after {
  background: rgba(26, 26, 26, 0.25);
}

.topbar--scrolled .nav a {
  color: var(--white);
}

.topbar--scrolled .nav a:hover {
  color: var(--teal);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  width: 516px;
  height: 262px;
  background: url("images/icons/logo.webp") center/contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 1px;
}

.nav a {
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::after,
.nav__link--active::after {
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 80px;
}

.hero__grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__tagline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 400;
  padding-left: 18px;
  position: relative;
  text-align: center;
  letter-spacing: 5px;
}

.hero__tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--white);
}

.hero__tagline-light {
  font-weight: 400;
}

.hero__tagline-bold {
  font-weight: 700;
}

.hero__badges {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: center;
  text-align: center;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: 700;
}

.badge__icon {
  width: 150px;
  height: 150px;
  background: center/contain no-repeat;
}

.badge__icon--keys {
  background-image: url("images/icons/icon-keys.svg");
}

.badge__icon--steer {
  background-image: url("images/icons/icon-steer.svg");
}

.badge__icon--seat {
  background-image: url("images/icons/icon-seat.svg");
}

/* SECTION GENERIC */
section {
  position: relative;
}

.section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.section__inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.section__title {
  text-transform: uppercase;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 2px;
}

.section__title-light {
  display: block;
  font-weight: 400;
}

.section__title-bold {
  display: block;
  font-weight: 700;
}

.section__text {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 800px;
}

/* ARRIENDOS */
.rentals {
  background: url("images/backgrounds/arriendos-bg.webp") center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rentals::before {
  content: "";
  position: absolute;
  inset: 0;
}

.rentals .section__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 0.3fr;
  gap: 60px;
  padding: 36px 0;
  align-items: center;
}

.rentals__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.rentals__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rentals__icon {
  width: 120px;
  height: 120px;
  background: url("images/icons/icon-keys.svg") center/contain no-repeat;
}

/* SERVICE BLOCKS */
.service {
  background: url("images/backgrounds/service-bg.webp") center/cover no-repeat;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
}

.service .section__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 0.3fr 1fr;
  gap: 60px;
  padding: 40px 0;
  align-items: center;
}

.service__left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.service__icon {
  width: 120px;
  height: 120px;
  background: url("images/icons/icon-steer.svg") center/contain no-repeat;
}

.service__right .section__text {
  text-align: right;
}

/* ACCESSORIES */
.accessories {
  background: url("images/backgrounds/accessories-bg.webp") center/cover no-repeat;
}

.accessories::before {
  content: "";
  position: absolute;
  inset: 0;
}

.accessories .section__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 0.3fr;
  gap: 60px;
  padding: 40px 0;
  align-items: center;
}

.accessories__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.accessories__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessories__icon {
  width: 120px;
  height: 120px;
  background: url("images/icons/icon-seat.svg") center/contain no-repeat;
}

/* CAR WASH */
.wash {
  background: url("images/backgrounds/wash-bg.webp") center/cover no-repeat;
}

.wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 38, 36, 0.65);
}

.wash .section__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 0.3fr 1fr;
  gap: 60px;
  padding: 40px 0;
  align-items: center;
}

.wash__left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wash__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.wash__icon {
  width: 120px;
  height: 120px;
  background: url("images/icons/icon-wash.svg") center/contain no-repeat;
}

.wash__right .section__text {
  text-align: right;
}

/* DELIVERY */
.delivery {
  background: url("images/backgrounds/delivery-bg.webp") center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.delivery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 38, 36, 0.65);
}

.delivery .section__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 0.3fr;
  gap: 60px;
  padding: 40px 0;
  align-items: center;
}

.delivery__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.delivery__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery__icon {
  width: 120px;
  height: 120px;
  background: url("images/icons/icon-keys.svg") center/contain no-repeat;
}

/* FLEET */
.fleet {
  background: url("images/backgrounds/fleet-bg.webp") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.fleet__carousel {
  position: relative;
  width: 100%;
  height: 900px;
}

.fleet__slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.fleet__slide--active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.fleet__inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.fleet__car {
  background: center/cover no-repeat;
  width: 100%;
  height: 100%;
  position: relative;
}

.fleet__info {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
  color: var(--white);
  text-transform: uppercase;
}

/* Kia Morning - centered vertical, right aligned */
.fleet__slide[data-slide="0"] .fleet__info {
  top: 50%;
  right: 5%;
  left: auto;
  text-align: right;
  transform: translateY(-50%);
}

/* Kia Soluto - centered vertical, right aligned */
.fleet__slide[data-slide="1"] .fleet__info {
  top: 50%;
  right: 5%;
  left: auto;
  text-align: right;
  transform: translateY(-50%);
}

/* Changan X7 Plus - centered vertical, left aligned */
.fleet__slide[data-slide="2"] .fleet__info {
  top: 50%;
  left: 5%;
  right: auto;
  text-align: left;
  transform: translateY(-50%);
}

/* Changan Alsvin Automático - centered vertical, left aligned */
.fleet__slide[data-slide="3"] .fleet__info {
  top: 50%;
  left: 5%;
  right: auto;
  text-align: left;
  transform: translateY(-50%);
}

.fleet__model {
  font-size: 64px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 2px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--white);
  margin-bottom: 20px;
}

.fleet__label {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 12px;
}

.fleet__price {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 10px;
}

.fleet__iva {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 7px;
}

.fleet__price span {
  font-size: 52px;
  color: var(--white);
  font-weight: 400;
}

.fleet__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.fleet__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fleet__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.fleet__dot--active {
  width: 28px;
  height: 28px;
  background: var(--white);
}

/* FOOTER */
footer {
  background: #1A1A1A;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  width: min(100% - 32px, var(--max-width));
  margin: 40px auto 0;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  align-items: start;
}

.footer__title {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 2px;
}

.footer__grid p {
  letter-spacing: 2px;
}

/* Contact list */
.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.footer__contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(0, 168, 156, 0.15);
  color: var(--teal);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer__contact a:hover .footer__icon {
  background: var(--teal);
  color: var(--white);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: #cfe9d6;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__cta svg {
  width: 20px;
  height: 20px;
  color: #25D366;
  transition: color 0.2s ease;
}

.footer__cta:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.8);
  color: var(--white);
}

.footer__cta:hover svg {
  color: #2ee06f;
}

/* Floating WhatsApp button */
.wsp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: wsp-pop 0.4s ease both;
}

.wsp-float svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.wsp-float__label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin-left 0.35s ease;
}

.wsp-float:hover {
  background: #1ebe5b;
}

.wsp-float:hover .wsp-float__label {
  max-width: 220px;
  opacity: 1;
  margin-left: 10px;
}

@keyframes wsp-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.footer__hours {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  letter-spacing: 2px;
}

.footer__logo {
  width: 360px;
  height: 150px;
  background: url("images/icons/logo.webp") center/contain no-repeat;
  margin-left: auto;
  align-self: center;
}

.footer__copy {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .topbar .container {
    justify-content: center;
  }

  .nav {
    margin-left: 0;
    margin-top: 20px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .logo__img {
    width: 300px;
    height: 150px;
  }

  .hero__tagline {
    font-size: 24px;
  }

  .hero__badges {
    grid-template-columns: 1fr;
  }

  .rentals .section__inner,
  .service .section__inner,
  .accessories .section__inner,
  .wash .section__inner,
  .delivery .section__inner {
    grid-template-columns: 1fr;
  }

  /* Mobile: Section styling */
  .rentals__left,
  .service__left,
  .service__right,
  .accessories__left,
  .wash__left,
  .wash__right,
  .delivery__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rentals__left,
  .accessories__left,
  .delivery__left {
    gap: 16px;
  }

  .service__right,
  .wash__right {
    gap: 16px;
  }

  .service__left,
  .wash__left {
    order: 2;
  }

  .service__right,
  .wash__right {
    order: 1;
  }

  /* Icon sizing for mobile */
  .rentals__icon,
  .accessories__icon,
  .delivery__icon,
  .service__icon,
  .wash__icon {
    width: 80px !important;
    height: 80px !important;
  }

  /* Title sizing for mobile */
  .section__title {
    font-size: 48px;
    text-align: center;
  }

  .section__title-light,
  .section__title-bold {
    display: block;
  }

  /* Text sizing for mobile */
  .section__text {
    font-size: 16px;
    max-width: 100%;
    text-align: center;
  }

  /* Button sizing for mobile */
  .btn {
    padding: 12px 28px;
    font-size: 12px;
  }

  .rentals__cta,
  .service__cta {
    justify-self: auto;
  }

  .fleet__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Mobile: top positioned for fleet */
  .fleet__info {
    top: 40px !important;
    transform: none !important;
  }

  /* Kia Morning - top right */
  .fleet__slide[data-slide="0"] .fleet__info {
    top: 40px;
    right: 5%;
    left: auto;
    text-align: right;
    transform: none;
  }

  /* Kia Soluto - top right */
  .fleet__slide[data-slide="1"] .fleet__info {
    top: 40px;
    right: 5%;
    left: auto;
    text-align: right;
    transform: none;
  }

  /* Changan X7 Plus - top left */
  .fleet__slide[data-slide="2"] .fleet__info {
    top: 40px;
    left: 5%;
    right: auto;
    text-align: left;
    transform: none;
  }

  /* Changan Alsvin Automático - top left */
  .fleet__slide[data-slide="3"] .fleet__info {
    top: 40px;
    left: 5%;
    right: auto;
    text-align: left;
    transform: none;
  }



  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 20px 0 10px 0;
  }

  .topbar .container {
    justify-content: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px;
  }

  .nav {
    font-size: 12px;
    gap: 16px;
  }

  .nav a::after {
    bottom: -2px;
  }

  /* Fleet carousel for mobile */
  .fleet {
    min-height: 500px;
  }

  .fleet__carousel {
    height: 500px;
  }

  .fleet__model {
    font-size: 32px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--white);
    margin-bottom: 12px;
  }

  .fleet__label {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .fleet__price {
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: 5px;
  }

  .fleet__iva {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .fleet__dots {
    bottom: 20px;
    gap: 8px;
  }

  .fleet__dot {
    width: 8px;
    height: 8px;
  }

  .fleet__dot--active {
    width: 12px;
    height: 12px;
  }

  /* Footer for mobile */
  .footer {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
  }

  .footer__title {
    font-size: 14px;
  }

  .footer__grid > div:first-child {
    text-align: right;
  }

  .footer__grid > div:first-child p {
    font-size: 12px;
  }

  .footer__hours {
    text-align: right;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .footer__contact {
    font-size: 12px;
    align-items: flex-end;
  }

  .footer__contact a {
    flex-direction: row-reverse;
    text-align: right;
    gap: 8px;
  }

  .footer__icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .footer__cta {
    margin-left: auto;
    font-size: 13px;
    padding: 10px 18px;
  }

  .wsp-float {
    right: 16px;
    bottom: 16px;
    height: 54px;
    padding: 0 10px;
  }

  .wsp-float svg {
    width: 32px;
    height: 32px;
  }

  .wsp-float__label {
    display: none;
  }

  .footer__logo {
    width: 200px;
    height: 150px;
    margin: 0 auto;
  }

  .footer__copy {
    font-size: 10px;
    margin-top: 30px;
    padding: 0 20px;
  }
}
