/* ================================================= */
/* 1. VARIABLES Y CONFIGURACIÓN BASE                */
/* ================================================= */
:root {
    --rojo-pulsar: #d32f2f;
    --oscuro-fondo: #121212;
    --gris-tarjeta: #181818;
    --gris-borde: #252525;
    --blanco: #ffffff;
    --texto-gris: #b0b0b0;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--oscuro-fondo);
    color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}
.header-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #000;
    border-bottom: 2px solid var(--rojo-pulsar);
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
}

.name-highlight {
    color: var(--rojo-pulsar);
    letter-spacing: 1px;
}

/* Diseño de los Botones */
.btn-header {
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 800;
    border-radius: 4px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header.entrar {
    background: var(--rojo-pulsar);
    color: #fff;
}

.btn-header.perfil {
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.8rem;
}

.btn-header.perfil:hover {
    background: #fff;
    color: #000;
}

.btn-logout {
    color: #666;
    font-size: 1.5rem;
    transition: 0.3s;
}

.btn-logout:hover {
    color: var(--rojo-pulsar);
}

/* Responsivo */
@media (max-width: 768px) {
    .user-welcome { flex-direction: column; gap: 10px; }
    .welcome-text { font-size: 0.7rem; }
}


.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('../multimedia/portada.webp'); /* Asegura que la ruta sea correcta */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
}

.overlay-hero {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), var(--oscuro-fondo));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--rojo-pulsar);
    text-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--texto-gris);
    margin-bottom: 30px;
}

.btn-explorar {
    display: inline-block;
    padding: 18px 45px;
    background: var(--rojo-pulsar);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-explorar:hover {
    transform: translateY(-5px);
    background: #ff1f1f;
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.5);
}

.header-nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 100;
}

.logo-img {
    width: 180px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}



/*
   2. ESTILOS DEL INDEX (CATÁLOGO Y FILTROS)
    */

/* --- LOGO FLOTANTE --- */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo-img {
    width: 150px;
    height: auto;
}

/* --- FILTROS --- */
/* ================================================= */
/* 4. FILTROS DE BÚSQUEDA (ESTILO PREMIUM)          */
/* ================================================= */
.filtros-marco {
    max-width: 1100px;
    margin: -50px auto 60px; /* Se encima un poco al Hero */
    padding: 30px;
    background: var(--gris-tarjeta);
    border: 1px solid var(--gris-borde);
    border-top: 4px solid var(--rojo-pulsar);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 20;
}

