/* productos.css */
body {
    background-color: var(--bg-dark) !important;
}

/* Page Header */
.productos-page-header {
    padding: 140px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(179, 0, 255, 0.15), transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.productos-page-title {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 0 0 20px rgba(179, 0, 255, 0.5);
    margin-bottom: 15px;
    font-weight: 800;
}

.productos-page-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Title */
.cat-header {
    font-size: 1.8rem;
    color: var(--soft);
    margin: 60px 0 30px 0;
    text-shadow: 0 0 10px rgba(222, 163, 212, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Grid Layout */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@media(max-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ Card Wrapper (for reflection) ═══ */
.cat-card-wrap {
    position: relative;
    perspective: 800px;
}

/* Reflection / water mirror */
.cat-card-wrap::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 5%;
    right: 5%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(179, 0, 255, 0.08), transparent);
    border-radius: 0 0 16px 16px;
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ═══ Storefront Cards ═══ */
.cat-card {
    background: rgba(18, 5, 20, 0.7);
    border: 1.5px solid rgba(179, 0, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow:
        0 0 12px rgba(179, 0, 255, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(179, 0, 255, 0.04);
    cursor: pointer;
    position: relative;
    z-index: 1;
    -webkit-box-reflect: below 4px linear-gradient(transparent 75%, rgba(179, 0, 255, 0.06));
}

.cat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(222, 163, 212, 0.7);
    box-shadow:
        0 0 25px rgba(179, 0, 255, 0.35),
        0 15px 40px rgba(179, 0, 255, 0.2),
        inset 0 0 20px rgba(179, 0, 255, 0.06);
}

/* Image Wrapper */
.cat-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0f0412;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Content */
.cat-content {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-title {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* WhatsApp Button */
.btn-wa-elegante {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    z-index: 5;
}

.btn-wa-elegante:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

/* Neon Price */
.cat-price {
    text-align: center;
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #c77dff;
    text-shadow:
        0 0 8px rgba(199, 125, 255, 0.7),
        0 0 20px rgba(179, 0, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ═══════════ MODAL ═══════════ */
.modal-gallery {
    position: fixed;
    inset: 0;
    background: rgba(8, 2, 10, 0.96);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-gallery.active {
    opacity: 1;
    visibility: visible;
}

.modal-inner {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    background: rgba(18, 5, 20, 0.95);
    border: 1px solid rgba(179, 0, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(179, 0, 255, 0.2);
    padding: 0;
}

.modal-inner::-webkit-scrollbar {
    width: 6px;
}

.modal-inner::-webkit-scrollbar-track {
    background: transparent;
}

.modal-inner::-webkit-scrollbar-thumb {
    background: rgba(179, 0, 255, 0.3);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--soft);
    color: #000;
}

/* Modal Gallery Viewer */
.modal-gallery-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.85;
    background: #0a0212;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.modal-gallery-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.modal-nav:hover {
    background: var(--soft);
    box-shadow: 0 0 15px rgba(179, 0, 255, 0.5);
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

/* Modal Info */
.modal-info {
    padding: 30px 30px 35px;
}

.modal-product-title {
    font-size: 1.6rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c77dff;
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.7), 0 0 20px rgba(179, 0, 255, 0.4);
    margin-bottom: 18px;
}

.modal-product-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-line;
}

@media(max-width: 768px) {
    .modal-prev {
        left: 8px;
    }

    .modal-next {
        right: 8px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-product-title {
        font-size: 1.3rem;
    }

    .productos-page-title {
        font-size: 2.2rem;
    }

    .cat-card-wrap::after {
        height: 40px;
        bottom: -40px;
    }
}
