/* ------------------------------------------------------------------
   Modal de producto
   ------------------------------------------------------------------ */
.pm .modal-dialog.pm-dialog {
    max-width: 920px !important;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.pm .pm-content {
    position: relative;
    background: #141518;
    color: #e9e9ec;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    max-height: calc(100vh - 2rem);
    margin: 0 !important;
}

.pm .pm-body {
    padding: 0;
}

.pm .pm-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 100%;
}

/* Imagen */
.pm .pm-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(250, 195, 40, 0.10), transparent 60%),
        linear-gradient(180deg, #1d1e23 0%, #101114 100%);
}

.pm .pm-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pm .modal-product-img {
    width: 100%;
    max-width: 340px;
    max-height: 52vh;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

/* Informacion */
.pm .pm-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 2.25rem 2.25rem 2rem;
    text-align: left;
}

.pm .pm-badge {
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border: 1px solid #fac328;
    border-radius: 999px;
    color: #fac328;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pm .pm-title {
    margin: 0;
    padding-right: 2.5rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.pm .pm-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin: 0.25rem 0 0;
}

.pm .pm-spec {
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.pm .pm-spec dt {
    margin: 0 0 0.3rem;
    color: #9a9ba3;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pm .pm-spec dd {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.pm .pm-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pm .pm-label {
    margin: 0 0 0.45rem;
    color: #fac328;
    font-size: 0.75rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pm .pm-text {
    margin: 0;
    color: #c9cad1;
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.6;
}

.pm .pm-presentacion .pm-text {
    color: #e9e9ec;
}

.pm .pm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    align-self: flex-start;
    margin-top: 0.4rem;
    padding: 0.75rem 1.4rem;
    background: #fac328;
    border-radius: 999px;
    color: #111 !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pm .pm-cta:hover,
.pm .pm-cta:focus-visible {
    background: #ffd451;
    transform: translateY(-1px);
}

.pm .pm-cta-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

/* Boton cerrar */
.pm .pm-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pm .pm-close:hover,
.pm .pm-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* Celular y tablet */
@media (max-width: 767px) {
    .pm .modal-dialog.pm-dialog {
        width: calc(100% - 1.5rem);
    }

    .pm .pm-grid {
        grid-template-columns: 1fr;
    }

    .pm .pm-media {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .pm .modal-product-img {
        max-width: 220px;
        max-height: 30vh;
    }

    .pm .pm-info {
        gap: 0.9rem;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .pm .pm-title {
        padding-right: 0;
        font-size: 1.3rem;
    }

    .pm .pm-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm .pm-cta {
        align-self: stretch;
    }
}
