﻿/*-------------------------------------------------Login-------------------------------------------------*/

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 70px; /* altura navbar */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 65px; /* altura footer */
}

main {
    flex: 1;
    overflow-y: auto; /* 👈 scroll solo en el contenido */
    padding-top: 80px; /* espacio para navbar fijo */
    padding-bottom: 70px; /* espacio para footer fijo */
}

body.login-body {
    background: url('/img/fondo-pantalla.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15); /* 👈 más transparente (antes 0.75) */
    backdrop-filter: blur(10px); /* Difumina el fondo detrás */
    -webkit-backdrop-filter: blur(10px); /* Compatibilidad Safari */
}


.login-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    width: 350px;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.login-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ff4e50, #f9d423);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    text-align: center;
}

    .login-card h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: bold;
    }

.carrito-notif {
    background-color: #0d6efd; /* azul */
    color: white;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 220px;
    max-width: 280px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

    .carrito-notif.show {
        opacity: 1;
        transform: translateX(0);
    }

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

.btn-login {
    width: 100%;
    background: #d4af37;
    border: none;
    font-weight: bold;
}

    .btn-login:hover {
        background: #b8962f;
    }

.text-warning {
    cursor: pointer;
}

/*------------------------------------------------------------fin login----------------------------------------------*/

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    color: white; /* texto claro sobre el fondo */
}

    /* Solo para Index */
    body.index-body {
        background: url('/img/fondo-moto.png') no-repeat center center fixed;
        background-size: cover;
    }

.fondo-carros-motos {
    position: relative;
    z-index: 0;
    overflow: hidden; /* evita que la imagen se salga del contenedor */
    min-height: 350px; /* puedes ajustar este valor según tu contenido */
}

    .fondo-carros-motos::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/img/fondo-lujos.png') no-repeat center center;
        background-size: cover; /* mantiene proporciones y cubre todo el espacio */
        opacity: 0.7; /* transparencia */
        z-index: -1;
        transition: opacity 0.3s ease, background-position 0.3s ease;
    }



/* ✅ Pantallas medianas (tablets, laptops pequeños) */
@media (max-width: 1024px) {
    .fondo-carros-motos::before {
        background-position: center top;
        opacity: 0.75;
    }
}

/* ✅ Pantallas pequeñas (celulares en vertical) */
@media (max-width: 768px) {
    .fondo-carros-motos {
        min-height: 250px;
    }

        .fondo-carros-motos::before {
            background-position: center;
            background-size: contain; /* evita cortes de la imagen */
            opacity: 0.8;
        }
}

/* ✅ Extra pequeñas (iPhone SE, pantallas muy chicas) */
@media (max-width: 480px) {
    .fondo-carros-motos {
        min-height: 200px;
    }

        .fondo-carros-motos::before {
            background-size: cover;
            opacity: 0.85;
        }
}

.fondo-carros {
    position: relative;
    z-index: 0;
    overflow: hidden; /* evita que la imagen se desborde */
    min-height: 300px; /* ajusta según el contenido */
}

    .fondo-carros::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/img/fondo-carro.png') no-repeat center center;
        background-size: cover;
        opacity: 0.7; /* 👈 transparencia del fondo */
        z-index: -1; /* 👈 detrás del contenido */
        transition: opacity 0.3s ease, background-position 0.3s ease;
    }

/* ✅ Responsivo para pantallas medianas (tablets) */
@media (max-width: 1024px) {
    .fondo-carros::before {
        background-position: center top;
        opacity: 0.75;
    }
}

/* ✅ Responsivo para pantallas pequeñas (celulares) */
@media (max-width: 768px) {
    .fondo-carros {
        min-height: 250px;
    }

        .fondo-carros::before {
            background-position: center;
            background-size: contain; /* evita recortes de la imagen */
            opacity: 0.8;
        }
}

/* ✅ Extra pequeño (iPhone SE, etc.) */
@media (max-width: 480px) {
    .fondo-carros {
        min-height: 200px;
    }

        .fondo-carros::before {
            background-size: cover;
            opacity: 0.85;
        }
}

.fondo-motos {
    position: relative;
    z-index: 0;
    min-height: 300px;
    overflow: hidden;
}

    .fondo-motos::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/img/fondo-moto.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: 0.5;
        z-index: -1;
        transition: opacity 0.3s ease, background-position 0.3s ease;
    }

/* 👇 Ajustes específicos para pantallas pequeñas */
@media (max-width: 768px) {
    .fondo-motos::before {
        background-position: center top; /* centra la parte superior de la imagen */
        background-size: contain; /* evita recortes agresivos */
        opacity: 0.4; /* un poco más suave para que el texto destaque */
    }
}

@media (max-width: 768px) {
    .fondo-motos {
        min-height: 250px;
    }

        .fondo-motos::before {
            background-position: center;
            background-size: contain; /* se adapta mejor en móvil */
            opacity: 0.7;
        }
}

@media (max-width: 480px) {
    .fondo-motos {
        min-height: 200px;
    }

        .fondo-motos::before {
            background-size: cover;
            opacity: 0.8;
        }
}


