:root {
    --primary: #000000;
    --secondary: #1a1a1a;
    --gold: #d4af37;
    --gold-hover: #b8962e;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --gray-dark: #333333;
    --text-muted: #888888;
    --whatsapp: #25d366;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold {
    color: var(--gold);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: auto;
    animation: fadeIn 1s ease;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* HERO */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* BUTTONS */
.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
}

/* STOCK SLIDER SECTION */
.stock-slider-section {
    padding: 40px 0;
    background: var(--gray-light);
    overflow: hidden;
}

.section-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-dark);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    cursor: grab;
    user-select: none;
}

.slider-track:active {
    cursor: grabbing;
}

.stock-card {
    min-width: 250px;
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    flex-shrink: 0;
}

.stock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stock-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.stock-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.stock-card .price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* SEARCH SECTION */
.search-section {
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.form-group input, .form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

/* FEATURED CARS */
.featured-cars {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.car-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-img-box img {
    transform: scale(1.1);
}

.car-content {
    padding: 25px;
}

.car-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.car-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.car-price span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.car-price strong {
    font-size: 1.4rem;
    color: var(--gold);
}

/* FEATURES */
.features {
    padding: 100px 0;
    background: var(--secondary);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-muted);
}

/* HOW IT WORKS */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* TESTIMONIALS */
.testimonials {
    padding: 100px 0;
    background: var(--gray-light);
    text-align: center;
}

.testimonial-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 25px !important;
    margin-top: 40px !important;
    width: 100% !important;
}

.testimonial-card {
    flex: 1 1 300px !important;
    max-width: 360px !important;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .testimonial-grid {
        flex-direction: column !important;
    }
    .testimonial-card {
        max-width: 100% !important;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--gold);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.testimonial-card h4 {
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 700;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

/* CTA FINAL */
.cta-final {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1983');
    background-position: center;
    background-size: cover;
    color: var(--white);
    text-align: center;
}

.cta-final h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* CONTACT */
.contact {
    padding: 100px 0;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--gold);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
}

.contact-form {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    outline: none;
    font-family: inherit;
}

/* FOOTER */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.logo-img-footer {
    height: 100px;
    margin-right: 15px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    padding: 30px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.booking-car-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--gray-light);
    padding: 15px;
    border-radius: 15px;
}

.booking-car-info img {
    width: 150px;
    height: auto;
}

.total-box {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-top: 1px dashed var(--gold);
    width: 100%;
}

.total-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.total-box strong {
    font-size: 1.5rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* EXTRAS STYLES */
.extras-section {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.extras-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.extra-item:hover {
    background: #eee;
}

.extra-check {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

/* ANIMATIONS */
/* TEXT-ONLY CARDS */
.car-card.text-only, .stock-card.text-only {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid #eee;
    padding: 30px;
}

.car-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.gold-icon {
    color: var(--gold);
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Altura optimizada para que se vea el carro y los botones */
        background-position: 65% center !important; /* Desplaza la imagen para centrar el coche en vertical */
        background-size: cover;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 10px;
        text-shadow: 0 2px 15px rgba(0,0,0,0.9); /* Máxima legibilidad */
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 25px;
        text-shadow: 0 1px 5px rgba(0,0,0,0.8);
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 30px;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 15px 0;
    }
}

/* MOBILE NAV OPEN */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 20px;
    gap: 15px;
    text-align: center;
}
