/* ------------------------------------------------------------------
   Modal de producto (sistema v2: manual de marca, esquinas rectas,
   sin pildoras ni etiquetas en mayusculas)
   ------------------------------------------------------------------ */
.pm .modal-dialog.pm-dialog {
    max-width: 960px !important;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.pm .pm-content {
    position: relative;
    background: #111214;
    color: #f4f3ef;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    max-height: calc(100vh - 2rem);
    margin: 0 !important;
    font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

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

/* Imagen */
.pm .pm-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #1a1b1f;
}
.pm .pm-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.pm .modal-product-img {
    width: 100%;
    max-width: 380px;
    max-height: 56vh;
    height: auto;
    object-fit: contain;
}

/* Informacion */
.pm .pm-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 44px 40px 36px;
    text-align: left;
}

.pm .pm-title {
    margin: 0;
    padding-right: 48px;
    color: #f4f3ef;
    font-family: inherit !important;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-transform: none;
}
.pm .pm-title::after { display: none !important; }

.pm .pm-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
}
.pm .pm-spec {
    padding: 14px 16px;
    background: #1a1b1f;
    border: 0;
    border-radius: 0;
}
.pm .pm-spec.hiddenContainer { display: none; }
.pm .pm-spec dt {
    margin: 0 0 4px;
    color: #c7c6c1;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.pm .pm-spec dd {
    margin: 0;
    color: #f4f3ef;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.pm .pm-spec-line dd { color: #fcc917; }

.pm .pm-section {
    padding-top: 0;
    border-top: 0;
}
.pm .pm-label {
    margin: 0 0 6px;
    color: #f4f3ef;
    font-family: inherit !important;
    font-size: 17px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}
.pm .pm-label::after { display: none !important; }
.pm .pm-text {
    margin: 0;
    color: #c7c6c1;
    font-size: 16px;
    font-style: normal;
    line-height: 1.6;
}

.pm .pm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    min-height: 56px;
    margin-top: 4px;
    padding: 0 28px;
    background: #fcc917;
    border: 0;
    border-radius: 0;
    color: #111214 !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.pm .pm-cta:hover {
    background: #f4f3ef;
}
.pm .pm-cta:focus-visible,
.pm .pm-close:focus-visible {
    outline: 3px solid #fcc917;
    outline-offset: 3px;
}
.pm .pm-cta-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* Boton cerrar */
.pm .pm-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #f4f3ef;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease;
}
.pm .pm-close:hover { background: #24252a; }

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

/* 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: 32px 24px 24px; }
    .pm .modal-product-img { max-width: 220px; max-height: 30vh; }
    .pm .pm-info { gap: 18px; padding: 24px 20px 28px; }
    .pm .pm-title { padding-right: 0; }
    .pm .pm-cta { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .pm .pm-cta, .pm .pm-close { transition: none; }
}
/* Cantidad impar de datos: el ultimo ocupa todo el ancho */
.pm .pm-spec.pm-spec-full { grid-column: 1 / -1; }

/* Balin en 3D / lata */
.pm .pm-image:has(.pm-vistas) { flex-direction: column; gap: 20px; }
.pm .pm-vistas { display: grid; width: 100%; justify-items: center; }
.pm .pm-vistas > .pm-vista { grid-area: 1 / 1; opacity: 0; transition: opacity 0.3s ease; }
.pm .pm-vistas > .pm-vista.is-on { opacity: 1; }
.pm .pm-switch { display: inline-flex; gap: 2px; }
.pm .pm-switch-btn {
    min-width: 88px;
    min-height: 44px;
    padding: 0 18px;
    background: #24252a;
    border: 0;
    border-radius: 0;
    color: #f4f3ef;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.pm .pm-switch-btn.is-on { background: #fcc917; color: #111214; }
.pm .pm-switch-btn:focus-visible { outline: 3px solid #fcc917; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .pm .pm-vistas > .pm-vista { transition: none; }
}
