:root {
    --neon-green: #00ff41;
    --neon-green-dark: #008f1c;
    --neon-green-glow: rgba(0, 255, 65, 0.3);
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-section: #0d0d0d;
    --text-white: #ffffff;
    --text-gray: #aaaaaa;
    --state-nuevo: #00ff41;
    --state-bueno: #00a6ff;
    --state-regular: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
}

.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--bg-dark) !important;
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.15);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 8px 0;
}

.navbar .nav-link {
    color: var(--text-white) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 18px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .nav-link:hover {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.navbar .navbar-brand img {
    height: 130px;
    transition: all 0.3s ease, filter 0.3s ease;
}

.navbar .navbar-brand img:hover {
    filter: brightness(0) saturate(100%) invert(59%) sepia(97%) saturate(1352%) hue-rotate(90deg) brightness(119%) contrast(119%);
}

.navbar.scrolled .navbar-brand img {
    height: 80px;
}

.btn-neon-solid {
    text-decoration: none;
    background: var(--neon-green);
    color: var(--bg-dark) !important;
    border: 2px solid var(--neon-green);
    border-radius: 6px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-neon-solid:hover {
    box-shadow: 0 0 25px var(--neon-green-glow), 0 0 50px var(--neon-green-glow);
    transform: translateY(-3px);
}

.btn-neon-outline {
    text-decoration: none;
    background: transparent;
    color: var(--neon-green) !important;
    border: 2px solid var(--neon-green);
    border-radius: 6px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-neon-outline:hover {
    background: var(--neon-green);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 25px var(--neon-green-glow), 0 0 50px var(--neon-green-glow);
    transform: translateY(-3px);
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-title .highlight {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green-glow);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 600px;
}

.search-section {
    padding: 30px 0;
    background: var(--bg-section);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    background: var(--bg-card);
    border: 1.5px solid rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-wrapper input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.search-wrapper input::placeholder {
    color: #555;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.category-pill {
    padding: 8px 18px;
    border: 1.5px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    background: transparent;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
}

.category-pill:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.category-pill.active {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.section-padding {
    padding: 60px 0;
}

.products-count {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-align: center;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.15), 0 0 20px rgba(0, 255, 65, 0.05);
}

.product-card .card-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
    z-index: 2;
}

.product-badge.nuevo {
    background: var(--state-nuevo);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.product-badge.bueno {
    background: var(--state-bueno);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.product-badge.regular {
    background: var(--state-regular);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.product-badge.semi {
    background: #9b59b6;
    color: #fff;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.product-card .card-body {
    padding: 20px;
}

.product-card .product-category {
    font-size: 0.7rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
}

.product-card .product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
    line-height: 1.3;
}

.product-card .product-brand-model {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 15px;
}

.product-card .btn-contact {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1.5px solid var(--neon-green);
    border-radius: 6px;
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card .btn-contact:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-white);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    padding: 20px 25px;
}

.modal-header .btn-close {
    filter: invert(1) brightness(200%);
    opacity: 0.8;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    font-size: 1.2rem;
}

.modal-body {
    padding: 25px;
}

.modal-gallery {
    margin-bottom: 45px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-gallery .carousel {
    border-radius: 10px;
    overflow: hidden;
}

.modal-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    background: #1a1a1a;
}

.modal-gallery .carousel-control-prev,
.modal-gallery .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-gallery:hover .carousel-control-prev,
.modal-gallery:hover .carousel-control-next {
    opacity: 1;
}

.modal-gallery .carousel-control-prev {
    left: 10px;
}

.modal-gallery .carousel-control-next {
    right: 10px;
}

.modal-gallery .carousel-control-prev-icon,
.modal-gallery .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.modal-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 8px 0;
}
.modal-state.nuevo {
    color: var(--state-nuevo);
    background: rgba(0, 255, 65, 0.1);
}
.modal-state.semi {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    border-top: 1px solid rgba(0, 255, 65, 0.15);
    padding: 60px 0 0;
}

.footer-logo {
    height: 90px;
    margin-bottom: 15px;
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(0) saturate(100%) invert(59%) sepia(97%) saturate(1352%) hue-rotate(90deg) brightness(119%) contrast(119%);
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--neon-green);
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.footer p, .footer a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--neon-green);
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow);
    transform: translateY(-3px);
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer .contact-item i {
    color: var(--neon-green);
    width: 20px;
    text-align: center;
}

.footer .brand-tag {
    display: inline-block;
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-radius: 5px;
    padding: 4px 12px;
    margin: 3px;
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer .brand-tag:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    color: #555;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar .navbar-brand img {
        height: 80px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 60px;
    }

    .product-card .card-img-wrapper {
        height: 180px;
    }

    .modal-gallery {
        margin-bottom: 40px;
    }

    .modal-gallery .main-image {
        height: 300px;
        object-fit: contain;
    }

    .modal-gallery .carousel-control-prev,
    .modal-gallery .carousel-control-next {
        opacity: 1;
    }

    .footer {
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .contact-item {
        justify-content: center;
    }

    .footer .social-icons {
        text-align: center;
    }

    .category-pill {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .search-section {
        position: relative;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 35px 0;
    }

    .product-card .card-img-wrapper {
        height: 160px;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(0, 255, 65, 0.15);
    }

    .modal-gallery {
        margin-bottom: 35px;
    }

    .modal-gallery .main-image {
        height: 250px;
        object-fit: contain;
    }

    .modal-gallery .carousel-control-prev,
    .modal-gallery .carousel-control-next {
        opacity: 1;
    }
}
