/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #000000 0%, #000244 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: white;
}

a {
    color: white;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

h2, h3, p { color: white; }

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#paginas {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    width: 100%;
}

.nav-iconos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-iconos a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.nav-iconos a img {
    filter: brightness(0) invert(1);
    width: 26px;
    height: 26px;
    display: block;
    transition: opacity 0.2s;
}

.nav-iconos a:hover img { opacity: 0.65; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
}

.hamburger img {
    filter: brightness(0) invert(1);
    width: 26px;
    height: 26px;
    display: block;
}

.paginas-botones {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.paginas-botones a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.87rem;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    margin: 0;
}

.paginas-botones a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

#Tjust {
    margin-left: auto;
    color: white;
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 2, 30, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

/* ============================================================
   HERO DE PRODUCTOS
   ============================================================ */
.productos-hero {
    text-align: center;
    padding: clamp(40px, 6vw, 70px) 20px clamp(20px, 4vw, 40px);
}

.productos-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.productos-hero .textobloom { color: #0037ff; }

.productos-hero p {
    opacity: 0.75;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   FILTROS DE CATEGORÍA
   ============================================================ */
.productos-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) clamp(20px, 4vw, 30px);
}

.filtro-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filtro-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.filtro-btn.active {
    background: #0037ff;
    border-color: #0037ff;
    color: white;
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px clamp(20px, 5vw, 60px) clamp(60px, 8vw, 100px);
}

.producto-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    overflow: hidden;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.producto-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.producto-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.producto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-card-img img {
    transform: scale(1.05);
}

.producto-card-info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.producto-categoria {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b8cff;
    font-weight: 600;
}

.producto-card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.producto-card-info p {
    font-size: 0.85rem;
    opacity: 0.68;
    line-height: 1.5;
    flex: 1;
}

.producto-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.producto-precio {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.producto-ver {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.producto-card:hover .producto-ver { color: #6b8cff; }

.productos-vacio {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.6;
    padding: 40px 0;
}

/* ============================================================
   FOOTER 
   ============================================================ */
.creditos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(28px, 5vw, 80px);
    padding: clamp(32px, 5vw, 52px) clamp(20px, 5vw, 60px);
}

.creditos > div { display: flex; flex-direction: column; gap: 10px; }

.creditos-brand h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: white;
}

.creditos-brand p {
    font-size: 0.88rem;
    opacity: 0.6;
    color: white;
}

.creditos-redes h3,
.creditos-contacto h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    color: white;
    margin: 0 0 8px 0;
}

.social-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-links a img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.social-links a:hover img {
    opacity: 0.7;
    transform: scale(1.1);
}

.mail-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    word-break: break-all;
    margin: 0;
    transition: color 0.2s;
}

.mail-link:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .paginas-botones { display: none; }
    .hamburger { display: block; }
}

@media (max-width: 480px) {
    #paginas { padding: 10px 14px; gap: 8px; }

    .nav-iconos a img,
    .hamburger img { width: 22px; height: 22px; }

    #Tjust { font-size: 1rem; }

    .productos-filtros { gap: 8px; }
    .filtro-btn { padding: 7px 16px; font-size: 0.8rem; }

    .productos-grid { grid-template-columns: 1fr; gap: 20px; }

    .creditos {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .producto-card, .producto-card-img img, .social-links a img { transition: none; }
}
