/* ============================================================
   GEEK ZONE STORE · Correcciones v4.0
============================================================ */

/* ═══════════════════════════════════════════════════════
   SISTEMA DE TARJETAS UNIFICADO
   ═══════════════════════════════════════════════════════ */
.gz-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.gz-product {
    background: #fff;
    border: 1px solid var(--gz-line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
                box-shadow .35s cubic-bezier(.2,.8,.2,1),
                border-color .35s;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--gz-shadow-sm);
    cursor: pointer;
    height: 100%;
    min-height: 420px;
}
.gz-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px -20px rgba(20,16,28,.28);
    border-color: var(--gz-purple-line);
}

.gz-product__img {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fafbfc 0%, #f1efe9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.gz-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
    filter: saturate(1.08) brightness(1.02);
}
.gz-product:hover .gz-product__img img {
    transform: scale(1.08);
}

.gz-product__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--gz-font-mono);
    font-size: .55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--gz-ink);
    color: #fff;
}
.gz-product__tag--new { background: var(--gz-purple); }
.gz-product__tag--hot { background: var(--gz-gold); color: var(--gz-ink); }

.gz-product__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    transition: .25s;
    color: var(--gz-ink);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 2px 8px rgba(20,16,28,.08);
}
.gz-product__wish:hover { background: var(--gz-ink); color: #fff; }
.gz-product__wish svg { width: 14px; height: 14px; }

.gz-product__body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.gz-product__brand {
    font-family: var(--gz-font-mono);
    font-size: .58rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gz-purple);
    font-weight: 700;
    height: 16px;
    line-height: 16px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gz-product__title {
    font-family: var(--gz-font-display);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: var(--gz-ink);
    margin-bottom: 8px;
    height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gz-product__desc {
    font-size: .74rem;
    color: var(--gz-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    height: calc(1.5em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gz-product__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--gz-line);
    margin-top: auto;
}

.gz-product__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gz-product__now {
    font-family: var(--gz-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gz-ink);
    letter-spacing: -.035em;
    line-height: 1.1;
}
.gz-product__old {
    font-family: var(--gz-font-mono);
    font-size: .6rem;
    color: var(--gz-muted);
    text-decoration: line-through;
}

.gz-product__add {
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--gz-ink);
    color: #fff;
    font-family: var(--gz-font-display);
    font-weight: 600;
    font-size: .68rem;
    transition: .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px -3px rgba(20,16,28,.4);
    white-space: nowrap;
    flex-shrink: 0;
}
.gz-product__add:hover { background: var(--gz-purple); transform: translateY(-1px); }
.gz-product__add svg { width: 12px; height: 12px; }

@media (max-width: 760px) {
    .gz-product { min-height: 380px; }
    .gz-product__img { height: 180px; min-height: 180px; max-height: 180px; padding: 14px; }
    .gz-product__title { font-size: .84rem; }
}

/* ═══════════════════════════════════════════════════════
   MODAL DE PRODUCTO · IMAGEN AJUSTADA
   ═══════════════════════════════════════════════════════ */
.gzm-hero {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: 0 4px 20px -8px rgba(20,16,28,.12);
}
.gzm-hero img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity .2s;
    display: block;
}
.gzm-hero.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s infinite;
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Thumbnails del modal */
.gzm-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    padding: 6px;
    cursor: pointer;
    transition: .2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gzm-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.gzm-thumb:hover {
    transform: translateY(-2px);
    border-color: #ddd6fe;
}
.gzm-thumb.is-active {
    border-color: #6d28d9;
    box-shadow: 0 4px 12px -3px rgba(109,40,217,.4);
}

/* Asegurar que el modal box quepa */
.gzm-gallery {
    background: #f5f3ee;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: 92vh;
}

/* ═══════════════════════════════════════════════════════
   HERO SLIDER · Sincronizado
   ═══════════════════════════════════════════════════════ */
.gz-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.gz-slide.is-active { opacity: 1; pointer-events: auto; }
.gz-slide__img { z-index: 1; }
.gz-slide__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.45) brightness(1.05) contrast(1.03);
    transform: scale(1.03);
    transition: transform 6s cubic-bezier(.2,.8,.2,1);
}
.gz-slide.is-active .gz-slide__img img { transform: scale(1); }
.gz-slide__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20,16,28,.92) 0%, rgba(20,16,28,.65) 35%, rgba(20,16,28,.15) 65%, transparent 100%);
}
.gz-slide__content {
    position: relative;
    z-index: 3;
    padding: 40px 52px 46px;
    width: 100%;
    max-width: 780px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}
.gz-slide.is-active .gz-slide__content { transform: none; opacity: 1; }
.gz-slide__cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    font-family: var(--gz-font-mono);
    font-size: .62rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}
.gz-slide__title {
    font-family: var(--gz-font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0,0,0,.4);
}
.gz-slide__title em {
    font-style: normal;
    background: linear-gradient(135deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 300;
}
.gz-slide__desc {
    font-size: .98rem;
    color: rgba(255,255,255,.94);
    margin-bottom: 24px;
    line-height: 1.65;
    max-width: 640px;
    text-align: justify;
    hyphens: auto;
    text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.gz-slide__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.gz-slide__cta .gz-btn--ghost {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.32);
    backdrop-filter: blur(10px);
    box-shadow: none;
}
.gz-slide__cta .gz-btn--ghost:hover {
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.55);
    color: #fff;
}
@media (max-width: 900px) {
    .gz-slide__content { padding: 30px 26px 34px; }
    .gz-slide__title { font-size: clamp(1.3rem, 5vw, 1.7rem); }
    .gz-slide__desc { font-size: .88rem; }
}

/* ═══════════════════════════════════════════════════════
   MODAL DE BIENVENIDA
   ═══════════════════════════════════════════════════════ */
.gz-welcome__content { padding: 56px 52px 48px !important; }
.gz-welcome__kicker { font-size: .64rem !important; letter-spacing: 3px !important; }
.gz-welcome__content h2 {
    font-size: clamp(1.7rem, 2.9vw, 2.4rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}
.gz-welcome__content p {
    font-size: .93rem !important;
    line-height: 1.78 !important;
    margin-bottom: 16px !important;
    text-align: justify;
    hyphens: auto;
}
.gz-welcome__features {
    gap: 13px !important;
    margin: 22px 0 30px !important;
}
.gz-welcome__features li {
    font-size: .88rem !important;
    line-height: 1.55 !important;
    text-align: justify;
}
.gz-welcome__actions .gz-btn {
    padding: 14px 26px !important;
    font-size: .84rem !important;
}
.gz-welcome__slide-caption h4 {
    font-size: 1.15rem !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}
.gz-welcome__slide-caption p {
    font-size: .86rem !important;
    line-height: 1.6 !important;
    text-align: justify !important;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.gz-header__inner {
    min-height: 86px;
    padding: 16px var(--gz-pad);
    gap: 26px;
}
.gz-logo__mark { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
.gz-logo__text { font-size: 1.05rem; }
.gz-logo__text span { font-size: .6rem; letter-spacing: 2.2px; }
.gz-nav { gap: 8px; }
.gz-nav a { padding: 12px 20px; font-size: .88rem; font-weight: 500; }
.gz-icon-btn { width: 44px; height: 44px; border-radius: 11px; }
.gz-icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
    .gz-header__inner { min-height: 74px; padding: 12px var(--gz-pad); }
    .gz-logo__mark { width: 40px; height: 40px; }
    .gz-nav a { padding: 14px 18px; font-size: .85rem; }
}