/* ── Reset y base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #0080FF;
    --blue-bright:#33A0FF;
    --red:        #FF2222;
    --green:      #3DFF14;
    --green-dk:   #2ACC0F;
    --bg:         #0A0A0A;
    --bg-card:    #141414;
    --bg-card2:   #1C1C1C;
    --border:     #2A2A2A;
    --text:       #FFFFFF;
    --text-mid:   #AAAAAA;
    --text-light: #555555;
    --radius:     12px;
    --shadow:     0 2px 20px rgba(0,128,255,.12);
    --shadow-hover: 0 8px 40px rgba(0,128,255,.25);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #000;
    color: var(--text);
    line-height: 1.6;
}

/* Canvas de partículas global */
#globalParticles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Todo el contenido encima del canvas */
.site-header, main, .site-footer {
    position: relative;
    z-index: 1;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: #000;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
}
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity .35s ease;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}
.nav-link {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all .2s;
    border: 1px solid transparent;
}
.nav-link:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(0,128,255,.08);
}
.nav-link.active {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(0,128,255,.12);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    background: transparent;
    padding: 18px 0 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: clamp(80px, 14vw, 130px);
    width: auto;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    animation: heroLogoPulse 4s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 16px rgba(0,128,255,.3)) drop-shadow(0 0 32px rgba(61,255,20,.15)); }
    50%       { filter: drop-shadow(0 0 28px rgba(0,128,255,.55)) drop-shadow(0 0 56px rgba(61,255,20,.3)); }
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.badge {
    padding: 5px 13px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid;
    opacity: .85;
}
.badge-blue  { color: var(--blue);  border-color: var(--blue);  background: rgba(0,128,255,.1); }
.badge-red   { color: var(--red);   border-color: var(--red);   background: rgba(255,34,34,.1); }
.badge-green { color: var(--green); border-color: var(--green); background: rgba(61,255,20,.1); }

/* ── Category hero ───────────────────────────────────────── */
.category-hero {
    background: transparent;
    padding: 40px 0 36px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(0,128,255,.10) 0%, transparent 60%);
    pointer-events: none;
}
.category-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}
.breadcrumb {
    font-size: .85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-bright); }

/* ── Season carousel ─────────────────────────────────────── */
.season-section {
    padding: 32px 0 36px;
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.season-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.season-emoji {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.2));
}

.season-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.season-subtitle {
    font-size: .85rem;
    color: var(--text-mid);
    margin-top: 3px;
}

/* Línea de acento dinámica bajo el título de temporada */
.season-title {
    position: relative;
    display: inline-block;
}
.season-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--green));
    border-radius: 2px;
}

.carousel-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card2);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(0,128,255,.1);
}

.carousel-wrap {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 2px 16px;
    /* Máscara de fade en los bordes para sensación de profundidad */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
    flex: 0 0 210px;
    scroll-snap-align: center;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    cursor: pointer;
}
.carousel-card:hover {
    border-color: var(--blue);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0,128,255,.22);
}

.carousel-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}
.carousel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.carousel-card:hover .carousel-img-wrap img {
    transform: scale(1.08);
}

.carousel-info {
    padding: 10px 13px 13px;
}
.carousel-name {
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    margin-bottom: 5px;
}
.carousel-cat {
    font-size: .72rem;
    color: var(--text-light);
}

/* ── Categories overview ─────────────────────────────────── */
.categories-overview { padding: 50px 0; background: transparent; }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-sub {
    color: var(--text-mid);
    margin-bottom: 28px;
    font-size: .95rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .25s;
    cursor: pointer;
    overflow: hidden;
}
.category-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background: var(--bg-card2);
}
.category-emoji { font-size: 2rem; flex-shrink: 0; }
.category-info { flex: 1; }
.category-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: .8rem; color: var(--text-light); }
.category-preview {
    display: flex;
    gap: 4px;
}
.category-preview img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

/* ── Sections ────────────────────────────────────────────── */
.featured-ams {
    padding: 50px 0;
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.all-products, .products-section {
    padding: 50px 0;
    background: transparent;
}

/* Línea de acento azul bajo el título de sección */
.section-title-accent {
    display: inline-block;
    position: relative;
    margin-bottom: 8px;
}
.section-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 2px;
}

/* ── Products grid ───────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

/* ── Product card ────────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--blue);
    background: var(--bg-card2);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1A1A1A;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

/* Badges sobre la imagen */
.ams-badge, .flexi-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
}
.ams-badge {
    background: var(--red);
    color: #fff;
}
.flexi-badge {
    top: 10px;
    left: auto;
    right: 10px;
    background: var(--green);
    color: #000;
}

.product-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-name {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.product-category {
    font-size: .78rem;
    color: var(--text-light);
}
.product-highlight {
    font-size: .8rem;
    color: var(--red);
    font-weight: 600;
}
.product-detail {
    font-size: .78rem;
    color: var(--text-mid);
}

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.filter-label { font-size: .85rem; color: var(--text-light); }
.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all .2s;
    cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ── See more ────────────────────────────────────────────── */
.see-more {
    text-align: center;
    padding: 32px 0 0;
    color: var(--text-light);
    font-size: .9rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #000;
    border-top: 1px solid var(--border);
    color: var(--text-mid);
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    font-size: .875rem;
}
/* Línea de colores decorativa en el footer */
.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 33%, var(--red) 33% 66%, var(--green) 66%);
    margin-bottom: 24px;
    border-radius: 2px;
}
.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    opacity: .85;
}
.footer-sub { margin-top: 6px; font-size: .78rem; color: var(--text-light); }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(6px);
}
.lightbox.lb-open {
    opacity: 1;
    pointer-events: all;
}
.lb-inner {
    max-width: min(90vw, 800px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lb-inner img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(0,128,255,.2);
}
.lb-title {
    color: var(--text-mid);
    font-size: .9rem;
    text-align: center;
    max-width: 600px;
}
.lb-close {
    position: fixed;
    top: 20px; right: 24px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 1001;
}
.lb-close:hover {
    background: var(--red);
    border-color: var(--red);
}

/* Cursor pointer en cards para indicar que son clicables */
.product-card, .carousel-card { cursor: pointer; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-inner { justify-content: space-between; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-preview { display: none; }
    .hero { padding: 50px 0 40px; }
}
