/* font importing */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* reseting css rules */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  outline: none;
  font-family: "Roboto", sans-serif;
}

.details-link {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
  }
  

  
  .header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
  }
  
  .zoomable-card {
    transition: transform 0.3s ease;
  }
  
  .zoomable-card:hover {
    transform: scale(1.1);
  }

  

  .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8;
  }
  
  .animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  @keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
  
  .animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: linear-gradient(to right, #00ffcc, #0033cc, #9900cc);
    animation: slide 10s linear infinite;
  }

  
  
  .details-link:hover {
    transform: scale(1.1);
  }

:root {
  --orange: #668288;
  --blue: #00285f;
  --gray: #ededed;
}

section .card-wrapper {
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 50px;
    position: relative;
  }

  
  section .card-item {
    width: calc(33.33% - 20px); /* Ajusta el ancho según tus necesidades */
    height: 400px;
    background: var(--gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .card-item {
    width: calc(50% - 20px);
    margin-bottom: 20px;
  }
  
  @media (max-width: 768px) {
    .card-item {
      width: 100%;
    }
  }
  
  
  section .card-item2 {
    width: 290px;
    height: 400px;
    background: var(--gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
  }

html,
body {
  width: 100%;
  overflow-x: hidden;
}

header {
  width: 100%;
  height: 500px;
  background: var(--orange);
}

.content {
  max-width: 1000px;
  min-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

section .card-item {
    width: 290px;
    height: 400px;
    background: var(--gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  


.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .filter-container {
    text-align: center;
    margin-bottom: 20px;
  }
  .filter-button {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .filter-button:hover {
    background-color: #0056b3;
  }
  
  .popup-content {
    background-color: orange;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 75%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .popup-inner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .popup-image {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
  }
  
  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
  }
  
  .popup-content h3,
  .popup-content p {
    text-align: center;
    line-height: 1;
  }

  .popup-content {
    /* Resto de estilos */
    width: 75%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  

  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .popup-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .popup-image {
    width: 700px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .popup-content {
    /* Resto de estilos */
  
    line-height: 1; /* Eliminar espacio entre renglones */
  }
  
  .popup-content p {
    /* Estilos adicionales para los párrafos dentro del popup */
    margin: 0; /* Eliminar margen vertical */
  }
  

  .popup-image {
    width: 100%;
    height: auto;
    max-width: 350px;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  

nav {
  width: 100%;
  height: 125px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 4rem;
  color: var(--blue);
  cursor: pointer;
}

nav ul {
  display: flex;
  flex-direction: row;
}

nav ul li {
  list-style: none;
  padding: 10px;
  cursor: pointer;
}

nav ul li a {
  color: var(--blue);
  text-decoration: none;
}

nav ul li a:hover {
  color: #00285f83;
}



nav ul button {
  border: 1px solid var(--blue);
  background: transparent;
  padding: 8px 40px;
  cursor: pointer;
  margin-left: 30px;
  color: var(--blue);
  font-weight: bold;
  border-radius: 4px;
}

nav ul button:hover {
  transition: background, color 0.6s;
  background: var(--blue);
  color: white;
}

.content .header-block {
  max-width: 1000px;
  min-width: 300px;
  height: 450px;
  background: #134761;
  border-radius: 8px;
  box-shadow: 1px 0px 10px 0px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 1px 0px 10px 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 1px 0px 10px 0px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  padding: 10px;
}

.header-block img {
  width: 50%;
  position: absolute;
  right: 2%;
  bottom: 2%;
}

.header-block .text {
  position: absolute;
  bottom: 30%;
  left: 15%;
}

.header-block .text h2 {
  color: white;
  margin-bottom: 20px;
  text-align: right;
  transform: translateX(-20px);
  transition: transform 0.5s;
}

.header-block .text p {
  max-width: 280px;
  color: white;
  text-align: right;
  transform: translateX(-20px);
  transition: transform 0.4s;
}

/* Product Catalog */

section .catalog {
  width: 100vw;
  padding: 100px;
}

section .filter-card {
  width: 980px;
  height: 150px;
  background: var(--gray);
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 700px;
  height: 50px;
  border: none;
  border-radius: 4px 0px 0px 4px;
  text-indent: 10px;
}

.search-button {
  width: 150px;
  height: 50px;
  border-radius: 0px 4px 4px 0px;
  border: none;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-size: 1.1em;
  transition: 0.2s ease;
}

.search-button:hover {
  background: #dedede;
  color: var(--blue);
}

.title-wrapper-catalog {
  margin-top: 50px;
  padding-bottom: 20px;
}

.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card-item {
  width: calc(33.33% - 20px);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .card-item {
    width: 100%;
  }
}

.card-wrapper:nth-child(2) {
  margin-top: 20px;
}

.card-wrapper:nth-child(3) {
  margin-top: 20px;
}



section .card-wrapper {
  max-width: 1000px;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  grid-gap: 30px;
  padding-top: 50px;
}

section .card-item {
  height: 400px;
  background: var(--gray);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.card-content {
    align-items: center;
    margin-bottom: 0;
  align-self: center;
  height: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.card-item img {
  width: 90%;
}

.card-item h4 {
  width: 90%;
}

header {
  position: relative;
}


.fa fa-search {
  margin-right: 1rem;
  /* Estilos personalizados para el icono de búsqueda */
  color: #555;
  font-size: 16px;
  margin-right: 3rem;
  /* Agrega otros estilos según sea necesario */
}

.card-wrapper {
  display: flex;
  flex-direction: column;
}

body {
  font-size: 16px; /* Modifica el tamaño de fuente base según tus necesidades */
}

/* Ejemplo de cambio en el tamaño de fuente de un elemento */
h2 {
  font-size: 1.5rem;
}


.logo {
  width: 80px; /* Ajusta el tamaño del logotipo según tus necesidades */
}

.brand {
  font-size: 1.9rem; /* Ajusta el tamaño de fuente según tus necesidades */
}

nav ul {
  padding: 0;
}

nav li {
  margin-bottom: 10px;
}

.logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.logo {
  position: relative;
  top: 10px;
  width: 150px; /* Ajusta el ancho del logo según sea necesario */
  height: auto; /* Ajusta la altura del logo según sea necesario */
  margin-bottom: 2rem;
}

.card-item p {
  font-style: italic;
  color: #00000070;
}

.card-item button {
  width: 90%;
  padding: 15px 0px;
  border: none;
  background: #5193d8;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: 0.3s ease;
  margin-bottom: 10px;
}

.card-item button:hover {
  background: #dedede;
  color: var(--blue);
}

/* About */

.about {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 10px;
}

.about-content {
  max-width: 1000px;
  min-width: 300px;
  height: 600px;
  background: #dedede3b;
  margin: 0 auto;
  border-radius: 8px;
  z-index: 10;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.left {
  width: 25%;
  min-width: 300px;
  height: 100%;
  background: #000000a1;
  border-radius: 8px;
}

.right {
  width: 65%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 10%;
}

.right h3 {
  text-align: right;
  width: 90%;
  margin-bottom: 20px;
}

.right p {
  max-width: 90%;
  font-size: 1em;
  letter-spacing: 2px;
  text-align: right;
  color: rgba(0, 0, 0, 0.4);
}

/* Features */
.features {
  width: 100%;
  height: 100%;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0px;
}

.title-wrapper-features {
  padding: 20px 0px;
}

.feature-card-block {
  max-width: 1000px;
  min-width: 300px;
  height: 600px;
  background: white;
  margin: 0 auto;
  border-radius: 8px;
  z-index: 10;
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  grid-gap: 30px;
}

.feature-card-item {
  max-width: 420px;
  height: 150px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  border: 1px solid #dedede3b;
  border-radius: 4px;
}

.feature-text-content {
  max-width: 60%;
  margin: 5px;
}

.feature-card-item img {
  width: 64px;
  height: 64px;
}

/* Footer */
footer {
  background-color: #668288;
  width: 100%;
  height: 250px;
}

footer .main {
  width: 100%;
  height: 200px;
  background: var(--orange);
  padding: 20px 10px;
}

.footer-links {
  max-width: 1000px;
  min-width: 300px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
}

.footer-company,
.footer-rental,
.footer-contact,
.footer-social {
  margin-left: 1rem;
  color: white;
  height: 100%;
  min-height: 100px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.btn-wsp{
    position:fixed;
    width:60px;
    height:60px;
    line-height: 63px;
    bottom: 20px;
    right:21px;
    background:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:35px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
    z-index:100;
    transition: all 300ms ease;
}
.btn-wsp:hover{
    background: #20ba5a;
}
@media only screen and (min-width:320px) and (max-width:768px){
    .btn-wsp{
        width:63px;
        height:63px;
        line-height: 66px;
	}
}

.category-rectangle {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.category-text {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
}

.category-button {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #d0d0d0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.category-button:hover {
  background-color: #a0a0a0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card-item {
  position: relative;
  width: 300px;
}

.card-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s;
}

.card-item:hover img {
  opacity: 0.7;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.card-item:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

/* Resto del CSS como antes */

.category-rectangle {
  /* Resto del estilo como antes */
  padding: 20px 40px; /* Aumentar el padding horizontal */
  margin-top: 20px;
}

.category-button {
  /* Resto del estilo como antes */
  display: flex;
  align-items: center;
}

.category-button img {
  width: 30px; /* Ajustar el tamaño del icono */
  height: 30px; /* Ajustar el tamaño del icono */
  margin-right: 10px; /* Espaciado entre el ícono y el texto */
}


.footer-links {
  margin-bottom: 8px;
}

.main .footer-social img {
  margin-top: 1rem;
  width: 32px;
  height: 32px;
}

footer .last {
  width: 100%;
  height: 50px;
  background: #668288;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */

@media (max-width: 576px) {
  nav ul li {
    display: none;
  }

  .header-block img {
    width: 70%;
    position: absolute;
    right: 16%;
    top: 30%;
  }

  .header-block .text {
    position: absolute;
    bottom: 10%;
    left: 15;
  }

  section .filter-card {
    width: 390px;
    padding: 0px 10px;
  }

  .search-input {
    max-width: 700px;
    min-width: 240px;
  }

  .search-button {
    max-width: 150px;
    min-width: 80px;
  }

  .about {
    margin-top: 100px;
  }

  .title-wrapper-about {
    margin-bottom: 20px;
  }
  .about-content {
    flex-direction: column;
    height: 100%;
  }
  .left {
    display: none;
  }
  .right {
    width: 90%;
  }

  .right p {
    width: 100%;
    margin: 0px;
    text-align: left;
  }

  .features {
    height: 100%;
  }

  .feature-card-block {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  footer {
    height: 100%;
  }

  footer .main {
    height: 100%;
  }

  .footer-links {
    flex-direction: column;
    padding-left: 10%;
  }
  
  @media (max-width: 768px) {
    .card-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .card-item {
      width: 100%;
      margin-left: 1.8rem;
    }
  } 
}

.car-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.car {
  width: 200px;
  height: 150px;
  margin: 10px;
  background-color: #ccc;
}

@media only screen and (max-width: 600px) {
  .card-wrapper {
    width: 150px;
      height: 150px;
      margin: 10px;
      justify-content: center;
      flex-wrap: wrap;
      display: flex;
    }
  }


