/**
 * RMPowerTech - Estilos de Seguridad, Tooltips Interactivos y Espacios Publicitarios
 * Dark Tech Glassmorphism
 */

/* ===================================================
   1. SEGURIDAD Y PROTECCIÓN VISUAL
   =================================================== */
/* Desactivar selección en elementos estructurales */
body, header, nav, .hero, .section-header, .footer-modern, .btn:not(.allow-select), img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Permitir interacción y selección ÚNICAMENTE en áreas de trabajo de herramientas */
input, textarea, [contenteditable="true"], .code-output, .tool-output, .selectable, pre, code {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevenir arrastrar imágenes */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Toast de Advertencia de Seguridad */
.security-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.security-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.security-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===================================================
   2. TOOLTIPS INTERACTIVOS PREMIUM
   =================================================== */
/* Tooltip flotante global gestionado por JS */
#global-interactive-tooltip {
    position: fixed;
    z-index: 9999999;
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(14, 165, 233, 0.25);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 400;
}

#global-interactive-tooltip.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ícono de ayuda interactivo con pulsación */
.help-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #67e8f9;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.help-tooltip-icon:hover {
    background: #0ea5e9;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* ===================================================
   3. ARQUITECTURA DE ESPACIOS PUBLICITARIOS LIMPIOS
   =================================================== */
.rm-ad-wrapper {
    margin: 20px auto;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.rm-ad-container {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rm-ad-badge {
    display: none !important;
}

/* Banner Superior */
.rm-ad-top {
    margin-top: 15px;
    margin-bottom: 25px;
    max-width: 970px;
}

/* Banner Dentro de la Herramienta (Intermedio) */
.rm-ad-in-tool {
    margin: 25px auto;
    max-width: 800px;
}

/* Banner Inferior */
.rm-ad-bottom {
    margin-top: 30px;
    margin-bottom: 20px;
    max-width: 970px;
}

/* Sidebar Ad */
.rm-ad-sidebar {
    width: 100%;
    max-width: 336px;
    position: sticky;
    top: 110px;
}

@media (max-width: 768px) {
    .rm-ad-wrapper {
        margin: 25px auto;
    }
    .rm-ad-container {
        min-height: 80px;
        padding: 10px;
    }
}
