@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --rojo: #e02828;
    --rojo-hover: #c42020;
    --oscuro: #0a0a0a;
    --gris-fondo: #f4f6f8;
    --texto: #2d3436;
    --blanco: #ffffff;
    --borde: #eef0f2;
    --sombra-suave: 0 8px 24px rgba(0,0,0,0.04);
    --sombra-fuerte: 0 20px 40px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--gris-fondo); color: var(--texto); }
.contenedor { max-width: 1250px; margin: 0 auto; padding: 0 20px; }

/* UTILIDADES */
.text-red { color: var(--rojo); }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; letter-spacing: 1px; }
.text-sm { font-size: 0.85rem; }
.mt-5 { margin-top: 60px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 25px; }
.mb-5 { margin-bottom: 60px; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; height: 70px; background-color: var(--oscuro); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.logo { display: flex; align-items: center; margin-right: 15px; }
.logo-img { height: 70px; width: auto; object-fit: contain; transform: scale(1.8); transform-origin: left center; margin-right: 85px; }
.logo span { font-size: 1.35rem; font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -1px; color: var(--blanco); }
.logo small { font-size: 0.65rem; font-weight: 700; font-style: italic; letter-spacing: 3px; color: var(--blanco); }

.nav-links { list-style: none; display: flex; gap: 35px; }
.nav-links a { color: var(--blanco); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.3s; padding-bottom: 5px; }
.nav-links a:hover, .nav-links a.active { color: var(--rojo); border-bottom: 2px solid var(--rojo); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-whatsapp-nav { background: #00b894; padding: 10px 20px; border-radius: 8px; color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,184,148,0.2); }
.btn-whatsapp-nav:hover { background: #009678; transform: translateY(-2px); }
.btn-menu { display: block; background: transparent; border: none; color: var(--blanco); font-size: 1.5rem; cursor: pointer; transition: 0.3s; margin-left: 10px; }

/* HERO */
.hero { background: linear-gradient(to right, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1)), url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover; height: 80vh; display: flex; align-items: center; padding: 0 5%; }
.hero-content { max-width: 650px; color: var(--blanco); }
.badge-text { font-weight: 800; font-size: 0.75rem; letter-spacing: 3px; display: inline-block; margin-bottom: 20px; background: rgba(224,40,40,0.2); padding: 5px 12px; border-radius: 4px; border: 1px solid var(--rojo); }
.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; color: #ddd; margin-bottom: 35px; line-height: 1.6; font-weight: 500; }
.hero-buttons { display: flex; gap: 20px; }
.btn-primary { background: var(--rojo); color: white; padding: 16px 32px; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 8px; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(224,40,40,0.3); }
.btn-primary:hover { background: var(--rojo-hover); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(224,40,40,0.4); }
.btn-outline-light { border: 2px solid white; color: white; padding: 14px 32px; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; backdrop-filter: blur(5px); }
.btn-outline-light:hover { background: white; color: var(--oscuro); transform: translateY(-3px); }

/* BUSCADOR FLOTANTE */
.search-container { max-width: 1150px; margin: 40px auto 20px auto; padding: 0 20px; position: relative; z-index: 10; }
.search-box { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 25px; border-radius: 16px; box-shadow: var(--sombra-fuerte); display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid rgba(255,255,255,0.5); }
.search-item { flex: 1; padding-right: 20px; border-right: 1px solid var(--borde); display: flex; flex-direction: column; }
.search-item:nth-last-child(2) { border-right: none; }
.search-item label { font-size: 0.7rem; font-weight: 800; color: #a0a0a0; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.input-group { display: flex; align-items: center; gap: 12px; }
.input-group i { color: var(--rojo); font-size: 1rem; }
.input-group select { width: 100%; border: none; font-weight: 700; font-size: 1rem; color: var(--oscuro); outline: none; background: transparent; cursor: pointer; appearance: none; }
.btn-search { background: var(--rojo); color: white; padding: 18px 35px; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: 0.3s; box-shadow: 0 8px 15px rgba(224,40,40,0.25); }
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(224,40,40,0.35); }

/* =========================================
   GRILLA Y TARJETAS (CUADRO CHICO Y PROLIJO)
   ========================================= */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px;
    align-items: start;
}

.card-moto {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 320px; /* ESTE ES EL TOPE PARA QUE QUEDE CHICO */
    margin: 0 auto; /* SI HAY UNA SOLA, LA CENTRA */
    box-shadow: var(--sombra-suave);
    transition: 0.3s;
    border: 1px solid #eaeaea;
}
.card-moto:hover {
    box-shadow: var(--sombra-fuerte);
}

/* =========================================
   NUEVO CARRUSEL DE CAPAS (LA FOTO SE VE ENTERA)
   ========================================= */
.img-container { 
    position: relative; /* Clave para las flechas y capas */
    width: 100%;
    height: 220px; /* ALTURA FIJA DEL CUADRO DE IMAGEN */
    background: #ffffff; 
    border-bottom: 1px solid var(--borde);
    overflow: hidden;
}

/* Magia para que la foto se vea COMPLETA y sin cortes */
.foto-moto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* HACE QUE SE VEA LA MOTO ENTERA */
    padding: 15px; /* Margen para que no toque los bordes */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
/* Solo la foto activa se muestra */
.foto-moto.activa {
    opacity: 1;
    visibility: visible;
}

.card-moto:hover .foto-moto.activa {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}
.img-agotada .foto-moto { filter: grayscale(100%); opacity: 0.5; }

/* Botones de Navegación */
.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none; /* Se ocultan si no pasas el mouse */
    justify-content: center;
    align-items: center;
    color: var(--rojo);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.3s;
}
.img-container:hover .btn-carrusel {
    display: flex;
}
.btn-carrusel.prev { left: 10px; }
.btn-carrusel.next { right: 10px; }
.btn-carrusel:hover { background: var(--rojo); color: white; border-color: var(--rojo); }

/* CINTA DIAGONAL "VENDIDO" */
.ribbon-wrapper { position: absolute; top: 0; left: 0; width: 140px; height: 140px; overflow: hidden; z-index: 10; border-radius: 12px 0 0 0; }
.ribbon { font-size: 0.8rem; font-weight: 800; color: white; text-align: center; letter-spacing: 2px; transform: rotate(-45deg); position: relative; padding: 8px 0; left: -35px; top: 25px; width: 190px; background-color: #8b1515; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* CUERPO DE LA TARJETA */
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: var(--oscuro); }
.specs { font-size: 0.85rem; color: #7f8fa6; margin-bottom: 20px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--rojo); margin-bottom: 25px; }
.btn-detalles { display: flex; justify-content: space-between; align-items: center; background: var(--gris-fondo); padding: 14px 20px; font-weight: 700; font-size: 0.8rem; color: var(--oscuro); text-decoration: none; border-radius: 8px; transition: 0.3s; }
.btn-detalles:hover { background: var(--oscuro); color: white; }
.btn-vendida { display: block; text-align: center; background: #dfe6e9; padding: 14px; font-weight: 800; font-size: 0.8rem; color: #b2bec3; border-radius: 8px; }

/* BARRA LATERAL (SIDEBAR) */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(5px); }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--oscuro); z-index: 100; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 40px 25px; box-shadow: -10px 0 30px rgba(0,0,0,0.5); border-left: 1px solid #222; }
.sidebar.active { right: 0; }
.close-btn { position: absolute; top: 25px; right: 25px; background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.close-btn:hover { background: var(--rojo); transform: rotate(90deg); }
.sidebar-logo { color: white; font-size: 1.2rem; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 10px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 15px; }
.sidebar-links a { color: #aaa; text-decoration: none; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 15px; transition: 0.3s; padding: 10px; border-radius: 8px; }
.sidebar-links a i { font-size: 1.2rem; width: 25px; text-align: center; color: #555; transition: 0.3s; }
.sidebar-links a:hover { color: white; background: rgba(255,255,255,0.05); transform: translateX(5px); }
.sidebar-links a:hover i { color: var(--rojo); }
.sidebar-links hr { border: none; height: 1px; background: #222; margin: 25px 0; }

/* SECCIÓN OSCURA */
.dark-section { background: var(--oscuro); color: white; padding: 80px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.feature-item { display: flex; gap: 25px; align-items: flex-start; padding: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.feature-item:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); border-color: var(--rojo); }
.outline-icon { font-size: 2.5rem; color: var(--rojo); font-weight: 300; }
.feature-item h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; letter-spacing: 0.5px; }
.feature-item p { font-size: 0.9rem; color: #aaa; line-height: 1.6; }

/* DETALLES MOTO */
.detalles-container { display: flex; gap: 50px; margin-top: 50px; flex-wrap: wrap; background: white; padding: 40px; border-radius: 16px; box-shadow: var(--sombra-suave); }
.detalles-img { flex: 1.2; min-width: 300px; background: var(--gris-fondo); border-radius: 12px; padding: 30px; display: flex; align-items: center; justify-content: center; }
.detalles-img img { max-width: 100%; height: auto; mix-blend-mode: multiply; }
.detalles-info { flex: 1; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }
.detalles-info h1 { font-size: 3rem; color: var(--oscuro); margin-bottom: 15px; font-weight: 800; line-height: 1.1; }
.detalles-precio { font-size: 2.5rem; color: var(--rojo); font-weight: 800; margin: 25px 0; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.spec-box { background: var(--gris-fondo); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; }
.spec-box i { font-size: 1.5rem; color: var(--rojo); }
.spec-box div p { font-size: 0.75rem; color: #888; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.spec-box div strong { font-size: 1.1rem; color: var(--oscuro); font-weight: 800; }
.btn-wsp-large { background: #00b894; color: white; padding: 18px 35px; text-decoration: none; font-weight: 800; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.1rem; transition: 0.3s; box-shadow: 0 10px 20px rgba(0, 184, 148, 0.2); }
.btn-wsp-large:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 184, 148, 0.3); }

/* FOOTER */
.footer { background: var(--oscuro); color: #ccc; padding-top: 80px; border-top: 4px solid var(--rojo); }
.footer-top { padding-bottom: 50px; }
.footer h4 { color: white; font-size: 0.9rem; font-weight: 800; margin-bottom: 30px; letter-spacing: 1.5px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 15px; }
.footer ul a { color: #aaa; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; display: inline-block; }
.footer ul a:hover { color: var(--rojo); transform: translateX(5px); }
.footer-contact { margin-bottom: 20px; display: flex; gap: 15px; align-items: flex-start; color: #aaa; font-size: 0.95rem; }
.footer-contact i { color: var(--rojo); font-size: 1.2rem; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; background: #050505; }
.footer-bottom .contenedor { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #777; font-weight: 600; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: #fff; font-size: 1.1rem; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s; }
.social-icons a:hover { background: var(--rojo); transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .search-box { flex-direction: column; align-items: stretch; padding: 30px; }
    .search-item { border-right: none; border-bottom: 1px solid var(--borde); padding: 15px 0; }
    .btn-search { margin-top: 20px; justify-content: center; }
    .footer-bottom .contenedor { flex-direction: column; gap: 20px; text-align: center; }
    .detalles-container { flex-direction: column; padding: 20px; }
}
@media (max-width: 768px) {
    .nav-links, .btn-whatsapp-nav { display: none; }
    .btn-menu { display: block; }
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .specs-grid { grid-template-columns: 1fr; }
}

/* --- NUEVOS PASOS DE COMPRA (TIMELINE HORIZONTAL) --- */
.seccion-pasos-horizontal { 
    background-color: #ffffff; /* Fondo blanco limpio */
    padding: 70px 0; 
}
.titulo-pasos-rojo { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--rojo); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 35px; 
}
.timeline-pasos { 
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    gap: 20px; 
    margin-bottom: 40px; 
}
.paso-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    flex: 1; 
}
.paso-numero { 
    width: 45px; 
    height: 45px; 
    background: var(--oscuro); 
    color: white; 
    font-size: 1.2rem; 
    font-weight: 800; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}
.paso-texto { 
    display: flex; 
    flex-direction: column; 
}
.paso-texto h3 { 
    font-size: 1rem; 
    font-weight: 800; 
    color: var(--oscuro); 
    margin-bottom: 5px; 
    line-height: 1.2; 
}
.paso-texto p { 
    font-size: 0.85rem; 
    color: #666; 
    line-height: 1.5; 
    font-weight: 500; 
    margin: 0; 
}
.paso-flecha { 
    color: #d1d1d1; 
    font-size: 1.2rem; 
    flex-shrink: 0; 
    margin-top: 10px; 
}
.linea-bottom-pasos { 
    border: none; 
    height: 1px; 
    background: #eef0f2; 
    width: 100%; 
}

/* En celulares se pone vertical */
@media (max-width: 992px) {
    .timeline-pasos { flex-direction: column; align-items: stretch; gap: 20px; }
    .paso-flecha { transform: rotate(90deg); align-self: flex-start; margin-left: 15px; margin-top: 0; }
}

/* --- TESTIMONIOS CAROUSEL --- */
.carousel-container { position: relative; width: 100%; max-width: 1250px; margin: 0 auto; padding: 20px 0; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 0 30px 0; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.testimonio-card { min-width: 320px; max-width: 320px; background: white; border-radius: 12px; padding: 30px; border: 1px solid var(--borde); box-shadow: var(--sombra-suave); scroll-snap-align: center; flex: 0 0 auto; transition: 0.3s; }
.testimonio-card:hover { border-color: #ddd; box-shadow: var(--sombra-fuerte); }
.testimonio-card p { font-size: 0.9rem; color: #444; line-height: 1.7; margin: 15px 0; font-style: italic; font-weight: 500; }
.avatar-inicial { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: white; border: 1px solid #ddd; border-radius: 50%; font-size: 1.2rem; color: var(--oscuro); cursor: pointer; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.carousel-btn:hover { background: var(--rojo); color: white; border-color: var(--rojo); }
.carousel-btn.left { left: -10px; }
.carousel-btn.right { right: -10px; }

@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .testimonio-card { scroll-snap-align: start; }
}
/* =========================================
   LINK DE ADMIN CAMUFLADO Y AL FONDO
   ========================================= */
.sidebar-links a.link-admin-oculto {
    color: var(--oscuro); /* Se mimetiza 100% con el fondo negro */
    cursor: default; /* Parece que no es un link */
}
.sidebar-links a.link-admin-oculto i {
    color: var(--oscuro);
}
/* Apenas un gris súper oscuro al pasar el mouse para que vos te guíes */
.sidebar-links a.link-admin-oculto:hover {
    color: #111; 
    background: transparent;
    transform: none;
}
.sidebar-links a.link-admin-oculto:hover i {
    color: #111;
}