:root {
    --primary: #0052FF;
    --dark: #0a0a0a;
    --gray-bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Navbar Glassmorphism */
#mainNav {
    transition: 0.3s;
    backdrop-filter: blur(15px);
    background: var(--glass);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link { font-weight: 600; color: var(--dark) !important; margin: 0 10px; }

/* Sections */
.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 50px; text-align: center; }

/* Hero */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: radial-gradient(circle at top right, #eef4ff 0%, #ffffff 100%);
}

/* Filtros de Productos */
.filter-menu {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.filter-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.filter-badge {
    position: absolute;
    top: -8px; /* Lo eleva sobre el texto */
    right: -15px; /* Lo desplaza a la derecha */
    background: #E2E8F0; /* Color neutro inicial */
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.filter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.filter-link.active, .filter-link:hover {
    color: var(--primary);
}

.filter-link.active::after {
    width: 100%;
}

/* Animación de filtrado */
.filter-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    width: 50%; /* Mantiene el layout en 2 columnas */
}

/* Cuando el producto no pertenece a la categoría */
.filter-item.hide {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

/* Ajuste responsivo para los items filtrados */
@media (max-width: 768px) {
    .filter-item { width: 100%; }
    .filter-item.hide { width: 0; }
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.08); }
.product-card img { height: 250px; width: 100%; object-fit: cover; }
.price-tag { font-weight: 800; color: var(--primary); font-size: 1.25rem; }
/* Botón Demo sobre Imagen (Overlay) */
.btn-demo {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-card:hover .btn-demo {
    transform: translateY(0);
}

.btn-demo:hover {
    background: var(--primary);
    color: white;
}

/* Link de texto debajo de la descripción */
.link-demo-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.link-demo-text i {
    font-size: 0.75rem;
}

.link-demo-text:hover {
    color: var(--dark);
    text-decoration: underline;
}
/* CTA Button */
.cta-button {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    background: var(--primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}

/* Hamburger X */
.navbar-toggler.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggler.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger-line { display: block; width: 25px; height: 2px; background: var(--dark); margin: 6px 0; transition: 0.3s; }

/* Footer */
.footer-section { background: var(--dark); color: white; padding: 80px 0 30px; }
.footer-section a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-section a:hover { color: white; }

.social-icons {
    display: flex;
    gap: 25px;               /* Separación generosa entre íconos */
    margin-top: 20px;
}

.social-icons a {
    width: 50px;             /* Tamaño del círculo */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08); /* Fondo sutil */
    color: white !important;
    font-size: 1.3rem;       /* Tamaño del ícono */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px); /* Efecto de salto sutil */
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.4);
    border-color: var(--primary);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .social-icons { gap: 15px; }
    .social-icons a { width: 45px; height: 45px; font-size: 1.1rem; }
}

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px; background: var(--primary);
    color: white; border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.back-to-top.active { opacity: 1; visibility: visible; }