.oculto {
    display: none;
}

.navbar, footer {
    position: relative; /* no afectadas por overlay */
    z-index: 3;
}



.table-dark, .table {
    background-color: rgba(0, 0, 0, 0.6); /* negro semitransparente */
    color: white;
}

.table {
    background-color: rgba(0,0,0,0.6); /* semitransparente */
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.table, .table th, .table td {
    color: white; /* todas las celdas con texto blanco */
}


/* Asegura que el contenido quede encima del overlay */
.main-content {
    position: relative;
    z-index: 1;
}



.navbar, footer {
    background-color: #111 !important; /* un negro un poco más claro para diferenciar */
}

h1, h2, h3, h4, h5, h6 {
    color: #fff; /* títulos en blanco */
}

.brand-gradient-red {
    background: linear-gradient(90deg, #ff1a1a, #cc0000, #990000, #660000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-size: 1.6rem;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6); /* brillo verde */
}

.categoria-card .card {
    background-color: rgba(0,0,0,0.6);
    color: white;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

    .categoria-card .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    }

    .categoria-card .card i {
        color: #00ff88;
    }

.categoria-card .card-title {
    font-weight: bold;
}

.categoria-card .card-text {
    font-size: 0.8rem;
}

body.swal2-shown {
    overflow: hidden !important;
    padding-right: 0 !important; /* evita el "salto" de scroll */
}
.action-buttons {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute; /* <-- en lugar de relative */
    z-index: 20;
}

.card:hover .action-buttons {
    opacity: 1;
}
.categoria-card:hover .action-buttons {
    opacity: 1;
}


#btn_AddCat:hover {
    transform: translateY(-3px); /* Eleva ligeramente el botón */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Sombra más marcada */
}

#btn_CerrarCat:hover {
    transform: translateY(-3px); /* Eleva ligeramente el botón */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Sombra más marcada */
}
#btn_EditarCat:hover {
    transform: translateY(-3px); /* Eleva ligeramente el botón */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Sombra más marcada */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

#NombreProducto::placeholder {
    color: black !important;
    opacity: 1 !important;
}

#DescripcionProducto::placeholder {
    color: black !important;
    opacity: 1 !important;
}

#inputAno::placeholder {
    color: black !important;
    opacity: 1 !important;
}

body {
    padding-bottom: 80px; /* altura del footer + margen extra */
}

.card-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Ajuste de altura de imagen para cards pequeñas */
.card-img-top {
    height: 130px;
    object-fit: cover;
}

/* Card body con fondo oscuro transparente */
.card-body-transparent {
    padding: 0.3rem;
    background-color: rgba(0, 0, 0, 0.5); /* negro con 50% transparencia */
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.85rem;
    color: #fff; /* texto blanco para contraste */
}

    .card-body-transparent h6 {
        font-size: 0.9rem;
        font-weight: 600;
        color: #fff;
    }

    .card-body-transparent p,
    .card-body-transparent small {
        color: #ddd; /* un gris claro para no saturar */
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .card-body-transparent .btn {
        font-size: 0.75rem;
    }

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #6c757d !important; /* gris visible */
    opacity: 1 !important; /* no se desvanece */
    font-style: italic; /* opcional, se ve más bonito */
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 60, 60, 0.8);
    }
}

.titulo-energico {
    animation: glowPulse 2s infinite;
}

.fondo-login {
    position: relative;
    z-index: 0;
    min-height: 300px;
    overflow: hidden;
}

.fondo-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/fondo-pantalla.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.9;
    z-index: -1;
    transition: opacity 0.3s ease, background-position 0.3s ease;
}

/* 👇 Ajustes específicos para pantallas pequeñas */
@media (max-width: 768px) {
    .fondo-login::before {
        background-position: center top; /* centra la parte superior de la imagen */
        background-size: contain; /* evita recortes agresivos */
        opacity: 0.2; /* un poco más suave para que el texto destaque */
    }
}

@media (max-width: 768px) {
    .fondo-login {
        min-height: 250px;
    }

        .fondo-login::before {
            background-position: center;
            background-size: contain; /* se adapta mejor en móvil */
            opacity: 0.9;
        }
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    /* Fondo semitransparente para que se vea el fondo real */
    background: rgba(255, 0, 0, 0.25);
    backdrop-filter: blur(8px); /* suaviza el fondo detrás */
    transition: transform 0.3s, box-shadow 0.3s;
}

    .categoria-card:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

.categoria-logo {
    height: 60px;
    filter: drop-shadow(0 0 10px gold);
}

.categoria-text {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

.logo-protegido {
    position: relative;
    display: inline-block;
}

    .logo-protegido img {
        user-select: none;
        -webkit-user-drag: none;
    }

    .logo-protegido .overlay {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0); /* capa invisible que bloquea clics */
        pointer-events: all;
    }

