@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Paleta de colores */
:root {
    --primary-color: #ed0000;
    --primary-color-dark:ed0000
    --background-color: #2a2d32;
    --text-color: #ffffff;
    --secondary-text-color: #bbbbbb;
    --title-color: #292933;
    --gris-claro: #DCDDE2;
    --blanco-claro: #FBFCFF;
}

/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* Estilo del cuerpo */
body {
    font-family: 'Poppins', sans-serif;
}

/* Contenedor principal */
.container {
    max-width: 85%;
    margin: 0 auto;
}

/* Encabezado */
.header {
    background-image: url(media/bg.svg);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 80px 0 0 0;
}

/* Menú de navegación */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    color: var(--primary-color);
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Elementos del menú */
.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: var(--gris-claro);
    display: block;
    font-weight: 600;
}

.menu .navbar ul li a:hover {
    color: var(--primary-color);
}

/* Icono del menú para dispositivos móviles */
#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

/* Contenido del encabezado */
.header-content {
    display: flex;
}

.header-txt {
    width: 50%;
}

.header-txt h1 {
    font-size: 70px;
    line-height: 85px;
    color: var(--blanco-claro);
    margin-bottom: 20px;
    margin-top: 20px;
}

.header-txt span {
    font-size: 90px;
    color: var(--primary-color);
}

.header-txt p {
    font-size: 16px;
    color: #c4c4ce;
    margin-bottom: 30px;
}

.header-img {
    width: 50%;
    text-align: center;
}

.header-img img {
    width: 550px;
}

/* Botones */
.buttons {
    display: flex;
}

.btn-1 {
    display: inline-block;
    padding: 13px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 15px;
    margin-right: 30px;
    font-size: 16px;
    text-transform: capitalize;
}

.btn-1:hover {
    background-color: var(--primary-color);
    color: var(--blanco-claro);
}

/* Sección de menú */
.menu-vh {
    padding: 0 0 100px 0;
}

/* Títulos */
h2 {
    font-size: 50px;
    color: #292933;
    margin-bottom: 40px;
}

span {
    color: var(--primary-color);
}

/* Grid para tarjetas de vehículos */
.general-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Tarjetas de vehículos */
.general-txt {
    background-color: var(--text-color);
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 500px;
}

.general-txt:hover {
    transform: scale(1.05);
}

.general-txt img {
    border-radius: 15px 15px 0 0;
    width: 100%;
    height: 47%;
    object-fit: cover;
    object-position: center;
}

.general-txt h3 {
    color: var(--title-color);
    font-size: 20px;
    padding: 5px;
}

.general-txt p {
    font-size: 16px;
    color: #3a3a48;
    padding: 5px 10px;
}

.general-txt p i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Precios */
.prices {
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

/* Botón secundario */
.btn-2 {
    display: inline-block;
    background-color: var(--primary-color);
    font-size: 14px;
    padding: 7px 15px;
    color: var(--text-color);
    border-radius: 10px;
}

.btn-2:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* Sección "Acerca de" */
.about {
    padding: 100px 0;
    margin-bottom: 100px;
    background-color: #292933;
}

.about-content {
    display: flex;
}

.about-txt {
    width: 50%;
}

.about-txt h2 {
    color: var(--blanco-claro);
}

.about-txt p {
    font-size: 16px;
    color: #c4c4ce;
    margin-bottom: 30px;
}

.oferta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oferta span {
    font-size: 80px;
    font-weight: 800;
}

.about-img {
    width: 50%;
    text-align: right;
    object-fit: contain;
    object-position: center;
}

/* Información adicional */
.info {
    padding-bottom: 100px;
    display: flex;
}

.info-img {
    width: 50%;
}

.info-img img {
    border-radius: 25px;
    width: 600px;
}

.info-txt {
    width: 50%;
    padding-left: 55px;
}

.info-txt p {
    font-size: 16px;
    color: #3a3a48;
    margin-bottom: 35px;
}

/* Botones flotantes */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn a {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.floating-btn a.phone {
    background-color: var(--primary-color);
}

.floating-btn a:hover {
    background-color: var(--primary-color);
}

/* Sección de redes sociales */
.social-media {
    text-align: center;
    margin: 40px 0;
}

.social-media a {
    color: #2cd541;
    margin: 0 10px;
    font-size: 2em;
    text-decoration: none;
}

/* Enlaces */
.link h3 {
    color: var(--blanco-claro);
    font-size: 18px;
    margin-bottom: 15px;
}

.link a {
    color: var(--gris-claro);
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.link a:hover {
    color: var(--primary-color);
}

/* Tarjetas de testimonios */
.testimonial-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
}

.testimonial-card img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.testimonial-card .name {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

.testimonial-card .stars {
    color: gold;
    margin: 10px 0;
}

.testimonial-card .comment {
    font-style: italic;
}

.testimonial-card .twitter-link {
    margin-top: 10px;
    display: block;
    color: #1DA1F2;
    text-decoration: none;
}

/* Pie de página */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--background-color);
    color: #fff;
    font-size: 0.9em;
}

footer a {
    color: #2cd541;
    text-decoration: none;
}


@media(max-width:991px) {

    .container {
        max-width: 100%;
        margin: 0 auto;
    }

    .menu {
        padding: 30px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #303030;
        display: none;
    }

    .menu .navbar ul li {
        width: 100%;
    }

    #menu:checked~.navbar {
        display: initial;
    }

    .header {
        min-height: 0vh;
    }

    .header-content {
        flex-direction: column;
        padding: 30px 30px 50px 30px;
        text-align: center;
    }

    .header-txt {
        width: 100%;
    }

    .header-txt h1 {
        font-size: 50px;
        line-height: 85px;
        color: var(--blanco-claro);
        margin-bottom: 20px;
    }

    .header-txt span {
        font-size: 60px;
        color: var(--primary-color);
    }

    .header-txt p {
        font-size: 15px;
        color: #c4c4ce;
        margin-bottom: 30px;
    }

    .header-img {
        width: 100%;
    }

    .header-img img {
        width: 50%;
    }

    .buttons {
        justify-content: center;
    }

    .btn-1 {
        margin: 0 10px;
    }

    .menu-vh {
        padding: 30px;
    }

    .general-content {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .general-txt img {
        width: 100%;
        height: 47%;
        object-fit: contain;
        object-position: center;
    }

    .about {
        padding: 30px;
        margin-bottom: 30px;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-txt {
        width: 100%;
    }

    .about-txt p {
        margin-bottom: 0;
    }

    .about-img {
        width: 100%;
        text-align: center;
    }

    .info {
        padding: 30px;
        flex-direction: column;
    }

    .info-img {
        width: 100%;
    }

    .info-img img {
        width: 100%;
    }

    .info-txt {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .footer {
        padding: 30px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

}


@media(max-width: 768px) {
    .header-txt h1 {
        font-size: 40px;
    }

    .header-txt span {
        font-size: 50px;
    }

    .general-txt {
        height: auto;
    }

    .info-img img {
        width: 100%;
    }
}

@media(max-width: 576px) {
    .header-txt h1 {
        font-size: 30px;
    }

    .header-txt span {
        font-size: 40px;
    }

    .header-img img {
        width: 250px;
    }

    .general-txt img {
        height: auto;
    }
}