
/* === PIC MODAL PUBLIC === */
.pic-modal-wrapper { display: inline-block; }

/* Botón trigger */
.pic-modal-trigger {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #C9A96E;
    border: 2px solid #C9A96E;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.pic-modal-trigger:hover {
    background-color: #b8975e;
    border-color: #b8975e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,169,110,0.25);
}

/* Overlay del modal */
.pic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.78);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pic-modal-overlay.pm-active {
    display: flex;
    opacity: 1;
}

/* Caja del modal */
.pic-modal-box {
    position: relative;
    background: #fff;
    max-width: 560px;
    width: 100%;
    border-radius: 6px;
    padding: 40px 36px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    border-top: 4px solid #C9A96E;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.pic-modal-overlay.pm-active .pic-modal-box {
    transform: translateY(0);
}

/* Cerrar */
.pic-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.pic-modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

/* Contenido */
.pic-modal-content h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}
.pic-modal-disclaimer {
    font-size: 14.5px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}
.pic-modal-disclaimer p { margin: 0 0 10px; }
.pic-modal-disclaimer p:last-child { margin-bottom: 0; }

/* Botón aceptar */
.pic-modal-accept {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #C9A96E;
    border: 2px solid #C9A96E;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pic-modal-accept:hover {
    background-color: #b8975e;
    border-color: #b8975e;
}

/* === LIGHTBOX === */
.pic-modal-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.94);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pic-modal-lightbox.pm-active {
    display: flex;
    opacity: 1;
}

.pic-modal-lb-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.pic-modal-lb-img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    border-radius: 3px;
}
.pic-modal-lb-img.pm-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Controles */
.pic-modal-lb-close,
.pic-modal-lb-prev,
.pic-modal-lb-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pic-modal-lb-close:hover,
.pic-modal-lb-prev:hover,
.pic-modal-lb-next:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.pic-modal-lb-close {
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    border-radius: 50%;
}
.pic-modal-lb-prev,
.pic-modal-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 50%;
}
.pic-modal-lb-prev { left: 16px; }
.pic-modal-lb-next { right: 16px; }

/* Counter */
.pic-modal-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 600px) {
    .pic-modal-box { padding: 28px 22px 24px; }
    .pic-modal-trigger, .pic-modal-accept { font-size: 14px; padding: 12px 24px; }
    .pic-modal-lb-prev, .pic-modal-lb-next { width: 40px; height: 40px; font-size: 18px; }
    .pic-modal-lb-prev { left: 8px; }
    .pic-modal-lb-next { right: 8px; }
}
