/* =================================================================== */
/* ===   HOJA DE ESTILOS "AURORA NEÓN 3.0" (CSS) - Versión Final    === */
/* ===   Mejoras visuales SIN alterar la estructura de los elementos === */
/* =================================================================== */

/* Capa oscura de fondo */
.shepherd-modal-overlay {
    background: rgba(0, 0, 0, 0.85); /* Un poco más oscuro para un mayor contraste */
    backdrop-filter: blur(8px); /* Mayor desenfoque para un efecto más "profundo" */
    z-index: 10000;
}

/* Contenedor principal del tooltip */
.shepherd-element.ms-tour-theme {
    background: linear-gradient(145deg, rgba(22, 18, 32, 0.95), rgba(18, 14, 28, 0.95)); /* Degradado sutil en el fondo del tooltip */
    backdrop-filter: blur(20px); /* Aún mayor desenfoque para un efecto de "cristal esmerilado" */
    border-radius: 16px; /* Mantenemos el radio original */
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7); /* Sombra más grande y definida */
    max-width: 360px; /* Mantenemos el ancho original */
    z-index: 10001;
    padding: 0;
    transition: all 0.3s ease-in-out; /* Transiciones para un efecto más suave al aparecer */
}

/* Borde con degradado más dinámico y animado */
.shepherd-element.ms-tour-theme::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -2px; /* Margen ligeramente más grande */
    border-radius: inherit;
    background: linear-gradient(135deg, #7C3AED, #EC4899, #7C3AED); /* Repetimos el degradado para un ciclo */
    background-size: 200% 200%; /* El doble de tamaño para la animación */
    animation: gradientShift 5s ease-in-out infinite; /* Nueva animación para el borde */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ocultamos la cabecera original de Shepherd */
.shepherd-element.ms-tour-theme .shepherd-header {
    display: none;
}

/* Cuerpo del texto */
.shepherd-element.ms-tour-theme .shepherd-text {
    color: #F8FAFC; /* Color de texto más claro y vibrante */
    padding: 24px; /* Mantenemos el padding original */
    font-size: 16px; /* Mantenemos el tamaño de fuente original */
    line-height: 1.6; /* Mantenemos el interlineado original */
}

/* Título personalizado */
.shepherd-element.ms-tour-theme .shepherd-text .ms-tour-title {
    display: block;
    color: #ffffff;
    font-weight: 800; /* Negrita más marcada */
    font-size: 20px; /* Mantenemos el tamaño de fuente original */
    margin-bottom: 12px; /* Mantenemos el margen original */
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.7), 0 0 20px rgba(124, 58, 237, 0.5); /* Sombra más intensa y con doble color */
}

/* Botón de cerrar (X) */
.shepherd-element.ms-tour-theme .shepherd-cancel-icon {
    top: 16px; /* Mantenemos la posición original */
    right: 16px; /* Mantenemos la posición original */
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.shepherd-element.ms-tour-theme .shepherd-cancel-icon:hover {
    color: #ffffff;
    transform: scale(1.2) rotate(90deg); /* Animación más juguetona */
}

/* Pie de página con los botones */
.shepherd-element.ms-tour-theme .shepherd-footer {
    padding: 0 24px 24px; /* Mantenemos el padding original */
    gap: 12px; /* Mantenemos el gap original */
}

/* Botones con estilo renovado */
.shepherd-element.ms-tour-theme .shepherd-button {
    background: rgba(255, 255, 255, 0.08); /* Fondo ligeramente más transparente */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px; /* Mantenemos el padding original */
    border-radius: 12px; /* Mantenemos el radio original */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.shepherd-element.ms-tour-theme .shepherd-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.01); /* Animación más sutil */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Botón principal */
.shepherd-element.ms-tour-theme .shepherd-button:not(.shepherd-button-secondary) {
    background: #EC4899;
    border: none; /* Quitamos el borde para un look más sólido */
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.8), 0 0 10px rgba(236, 72, 153, 0.4) inset; /* Sombra exterior e interior */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.shepherd-element.ms-tour-theme .shepherd-button:not(.shepherd-button-secondary):hover {
    background: #EC4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.9), 0 0 15px rgba(236, 72, 153, 0.6) inset;
    transform: translateY(-2px) scale(1.01); /* Animación más sutil */
}

/* Flecha que apunta al elemento */
.shepherd-element.ms-tour-theme .shepherd-arrow::before {
    background: #161220; /* Coincide con el fondo principal */
}

/* Foco/Resaltado del Elemento */
.ms-tour-highlight {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.9), 
                0 0 35px rgba(236, 72, 153, 0.8),
                0 0 15px rgba(124, 58, 237, 0.6) inset;
    border-radius: 14px; /* Mantenemos el radio original */
    z-index: 10001 !important;
    position: relative;
    transition: box-shadow 0.4s ease-in-out; /* Transición para un efecto de "brillo" */
}

/* === SOLUCIÓN MÓVIL: Mantenemos el estilo original === */
@media (max-width: 768px) {
    .shepherd-element.ms-tour-theme {
        position: fixed !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        width: auto !important;
        max-width: none;
        transform: none !important;
        animation: slideUp 0.5s ease;
    }
    .shepherd-element.ms-tour-theme[data-shepherd-step-id="continue"] {
        bottom: 110px !important;
    }
    .shepherd-element.ms-tour-theme .shepherd-arrow {
        display: none;
    }
    .shepherd-element.ms-tour-theme .shepherd-text {
        padding: 20px;
        font-size: 15px;
    }
    .shepherd-element.ms-tour-theme .shepherd-footer {
        padding: 0 20px 20px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}