/* ==========================================================================
   JARDÍN INFANTIL MI GATEITO — Protección de contenido (disuasión, no infalible)
   Aplica a cualquier elemento con clase .protected-media (fotos/videos de la
   galería, del regalo QR y de los paneles de docentes/directora), además de
   bloquear el menú de "mantener presionado para descargar" en móviles.

   IMPORTANTE: esto disuade capturas casuales y descargas por clic derecho o
   pulsación larga en móviles, pero NINGÚN sitio web puede bloquear una captura
   de pantalla real del sistema operativo.
   ========================================================================== */

img,
video,
.protected-media,
.mr-protected-wrap,
.mr-protected-wrap img,
.mr-protected-wrap video,
.lightbox-frame img,
#uniformModalImg {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
}

/* En móviles (Android/iOS), evitar que el toque caiga directo sobre cualquier <img>
   o video sin controles (<video:not([controls])>) impide que Safari/Chrome
   despliegue el menú nativo "Guardar / Descargar" al mantener presionado,
   manteniendo intactos los clics/swipes en tarjetas, botones y contenedores. */
main img,
section img,
.modal img,
.gallery-lightbox img,
.uniform-modal img,
.dashboard-wrapper img,
.mr-protected-wrap img,
.mr-protected-wrap video:not([controls]),
main video:not([controls]),
section video:not([controls]),
.modal video:not([controls]),
img.protected-media,
video.protected-media:not([controls]) {
    pointer-events: none !important;
}

/* Permitir controles en videos reales cuando tienen atributo controls */
video[controls] {
    pointer-events: auto;
}

.mr-protected-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.mr-protected-wrap img,
.mr-protected-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Marca de agua repetida diagonal ("Jardín Bebés Disney") */
.mr-watermark,
.mr-watermark-self::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-repeat: repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130'%3E%3Ctext x='10' y='72' font-family='sans-serif' font-size='14' font-weight='600' fill='%23ffffff' fill-opacity='0.45' transform='rotate(-20 130 65)'%3EJard%C3%ADn%20Beb%C3%A9s%20Disney%3C/text%3E%3C/svg%3E");
}

.mr-watermark-self {
    position: relative;
}

/* Heurística de DevTools abiertas: difumina el contenido protegido */
.mr-devtools-blur .protected-media,
.mr-devtools-blur .mr-protected-wrap {
    filter: blur(22px);
    transition: filter 0.2s ease;
}

.mr-devtools-warning {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mr-devtools-blur .mr-devtools-warning {
    display: block;
}

/* Aviso breve al cargar (independiente de la heurística de DevTools):
   aparece y se desvanece solo, sin depender de la detección de arriba. */
.mr-protection-toast {
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    max-width: 88vw;
    text-align: center;
}

.mr-protection-toast-visible {
    opacity: 1;
}
