/* Variables de Colores */
:root {
    --bg-black: #0f0f0f;
    --card-grey: #1e1e1e;
    --olive-green: #5c6647; /* Identidad del logo */
    --orange-accent: #e85d04; /* Botones y detalles importantes */
    --text-white: #eeeeee;
    --text-muted: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
}

/* Utilidades de Texto */
.olive-text { color: var(--olive-green); font-weight: bold; }
.orange-text { color: var(--orange-accent); font-weight: bold; }

/* Botón Flotante WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 75px;
    right: 25px;
    background-color: #25D366; /* Verde oficial de WA */
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s;
}
.floating-wa:hover { transform: scale(1.05); }

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-black);
    border-bottom: 2px solid var(--olive-green);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-nav {
    font-size: 22px;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px; /* Más visible */
    transition: 0.3s;
}
.nav-links a:hover { color: var(--orange-accent); }

.btn-nav-outline {
    border: 2px solid var(--orange-accent);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--orange-accent) !important;
}
.btn-nav-outline:hover {
    background-color: var(--orange-accent);
    color: var(--bg-black) !important;
}

.btn-nav-solid {
    background-color: var(--orange-accent);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--bg-black) !important;
    font-weight: bold;
}

/* Secciones Generales */
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    color: var(--orange-accent); /* Títulos importantes en naranja */
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.divider {
    border: 0;
    height: 1px;
    background-color: var(--olive-green); /* Detalles olivo */
    width: 60%;
    margin: 0 auto;
    opacity: 0.5;
}

/* Tarjetas (Gris) */
.card {
    background-color: var(--card-grey);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid #2a2a2a;
}

/* Hero / Inicio en dos columnas */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    gap: 60px; /* Espacio entre el logo y el texto */
    text-align: left; /* Alineamos el texto a la izquierda */
}

.hero-left, .hero-right {
    flex: 1;
}
/* Contenedor con fondo naranja parejo */
.logo-wrapper {
    display: inline-block;
    background-color: var(--orange-accent);
    padding: 8px; /* Este es el grosor del marco naranja. Puedes subirlo a 10px o 12px si lo quieres más ancho */
    border-radius: 16px; /* Curva exterior del marco */
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Sombra oscura para que resalte del fondo */
}

/* Tu imagen del logo */
/* Logo más grande */
.main-logo {
    max-width: 420px; /* Aumentamos el tamaño del logo */
    width: 100%;
    display: block;
    border-radius: 10px;
}
.hero-section h1 { font-size: 36px; margin-bottom: 10px; }
.tagline { color: var(--text-muted); font-size: 18px; margin-bottom: 30px; font-style: italic; }

/* Botones principales */
.btn-orange {
    display: inline-block;
    background-color: var(--orange-accent);
    color: var(--bg-black);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-orange:hover { background-color: #ff7b1a; }

/* Grids */
.grid-4, .grid-3 {
    display: grid;
    gap: 20px;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Iconos en tarjetas */
.icon { font-size: 40px; display: block; margin-bottom: 15px; }

/* Lista Por Qué Elegirnos */
.list-card ul {
    list-style: none;
    text-align: left;
    display: inline-block;
    font-size: 18px;
}
.list-card li { margin-bottom: 15px; }

/* Cómo trabajamos */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.step { font-size: 16px; }
.arrow { color: var(--olive-green); font-weight: bold; }

/* Enlaces Recursos */
.link-card {
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.2s, border-color 0.2s;
}
.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-accent);
}

/* Footer */
.footer p { margin-bottom: 20px; font-size: 18px; }
.location { margin-top: 30px; color: var(--text-muted); }
.footer-brand { margin-top: 40px; font-weight: bold; color: var(--olive-green); letter-spacing: 3px; }

/* Cuadrícula para los videos de TikTok */
.tiktok-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
    margin-top: 20px;
}

.video-wrapper {
    width: 325px; /* Este es el ancho exacto y oficial de TikTok */
    display: flex;
    justify-content: center;
    /* Quitamos el fondo, bordes y padding para que el video no se corte */
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    /* Adaptación del Hero (Inicio) para celulares */
    .hero-section {
        flex-direction: column; /* Apila el logo arriba y texto abajo */
        text-align: center;     /* Centra todo el texto */
        padding: 40px 15px;     /* Reduce el espacio de arriba */
        gap: 20px;              /* Espacio entre el logo y los textos */
    }

    .main-logo {
        max-width: 250px;       /* Achica el logo en celular */
        margin: 0 auto;         /* Centra el logo */
    }

    .hero-right h1 {
        font-size: 28px;
        margin-top: 10px;
    }

    /* Acomodo de las Redes Sociales en Celular */
    .social-hero {
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 25px;
        gap: 10px;              /* Espacio entre los botones */
    }

    .social-btn {
        padding: 12px 20px;     /* Botones un poco más grandes para que sean fáciles de tocar */
        width: 45%;             /* Hace que los botones ocupen casi la mitad de la pantalla, en 2 columnas */
        text-align: center;
    }
    
    /* Botón Principal de WhatsApp en Celular */
    .main-cta {
        width: 90%;             /* El botón naranja ocupará casi todo el ancho */
        padding: 18px 10px;
        font-size: 16px;
        margin-bottom: 30px;    /* Espacio extra abajo del botón */
    }
}
/* Redes Sociales debajo del logo */
.social-hero {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 15px;
}

.social-btn {
    background-color: var(--card-grey);
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--orange-accent); /* Borde naranja al pasar el ratón */
    color: var(--orange-accent);
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 5px 15px rgba(232, 93, 4, 0.2); /* Sombra naranja */
}
/* Cuadrícula de la Tienda */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Tarjeta del producto */
.product-card {
    display: flex;
    background-color: var(--card-grey);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-accent);
}

/* Contenedor de la imagen (Fondo blanco) */
.product-img {
    flex: 0 0 45%; /* La imagen ocupa el 45% del ancho */
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

/* Detalles y botón */
.product-details {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.product-details h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-white);
    line-height: 1.3;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 15px;
}

.btn-buy {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    margin-top: 0;
}

/* Ajuste para celulares */
@media (max-width: 480px) {
    .product-card {
        flex-direction: column; /* Apila la foto arriba y el texto abajo en pantallas muy pequeñas */
    }
    .product-img {
        width: 100%;
    }
}

/* --- GRID DE MODELOS DE MOTOS --- */
.models-grid {
    display: grid;
    /* En celular mostrará 2 columnas, en compu hasta 3 */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px;
    margin-top: 20px;
    align-items: start;
}

.model-card {
    background-color: #ffffff; /* Fondo blanco de la imagen */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.model-img {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Mantiene todas las fotos al mismo nivel */
}

.model-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.model-card h3 {
    background-color: #222222; /* Franja oscura del nombre */
    color: #ffffff;
    margin: 0;
    padding: 12px 5px;
    font-size: 13px;
    font-weight: bold;
}

/* --- MENÚ DESPLEGABLE DE REFACCIONES --- */
.parts-dropdown {
    background-color: #333333;
}

.parts-dropdown summary {
    cursor: pointer;
    padding: 12px;
    font-size: 13px;
    color: #ff6600; /* Tu color naranja */
    font-weight: bold;
    list-style: none; /* Oculta la flecha fea que traen algunos navegadores */
}

.parts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.parts-list li {
    border-top: 1px solid #4a4a4a;
}

.parts-list a {
    display: block;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
}

.parts-list a:hover {
    background-color: #555555;
    color: #ffffff;
}
