/* Variables de color */
:root {
    --primary-blue: #0b1a58;
    --primary-red: #d31e27;
    --whatsapp-green: #25D366;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-blue { color: var(--primary-blue); }
.text-red { color: var(--primary-red); }

/* Utilidades de fondo */
.dark-bg { background-color: var(--dark-bg); color: var(--white); }
.light-bg { background-color: var(--light-bg); }

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-red { background-color: var(--primary-red); color: var(--white); }
.btn-red:hover { background-color: #a8151d; }

.btn-green { background-color: var(--whatsapp-green); color: var(--white); }
.btn-green:hover { background-color: #1ebc5a; }

.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white); }
.dark-bg .btn-outline { border-color: var(--white); color: var(--white); }
.dark-bg .btn-outline:hover { background-color: var(--white); color: var(--dark-bg); }

/* Interactive Cards */
.bike-card.interactive { cursor: pointer; }
.bike-card.interactive:hover { border-bottom: 4px solid var(--primary-red); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    background-image: radial-gradient(rgba(0,0,0,0.08) 2px, transparent 2px);
    background-size: 20px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-btn, .close-spec-btn {
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 50;
    color: #333;
}

/* Tech Spec Modal */
.tech-modal { max-width: 800px; padding: 20px; }
.tech-spec-container { display: flex; gap: 30px; align-items: center; }
.tech-spec-image { flex: 1; text-align: center; }
.tech-spec-image img { max-width: 100%; border-radius: 8px; margin-bottom: 15px; }

/* Selector de colores */
.ts-colors-container { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.color-thumb { 
    width: 40px !important; height: 40px !important; border-radius: 50% !important; 
    border: 2px solid transparent; cursor: pointer;
    background-color: #fff; padding: 2px;
    object-fit: cover; transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.color-thumb:hover { border-color: #ccc; }
.color-thumb.active { border-color: var(--primary-blue) !important; }

.tech-spec-details { flex: 1; text-align: left; }
.specs-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.specs-list li { display: flex; flex-direction: column; background: #f4f4f4; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.specs-list li strong { font-size: 0.8rem; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.specs-list li span { font-size: 1rem; color: #000; font-weight: 500; }

/* Filtrado */
.bike-card.hidden { display: none; }

/* Navbar */
.navbar {
    background-color: #000;
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 { margin: 0; font-size: 1.5rem; color: var(--primary-red); }

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover { color: var(--primary-red); }

/* Hero Section */
.hero { height: 60vh; min-height: 400px; background: #000; overflow: hidden; position: relative;}
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1; transform: translate(-50%, -50%); object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2; pointer-events: none; }

/* Experience Section */
.experience { padding: 60px 0; }
.experience-container { display: flex; align-items: center; gap: 40px; }
.experience-text { flex: 1; }
.experience-text h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.experience-image { flex: 1; text-align: center; }
.experience-image img { max-width: 100%; border-radius: 10px; }

/* General Sections */
section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; }

/* Categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    box-shadow: inset 0 -80px 50px -20px rgba(0,0,0,0.7);
    transition: transform 0.3s;
}

.category-card:hover { transform: scale(1.02); }
.category-card h3 { font-size: 1.5rem; text-transform: uppercase; margin: 0; }

/* Motos Destacadas */
.bikes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.bike-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.bike-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.bike-card img { width: 100%; height: 250px; object-fit: cover; }
.bike-info { padding: 20px; }
.bike-info h4 { font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 10px; }
.bike-info .price { font-weight: bold; font-size: 1.1rem; color: var(--primary-red); margin-bottom: 15px; }
.bike-specs { display: flex; justify-content: center; gap: 15px; font-size: 0.9rem; color: #666; }
.center-btn { text-align: center; }

/* Excelencia Japonesa */
.excellence-container { display: flex; align-items: center; gap: 50px; }
.excellence-text { flex: 2; }
.excellence-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
.excellence-logo { flex: 1; text-align: center; }
.excellence-logo img { max-width: 200px; }

/* Servicios */
.services {
    background-color: #f4f6f9;
    background-image: radial-gradient(rgba(0, 51, 160, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
}
.services-subtitle { font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.service-item { display: block; color: inherit; padding: 20px 10px; border-radius: 8px; transition: background 0.3s; }
.service-item:hover { background-color: #f0f0f0; }
.service-item i { font-size: 2.5rem; color: var(--text-color); margin-bottom: 20px; transition: color 0.3s; }
.service-item:hover i { color: var(--primary-red); }
.service-item p { font-weight: 400; font-size: 0.95rem; color: #555; }

/* Testimonios */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center;}
.testimonial-card .stars { color: #f1c40f; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; margin-bottom: 15px; font-size: 0.95rem; }
.testimonial-card h5 { font-weight: bold; color: var(--primary-blue); }

/* FAQ */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #ddd; padding: 15px 0; }
.accordion-header { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--primary-blue); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-top: 0; color: #555; }
.accordion-item.active .accordion-content { max-height: 200px; padding-top: 15px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

/* CTA Banner */
.cta-banner { padding: 80px 0; }
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-banner p { margin-bottom: 30px; font-size: 1.1rem; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* Footer */
.footer { background: #000; color: #ccc; padding: 50px 0 20px; }
.footer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-info h3 { color: var(--white); margin-bottom: 20px; }
.footer-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-links h4, .footer-social h4 { color: var(--white); margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a:hover { color: var(--primary-red); }
.social-icons { display: flex; gap: 15px; }
.social-icons a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: #333; color: var(--white); border-radius: 50%; transition: background 0.3s; }
.social-icons a:hover { background: var(--primary-red); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .experience-container, .excellence-container { flex-direction: column; text-align: center; }
    .categories-grid, .bikes-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card[style*="grid-column"] { grid-column: span 1 !important; }
}

@media (max-width: 768px) {
    /* nav-container is handled by the new mobile menu styles */
    .categories-grid, .bikes-grid, .services-grid, .testimonials-grid, .footer-container { grid-template-columns: 1fr; }
    .category-card { height: 200px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .experience-text h2 { font-size: 2rem; }
    .tech-spec-container { flex-direction: column; gap: 15px; }
    .tech-modal { padding: 15px; }
    .tech-spec-image img { max-height: 220px; object-fit: contain; margin-bottom: 5px; }
    .ts-colors-container { margin-bottom: 10px; }
    .color-thumb { width: 45px !important; height: 45px !important; }
    #ts-name { font-size: 1.5rem; margin-top: 5px; }
    #ts-price { font-size: 1.3rem !important; margin-bottom: 10px !important; }
    #ts-description { font-size: 0.85rem; line-height: 1.4; color: #555; }
    .carousel-slide { min-width: 280px; }
}

/* --- Mobile Menu Styles --- */
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--white); }
.nav-menu { display: flex; align-items: center; gap: 20px; }

@media (max-width: 768px) {
    .menu-toggle { display: block; margin-right: 15px; }
    .nav-menu { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        background: #000; 
        padding: 20px 0; 
        text-align: center; 
        border-top: 1px solid #333;
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; gap: 20px; }
    .nav-btn { margin-top: 10px; width: 80%; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* Experiencia Suzuki Premium */
.dark-excellence {
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 80px 0;
}
.excellence-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.excellence-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 10px;
}
.excellence-header p {
    font-size: 1.1rem;
    color: #aaaaaa;
}
.excellence-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}
.carousel-track::-webkit-scrollbar {
    height: 8px;
}
.carousel-track::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}
.carousel-slide {
    min-width: 350px;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #333;
    scroll-snap-align: center;
}
.carousel-slide:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}
.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}
.carousel-slide h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.carousel-slide p {
    color: #888;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .carousel-slide { min-width: 280px; }
}

/* ============================================================
   BOTONES DE NAVEGACIÓN Y ACCIÓN
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-outline-nav {
    border: 1.5px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-nav:hover {
    background: var(--white);
    color: #000;
    transform: translateY(-2px);
}

.nav-actions .btn-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ============================================================
   BOTONES FLOTANTES DE CONTACTO (LLAMADA Y WHATSAPP)
   ============================================================ */
.floating-contact-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column-reverse; /* WhatsApp abajo, Llamar arriba */
    gap: 14px;
    z-index: 9999;
}

.floating-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-size: 26px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.floating-btn.btn-whatsapp {
    background-color: #25D366;
}

.floating-btn.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.floating-btn.btn-call {
    background-color: #0b1a58;
    border: 2px solid #ffffff;
}

.floating-btn.btn-call:hover {
    background-color: #d31e27;
    border-color: #d31e27;
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(211, 30, 39, 0.5);
}

/* Tooltips emergentes en hover */
.floating-tooltip {
    position: absolute;
    right: 70px;
    background-color: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(20, 20, 20, 0.95);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Efecto de Pulso */
.floating-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    z-index: -1;
    animation: floating-pulse-anim 2.2s infinite ease-out;
}

@keyframes floating-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* Ajustes Responsive para Móviles */
@media (max-width: 768px) {
    .floating-contact-container {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .floating-tooltip {
        display: none;
    }
    .nav-actions {
        flex-direction: column;
        width: 85%;
        max-width: 280px;
        margin: 15px auto 0 auto;
        gap: 10px;
    }
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