.filtros-marco form {
    display: flex;
    gap: 25px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.grupo-filtro {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filtros-marco label {
    display: block;
    margin-bottom: 12px;
    color: var(--rojo-pulsar);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.filtros-marco select {
    width: 100%;
    padding: 12px 15px;
    background: #121212;
    color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.filtros-marco select:focus {
    border-color: var(--rojo-pulsar);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

/* ================================================= */
/* 5. SLIDER DE PRECIO (REDISEÑO TOTAL)             */
/* ================================================= */
.range-slider {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    z-index: 1;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 10;
}

/* El botón deslizable (Thumb) */
.range-slider input[type="range"]::-webkit-slider-thumb {
    height: 26px;
    width: 18px;
    background: var(--blanco);
    border: 2px solid var(--rojo-pulsar);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
    transition: 0.2s;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--rojo-pulsar);
    transform: scale(1.1);
}

.range-values {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: -30px;
    font-weight: 800;
    color: var(--texto-gris);
    font-size: 0.8rem;
}

/* Botón de Filtrar */
.filtros-marco button[type="submit"] {
    background: var(--rojo-pulsar);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    height: 45px;
}

.filtros-marco button:hover {
    background: #ff1f1f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Contenedor del grupo para que no se encime con lo de abajo */
.grupo-filtro {
    margin-bottom: 35px !important; 
}

/* --- GRID DE MOTOS --- */
.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}
/* --- ANIMACIÓN DE ENTRADA PARA MÓVILES Y PC --- */
.card-link {
    opacity: 0;
    transform: translateY(50px); /* Empieza 50px abajo */
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cuando la tarjeta entra en el radar del usuario */
.card-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ADAPTACIÓN DE EFECTOS PARA MÓVILES (Touch) --- */
@media screen and (max-width: 768px) {
    .card::before {
        animation: brilloMovil 4s infinite linear;
    }

    @keyframes brilloMovil {
        0% { top: -150%; left: -150%; }
        20% { top: -50%; left: -50%; } /* El destello pasa */
        100% { top: -50%; left: -50%; } /* Pausa larga */
    }

    .card img {
        transform: scale(1) !important;
    }
    
    .card {
        border-color: rgba(211, 47, 47, 0.3);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
}
.card {
    background: var(--gris-tarjeta);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--gris-borde);
    transition: 0.3s ease;
    position: relative; /* Necesario para posicionar el brillo */
    overflow: hidden;    /* Corta el brillo para que no se salga de la tarjeta */
}

/* 2. ESTE ES EL NUEVO BLOQUE DEL BRILLO (Capa invisible al inicio) */
.card::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        115deg, 
        transparent 20%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(255, 255, 255, 0.3) 45%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%
    );
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 5; /* Queda encima de la imagen */
}

.card img {
    width: 100%;
    height: auto; 
    max-height: 500px;
    object-fit: cover; 
    border-radius: 10px;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

/* 3. FUSIONAMOS TU ZOOM CON EL MOVIMIENTO DEL BRILLO */
.card:hover img {
    transform: scale(1.02); /* Mantiene tu zoom original */
}

.card:hover::before {
    top: -50%; /* Desplaza el brillo de esquina a esquina */
    left: -50%;
    transition: all 0.6s ease-out; /* Velocidad del destello */
}

/* Extra: Un resplandor rojo que combine con Bajaj */
.card:hover {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.4); 
    border-color: var(--rojo-pulsar);
}

/* --- PAGINACIÓN --- */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pag-num, .pag-btn {
    padding: 10px 18px;
    background: var(--gris-tarjeta);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
}

.pag-num.activo {
    background: var(--rojo-pulsar);
    border-color: var(--rojo-pulsar);
}

.visor-principal {
    position: relative;
    overflow: hidden; /* Importante para que la imagen no se salga al crecer */
    background: #000;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vista_modelo {
    padding: 60px 20px;
    background: radial-gradient(circle at top, #231930 0%, #121212 100%);
    min-height: 40vh;
}

.contenedor_head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.img-detalle {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
    transition: transform 0.5s ease;
}

.img-detalle:hover {
    transform: scale(1.05) rotate(-2deg);
}

.info-detalle h1 {
    font-size: 3rem;
    color: var(--blanco);
    border-left: 5px solid var(--rojo-pulsar);
    padding-left: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.descripcion {
    font-size: 1.1rem;
    color: var(--texto-gris);
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--gris-borde);
    margin-bottom: 30px;
}


.acciones-detalle {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Permite que bajen en móviles */
}

.btn-accion {
    flex: 1;
    min-width: 180px;
    padding: 18px 25px;
    border-radius: 4px; /* Bordes más rectos para look agresivo */
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-video {
    background: var(--rojo-pulsar);
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-video:hover {
    background: #ff1f1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.6);
}


.btn-ficha {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--blanco);
    color: var(--blanco);
}

.btn-ficha:hover {
    background: var(--blanco);
    color: #000;
    transform: translateY(-3px);
}

/* Efecto de brillo al pasar el mouse */
.btn-accion::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-accion:hover::after {
    left: 100%;
}

/* Botón Principal: Cotización / Reserva */
.btn-ficha:nth-child(2), .btn-ficha:nth-child(3) {
    background: var(--rojo-pulsar);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-ficha:nth-child(2):hover, .btn-ficha:nth-child(3):hover {
    background: #ff1f1f;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.5);
}

/* Botón Ficha Técnica (Estilo Outline) */
.btn-ficha:first-child {
    background: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
}

.btn-ficha:first-child:hover {
    background: var(--blanco);
    color: #000;
    transform: translateY(-5px);
}

/* Ajuste específico para iconos de Boxicons en botones */
.btn-accion i {
    font-size: 1.3rem;
}

/* 
   4. MODALES Y FOOTER
 */
.modal {
    display: none; /* Cambiamos a block para que no fuerce el centrado vertical */
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-contenido {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto; 
    
    background: #1a1a1a;
    border-radius: 15px; 
    padding: 0; 
    border: 1px solid var(--rojo-pulsar);
    overflow: hidden; 
}


.cerrar {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--rojo-pulsar);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.footer-premium {
    background: #050505;
    border-top: 2px solid var(--rojo-pulsar);
    color: var(--blanco);
    padding-top: 60px;
    font-family: 'Exo 2', sans-serif;
    margin-top: 80px;
}

.footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h3 {
    color: var(--blanco);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--rojo-pulsar);
}

.footer-logo-img { 
    height: 30px; 
    margin-bottom: 20px; 
}

.footer-desc { 
    font-size: 0.78rem; 
    color: var(--texto-gris); 
    line-height: 1.6; 
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social-icons { display: flex; gap: 12px; }
.footer-social-icons a { 
    color: var(--blanco); 
    font-size: 1.3rem; 
    transition: 0.3s; 
}
.footer-social-icons a:hover { color: var(--rojo-pulsar); transform: translateY(-3px); }

.links-col ul { list-style: none; padding: 0; }
.links-col li { margin-bottom: 10px; }
.links-col a { 
    color: var(--texto-gris); 
    text-decoration: none; 
    font-size: 0.8rem; 
    font-weight: 600;
    transition: 0.3s;
    display: block;
}
.links-col a:hover { color: var(--rojo-pulsar); padding-left: 5px; }

.contact-item { 
    font-size: 0.78rem; 
    color: var(--texto-gris); 
    margin-bottom: 12px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
}
.contact-item i { color: var(--rojo-pulsar); font-size: 1rem; }

.footer-map-mini { 
    margin-top: 15px; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 100px; 
    border: 1px solid #1a1a1a;
    filter: grayscale(0.6);
    transition: 0.3s;
}
.footer-map-mini:hover { filter: grayscale(0); }

.footer-bottom {
    margin-top: 60px;
    padding: 20px 5%;
    background: #000;
    border-top: 1px solid #111;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.footer-legal { display: flex; align-items: center; gap: 15px; }
.footer-legal a { color: #555; text-decoration: none; font-size: 0.7rem; font-weight: 700; }
.footer-legal a:hover { color: var(--texto-gris); }
.divider { color: #222; }

/* RESPONSIVO ESPECÍFICO FOOTER */
@media (max-width: 1024px) {
    .footer-grid-container { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
}

@media (max-width: 600px) {
    .footer-grid-container { grid-template-columns: 1fr; text-align: center; }
    .footer-column h3::after { left: 50%; transform: translateX(-50%); }
    .footer-social-icons, .contact-item, .footer-legal { justify-content: center; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}

.social-media-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 25px;
    transition: 0.3s;
    margin-left: 10px;
}

/* --- ESTILOS DEL CARRUSEL DE SUGERENCIAS --- */
.seccion-sugerencias {
    padding: 50px 20px;
    background: #222447;
}

.titulo-sugerencias {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--rojo-pulsar);
    text-transform: uppercase;
}

.carrusel-contenedor {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carrusel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Oculta scroll en Firefox */
}

.carrusel-track::-webkit-scrollbar {
    display: none; /* Oculta scroll en Chrome/Safari */
}

.sugerencia-card {
    min-width: 280px; /* Aumentado de 200px a 280px */
    background: var(--gris-tarjeta);
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
}

.sugerencia-card img {
    width: 100%;
    height: 200px; /* Aumentado de 120px a 200px */
    object-fit: contain; /* Mantiene la proporción de la moto */
    transition: 0.4s ease;
}

.sugerencia-card p {
    color: white;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem; /* Texto un poco más grande */
    text-transform: uppercase;
}

.sugerencia-card:hover img {
    transform: scale(1.1); /* Efecto de acercamiento al pasar el mouse */
}

/* Flechas */
.flecha-carrusel {
    background: var(--rojo-pulsar);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.flecha-carrusel.prev { left: -20px; }
.flecha-carrusel.next { right: -20px; }



/* --- NUEVO HERO SECTION --- */
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.img-hero {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay-hero {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--oscuro-fondo));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 20px 0;
    
}

.highlight { color: var(--rojo-pulsar); }

.btn-explorar {
    display: inline-block;
    padding: 15px 40px;
    background: var(--rojo-pulsar);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

/* --- SECCIÓN BENEFICIOS --- */

.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    padding: 80px 20px;
    background: var(--oscuro-fondo); /* Fusión total con el fondo general */
    perspective: 1000px;
}

.beneficio-item {
    background: #181818; /* Gris muy oscuro para contraste sutil */
    border: 1px solid #252525;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

/* Efecto de Brillo Holo (Pokémon Style) ajustado a Rojo Bajaj */
.beneficio-item::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        115deg, 
        transparent 30%, 
        rgba(211, 47, 47, 0.05) 40%, 
        rgba(255, 255, 255, 0.1) 45%, 
        transparent 60%
    );
    transform: rotate(-20deg);
    pointer-events: none;
    transition: 0.6s;
}

.beneficio-item:hover::before {
    top: -50%;
    left: -50%;
}

.beneficio-item:hover {
    transform: translateY(-15px) scale(1.05);
    background: #1e1e1e;
    border-color: var(--rojo-pulsar);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(211, 47, 47, 0.1);
}

/* Contenedor del Icono */
.icon-box {
    width: 70px;
    height: 70px;
    background: #121212; 
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.beneficio-item:hover .icon-box {
    background: var(--rojo-pulsar);
    transform: rotateY(360deg);
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.4);
    border-color: var(--rojo-pulsar);
}

.beneficio-item i {
    font-size: 2.2rem;
    color: var(--rojo-pulsar);
    transition: 0.3s;
}

.beneficio-item:hover i {
    color: white;
}

.beneficio-item h3 {
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.beneficio-item p {
    font-size: 0.85rem;
    color: var(--texto-gris);
    line-height: 1.5;
}

/* --- ANIMACIONES Y RESPONSIVIDAD --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Delay escalonado */
.beneficio-item:nth-child(1) { animation-delay: 0.1s; }
.beneficio-item:nth-child(2) { animation-delay: 0.2s; }
.beneficio-item:nth-child(3) { animation-delay: 0.3s; }
.beneficio-item:nth-child(4) { animation-delay: 0.4s; }
.beneficio-item:nth-child(5) { animation-delay: 0.5s; }
.beneficio-item:nth-child(6) { animation-delay: 0.6s; }

/* AJUSTE PARA PANTALLAS GRANDES (PC) */
@media screen and (min-width: 768px) {
    .beneficios {
        grid-template-columns: repeat(6, 1fr);
        padding: 100px 40px;
        gap: 30px;
    }
    
    .beneficio-item i {
        font-size: 3rem; /* Tamaño más grande para PC */
    }
    
    .beneficio-item h3 {
        font-size: 1.1rem;
    }
}

.card {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-pulsar);
}

.card h2 {
    font-size: 1.2rem;
    margin: 15px 0 5px;
    color: var(--blanco);
}

/* */

/* Mejoras para el visor principal */
.visor-principal {
    background: #000; /* Fondo negro para que resalte la moto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Estilos de las miniaturas */
.miniaturas {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
}

.thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.7;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb.activo {
    border-color: var(--rojo-pulsar);
    opacity: 1;
}

/* Miniatura especial de Video */
.thumb-video {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gris-tarjeta);
    color: var(--rojo-pulsar);
    font-size: 2rem;
}

/* SECCION DE DETALLES MOTO*/
.especificaciones-rectangulares {
    background: #000;
    padding: 80px 0;
    width: 100%;
}

.contenedor-centrado {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.titulo-seccion-tecnica {
    text-align: center;
    color: var(--blanco);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.grid-tecnico {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas que chocan al centro */
    gap: 15px;
}



.caja-tecnica {
    background: var(--gris-tarjeta);
    border: 1px solid var(--gris-borde);
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: 0.3s ease;
}

.caja-tecnica:hover {
    background: #222;
    border-color: var(--rojo-pulsar);
    transform: scale(1.02);
}

.icono-circular {
    width: 65px;
    height: 65px;
    background: #000;
    border: 2px solid var(--rojo-pulsar);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.icono-circular i {
    font-size: 2rem;
    color: var(--blanco);
}

.datos-tecnicos {
    display: flex;
    flex-direction: column;
}

.etiqueta-roja {
    color: var(--rojo-pulsar);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.valor-blanco {
    color: var(--blanco);
    font-size: 1.3rem; /* Tamaño grande y legible */
    font-weight: 700;
    margin-top: 5px;
}

/* Responsive: Una sola columna en móviles */
@media (max-width: 768px) {
    .grid-tecnico {
        grid-template-columns: 1fr;
    }
    .caja-tecnica {
        height: 100px;
        padding: 0 20px;
    }
    .valor-blanco {
        font-size: 1.1rem;
    }
}


/* --- RESPONSIVO PARA INDEX.PHP --- */
.contenedor-motos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ajustes para Celulares */
@media (max-width: 768px) {
    .contenedor-motos {
        grid-template-columns: 1fr; /* Una moto por fila */
        padding: 10px;
    }

    .card-moto {
        width: 100%;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .card-moto img {
        height: 200px; /* Altura fija para que todas se vean iguales */
        object-fit: contain;
    }

    .btn-ver-detalle {
        width: 100%; /* Botón grande para tocar fácil con el dedo */
        padding: 15px;
    }
}


/* --- RESPONSIVO PARA DETALLE.PHP --- */
.detalle-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

@media (max-width: 992px) {
    .detalle-container {
        flex-direction: column; /* Imagen arriba, Info abajo */
        align-items: center;
    }

    .caja-imagen-detalle {
        width: 100%;
        text-align: center;
    }

    .caja-imagen-detalle img {
        max-width: 100%;
        height: auto;
    }

    .info-moto-detalle {
        width: 100%;
        padding: 0 10px;
    }

    .precio-detalle {
        font-size: 2rem;
        text-align: center;
        color: #d32f2f;
    }

    .btn-cotizar-ahora {
        display: block;
        width: 100%;
        font-size: 1.3rem;
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .logo-header {
        height: 40px;
    }
}


/* --- CONTENEDOR DE LA TV --- */
.smart-tv {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

/* MARCO DE LA TELEVISIÓN (BEZEL) */
.bezel {
    background: #1a1a1a; /* Negro Mate */
    padding: 12px 12px 45px 12px;
    border-radius: 15px;
    border: 1px solid #333;
    position: relative;
    /* EL EFECTO DE DESLUMBRE AZUL QUE SOLICITASTE */
    box-shadow: 
        inset 0 0 15px rgba(52, 152, 219, 0.2), 
        0 0 30px rgba(52, 152, 219, 0.4), 
        0 0 60px rgba(52, 152, 219, 0.2);
}

/* PANEL DE LA PANTALLA */
.display-panel {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.display-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* BARRA INFERIOR CON LOGO Y CONTROLES */
.bottom-bar {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.physical-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* BOTONES DE LA TV */
.tv-btn {
    background: #252525;
    border: 1px solid #444;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tv-btn:hover {
    background: #333;
    color: var(--blanco);
    border-color: #555;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* LED DE ESTADO */
.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db; /* Azul por defecto */
    box-shadow: 0 0 8px #3498db;
    transition: background 0.5s;
}

/* SOPORTE DE LA TV */
.tv-stand {
    width: 120px;
    height: 40px;
    background: linear-gradient(to bottom, #111, #000);
    margin: -2px auto 0;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.tv-base {
    width: 280px;
    height: 12px;
    background: #111;
    margin: -2px auto 0;
    border-radius: 10px 10px 2px 2px;
    border-bottom: 2px solid #222;
}

/* CONTADOR DE VIDEO (DINÁMICO) */
.video-counter {
    color: #555;
    font-size: 11px;
    font-weight: 900;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 1px;
}

/* --- CONTENEDOR MULTIMEDIA DUAL ACTUALIZADO --- */
.detalle-multimedia-container {
    display: grid !important;
    /* Forzamos 40% para fotos y 60% para la TV */
    grid-template-columns: 35% 65% !important; 
    background: #0a0a0a;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}
.galeria-fotos {
    width: 100%;
    max-width: 100%; /* Evita que crezca más del 40% del padre */
}

.visor-interactivo {
    width: 100%;
    height: 400px; /* Reducimos altura para que no se vea estirada al ser más angosta */
    position: relative;
    overflow: hidden;
}

#img-interactiva {
    max-width: 100%; 
    height: auto;
    object-fit: contain;
}

/* --- RESPONSIVO PARA MÓVILES (TV ARRIBA, FOTOS ABAJO) --- */
@media (max-width: 992px) {
    .detalle-multimedia-container {
        /* Cambiamos a una sola columna */
        grid-template-columns: 1fr !important; 
        display: flex !important;
        flex-direction: column; /* Alineación vertical */
        gap: 30px;
        padding: 20px 5%;
    }

    /* Movemos la televisión a la posición 1 (Arriba) */
    .galeria-video {
        order: 1; 
        width: 100%;
    }

    /* Movemos la galería de fotos a la posición 2 (Abajo) */
    .galeria-fotos {
        order: 2;
        width: 100%;
    }

    /* Ajuste de altura para que la foto no sea gigante en móvil */
    .visor-interactivo {
        height: 350px; 
    }

    /* Aseguramos que la TV use el ancho disponible */
    .smart-tv {
        max-width: 100%;
    }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* El icono de WhatsApp */
.whatsapp-float i {
    font-size: 32px;
}

/* El texto al lado del icono */
.whatsapp-float span {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: none; /* Oculto por defecto en móviles */
}

/* Animación de "Pulso" para llamar la atención */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Responsive: Mostrar texto en pantallas más grandes */
@media (min-width: 768px) {
    .whatsapp-float span {
        display: inline-block;
    }
}

/* En móviles pequeños, lo dejamos solo como círculo para no tapar mucho */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
}

/* --- ESTILOS DEL ROBOT ASISTENTE --- */
.robot-container {
    position: fixed;
    left: 20px;
    bottom: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 2000;
    animation: aparecerRobot 1s ease-out forwards;
}

.robot-icon {
    width: 60px;
    height: 60px;
    background: var(--rojo-pulsar);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
}

.burbuja-mensaje {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    font-size: 0.9rem;
}

.btn-robot-accion {
    margin-top: 10px;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.btn-robot-accion:hover {
    background: var(--rojo-pulsar);
}

/* Animaciones */
@keyframes aparecerRobot {
    from { transform: translateX(-150%); }
    to { transform: translateX(0); }
}

@keyframes desaparecerRobot {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0); }
}
/* --- ANIMACIÓN DE COLORES PARA EL BOTÓN --- */
@keyframes alertaColores {
    0% { background-color: #d32f2f; box-shadow: 0 0 10px #d32f2f; }
    33% { background-color: #25d366; box-shadow: 0 0 20px #25d366; }
    66% { background-color: #3498db; box-shadow: 0 0 20px #3498db; }
    100% { background-color: #d32f2f; box-shadow: 0 0 10px #d32f2f; }
}

.boton-resaltado {
    animation: alertaColores 0.6s infinite; /* Cambia de color rápido para llamar la atención */
    transform: scale(1.1);
    transition: transform 0.3s;
    z-index: 3000;
}

/* Estilos básicos del robot (ya los tenías, pero aseguremos la posición) */
.robot-container {
    position: fixed;
    left: 20px;
    bottom: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 2000;
    animation: aparecer 0.8s ease-out;
}

.robot-icon {
    width: 60px;
    height: 60px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.burbuja-mensaje {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes aparecer {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.robot-icon {
    width: 70px;
    height: 70px;
    background: #d32f2f; /* Rojo Pulsar */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
    border: 3px solid white;
}

.img-robot-per {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que el robot se vea estirado o flaco */
    border-radius: 50%;
}


.robot-icon {
    overflow: hidden; /* Corta la imagen para que sea circular */
    padding: 0;    
}


.botones-colores-inferiores {
    margin-top: 10px;
    z-index: 10;
}

/* Resaltado del contenedor si falta elegir color */
.error-seleccion {
    border: 2px solid #d32f2f;
    padding: 10px;
    border-radius: 10px;
    animation: sacudir 0.5s;
}

@keyframes sacudir {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Marca visual del botón seleccionado */
.btn-color-cuadrado.activo {
    border: 3px solid #d32f2f !important;
    transform: scale(1.05);
}


