@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1279d4;
}

/* @view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out .2s ease;
}

::view-transition-new(root) {
    animation: fade-in .2s ease;
}

@keyframes fade-in {
    from { opacity:0 }
    to { opacity:1 }
}

@keyframes fade-out {
    from { opacity:1 }
    to { opacity:0 }
} */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
}

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

img { max-width: 100%;}

.logo img{
    height: 28px;
}

.contenedor {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.admin-mg {
    margin-top: 48px;
}

.navegacion ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navegacion ul li {
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.navegacion ul li:hover,
.navegacion ul li.activo {
    color: var(--primary-color);
}

/* Hover en before */
/* .navegacion ul li:hover:before{
    content: "";
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
    position: absolute;
    bottom: 3px;
} */



.hero {
    background: linear-gradient(to right, rgba(0,0,0, 0.5), rgba(0,0,0, 0.5)), var(--i);
    background-size: cover;
    background-position: center center;
    height: 500px;
    color: #fff;
}

.hero__contenido {
    padding-top: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__titulo {
    font-size: 42px;
    max-width: 678px;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero__titulo span {
    color: var(--primary-color);
}

.hero__boton {
    padding: 10px 15px;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 15px;
    transition: .3s transform ease-in-out;
}

.hero__boton:hover {
    transform: translateY(-5px);
}


@media (max-width: 500px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 30px;
    }

    .hero {
        height: 400px;
    }

    .hero__contenido {
        padding-top: 50px;
    }

    .hero__titulo {
        font-size: 28px;
    }

    .hero__descripcion {
        font-size: 14px;
    }

    .hero__boton {
        padding: 8px 12px;
        font-size: 14px;
    }
}

section.why-us {
    padding-top: 70px;
}

.why-us__titulo {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
}

.why-us__descripcion {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 50px;
}

.why-us__opciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
}

.why-us__opcion {
    padding: 30px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: .3s transform ease-in-out;
}

.why-us__opcion i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-us__opcion h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.why-us__opcion p {
    font-size: 14px;
    color: #555;
}

.why-us__opcion:hover {
    transform: translateY(-5px);
}

@media (max-width: 900px) {

    .why-us__titulo {
        font-size: 28px;
    }

    .why-us__opciones {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us__opcion:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {

    .why-us__titulo {
        font-size: 24px;
    }

    .why-us__descripcion {
        font-size: 14px;
    }

    .why-us__opciones {
        grid-template-columns: repeat(1, 1fr);
    }

    .why-us__opcion:last-child {
        grid-column: span 1;
    }
}

.boton {
    padding: 10px 15px;
    display: block;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

section.inventario {
    padding-top: 100px;
}

.inventario__titulo {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.inventario__titulo span {
    color: var(--primary-color);
    display: block;
    font-size: 16px;
}

.inventario__vehiculos,
.catalogo-vehiculos,
.catalogo-vehiculos__skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
}

.vehiculo {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: .3s transform ease-in-out;
}

.vehiculo:hover {
    transform: translateY(-5px);
}

.vehiculo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehiculo__info {
    padding: 15px;
}

.vehiculo__nombre {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vehiculo__precio {
    position: absolute;
    top: 150px;
    right: 15px;
    font-size: 14px;
    font-weight: 500;
    background-color: #E63946;
    padding: 5px 10px;
    border-radius: 100px;
    color: #fff;
}

.vehiculo__descripcion {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.vehiculo__info > hr {
    margin: 15px 0;
    color: #ccc;
}

.vehiculo__caracteristicas {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.vehiculo__caracteristicas li {
    font-size: 12px;
    color: #555;
    margin-bottom: 15px;
}

.vehiculo__caracteristicas li i {
    color: var(--primary-color);
}

.boton--vehiculo {
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}


.reviews {
    background: rgba(18, 121, 212, 0.1);
    margin-top: 100px;
    padding: 50px 0;
}

.reviews__titulo {
    font-size: 32px;
    text-align: center;
}

.reviews__descripcion {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
}


.review {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review > h4 {
    font-size: 18px;
    font-weight: 600;
}

.review > p {
    font-size: 14px;
    color: #555;
}


.review__autor {
    font-size: 14px;
    border: 1px solid #e4e4e7;
    padding: 5px 10px;
    border-radius: 100px;
    align-self: flex-start;
}

.visitar {
    padding-top: 70px;
    display: flex;
    justify-content: space-between;
}

.visitar__titulo {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.visitar__info > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visitar__info > ul > li {
    color: #555;
}

.visitar__info > ul > li i {
    color: var(--primary-color);
}


.box {
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.box--agendar {
    max-width: 650px;
}

.box__titulo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.box--agendar .box__titulo {
    font-size: 18px;
    font-weight: 500;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input {
    padding: 10px 15px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.textarea {
    height: 100px;
    resize: none;
}

.boton--agendar {
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
}

.footer {
    background: #222;
    color: #fff;
    padding: 20px;
    margin-top: 100px;
}

.footer__contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer__logo {
    height: 27px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}


@media (max-width: 900px) {
    .inventario__vehiculos,
    .catalogo-vehiculos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .visitar {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }

    .visitar__info {
        width: 100%;
        text-align: center;
    }

    .footer__contenido {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 500px) {

    .inventario__titulo {
        font-size: 24px;
    }

    .visitar__titulo {
        font-size: 24px;
    }

    .visitar__info ul > li {
        font-size: 14px;
    }

    .inventario__vehiculos,
    .catalogo-vehiculos {
        grid-template-columns: repeat(1, 1fr);
    }

    .box--agendar {
        padding: 20px;
    }
}


/* Página Catálogo */

.hero-page {
    background: #212529;
    color: #fff;
    height: 200px;
    display: grid;
    place-items: center;
}

.hero-page__titulo {
    font-size: 32px;
    font-weight: 700;
}

.hero-page__descripcion {
    font-size: 18px;
    font-weight: 400;
}


section.catalogo_contenedor {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.box--filtrar {
    max-width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 25px;
}

.box--filtrar .box__titulo {
    font-size: 18px;
}

.input-light {
    border: 0;
    background: #f5f5f5;
}

.boton--filtrar {
    background: var(--primary-color);
    font-weight: 500;
}

.seccion-vehiculos {
    width: 100%;
}

.box--ordenar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 15px;
}

.box--ordenar > p > span {
    font-weight: 600;
}

.box--ordenar .ordenar-div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input--ordenar {
    font-size: 12px;
    padding: 5px 10px;
}

.catalogo-vehiculos,
.catalogo-vehiculos__skeleton {
    margin-top: 20px;
}

@media (max-width: 900px) {

    .hero-page__titulo {
        font-size: 28px;
    }
    .hero-page__descripcion {
        font-size: 16px;
    }

    .catalogo_contenedor {
        flex-direction: column;
    }
    .box--filtrar {
        max-width: 100%;
    }
}

@media (max-width: 500px) {

    .hero-page__titulo {
        font-size: 24px;
    }
    .hero-page__descripcion {
        font-size: 14px;
    }


    .box--ordenar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Página FAQs */

.faqs-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin-top: 50px;
}

.faq {
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.05);
}

.faq > h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.faq > p {
    font-size: 14px;
    color: #555;
}


@media (max-width: 500px) {
    .faq > h3 {
        font-size: 16px;
    }

    .faq > p {
        font-size: 12px;
    }
}


/* Página Contacto */

.contacto-boxes {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.box--contacto > .box__titulo {
    font-size: 24px;
    margin-bottom: 0;
}

.contacto__desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-grupo > label {
    font-size: 14px;
    font-weight: 500;
}

.form-grupo-multiple {
    display: flex;
    gap: 10px;
}

.form-grupo-multiple .form-grupo {
    width: 100%;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box--contacto-info {
    align-self: flex-start;
}

.contacto-item .contacto-icono {
    height: 64px;
    width: 64px;
    background: rgba(18, 121, 212, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}


.contacto-item__info > h4 {
    font-size: 16px;
    font-weight: 500;
}

.contacto-item__info p {
    font-size: 14px;
    color: #555;
}

.maps {
    margin-top: 50px;
}

.maps iframe{
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .contacto-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
     .form-grupo-multiple {
        flex-direction: column;
        gap: 10px;
    }
}


/* Pagina Vehiculo */
section.vehiculo-section {
    display: flex;
    gap: 30px;
}

.vehiculo__imagenes {
    max-width: 500px;
    width: 100%;
    height: 600px;
    position: relative;
    flex-shrink: 0;
}

.vehiculo__portada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.vehiculo-imagenes__grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    list-style: none;
    position: absolute;
    bottom: 10px;
}

.vehiculo-imagenes__grid img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.vehiculo-imagenes__grid img:hover {
    cursor: pointer;
    transform: translateY(-5px);
    /* opacity: 0.8; */
}

.auto__nombre {
    font-size: 32px;
    font-weight: 600;
}

.auto__modelo {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.auto__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin-bottom: 30px;
}

.auto__features > li {
    font-size: 14px;
}

.auto__features > li i {
    color: var(--primary-color);
}

.auto__descripcion {
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto__premium-list {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    font-size: 13px;
}

.auto__descripcion ul{
    padding-left: 20px;
    margin-top: -5px;
}

.vehiculo-comprar {
    margin-top: 90px;
    height: 200px;
    background: linear-gradient(to right, rgba(0,0,0,.7), rgba(0,0,0,.7)), var(--i);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
}

.vehiculo-comprar__contenido {
    text-align: center;
}

.vehiculo-comprar__titulo {
    font-size: 26px;
    font-weight: 600;
}

.vehiculo-comprar__descripcion {
    font-size: 14px;
    margin-bottom: 15px;
}

.vehiculo-comprar .botones {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.boton--comprar {
    background: transparent;
    border: 1px solid #fff;
    padding: 10px;
    font-weight: 500;
}

@media (max-width: 900px) {
    section.vehiculo-section {
        flex-direction: column;
    }

    .vehiculo__imagenes {
        max-width: 100%;
    }
}

@media (max-width: 500px) {

    .vehiculo__imagenes {
        height: 400px;
    }

    .vehiculo-imagenes__grid {
        gap: 5px;
        bottom: 5px;
    }

    .vehiculo-imagenes__grid img { 
        height: 48px;
        width: 48px;
    }
    .auto__nombre {
        font-size: 24px;
    }
    .auto__modelo {
        font-size: 16px;
    }

    .auto__premium-list {
        grid-template-columns: 1fr;
    }

    .vehiculo-comprar__titulo {
        font-size: 20px;
    }
}

.admin-header {
    background: rgb(34, 34, 34, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 0;
    position:fixed;
    width: 100%;
    z-index: 3;
    top: 0;
}

.admin-header__contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton--admin {
    padding: 4px 8px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#cerrarHeader {
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
}


/* Skeleton */
.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  max-width: 100%;
  border-radius: 8px;
}

.skeleton-block::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
