/* =========================================================
   EBZ RENT A CAR
   ESTILOS GENERALES
   ========================================================= */


/* =========================================================
   VARIABLES DE MARCA
   ========================================================= */

:root {
  --ebz-blue: #011570;
  --ebz-gold: #d7a859;

  --ebz-gray: #e4e4e4;
  --ebz-light: #f6fafd;
  --ebz-dark: #0a1931;

  --white: #ffffff;
  --text: #0a1931;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background-color: var(--ebz-light);
  color: var(--text);

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}


/* =========================================================
   PÁGINA GENERAL
   ========================================================= */

.page {
  width: 100%;
  min-height: 100vh;

  overflow-x: hidden;
}


/* =========================================================
   HEADER / HERO
   ========================================================= */

.hero {
  position: relative;

  width: 100%;
  height: 50svh;

  min-height: 360px;
  max-height: 650px;

  overflow: hidden;

  background: var(--ebz-blue);

  border-radius:
    0
    0
    50% 50%
    /
    0
    0
    8% 8%;
}

.hero-media {
  position: absolute;
  inset: 0;

  display: block;
}

.hero-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(1, 21, 112, 0.05) 0%,
      rgba(1, 21, 112, 0.20) 55%,
      rgba(1, 21, 112, 0.50) 100%
    );

  pointer-events: none;
}


/* =========================================================
   BOTÓN BOOK NOW
   ========================================================= */

.booking-wrapper {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;

  margin-top: -28px;
  padding: 0 20px 36px;
}

.booking-button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 56px;

  padding: 8px 9px 8px 24px;

  overflow: hidden;

  border: 2px solid var(--ebz-gold);
  border-radius: 999px;

  background-color: var(--ebz-light);
  color: var(--ebz-blue);

  font-size: 18px;
  font-weight: 700;
  line-height: 1;

  box-shadow:
    0 12px 30px rgba(10, 25, 49, 0.16);

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.booking-button::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 50%;
  left: -120%;

  width: 120%;
  aspect-ratio: 1;

  border-radius: 50%;

  background-color: var(--ebz-blue);

  transform: translateY(-50%) scale(0.5);

  transition:
    left 0.7s ease,
    transform 0.7s ease;
}

.booking-button__text {
  position: relative;
  white-space: nowrap;
}

.booking-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  border: 1px solid var(--ebz-blue);
  border-radius: 50%;

  color: var(--ebz-blue);
  background-color: transparent;

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.booking-button__icon svg {
  width: 14px;
  height: 16px;

  fill: currentColor;

  transform: rotate(45deg);
}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================= */

.section-heading {
  max-width: 680px;

  margin: 0 auto 34px;
  padding: 0 24px;

  text-align: center;
}

.section-heading__eyebrow {
  display: inline-block;

  margin-bottom: 10px;

  color: #9a6e28;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;

  color: var(--ebz-blue);

  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}

.section-heading p {
  max-width: 520px;

  margin: 14px auto 0;

  color: #526178;

  font-size: 15px;
  line-height: 1.6;
}

.section-note {
  margin: 20px 24px 0;

  color: #68768a;

  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}


/* =========================================================
   SECCIONES DE MARCAS Y VEHÍCULOS
   ========================================================= */

.brands-section {
  padding: 35px 0 70px;

  overflow: hidden;

  background-color: var(--ebz-light);
}

.vehicles-section {
  padding: 35px 0 90px;

  overflow: hidden;

  background-color: var(--ebz-light);
}


/* =========================================================
   ESTRUCTURA GENERAL DE LOS CARRUSELES
   ========================================================= */

.carousel {
  width: 100%;

  margin: 0 auto;
}

.carousel__viewport {
  position: relative;

  width: 100%;

  overflow: hidden;
}

.carousel__viewport::before,
.carousel__viewport::after {
  content: "";

  position: absolute;
  z-index: 2;

  top: 0;
  bottom: 0;

  width: clamp(45px, 10vw, 160px);

  pointer-events: none;
}

.carousel__viewport::before {
  left: 0;

  background:
    linear-gradient(
      to right,
      var(--ebz-light) 0%,
      rgba(246, 250, 253, 0) 100%
    );
}

.carousel__viewport::after {
  right: 0;

  background:
    linear-gradient(
      to left,
      var(--ebz-light) 0%,
      rgba(246, 250, 253, 0) 100%
    );
}

.carousel__track {
  display: flex;
  align-items: center;

  width: max-content;

  padding: 22px 0;

  will-change: transform;
}

.carousel__slide {
  flex-shrink: 0;
}

.carousel__card {
  display: block;

  overflow: hidden;

  background-color: var(--white);

  box-shadow:
    0 5px 18px rgba(10, 25, 49, 0.09);

  transform: scale(0.92);

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.carousel__card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%);

  transition: filter 0.5s ease;
}

.carousel__slide.is-active .carousel__card {
  transform: scale(1);

  box-shadow:
    0 8px 22px rgba(10, 25, 49, 0.13);
}

.carousel__slide.is-active .carousel__card img {
  filter: grayscale(0);
}

a.carousel__card:focus-visible {
  outline: 3px solid var(--ebz-gold);
  outline-offset: 4px;
}


/* =========================================================
   TARJETAS DE MARCAS
   ========================================================= */

.brand-slide {
  width: 190px;

  padding: 0 10px;

  flex: 0 0 190px;
}

.brand-card {
  width: 100%;
  aspect-ratio: 1;

  border-radius: 20px;
}


/* =========================================================
   TARJETAS DE VEHÍCULOS
   ========================================================= */

.vehicle-slide {
  width: 330px;

  padding: 0 11px;

  flex: 0 0 330px;
}

