@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --primary-color: #8a79f0;
  --primary-color-dark: #2e2a40;
  --text-dark: #221e36;
  --text-light: #767268;
  --extra-light: #f1f2ff;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  -webkit-user-select: none; /* Para Safari y Chrome */
  -moz-user-select: none;    /* Para Firefox */
  -ms-user-select: none;     /* Para Internet Explorer y Edge */
  user-select: none;         /* Sintaxis estándar */
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

/* --- NAVEGACIÓN --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

.nav__header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color-dark);
}

.nav__logo span {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--primary-color-dark);
  transition: transform 0.3s ease-in-out;
  transform: translateY(-120%);
  z-index: 98;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  color: var(--white);
}

/* --- HEADER --- */
header {
  background: linear-gradient( to bottom, rgba(138, 121, 240, 0), rgba(138, 121, 240, 0.1));
}

.header__container {
  padding-top: 8rem;
  display: grid;
  gap: 2rem;
}

.header__content {
  text-align: center;
}

.header__content h2 {
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: var(--white);
  border-radius: 5rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

.header__content h1 {
  margin-bottom: 2rem;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* --- ABOUT --- */
.about__container .section__description {
  margin-bottom: 4rem;
}

.about__grid {
  display: grid;
  gap: 2rem 1rem;
}

.about__card {
  text-align: center;
}

.about__card span {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  padding: 16px 20px;
  border-radius: 1.25rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
}

.about__card:nth-child(1) span { color: #8a79f0; background-color: #eeebfd; }
.about__card:nth-child(2) span { color: #fba55b; background-color: #fff2e8; }
.about__card:nth-child(3) span { color: #ee6a6f; background-color: #fde9ea; }

.about__card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about__card p { color: var(--text-light); line-height: 1.5rem; }

/* --- DEALS --- */
.deals {
  background-color: var(--extra-light);
}

.deals__tabs {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.deals__tabs .btn {
  font-weight: 600;
  color: var(--primary-color-dark);
  background-color: var(--white);
}

.deals__tabs .btn.active {
  color: var(--white);
  background-color: var(--primary-color);
}

.deals__container .tab__content { display: none; }

.deals__container .tab__content.active {
  display: flex;
  justify-content: center;
  animation: fadeEffect 1s;
}

@keyframes fadeEffect { from { opacity: 0; } to { opacity: 1; } }

.deals__card {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
  height: 515px;
  width: 100%;
  max-width: 350px;
}

.deals__card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* 1. Estilos para el contenido de las TARJETAS de vehículos */
.deals__rating {
  margin-bottom: 1rem;
  color: goldenrod;
}

.deals__rating span:last-child {
  color: var(--text-light);
}

.deals__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.deals__card__grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.deals__card__grid div span {
  font-size: 1.2rem;
}

/* --- CHOOSE --- */
.choose__container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.choose__grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem 1rem;
}

.choose__card { display: flex; align-items: flex-start; gap: 1rem; }

.choose__card span {
  padding: 5px 7px;
  font-size: 1.5rem;
  background-color: var(--extra-light);
  color: var(--primary-color);
  border-radius: 0.5rem;
}

.choose__card h4, .deals__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- FOOTER --- */
.footer { background-color: var(--primary-color-dark); }

.footer__container { display: grid; gap: 2rem; }

.footer__col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.footer__links { display: grid; gap: 1rem; }
.footer__links a { color: var(--extra-light); }
.footer__bar { text-align: center; padding: 1rem; font-size: 0.9rem; color: var(--extra-light); }

.footer__logo {
  margin-bottom: 2rem;
}

.footer__logo .logo span {
  font-size: 1.5rem;
  color: var(--white);
}

.footer__socials a {
  padding: 6px 8px;
  font-size: 1.125rem;
  color: var(--text-dark);
  background-color: var(--white);
  border-radius: 100%;
}

.footer__links span {
  display: inline-block;
  margin-right: 10px;
}
.footer__col p {
  margin-bottom: 2rem;
  color: var(--extra-light);
  line-height: 1.5rem;
}

/* Espacio entre íconos de redes sociales */
.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Estilo de los íconos de contacto (teléfono, mail, etc.) */
.footer__links span {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 6px;
  border: 1px solid var(--extra-light);
  border-radius: 100%;
}

.footer__links a:hover span {
  border-color: var(--primary-color);
}

/* --- MEDIA QUERIES --- */
@media (min-width: 540px) {
  .about__grid, .choose__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  nav {
    position: static;
    padding: 1.5rem 1rem;
    max-width: var(--max-width);
    margin: auto;
  }

  .nav__header {
    background-color: transparent;
    padding: 0;
  }
  
  .nav__logo span {
    color: var(--primary-color-dark);
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: auto;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none;
  }

  .nav__links a {
    font-weight: 500;
    color: var(--text-dark);
  }

  .header__container {
    padding-top: 2rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .header__image {
    order: 2;
  }

  .header__content {
    order: 1;
    text-align: left;
  }
  
  .header__content h2, .header__content h1, .header__content .section__description {
    text-align: left;
    margin-inline: 0;
  }
  
  .header__content h1 { font-size: 4rem; line-height: 4.5rem; }

  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .choose__container {
    grid-template-columns: 1fr 1fr;
  }

  .choose__content .section__header, .choose__content .section__description {
    text-align: left;
  }

  .footer__container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}