* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}
:root {
  --primary-color: #fff;
  --secondary-color: #111111;
  --tercyary-color: #343a40;
  --font-family: "Raleway", sans-serif;
}

html {
  font-size: 62.5%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  font-family: var(--font-family);
  font-size: 1.6rem;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0 3.5rem 0;
}
img {
  max-width: 100%;
  display: block;
}
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}
.btn {
  color: var(--tercyary-color);
  background-color: var(--primary-color);
  border: 1px solid var(--tercyary-color);
  transition: background-color 0.3s;
  margin-top: 40px;
  padding: 5px;
}
.btn:hover {
  background-color: var(--tercyary-color);
  color: var(--primary-color);
}
/** Utilidades **/
.text-center {
  text-align: center;
}
.mt-5 {
  margin-top: 5rem;
}
/** HEADER **/
.header {
  min-height: 60rem;
  background-image: url(../img/hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2.5rem 0;
}

.contenido-header {
  display: flex;
  flex-direction: column;
  height: calc(62rem - 4rem);
  justify-content: space-between;
}
.nombre-sitio {
  font-weight: 300;
  text-align: center;
  font-size: 3rem;
  color: var(--primary-color);
}
@media (min-width: 992px) {
  .nombre-sitio {
    font-size: 5rem;
  }
  .slogan h2 {
    font-size: 4.5rem;
  }
}
.nombre-sitio span {
  font-weight: 900;
}
@media (min-width: 992px) {
  .barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 992px) {
  .contacto {
    align-items: flex-end;
    gap: 2rem;
  }
}
.telefono {
  display: flex;
}
.telefono:before {
  content: "";
  display: block; /*para que muestre la imagen*/
  background-image: url(../img/telefono.png);
  background-repeat: no-repeat;
  background-position: center center;
  width: 4rem;
  height: 4rem;
  margin-right: 1rem;
}
.header a {
  color: var(--primary-color);
}
.navegacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
@media (min-width: 992px) {
  .navegacion {
    flex-direction: row;
  }
  .navegacion ul {
    display: flex;
  }
}
.navegacion ul {
  width: 100%;
}
.navegacion ul li {
  text-decoration: none;
  color: var(--primary-color);
  padding: 1rem 2rem;
  text-align: center;
}
.navegacion ul li a {
  padding: 1rem 2rem;
  transition: background-color 0.3s;
  width: 100%;
}
.navegacion ul li:hover {
  background-color: rgb(255 255 255 / 0.5);
}
.navegacion ul li:hover a {
  color: var(--secondary-color);
}
.slogan {
  text-align: center;
  color: var(--primary-color);
}
@media (min-width: 992px) {
  .slogan {
    text-align: right;
  }
}
.slogan h2 {
  font-size: 3rem;
  margin: 0;
}
@media (min-width: 992px) {
  .slogan h2 {
    font-size: 5rem;
  }
}
.slogan p {
  margin: 0;
  line-height: 3;
}
/** NOSOTROS **/
.nosotros {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  background-image: url(../img/nosotros.jpg);
  background-repeat: no-repeat;
  background-position: bottom center;
}
.contenido-nosotros {
  background-color: var(--primary-color);
  padding: 5rem;
}
@media (min-width: 992px) {
  .nosotros {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .contenido-nosotros {
    grid-column: 2 / 4;
  }
}
.contenido-nosotros h2,
.contenido-nosotros p {
  margin-bottom: 4rem;
}

/** Modelos **/

.modelo {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  background-repeat: no-repeat;
  background-position: bottom center;
  margin-bottom: 5rem;
}
.modelo:last-of-type {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .modelo {
    grid-template-columns: repeat(2, 1fr);
  }
}
.titulo-modelo {
  font-size: 4rem;
}
.contenido-modelo {
  padding: 5rem;
  background-color: var(--primary-color);
}
.contenido-modelo h3 {
  font-size: 4rem;
  margin-bottom: 3rem;
}
.contenido-modelo p {
  margin-bottom: 2rem;
}
.basico {
  background-image: url(../img/modelo_basico.jpg);
}
@media (min-width: 768px) {
  .basico {
    background-position: top right;
  }
  .basico .contenido-modelo {
    grid-row: 2 / 3;
  }
}
.premier {
  background-image: url(../img/modelo_premier.jpg);
}
@media (min-width: 768px) {
  .premier {
    background-position: top left;
  }
  .premier .contenido-modelo {
    grid-column: 2 / 4;
  }
}
.elite {
  background-image: url(../img/modelo_elite.jpg);
}
@media (min-width: 768px) {
  .elite {
    background-position: top right;
  }
  .elite .contenido-modelo {
    grid-column: 1 / 2;
  }
}
/** Galeria **/
.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}
.galeria img {
  object-fit: cover;
  height: 100%;
}
.galeria .imagen:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
@media (min-width: 768px) {
  .galeria .imagen:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
  }
}
.galeria .imagen:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 3 / 5;
}
@media (min-width: 768px) {
  .galeria .imagen:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}
.galeria .imagen:nth-child(6) {
  grid-row: 2 / 4;
}
@media (min-width: 768px) {
  .galeria .imagen:nth-child(6) {
    grid-row: 1 / 3;
    grid-column: 3 / 4;
  }
}

.footer {
  height: 50rem;
  background-image: url(../img/footer_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer a {
  color: var(--primary-color);
}
.copyright {
  text-align: center;
  margin-top: 5rem;
  padding: 2rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}