.vehicle-card {
  width: 100%;

  border: 1px solid rgba(1, 21, 112, 0.06);
  border-radius: 22px;
}

.vehicle-card__image {
  width: 100%;
  aspect-ratio: 6 / 5;

  overflow: hidden;

  background-color: #e4e4e4;
}

.vehicle-card__content {
  padding: 20px;
}

.vehicle-card__label {
  display: block;

  margin-bottom: 7px;

  color: #9a6e28;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.vehicle-card__name {
  min-height: 48px;

  color: var(--ebz-dark);

  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.vehicle-card__details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  margin-top: 14px;

  color: #68768a;

  font-size: 13px;
}

.vehicle-card__details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vehicle-card__details svg {
  width: 16px;
  height: 16px;

  color: var(--ebz-blue);
}

.vehicle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 20px;
  padding-top: 14px;

  border-top: 1px solid #edf0f4;

  color: var(--ebz-blue);

  font-size: 13px;
  font-weight: 700;
}

.vehicle-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  background-color: #f2f5fb;
  color: var(--ebz-blue);

  font-size: 17px;
}


/* =========================================================
   BOTÓN VER CATÁLOGO
   ========================================================= */

.vehicles-section__footer {
  display: flex;
  justify-content: center;

  margin-top: 35px;
  padding: 0 20px;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 52px;

  padding: 12px 23px;

  border: 1px solid var(--ebz-blue);
  border-radius: 999px;

  background-color: var(--ebz-blue);
  color: var(--white);

  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.catalog-link span {
  color: var(--ebz-gold);

  font-size: 20px;
  line-height: 1;

  transition: transform 0.3s ease;
}


/* =========================================================
   PÁGINA DE CATÁLOGO
   ========================================================= */

.catalog-page__intro {
  width: min(100% - 40px, 1250px);

  margin: 0 auto;
  padding-top: 30px;
}

.catalog-page__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 30px;

  color: var(--ebz-blue);

  font-size: 14px;
  font-weight: 700;

  transition: color 0.3s ease;
}

.catalog-page__back span {
  font-size: 20px;
  line-height: 1;
}

.catalog-page__intro .section-heading {
  margin-bottom: 30px;
}

.catalog-page__powered {
  display: inline-block;

  margin-top: 12px;

  color: #788497;

  font-size: 12px;
  font-weight: 500;
}

.catalog-page__content {
  padding: 0 24px 80px;
}

.catalog-page__container {
  width: min(100%, 1250px);

  margin: 0 auto;
}

.catalog-page wheelbase-store {
  display: block;

  width: 100%;
}

.catalog-page__fallback {
  margin-top: 40px;

  text-align: center;
}

.catalog-page__fallback p {
  margin-bottom: 8px;

  color: #68768a;

  font-size: 14px;
}

.catalog-page__fallback a {
  color: var(--ebz-blue);

  font-size: 14px;
  font-weight: 700;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-page__fallback a span {
  color: #9a6e28;
}


/* =========================================================
   ESTADOS HOVER Y FOCUS
   ========================================================= */

@media (hover: hover) {
  .booking-button:hover {
    color: var(--white);
    border-color: var(--ebz-blue);

    box-shadow:
      0 15px 35px rgba(1, 21, 112, 0.25);

    transform: translateY(-2px);
  }

  .booking-button:hover::before {
    left: -10%;

    transform: translateY(-50%) scale(1.5);
  }

  .booking-button:hover .booking-button__icon {
    color: var(--ebz-blue);
    background-color: var(--ebz-gold);
    border-color: var(--ebz-gold);

    transform: rotate(45deg);
  }

  .catalog-link:hover {
    background-color: var(--ebz-gold);
    border-color: var(--ebz-gold);
    color: var(--ebz-dark);

    transform: translateY(-2px);
  }

  .catalog-link:hover span {
    color: var(--ebz-dark);

    transform: translate(3px, -3px);
  }

  .catalog-page__back:hover {
    color: #9a6e28;
  }
}

.booking-button:focus-visible,
.catalog-link:focus-visible,
.catalog-page__back:focus-visible,
.catalog-page__fallback a:focus-visible {
  outline: 3px solid var(--ebz-gold);
  outline-offset: 4px;
}


/* =========================================================
   TABLET Y ESCRITORIO
   ========================================================= */

@media (min-width: 768px) {
  .hero {
    height: 52svh;

    min-height: 480px;
    max-height: 650px;

    border-radius:
      0
      0
      50% 50%
      /
      0
      0
      12% 12%;
  }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  .brands-section {
    padding: 25px 0 55px;
  }

  .vehicles-section {
    padding: 20px 0 70px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .brand-slide {
    width: 150px;

    padding: 0 8px;

    flex-basis: 150px;
  }

  .brand-card {
    border-radius: 16px;
  }

  .vehicle-slide {
    width: min(78vw, 300px);

    padding: 0 8px;

    flex-basis: min(78vw, 300px);
  }

  .vehicle-card {
    border-radius: 18px;
  }

  .vehicle-card__content {
    padding: 18px;
  }

  .carousel__viewport::before,
  .carousel__viewport::after {
    width: 45px;
  }

  .catalog-page__intro {
    width: calc(100% - 32px);

    padding-top: 24px;
  }

  .catalog-page__back {
    margin-bottom: 26px;
  }

  .catalog-page__content {
    padding: 0 16px 60px;
  }
}


/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .booking-button,
  .booking-button::before,
  .booking-button__icon,
  .carousel__card,
  .carousel__card img,
  .catalog-link,
  .catalog-link span,
  .catalog-page__back {
    transition: none;
  }
}