@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
.float{
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    bottom: 40px;
    right: 40px;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0px 0px 3px #fff;
    z-index: 999;
}
.fa-whatsapp{
    font-size: 60px;
}
.float:hover{
    background-color: #fff;
}
.float:hover .fa-whatsapp {
    color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: #fff;/* f5efd7*/
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 20%;
    background: #11141a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease-in-out;
}

header.scrolled {
    background: #11141a; /* Color sólido cuando se desplaza */
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        background-color: #11141a;
    }
}

.logo {
    width: 250px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: .3s;
}

nav a:hover,
nav a.active {
    color: #D9B814;
}

.language-switcher {
    margin-left: 20px;
}

.flag-icon {
    width: 40px;
    height: auto;
}

.alquilar-btn {
    background-color: #D9B814;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 20px;
    color: #11141a;
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.alquilar-btn:hover {
    background-color: #fff;
    color: #D9B814;
    border-color: #D9B814;
}

/* Estilos responsive para el navbar */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 80px 20px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px 0;
        font-size: 22px;
        border-bottom: 1px solid #333;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .alquilar-btn {
        width: 80%;
        margin-top: 20px;
        text-align: center;
        margin-left: 0;
    }

    .nav-toggle svg {
        width: 30px;
        height: 60px;
    }
}

.catalogo-layout {
    display: flex;
    gap: 40px;
    padding: 40px 80px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    position: relative;
    top: 120px;
}

.categorias-toggle {
    display: none;
}

.categorias-nav {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    border-radius: 15px;
    height: auto;
    position: fixed;
    top: 120px;
    left: 80px;
    z-index: 90;
    max-height: 70vh; /* Reduced height to prevent extending too far */
    overflow-y: auto; /* Make it scrollable when content exceeds height */
}

/* Add a custom scrollbar for better aesthetics */
.categorias-nav::-webkit-scrollbar {
    width: 6px;
}

.categorias-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categorias-nav::-webkit-scrollbar-thumb {
    background: #D9B814;
    border-radius: 10px;
}

.categorias-nav::-webkit-scrollbar-thumb:hover {
    background: #11141a;
}

.categoria-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.categoria-btn i {
    width: 24px;
    opacity: 0.7;
}

.categoria-btn:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.categoria-btn.active {
    background-color: #11141a;
    color: #fff;
    border-color: #11141a;
    transform: translateX(5px);
}

.autos-section {
    flex: 1;
    padding: 0 20px;
    margin-left: 320px;
}

.autos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.categoria-titulo {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #11141a;
    font-weight: 600;
}

.auto-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    display: none;
    transition: all 0.3s ease;
}

.auto-card.visible {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.auto-card h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #11141a;
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.car-image,
.car-image-back {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.car-image {
    opacity: 1;
}

.car-image-back {
    opacity: 0;
}

.image-container:hover .car-image {
    opacity: 0;
}

.image-container:hover .car-image-back {
    opacity: 1;
}

.detalles {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 10px;
}

.detalles.show {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.detalles p {
    padding: 5px 0;
    color: #666;
}

.reserve-btn {
    background-color: #D9B814;
    color: #11141a;
    padding: 15px;
    border-radius: 25px;
    width: 100%;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.reserve-btn:hover {
    background-color: #11141a;
    color: #fff;
}

.detalles-link {
    color: #D9B814;
    text-align: center;
    display: block;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
}

.detalles-link:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .catalogo-layout {
        padding: 20px;
    }
    
    .autos-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .categorias-nav {
        left: 20px;
        width: 250px;
    }
    
    .autos-section {
        margin-left: 290px;
    }
}

@media (max-width: 768px) {
    .catalogo-layout {
        flex-direction: column;
        padding: 10px;
        top: 80px;
    }
    
    .categorias-toggle {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    
    .categorias-toggle span {
        display: inline-block;
        padding: 10px 20px;
        background-color: #11141a;
        color: #fff;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 500;
    }
    
    .categorias-toggle span::after {
        content: 'Mostrar categorías';
    }
    
    .categorias-toggle.active span::after {
        content: 'Ocultar categorías';
    }

    .categorias-nav {
        position: static;
        width: 100%;
        padding: 15px;
        display: none;
        background-color: #f8f8f8;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .categorias-nav.active {
        display: flex;
    }

    .autos-section {
        margin-left: 0;
        padding: 0;
    }

    .autos-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .categoria-titulo {
        font-size: 1.8em;
        margin: 15px 0;
        text-align: center;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .catalogo-layout {
        padding: 10px;
    }
    
    .autos-container {
        grid-template-columns: 1fr;
    }
    
    .auto-card {
        margin: 0 auto;
        max-width: 320px;
    }
}

.footer-section {
    background-color: #11141A;
    color: #fff;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: 80px;
    z-index: 10000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.newsletter {
    margin-bottom: 20px;
}

.newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 10px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 25px 0 0 25px;
}

.newsletter-form button {
    background-color: #FDC500;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.privacy-policy {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.privacy-policy input {
    margin-right: 5px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.contact-info, .footer-links {
    flex-basis: 48%;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: underline;
    display: inline-block;
}

.footer-bottom {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-logo {
    max-width: 150px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        border-radius: 25px;
        margin-bottom: 10px;
    }

    .footer-info {
        flex-direction: column;
    }
    
    .contact-info, .footer-links {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

/* Estilos para la sección de requisitos */
.requisitos-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
    margin-top: 50px;
    margin-left: 320px; /* Match the margin-left of autos-section */
    width: calc(100% - 320px); /* Adjust width to match the car catalog area */
}

.requisitos-container {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.requisitos-image {
    max-width: 60%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Update media queries for responsive design */
@media (max-width: 992px) {
    .requisitos-section {
        margin-left: 290px;
        width: calc(100% - 290px);
    }
}

@media (max-width: 768px) {
    .requisitos-section {
        margin-left: 0;
        width: 100%;
        padding: 20px 10px;
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}