/**
 * Content Protection CSS
 * Protección contra copia de contenido del sitio web
 * Bomberos Voluntarios de Manzanillo
 */

/* ===== PROTECCIÓN DE SELECCIÓN DE TEXTO ===== */
body {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Standard */
}

/* Permitir selección solo en inputs y textareas (formularios) */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ===== PROTECCIÓN DE IMÁGENES ===== */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

/* ===== PROTECCIÓN DE VIDEO ===== */
video {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== PROTECCIÓN DE AUDIO ===== */
audio {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== OVERLAY INVISIBLE SOBRE IMÁGENES ===== */
.image-container {
    position: relative;
    display: inline-block;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* ===== PROTECCIÓN DE TEXTO EN DIVS ESPECÍFICOS ===== */
.protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== DESHABILITAR IMPRESIÓN DE FONDOS (OPCIONAL) ===== */
@media print {
    body {
        display: none !important;
    }
    
    /* Alternativa: mostrar mensaje de copyright */
    body::before {
        content: "© Bomberos Voluntarios de Manzanillo - Contenido Protegido";
        display: block;
        text-align: center;
        padding: 50px;
        font-size: 24px;
    }
}

/* ===== PROTECCIÓN PARA SVG ===== */
svg {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== MENSAJE DE COPYRIGHT EN HOVER (OPCIONAL) ===== */
img:hover::after,
video:hover::after {
    content: '© BVM';
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
}

/* ===== PROTECCIÓN DE FONDOS DE IMAGEN ===== */
[style*="background-image"] {
    pointer-events: none;
}

/* ===== DESHABILITAR MENÚ CONTEXTUAL VISUAL ===== */
*::selection {
    background: transparent;
    color: inherit;
}

*::-moz-selection {
    background: transparent;
    color: inherit;
}

.w-fit {
  width: fit-content;
}