footer {
    background: linear-gradient(135deg, #000000 70%, #660000, #ff1a1a);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(255, 0, 0, 0.4);
    box-shadow: 0 -4px 15px rgba(255, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

  .footer-social {
    position: absolute;
    right: 25px;
    bottom: 12px;
  }

  .footer-social a {
    color: #fff;
    margin-left: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
  }

  .footer-social a:hover {
    color: #ff4d4d;
    transform: translateY(-2px) scale(1.1);
  }

.envio-gratis-banner {
    background: linear-gradient(90deg, #000, #660000, #ff1a1a);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Versión responsive (móvil) */
@media (max-width: 768px) {
    .envio-gratis-banner {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
}


.filter-card-dark {
    /* Fondo negro semi-transparente para el look "Ghost Biker" */
    background-color: rgba(0, 0, 0, 0.75); 
    /* Borde rojo de acento */
    border: 1px solid #ff1a1a !important; 
    /* Sombra para que destaque */
    box-shadow: 0 4px 12px rgba(255, 26, 26, 0.2); 
}

/* Títulos y separador */
.filter-card-dark h5 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Ajuste de Checkboxes para fondo oscuro */
.filter-card-dark .form-check-input {
    /* Fondo del checkbox por defecto */
    background-color: rgba(255, 255, 255, 0.1); 
    border-color: #ff1a1a; /* Borde rojo */
}

/* Cuando el checkbox está marcado (checked), se rellena de rojo */
.filter-card-dark .form-check-input:checked {
    background-color: #ff1a1a; /* Relleno rojo */
    border-color: #cc0000;
}

/* 🟥 Estilo para las tarjetas de producto también oscuras (opcional pero recomendado) */
.card-dark-product {
    background-color: #333333; /* Un gris oscuro, menos intenso que el filtro */
    color: white !important; /* Asegura que el texto principal sea blanco */
    border: 1px solid rgba(255, 26, 26, 0.5); /* Borde rojo suave */
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

.card-dark-product .card-body {
    background-color: #333333;
}


.subir-botones {
    margin-top: 0 !important;
    transform: translateY(-100px);
}

.titulo-superior {
    position: absolute;
    top: 2vh; /* distancia desde el top: ajústala (ej. 5vh o 10vh) */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}









.encuentranos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.7); /* semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    text-align: center;
}

/* 🔹 Contenedor interno que centra todo */
.encuentranos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 40px; /* espacio debajo del navbar */
}

/* 🔹 Título */
.titulo-encuentranos {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    font-size: 2.6rem;
    margin: 0;
}

/* 🔹 Card central */
.contacto-card {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 0, 0, 0.25);
    border-radius: 16px;
    padding: 2rem 3rem;
    max-width: 400px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.15);
}

/* 🔹 Redes sociales */
.social-icon {
    color: #ff4444;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        color: #ffcc00;
    }

/* 🔹 Botón */
.btn-outline-danger {
    border-color: #ff4444;
    color: #ff4444;
    transition: all 0.3s ease;
}

    .btn-outline-danger:hover {
        background: #ff4444;
        color: white;
    }

/* 🔹 Responsivo */
@media screen and (max-width: 768px) {
    .titulo-encuentranos {
        font-size: 2rem;
    }

    .contacto-card {
        max-width: 90%;
        padding: 1.5rem;
    }
}

/* Mensaje corriendo por la pantalla */
.mensaje-scroll {
    position: fixed;
    top: 90px; /* Ajusta según la altura de tu navbar */
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    color: #ff4444;
    text-align: center;
    z-index: 9999;
    animation: correr 15s linear infinite;
}

@keyframes correr {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}




.index-fondo {
    position: relative;
    width: 100%;
    /* ✅ CLAVE: que crezca con el contenido */
    height: auto;
    min-height: auto;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}


.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


.overlay-content {
    position: relative;
    z-index: 2;
}

.categoria-logo {
    width: 42px;
}

/* ===== SECCIÓN ACCESORIOS ===== */
.seccion-accesorios {
    margin-top: 90px;
    opacity: 0.95;
}

.titulo-accesorios-nuevo {
    font-size: 1.6rem;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== GALERÍA VISUAL (NO MENÚ) ===== */
.accesorios-galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* ===== ITEM VISUAL, NO BOTÓN ===== */
.accesorio-item {
    width: 130px;
    text-align: center;
}

    .accesorio-item img {
        width: 100%;
        opacity: 0.95;
        filter: grayscale(15%);
    }

    .accesorio-item p {
        margin-top: 12px;
        font-size: 0.9rem;
        color: #ff6767;
        letter-spacing: 0.6px;
        font-weight: 500;
    }

    /* ❌ PROHIBIDO que se vea como botón */
    .accesorio-item,
    .accesorio-item * {
        cursor: default;
        pointer-events: none;
    }

        .accesorio-item:hover img {
            transform: none;
            box-shadow: none;
        }


.titulo-accesorios-nuevo {
    margin-top: -125px; /* ✅ Baja el título */
    margin-bottom: 35px;
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* ✅ NUEVO GRADIENTE DIFERENTE AL PRINCIPAL */
    background: linear-gradient(90deg, #ffcc00, #ff6a00, #e60000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.accesorio-item img {
    padding: 10px;
    border-radius: 12px;
    background: #000;
    border: 3px solid #00eaff;
    box-shadow: 0 0 15px #00eaff;
    display: block;
}




