/* Zona: Modal de Ficha Técnica (product-modal.css) — Estilos de la ventana emergente de detalle de producto y tallas */

#productDetailModal.active,
#productDetailModal.open,
#promoDetailModal.active,
#promoDetailModal.open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
}

.prod-modal-box .close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all .2s ease;
    line-height: 1;
    text-decoration: none;
}

.prod-modal-box .close:hover {
    background: #e21e2c;
    border-color: #e21e2c;
    color: #ffffff;
    transform: rotate(90deg);
}

.prod-modal-box {
            max-width: 820px;
            width: 94%;
            background: #171816;
            color: #ffffff;
            border: 1px solid rgba(253, 196, 23, 0.35);
            border-radius: 18px;
            padding: 1.25rem 1.6rem;
            position: relative;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
            max-height: 80vh;
            overflow-y: auto;
        }

.prod-modal-tabs {
            display: flex;
            background: #111211;
            padding: 3px;
            border-radius: 10px;
            margin: .55rem 0 .8rem;
            border: 1px solid rgba(255, 255, 255, 0.12);
            gap: 5px;
        }

        .modal-tab-btn {
            flex: 1;
            padding: .5rem .85rem;
            border-radius: 8px;
            border: 1px solid transparent;
            background: transparent;
            color: #9ca3af;
            font-family: 'Poppins', sans-serif;
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .45rem;
            transition: all .2s ease;
        }

        .modal-tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

.modal-tab-btn.active-detal {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            color: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.45);
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
        }

.modal-tab-btn.active-mayor {
            background: linear-gradient(135deg, #fdc417 0%, #d97706 100%);
            color: #111827;
            font-weight: 800;
            border: 1px solid #fdc417;
            box-shadow: 0 3px 14px rgba(253, 196, 23, 0.4);
        }

.modal-size-btn {
            padding: .28rem .65rem;
            border-radius: 7px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            background: rgba(255, 255, 255, 0.05);
            color: #e5e7eb;
            font-family: 'Poppins', sans-serif;
            font-size: .78rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .16s ease;
            user-select: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

.modal-size-btn:hover {
            border-color: var(--ama);
            color: #ffffff;
            background: rgba(253, 196, 23, 0.12);
        }

.modal-size-btn.active-size {
            background: var(--ama);
            color: #111110;
            border-color: var(--ama);
            font-weight: 800;
            box-shadow: 0 2px 8px rgba(253, 196, 23, 0.45);
            transform: scale(1.05);
        }

        .prod-modal-grid {
            display: grid;
            grid-template-columns: 245px 1fr;
            gap: 1.3rem;
            margin-top: .6rem;
        }

        @media (max-width: 640px) {
            .prod-modal-grid {
                grid-template-columns: 1fr;
            }

            .catalog-search-hint {
                flex-direction: column;
                gap: .25rem;
            }
        }

        .sec-dark {
            background: var(--gd);
            color: #fff
        }

        .sec-dark p {
            color: var(--gcl)
        }

.modal-photo-showcase {
    width: 100%;
    height: 230px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.09) 0%, rgba(20, 23, 29, 0.96) 72%), #0d1015;
    border: 1.5px solid rgba(253, 196, 23, 0.35);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
    padding: 0;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-photo-showcase:hover {
    border-color: var(--ama);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 12px 30px rgba(253, 196, 23, 0.25);
}

.modal-showcase-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.18);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.modal-photo-showcase:hover .modal-showcase-img {
    transform: scale(1.26);
}

.modal-photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.58rem;
    font-weight: 800;
    color: #fdc417;
    background: rgba(17, 18, 17, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(253, 196, 23, 0.3);
    border-radius: 6px;
    padding: 2px 6px;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 3;
}

@media (max-width: 640px) {
    .modal-photo-showcase {
        height: 220px;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    #modalMediaCard.has-photo {
        padding: 0.85rem !important;
    }
}
